|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+BJd":function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("6MrE"),A=d.n(C)},"+QRC":function(H,B,d){"use strict";var O=d("E9nw"),E={"text/plain":"Text","text/html":"Url",default:"Text"},C="Copy to clipboard: #{key}, Enter";function A(m){var f=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,f)}function w(m,f){var c,o,r,i,n,e,s=!1;f||(f={}),c=f.debug||!1;try{r=O(),i=document.createRange(),n=document.getSelection(),e=document.createElement("span"),e.textContent=m,e.ariaHidden="true",e.style.all="unset",e.style.position="fixed",e.style.top=0,e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="pre",e.style.webkitUserSelect="text",e.style.MozUserSelect="text",e.style.msUserSelect="text",e.style.userSelect="text",e.addEventListener("copy",function(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 l=E[f.format]||E.default;window.clipboardData.setData(l,m)}else a.clipboardData.clearData(),a.clipboardData.setData(f.format,m);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");s=!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",m),f.onCopy&&f.onCopy(window.clipboardData),s=!0}catch(l){c&&console.error("unable to copy using clipboardData: ",l),c&&console.error("falling back to prompt"),o=A("message"in f?f.message:C),window.prompt(o,m)}}finally{n&&(typeof n.removeRange=="function"?n.removeRange(i):n.removeAllRanges()),e&&document.body.removeChild(e),r()}return s}H.exports=w},"+TT/":function(H,B,d){var O=d("bYtY"),E=d("mFDi"),C=d("OELB"),A=C.parsePercent,w=d("7aKB"),m=O.each,f=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function o(p,g,v,y,x){var T=0,S=0;y==null&&(y=Infinity),x==null&&(x=Infinity);var b=0;g.eachChild(function(_,I){var L=_.position,N=_.getBoundingRect(),D=g.childAt(I+1),R=D&&D.getBoundingRect(),P,M;if(p==="horizontal"){var U=N.width+(R?-R.x+N.x:0);P=T+U,P>y||_.newline?(T=0,P=U,S+=b+v,b=N.height):b=Math.max(b,N.height)}else{var F=N.height+(R?-R.y+N.y:0);M=S+F,M>x||_.newline?(T+=b+v,S=0,M=F,b=N.width):b=Math.max(b,N.width)}if(_.newline)return;L[0]=T,L[1]=S,p==="horizontal"?T=P+v:S=M+v})}var r=o,i=O.curry(o,"vertical"),n=O.curry(o,"horizontal");function e(p,g,v){var y=g.width,x=g.height,T=A(p.x,y),S=A(p.y,x),b=A(p.x2,y),_=A(p.y2,x);return(isNaN(T)||isNaN(parseFloat(p.x)))&&(T=0),(isNaN(b)||isNaN(parseFloat(p.x2)))&&(b=y),(isNaN(S)||isNaN(parseFloat(p.y)))&&(S=0),(isNaN(_)||isNaN(parseFloat(p.y2)))&&(_=x),v=w.normalizeCssArray(v||0),{width:Math.max(b-T-v[1]-v[3],0),height:Math.max(_-S-v[0]-v[2],0)}}function s(p,g,v){v=w.normalizeCssArray(v||0);var y=g.width,x=g.height,T=A(p.left,y),S=A(p.top,x),b=A(p.right,y),_=A(p.bottom,x),I=A(p.width,y),L=A(p.height,x),N=v[2]+v[0],D=v[1]+v[3],R=p.aspect;isNaN(I)&&(I=y-b-D-T),isNaN(L)&&(L=x-_-N-S),R!=null&&(isNaN(I)&&isNaN(L)&&(R>y/x?I=y*.8:L=x*.8),isNaN(I)&&(I=R*L),isNaN(L)&&(L=I/R)),isNaN(T)&&(T=y-b-I-D),isNaN(S)&&(S=x-_-L-N);switch(p.left||p.right){case"center":T=y/2-I/2-v[3];break;case"right":T=y-I-D;break}switch(p.top||p.bottom){case"middle":case"center":S=x/2-L/2-v[0];break;case"bottom":S=x-L-N;break}T=T||0,S=S||0,isNaN(I)&&(I=y-D-T-(b||0)),isNaN(L)&&(L=x-N-S-(_||0));var P=new E(T+v[3],S+v[0],I,L);return P.margin=v,P}function t(p,g,v,y,x){var T=!x||!x.hv||x.hv[0],S=!x||!x.hv||x.hv[1],b=x&&x.boundingMode||"all";if(!T&&!S)return;var _;if(b==="raw")_=p.type==="group"?new E(0,0,+g.width||0,+g.height||0):p.getBoundingRect();else if(_=p.getBoundingRect(),p.needLocalTransform()){var I=p.getLocalTransform();_=_.clone(),_.applyTransform(I)}g=s(O.defaults({width:_.width,height:_.height},g),v,y);var L=p.position,N=T?g.x-_.x:0,D=S?g.y-_.y:0;p.attr("position",b==="raw"?[N,D]:[L[0]+N,L[1]+D])}function a(p,g){return p[c[g][0]]!=null||p[c[g][1]]!=null&&p[c[g][2]]!=null}function l(p,g,v){!O.isObject(v)&&(v={});var y=v.ignoreSize;!O.isArray(y)&&(y=[y,y]);var x=S(c[0],0),T=S(c[1],1);I(c[0],p,x),I(c[1],p,T);function S(L,N){var D={},R=0,P={},M=0,U=2;if(m(L,function(W){P[W]=p[W]}),m(L,function(W){b(g,W)&&(D[W]=P[W]=g[W]),_(D,W)&&R++,_(P,W)&&M++}),y[N])return _(g,L[1])?P[L[2]]=null:_(g,L[2])&&(P[L[1]]=null),P;if(M===U||!R)return P;if(R>=U)return D;for(var F=0;F<L.length;F++){var j=L[F];if(!b(D,j)&&b(p,j)){D[j]=p[j];break}}return D}function b(L,N){return L.hasOwnProperty(N)}function _(L,N){return L[N]!=null&&L[N]!=="auto"}function I(L,N,D){m(L,function(R){N[R]=D[R]})}}function u(p){return h({},p)}function h(p,g){return g&&p&&m(f,function(v){g.hasOwnProperty(v)&&(p[v]=g[v])}),p}B.LOCATION_PARAMS=f,B.HV_NAMES=c,B.box=r,B.vbox=i,B.hbox=n,B.getAvailableSize=e,B.getLayoutRect=s,B.positionElement=t,B.sizeCalculable=a,B.mergeLayoutParam=l,B.getLayoutParams=u,B.copyLayoutParams=h},"+Zaj":function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("ugBc")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="CalendarOutlined";var c=A.forwardRef(f);B.default=c},"+d4F":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("y3Yb"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},"+eQT":function(H,B,d){"use strict";var O=d("wd/R"),E=d.n(O),C=d("Kwbf"),A={getNow:function(){return E()()},getWeekDay:function(cr){var Pr=cr.clone().locale("en_US");return Pr.weekday()+Pr.localeData().firstDayOfWeek()},getYear:function(cr){return cr.year()},getMonth:function(cr){return cr.month()},getDate:function(cr){return cr.date()},getHour:function(cr){return cr.hour()},getMinute:function(cr){return cr.minute()},getSecond:function(cr){return cr.second()},addYear:function(cr,Pr){var Lr=cr.clone();return Lr.add(Pr,"year")},addMonth:function(cr,Pr){var Lr=cr.clone();return Lr.add(Pr,"month")},addDate:function(cr,Pr){var Lr=cr.clone();return Lr.add(Pr,"day")},setYear:function(cr,Pr){var Lr=cr.clone();return Lr.year(Pr)},setMonth:function(cr,Pr){var Lr=cr.clone();return Lr.month(Pr)},setDate:function(cr,Pr){var Lr=cr.clone();return Lr.date(Pr)},setHour:function(cr,Pr){var Lr=cr.clone();return Lr.hour(Pr)},setMinute:function(cr,Pr){var Lr=cr.clone();return Lr.minute(Pr)},setSecond:function(cr,Pr){var Lr=cr.clone();return Lr.second(Pr)},isAfter:function(cr,Pr){return cr.isAfter(Pr)},isValidate:function(cr){return cr.isValid()},locale:{getWeekFirstDay:function(cr){var Pr=E()().locale(cr);return Pr.localeData().firstDayOfWeek()},getWeek:function(cr,Pr){var Lr=Pr.clone(),_n=Lr.locale(cr);return _n.week()},getShortWeekDays:function(cr){var Pr=E()().locale(cr);return Pr.localeData().weekdaysMin()},getShortMonths:function(cr){var Pr=E()().locale(cr);return Pr.localeData().monthsShort()},format:function(cr,Pr,Lr){var _n=Pr.clone(),Vr=_n.locale(cr);return Vr.format(Lr)},parse:function(cr,Pr,Lr){for(var _n=[],Vr=0;Vr<Lr.length;Vr+=1){var _r=Lr[Vr],kn=Pr;if(_r.includes("wo")||_r.includes("Wo")){_r=_r.replace(/wo/g,"w").replace(/Wo/g,"W");var Ur=_r.match(/[-YyMmDdHhSsWwGg]+/g),En=kn.match(/[-\d]+/g);Ur&&En?(_r=Ur.join(""),kn=En.join("")):_n.push(_r.replace(/o/g,""))}var jn=E()(kn,_r,cr,!0);if(jn.isValid())return jn}for(var Hn=0;Hn<_n.length;Hn+=1){var Bn=E()(Pr,_n[Hn],cr,!1);if(Bn.isValid())return Object(C.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),Bn}return null}}},w=A,m=d("pVnL"),f=d.n(m),c=d("q1tI"),o=d.n(c),r=d("2/Rp");function i(rt){return c.createElement(r.a,f()({size:"small",type:"primary"},rt))}var n=d("mr32");function e(rt){return c.createElement(n.a,f()({color:"blue"},rt))}var s=d("lSNA"),t=d.n(s),a=d("lwsE"),l=d.n(a),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),g=d.n(p),v=d("LQ03"),y=d.n(v),x=d("TSYQ"),T=d.n(x),S=d("r/2G"),b=d.n(S),_=d("XzQk"),I=d.n(_),L=d("kbBi"),N=d.n(L),D=d("1OyB"),R=d("vuIU"),P=d("Ji7U"),M=d("LK+K"),U=d("rePB"),F=d("VTBJ"),j=d("ODXe"),W=d("6cGi"),V=d("U8pU"),z=d("4IlW"),Y=c.createContext({}),$=Y,ue={visibility:"hidden"};function ne(rt){var cr=rt.prefixCls,Pr=rt.prevIcon,Lr=Pr===void 0?"\u2039":Pr,_n=rt.nextIcon,Vr=_n===void 0?"\u203A":_n,_r=rt.superPrevIcon,kn=_r===void 0?"\xAB":_r,Ur=rt.superNextIcon,En=Ur===void 0?"\xBB":Ur,jn=rt.onSuperPrev,Hn=rt.onSuperNext,Bn=rt.onPrev,ri=rt.onNext,Yn=rt.children,ii=c.useContext($),ai=ii.hideNextBtn,ki=ii.hidePrevBtn;return c.createElement("div",{className:cr},jn&&c.createElement("button",{type:"button",onClick:jn,tabIndex:-1,className:"".concat(cr,"-super-prev-btn"),style:ki?ue:{}},kn),Bn&&c.createElement("button",{type:"button",onClick:Bn,tabIndex:-1,className:"".concat(cr,"-prev-btn"),style:ki?ue:{}},Lr),c.createElement("div",{className:"".concat(cr,"-view")},Yn),ri&&c.createElement("button",{type:"button",onClick:ri,tabIndex:-1,className:"".concat(cr,"-next-btn"),style:ai?ue:{}},Vr),Hn&&c.createElement("button",{type:"button",onClick:Hn,tabIndex:-1,className:"".concat(cr,"-super-next-btn"),style:ai?ue:{}},En))}var ge=ne;function Oe(rt){var cr=c.useContext($),Pr=cr.hideHeader;if(Pr)return null;var Lr=rt.prefixCls,_n=rt.generateConfig,Vr=rt.locale,_r=rt.value,kn=rt.format,Ur="".concat(Lr,"-header");return c.createElement(ge,{prefixCls:Ur},_r?_n.locale.format(Vr.locale,_r,kn):"\xA0")}var De=Oe,He=d("YrtM"),pe=d("KQm4"),Ue=new Map;function oe(rt,cr,Pr){if(Ue.get(rt)&&cancelAnimationFrame(Ue.get(rt)),Pr<=0){Ue.set(rt,requestAnimationFrame(function(){rt.scrollTop=cr}));return}var Lr=cr-rt.scrollTop,_n=Lr/Pr*10;Ue.set(rt,requestAnimationFrame(function(){rt.scrollTop+=_n,rt.scrollTop!==cr&&oe(rt,cr,Pr-10)}))}function ee(rt,cr){var Pr=cr.onLeftRight,Lr=cr.onCtrlLeftRight,_n=cr.onUpDown,Vr=cr.onPageUpDown,_r=cr.onEnter,kn=rt.which,Ur=rt.ctrlKey,En=rt.metaKey;switch(kn){case z.a.LEFT:if(Ur||En){if(Lr)return Lr(-1),!0}else if(Pr)return Pr(-1),!0;break;case z.a.RIGHT:if(Ur||En){if(Lr)return Lr(1),!0}else if(Pr)return Pr(1),!0;break;case z.a.UP:if(_n)return _n(-1),!0;break;case z.a.DOWN:if(_n)return _n(1),!0;break;case z.a.PAGE_UP:if(Vr)return Vr(-1),!0;break;case z.a.PAGE_DOWN:if(Vr)return Vr(1),!0;break;case z.a.ENTER:if(_r)return _r(),!0;break}return!1}function Xe(rt,cr,Pr,Lr){var _n=rt;if(!_n)switch(cr){case"time":_n=Lr?"hh:mm:ss a":"HH:mm:ss";break;case"week":_n="gggg-wo";break;case"month":_n="YYYY-MM";break;case"quarter":_n="YYYY-[Q]Q";break;case"year":_n="YYYY";break;default:_n=Pr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return _n}function se(rt,cr){var Pr=rt==="time"?8:10;return Math.max(Pr,cr.length)+2}var Q=null,G=new Set;function J(rt){return!Q&&typeof window!="undefined"&&window.addEventListener&&(Q=function(Pr){Object(pe.a)(G).forEach(function(Lr){Lr(Pr)})},window.addEventListener("mousedown",Q)),G.add(rt),function(){G.delete(rt),G.size===0&&(window.removeEventListener("mousedown",Q),Q=null)}}var ve=function(cr){return cr==="month"||cr==="date"?"year":cr},de=function(cr){return cr==="date"?"month":cr},Ce=function(cr){return cr==="month"||cr==="date"?"quarter":cr},Ee=function(cr){return cr==="date"?"week":cr},le={year:ve,month:de,quarter:Ce,week:Ee,time:null,date:null};function fe(rt,cr){return rt.some(function(Pr){return Pr&&Pr.contains(cr)})}function xe(rt){var cr=rt.prefixCls,Pr=rt.units,Lr=rt.onSelect,_n=rt.value,Vr=rt.active,_r=rt.hideDisabledOptions,kn="".concat(cr,"-cell"),Ur=c.useContext($),En=Ur.open,jn=c.useRef(null),Hn=c.useRef(new Map);return c.useLayoutEffect(function(){var Bn=Hn.current.get(_n);Bn&&En!==!1&&oe(jn.current,Bn.offsetTop,120)},[_n]),c.useLayoutEffect(function(){if(En){var Bn=Hn.current.get(_n);Bn&&oe(jn.current,Bn.offsetTop,0)}},[En]),c.createElement("ul",{className:T()("".concat(cr,"-column"),Object(U.a)({},"".concat(cr,"-column-active"),Vr)),ref:jn,style:{position:"relative"}},Pr.map(function(Bn){var ri;return _r&&Bn.disabled?null:c.createElement("li",{key:Bn.value,ref:function(ii){Hn.current.set(Bn.value,ii)},className:T()(kn,(ri={},Object(U.a)(ri,"".concat(kn,"-disabled"),Bn.disabled),Object(U.a)(ri,"".concat(kn,"-selected"),_n===Bn.value),ri)),onClick:function(){if(Bn.disabled)return;Lr(Bn.value)}},c.createElement("div",{className:"".concat(kn,"-inner")},Bn.label))}))}var Qe=xe;function ot(rt,cr){for(var Pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Lr=String(rt);Lr.length<cr;)Lr="".concat(Pr).concat(rt);return Lr}var Je=function(){for(var cr=arguments.length,Pr=new Array(cr),Lr=0;Lr<cr;Lr++)Pr[Lr]=arguments[Lr];return Pr};function Te(rt){return rt==null?[]:Array.isArray(rt)?rt:[rt]}function et(rt){var cr={};return Object.keys(rt).forEach(function(Pr){(Pr.substr(0,5)==="data-"||Pr.substr(0,5)==="aria-"||Pr==="role"||Pr==="name")&&Pr.substr(0,7)!=="data-__"&&(cr[Pr]=rt[Pr])}),cr}function ze(rt,cr){return rt?rt[cr]:null}function nt(rt,cr,Pr){var Lr=[ze(rt,0),ze(rt,1)];return Lr[Pr]=typeof cr=="function"?cr(Lr[Pr]):cr,!Lr[0]&&!Lr[1]?null:Lr}function Ot(rt,cr,Pr,Lr,_n){var Vr=rt.setHour(cr,Pr);return Vr=rt.setMinute(Vr,Lr),Vr=rt.setSecond(Vr,_n),Vr}function Ct(rt,cr,Pr,Lr,_n,Vr){var _r=Math.floor(rt/Lr)*Lr;if(_r<rt)return[_r,60-_n,60-Vr];var kn=Math.floor(cr/_n)*_n;if(kn<cr)return[_r,kn,60-Vr];var Ur=Math.floor(Pr/Vr)*Vr;return[_r,kn,Ur]}function Tt(rt,cr){if(rt.length!==cr.length)return!0;for(var Pr=0;Pr<rt.length;Pr+=1)if(rt[Pr].disabled!==cr[Pr].disabled)return!0;return!1}function Dt(rt,cr,Pr,Lr){for(var _n=[],Vr=rt;Vr<=cr;Vr+=Pr)_n.push({label:ot(Vr,2),value:Vr,disabled:(Lr||[]).includes(Vr)});return _n}function Be(rt){var cr=rt.generateConfig,Pr=rt.prefixCls,Lr=rt.operationRef,_n=rt.activeColumnIndex,Vr=rt.value,_r=rt.showHour,kn=rt.showMinute,Ur=rt.showSecond,En=rt.use12Hours,jn=rt.hourStep,Hn=jn===void 0?1:jn,Bn=rt.minuteStep,ri=Bn===void 0?1:Bn,Yn=rt.secondStep,ii=Yn===void 0?1:Yn,ai=rt.disabledHours,ki=rt.disabledMinutes,bi=rt.disabledSeconds,Ki=rt.hideDisabledOptions,Aa=rt.onSelect,ea=[],Ji="".concat(Pr,"-content"),sa="".concat(Pr,"-time-panel"),fa,xo=Vr?cr.getHour(Vr):-1,Qa=Vr?cr.getMinute(Vr):-1,Wi=Vr?cr.getSecond(Vr):-1,qi=function(za,Ta,ko,Qo){var so=Vr||cr.getNow(),Os=Math.max(0,Ta),ho=Math.max(0,ko),bo=Math.max(0,Qo);return so=Ot(cr,so,!En||!za?Os:Os+12,ho,bo),so},ca=Dt(0,23,Hn,ai&&ai()),ma=Object(He.a)(function(){return ca},ca,Tt);En&&(fa=xo>=12,xo%=12);var ka=c.useMemo(function(){if(!En)return[!1,!1];var Ba=[!0,!0];return ma.forEach(function(za){var Ta=za.disabled,ko=za.value;if(Ta)return;ko>=12?Ba[1]=!1:Ba[0]=!1}),Ba},[En,ma]),La=Object(j.a)(ka,2),Za=La[0],eo=La[1],Po=c.useMemo(function(){return En?ma.filter(fa?function(Ba){return Ba.value>=12}:function(Ba){return Ba.value<12}).map(function(Ba){var za=Ba.value%12,Ta=za===0?"12":ot(za,2);return Object(F.a)(Object(F.a)({},Ba),{},{label:Ta,value:za})}):ma},[En,ma]),jo=Dt(0,59,ri,ki&&ki(xo)),cs=Dt(0,59,ii,bi&&bi(xo,Qa));Lr.current={onUpDown:function(za){var Ta=ea[_n];if(Ta)for(var ko=Ta.units.findIndex(function(ho){return ho.value===Ta.value}),Qo=Ta.units.length,so=1;so<Qo;so+=1){var Os=Ta.units[(ko+za*so+Qo)%Qo];if(Os.disabled!==!0){Ta.onSelect(Os.value);break}}}};function Mo(Ba,za,Ta,ko,Qo){Ba!==!1&&ea.push({node:c.cloneElement(za,{prefixCls:sa,value:Ta,active:_n===ea.length,onSelect:Qo,units:ko,hideDisabledOptions:Ki}),onSelect:Qo,value:Ta,units:ko})}Mo(_r,c.createElement(Qe,{key:"hour"}),xo,Po,function(Ba){Aa(qi(fa,Ba,Qa,Wi),"mouse")}),Mo(kn,c.createElement(Qe,{key:"minute"}),Qa,jo,function(Ba){Aa(qi(fa,xo,Ba,Wi),"mouse")}),Mo(Ur,c.createElement(Qe,{key:"second"}),Wi,cs,function(Ba){Aa(qi(fa,xo,Qa,Ba),"mouse")});var Lo=-1;return typeof fa=="boolean"&&(Lo=fa?1:0),Mo(En===!0,c.createElement(Qe,{key:"12hours"}),Lo,[{label:"AM",value:0,disabled:Za},{label:"PM",value:1,disabled:eo}],function(Ba){Aa(qi(!!Ba,xo,Qa,Wi),"mouse")}),c.createElement("div",{className:Ji},ea.map(function(Ba){var za=Ba.node;return za}))}var ie=Be,X=function(cr){return cr.filter(function(Pr){return Pr!==!1}).length};function Fe(rt){var cr=rt.generateConfig,Pr=rt.format,Lr=Pr===void 0?"HH:mm:ss":Pr,_n=rt.prefixCls,Vr=rt.active,_r=rt.operationRef,kn=rt.showHour,Ur=rt.showMinute,En=rt.showSecond,jn=rt.use12Hours,Hn=jn===void 0?!1:jn,Bn=rt.onSelect,ri=rt.value,Yn="".concat(_n,"-time-panel"),ii=c.useRef(),ai=c.useState(-1),ki=Object(j.a)(ai,2),bi=ki[0],Ki=ki[1],Aa=X([kn,Ur,En,Hn]);return _r.current={onKeyDown:function(Ji){return ee(Ji,{onLeftRight:function(fa){Ki((bi+fa+Aa)%Aa)},onUpDown:function(fa){bi===-1?Ki(0):ii.current&&ii.current.onUpDown(fa)},onEnter:function(){Bn(ri||cr.getNow(),"key"),Ki(-1)}})},onBlur:function(){Ki(-1)}},c.createElement("div",{className:T()(Yn,Object(U.a)({},"".concat(Yn,"-active"),Vr))},c.createElement(De,Object.assign({},rt,{format:Lr,prefixCls:_n})),c.createElement(ie,Object.assign({},rt,{prefixCls:_n,activeColumnIndex:bi,operationRef:ii})))}var Ne=Fe,q=7;function ht(rt,cr){return!rt&&!cr?!0:!rt||!cr?!1:void 0}function Rt(rt,cr,Pr){var Lr=ht(cr,Pr);if(typeof Lr=="boolean")return Lr;var _n=Math.floor(rt.getYear(cr)/10),Vr=Math.floor(rt.getYear(Pr)/10);return _n===Vr}function ut(rt,cr,Pr){var Lr=ht(cr,Pr);return typeof Lr=="boolean"?Lr:rt.getYear(cr)===rt.getYear(Pr)}function Xt(rt,cr){var Pr=Math.floor(rt.getMonth(cr)/3);return Pr+1}function or(rt,cr,Pr){var Lr=ht(cr,Pr);return typeof Lr=="boolean"?Lr:ut(rt,cr,Pr)&&Xt(rt,cr)===Xt(rt,Pr)}function Zr(rt,cr,Pr){var Lr=ht(cr,Pr);return typeof Lr=="boolean"?Lr:ut(rt,cr,Pr)&&rt.getMonth(cr)===rt.getMonth(Pr)}function ar(rt,cr,Pr){var Lr=ht(cr,Pr);return typeof Lr=="boolean"?Lr:rt.getYear(cr)===rt.getYear(Pr)&&rt.getMonth(cr)===rt.getMonth(Pr)&&rt.getDate(cr)===rt.getDate(Pr)}function dr(rt,cr,Pr){var Lr=ht(cr,Pr);return typeof Lr=="boolean"?Lr:rt.getHour(cr)===rt.getHour(Pr)&&rt.getMinute(cr)===rt.getMinute(Pr)&&rt.getSecond(cr)===rt.getSecond(Pr)}function er(rt,cr,Pr,Lr){var _n=ht(Pr,Lr);return typeof _n=="boolean"?_n:rt.locale.getWeek(cr,Pr)===rt.locale.getWeek(cr,Lr)}function Ht(rt,cr,Pr){return ar(rt,cr,Pr)&&dr(rt,cr,Pr)}function dt(rt,cr,Pr,Lr){return!cr||!Pr||!Lr?!1:!ar(rt,cr,Lr)&&!ar(rt,Pr,Lr)&&rt.isAfter(Lr,cr)&&rt.isAfter(Pr,Lr)}function Hr(rt,cr,Pr){var Lr=cr.locale.getWeekFirstDay(rt),_n=cr.setDate(Pr,1),Vr=cr.getWeekDay(_n),_r=cr.addDate(_n,Lr-Vr);return cr.getMonth(_r)===cr.getMonth(Pr)&&cr.getDate(_r)>1&&(_r=cr.addDate(_r,-7)),_r}function dn(rt,cr,Pr){var Lr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(cr){case"year":return Pr.addYear(rt,Lr*10);case"quarter":case"month":return Pr.addYear(rt,Lr);default:return Pr.addMonth(rt,Lr)}}var Nn=c.createContext({}),Vn=Nn;function gi(rt){var cr=rt.cellPrefixCls,Pr=rt.generateConfig,Lr=rt.rangedValue,_n=rt.hoverRangedValue,Vr=rt.isInView,_r=rt.isSameCell,kn=rt.offsetCell,Ur=rt.today,En=rt.value;function jn(Hn){var Bn,ri=kn(Hn,-1),Yn=kn(Hn,1),ii=ze(Lr,0),ai=ze(Lr,1),ki=ze(_n,0),bi=ze(_n,1),Ki=dt(Pr,ki,bi,Hn);function Aa(Qa){return _r(ii,Qa)}function ea(Qa){return _r(ai,Qa)}var Ji=_r(ki,Hn),sa=_r(bi,Hn),fa=(Ki||sa)&&(!Vr(ri)||ea(ri)),xo=(Ki||Ji)&&(!Vr(Yn)||Aa(Yn));return Bn={},Object(U.a)(Bn,"".concat(cr,"-in-view"),Vr(Hn)),Object(U.a)(Bn,"".concat(cr,"-in-range"),dt(Pr,ii,ai,Hn)),Object(U.a)(Bn,"".concat(cr,"-range-start"),Aa(Hn)),Object(U.a)(Bn,"".concat(cr,"-range-end"),ea(Hn)),Object(U.a)(Bn,"".concat(cr,"-range-start-single"),Aa(Hn)&&!ai),Object(U.a)(Bn,"".concat(cr,"-range-end-single"),ea(Hn)&&!ii),Object(U.a)(Bn,"".concat(cr,"-range-start-near-hover"),Aa(Hn)&&(_r(ri,ki)||dt(Pr,ki,bi,ri))),Object(U.a)(Bn,"".concat(cr,"-range-end-near-hover"),ea(Hn)&&(_r(Yn,bi)||dt(Pr,ki,bi,Yn))),Object(U.a)(Bn,"".concat(cr,"-range-hover"),Ki),Object(U.a)(Bn,"".concat(cr,"-range-hover-start"),Ji),Object(U.a)(Bn,"".concat(cr,"-range-hover-end"),sa),Object(U.a)(Bn,"".concat(cr,"-range-hover-edge-start"),fa),Object(U.a)(Bn,"".concat(cr,"-range-hover-edge-end"),xo),Object(U.a)(Bn,"".concat(cr,"-range-hover-edge-start-near-range"),fa&&_r(ri,ai)),Object(U.a)(Bn,"".concat(cr,"-range-hover-edge-end-near-range"),xo&&_r(Yn,ii)),Object(U.a)(Bn,"".concat(cr,"-today"),_r(Ur,Hn)),Object(U.a)(Bn,"".concat(cr,"-selected"),_r(En,Hn)),Bn}return jn}function bn(rt){for(var cr=rt.prefixCls,Pr=rt.disabledDate,Lr=rt.onSelect,_n=rt.rowNum,Vr=rt.colNum,_r=rt.prefixColumn,kn=rt.rowClassName,Ur=rt.baseDate,En=rt.getCellClassName,jn=rt.getCellText,Hn=rt.getCellNode,Bn=rt.getCellDate,ri=rt.titleCell,Yn=rt.headerCells,ii=c.useContext($),ai=ii.onDateMouseEnter,ki=ii.onDateMouseLeave,bi="".concat(cr,"-cell"),Ki=[],Aa=0;Aa<_n;Aa+=1){for(var ea=[],Ji=void 0,sa=function(Qa){var Wi=Aa*Vr+Qa,qi=Bn(Ur,Wi),ca=Pr&&Pr(qi);Qa===0&&(Ji=qi,_r&&ea.push(_r(Ji))),ea.push(c.createElement("td",{key:Qa,title:ri&&ri(qi),className:T()(bi,Object(F.a)(Object(U.a)({},"".concat(bi,"-disabled"),ca),En(qi))),onClick:function(){ca||Lr(qi)},onMouseEnter:function(){!ca&&ai&&ai(qi)},onMouseLeave:function(){!ca&&ki&&ki(qi)}},Hn?Hn(qi):c.createElement("div",{className:"".concat(bi,"-inner")},jn(qi))))},fa=0;fa<Vr;fa+=1)sa(fa);Ki.push(c.createElement("tr",{key:Aa,className:kn&&kn(Ji)},ea))}return c.createElement("div",{className:"".concat(cr,"-body")},c.createElement("table",{className:"".concat(cr,"-content")},Yn&&c.createElement("thead",null,c.createElement("tr",null,Yn)),c.createElement("tbody",null,Ki)))}function Mn(rt){var cr=rt.prefixCls,Pr=rt.generateConfig,Lr=rt.prefixColumn,_n=rt.locale,Vr=rt.rowCount,_r=rt.viewDate,kn=rt.value,Ur=rt.dateRender,En=c.useContext(Vn),jn=En.rangedValue,Hn=En.hoverRangedValue,Bn=Hr(_n.locale,Pr,_r),ri="".concat(cr,"-cell"),Yn=Pr.locale.getWeekFirstDay(_n.locale),ii=Pr.getNow(),ai=[],ki=_n.shortWeekDays||(Pr.locale.getShortWeekDays?Pr.locale.getShortWeekDays(_n.locale):[]);Lr&&ai.push(c.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var bi=0;bi<q;bi+=1)ai.push(c.createElement("th",{key:bi},ki[(bi+Yn)%q]));var Ki=gi({cellPrefixCls:ri,today:ii,value:kn,generateConfig:Pr,rangedValue:Lr?null:jn,hoverRangedValue:Lr?null:Hn,isSameCell:function(Ji,sa){return ar(Pr,Ji,sa)},isInView:function(Ji){return Zr(Pr,Ji,_r)},offsetCell:function(Ji,sa){return Pr.addDate(Ji,sa)}}),Aa=Ur?function(ea){return Ur(ea,ii)}:void 0;return c.createElement(bn,Object.assign({},rt,{rowNum:Vr,colNum:q,baseDate:Bn,getCellNode:Aa,getCellText:Pr.getDate,getCellClassName:Ki,getCellDate:Pr.addDate,titleCell:function(Ji){return Pr.locale.format(_n.locale,Ji,"YYYY-MM-DD")},headerCells:ai}))}var jt=Mn;function St(rt){var cr=rt.prefixCls,Pr=rt.generateConfig,Lr=rt.locale,_n=rt.viewDate,Vr=rt.onNextMonth,_r=rt.onPrevMonth,kn=rt.onNextYear,Ur=rt.onPrevYear,En=rt.onYearClick,jn=rt.onMonthClick,Hn=c.useContext($),Bn=Hn.hideHeader;if(Bn)return null;var ri="".concat(cr,"-header"),Yn=Lr.shortMonths||(Pr.locale.getShortMonths?Pr.locale.getShortMonths(Lr.locale):[]),ii=Pr.getMonth(_n),ai=c.createElement("button",{type:"button",key:"year",onClick:En,tabIndex:-1,className:"".concat(cr,"-year-btn")},Pr.locale.format(Lr.locale,_n,Lr.yearFormat)),ki=c.createElement("button",{type:"button",key:"month",onClick:jn,tabIndex:-1,className:"".concat(cr,"-month-btn")},Lr.monthFormat?Pr.locale.format(Lr.locale,_n,Lr.monthFormat):Yn[ii]),bi=Lr.monthBeforeYear?[ki,ai]:[ai,ki];return c.createElement(ge,Object.assign({},rt,{prefixCls:ri,onSuperPrev:Ur,onPrev:_r,onNext:Vr,onSuperNext:kn}),bi)}var Ie=St,_e=6;function Le(rt){var cr=rt.prefixCls,Pr=rt.panelName,Lr=Pr===void 0?"date":Pr,_n=rt.keyboardConfig,Vr=rt.active,_r=rt.operationRef,kn=rt.generateConfig,Ur=rt.value,En=rt.viewDate,jn=rt.onViewDateChange,Hn=rt.onPanelChange,Bn=rt.onSelect,ri="".concat(cr,"-").concat(Lr,"-panel");_r.current={onKeyDown:function(ki){return ee(ki,Object(F.a)({onLeftRight:function(Ki){Bn(kn.addDate(Ur||En,Ki),"key")},onCtrlLeftRight:function(Ki){Bn(kn.addYear(Ur||En,Ki),"key")},onUpDown:function(Ki){Bn(kn.addDate(Ur||En,Ki*q),"key")},onPageUpDown:function(Ki){Bn(kn.addMonth(Ur||En,Ki),"key")}},_n))}};var Yn=function(ki){var bi=kn.addYear(En,ki);jn(bi),Hn(null,bi)},ii=function(ki){var bi=kn.addMonth(En,ki);jn(bi),Hn(null,bi)};return c.createElement("div",{className:T()(ri,Object(U.a)({},"".concat(ri,"-active"),Vr))},c.createElement(Ie,Object.assign({},rt,{prefixCls:cr,value:Ur,viewDate:En,onPrevYear:function(){Yn(-1)},onNextYear:function(){Yn(1)},onPrevMonth:function(){ii(-1)},onNextMonth:function(){ii(1)},onMonthClick:function(){Hn("month",En)},onYearClick:function(){Hn("year",En)}})),c.createElement(jt,Object.assign({},rt,{onSelect:function(ki){return Bn(ki,"mouse")},prefixCls:cr,value:Ur,viewDate:En,rowCount:_e})))}var Ze=Le;function it(rt,cr,Pr){if(!Pr)return cr;var Lr=cr;return Lr=rt.setHour(Lr,rt.getHour(Pr)),Lr=rt.setMinute(Lr,rt.getMinute(Pr)),Lr=rt.setSecond(Lr,rt.getSecond(Pr)),Lr}var ft=Je("date","time");function Nt(rt){var cr=rt.prefixCls,Pr=rt.operationRef,Lr=rt.generateConfig,_n=rt.value,Vr=rt.defaultValue,_r=rt.disabledTime,kn=rt.showTime,Ur=rt.onSelect,En="".concat(cr,"-datetime-panel"),jn=c.useState(null),Hn=Object(j.a)(jn,2),Bn=Hn[0],ri=Hn[1],Yn=c.useRef({}),ii=c.useRef({}),ai=Object(V.a)(kn)==="object"?Object(F.a)({},kn):{};function ki(ea){var Ji=ft.indexOf(Bn)+ea,sa=ft[Ji]||null;return sa}var bi=function(Ji){ii.current.onBlur&&ii.current.onBlur(Ji),ri(null)};Pr.current={onKeyDown:function(Ji){if(Ji.which===z.a.TAB){var sa=ki(Ji.shiftKey?-1:1);return ri(sa),sa&&Ji.preventDefault(),!0}if(Bn){var fa=Bn==="date"?Yn:ii;return fa.current&&fa.current.onKeyDown&&fa.current.onKeyDown(Ji),!0}return[z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN].includes(Ji.which)?(ri("date"),!0):!1},onBlur:bi,onClose:bi};var Ki=function(Ji,sa){var fa=Ji;sa==="date"&&!_n&&ai.defaultValue?(fa=Lr.setHour(fa,Lr.getHour(ai.defaultValue)),fa=Lr.setMinute(fa,Lr.getMinute(ai.defaultValue)),fa=Lr.setSecond(fa,Lr.getSecond(ai.defaultValue))):sa==="time"&&!_n&&Vr&&(fa=Lr.setYear(fa,Lr.getYear(Vr)),fa=Lr.setMonth(fa,Lr.getMonth(Vr)),fa=Lr.setDate(fa,Lr.getDate(Vr))),Ur&&Ur(fa,"mouse")},Aa=_r?_r(_n||null):{};return c.createElement("div",{className:T()(En,Object(U.a)({},"".concat(En,"-active"),Bn))},c.createElement(Ze,Object.assign({},rt,{operationRef:Yn,active:Bn==="date",onSelect:function(Ji){Ki(it(Lr,Ji,kn&&Object(V.a)(kn)==="object"?kn.defaultValue:null),"date")}})),c.createElement(Ne,Object.assign({},rt,{format:void 0},ai,Aa,{defaultValue:void 0,operationRef:ii,active:Bn==="time",onSelect:function(Ji){Ki(Ji,"time")}})))}var Ar=Nt;function Mr(rt){var cr=rt.prefixCls,Pr=rt.generateConfig,Lr=rt.locale,_n=rt.value,Vr="".concat(cr,"-cell"),_r=function(jn){return c.createElement("td",{key:"week",className:T()(Vr,"".concat(Vr,"-week"))},Pr.locale.getWeek(Lr.locale,jn))},kn="".concat(cr,"-week-panel-row"),Ur=function(jn){return T()(kn,Object(U.a)({},"".concat(kn,"-selected"),er(Pr,Lr.locale,_n,jn)))};return c.createElement(Ze,Object.assign({},rt,{panelName:"week",prefixColumn:_r,rowClassName:Ur,keyboardConfig:{onLeftRight:null}}))}var un=Mr;function Mt(rt){var cr=rt.prefixCls,Pr=rt.generateConfig,Lr=rt.locale,_n=rt.viewDate,Vr=rt.onNextYear,_r=rt.onPrevYear,kn=rt.onYearClick,Ur=c.useContext($),En=Ur.hideHeader;if(En)return null;var jn="".concat(cr,"-header");return c.createElement(ge,Object.assign({},rt,{prefixCls:jn,onSuperPrev:_r,onSuperNext:Vr}),c.createElement("button",{type:"button",onClick:kn,className:"".concat(cr,"-year-btn")},Pr.locale.format(Lr.locale,_n,Lr.yearFormat)))}var at=Mt,lt=3,rr=4;function Bt(rt){var cr=rt.prefixCls,Pr=rt.locale,Lr=rt.value,_n=rt.viewDate,Vr=rt.generateConfig,_r=rt.monthCellRender,kn=c.useContext(Vn),Ur=kn.rangedValue,En=kn.hoverRangedValue,jn="".concat(cr,"-cell"),Hn=gi({cellPrefixCls:jn,value:Lr,generateConfig:Vr,rangedValue:Ur,hoverRangedValue:En,isSameCell:function(ai,ki){return Zr(Vr,ai,ki)},isInView:function(){return!0},offsetCell:function(ai,ki){return Vr.addMonth(ai,ki)}}),Bn=Pr.shortMonths||(Vr.locale.getShortMonths?Vr.locale.getShortMonths(Pr.locale):[]),ri=Vr.setMonth(_n,0),Yn=_r?function(ii){return _r(ii,Pr)}:void 0;return c.createElement(bn,Object.assign({},rt,{rowNum:rr,colNum:lt,baseDate:ri,getCellNode:Yn,getCellText:function(ai){return Pr.monthFormat?Vr.locale.format(Pr.locale,ai,Pr.monthFormat):Bn[Vr.getMonth(ai)]},getCellClassName:Hn,getCellDate:Vr.addMonth,titleCell:function(ai){return Vr.locale.format(Pr.locale,ai,"YYYY-MM")}}))}var _t=Bt;function Kt(rt){var cr=rt.prefixCls,Pr=rt.operationRef,Lr=rt.onViewDateChange,_n=rt.generateConfig,Vr=rt.value,_r=rt.viewDate,kn=rt.onPanelChange,Ur=rt.onSelect,En="".concat(cr,"-month-panel");Pr.current={onKeyDown:function(Bn){return ee(Bn,{onLeftRight:function(Yn){Ur(_n.addMonth(Vr||_r,Yn),"key")},onCtrlLeftRight:function(Yn){Ur(_n.addYear(Vr||_r,Yn),"key")},onUpDown:function(Yn){Ur(_n.addMonth(Vr||_r,Yn*lt),"key")},onEnter:function(){kn("date",Vr||_r)}})}};var jn=function(Bn){var ri=_n.addYear(_r,Bn);Lr(ri),kn(null,ri)};return c.createElement("div",{className:En},c.createElement(at,Object.assign({},rt,{prefixCls:cr,onPrevYear:function(){jn(-1)},onNextYear:function(){jn(1)},onYearClick:function(){kn("year",_r)}})),c.createElement(_t,Object.assign({},rt,{prefixCls:cr,onSelect:function(Bn){Ur(Bn,"mouse"),kn("date",Bn)}})))}var wt=Kt;function Ut(rt){var cr=rt.prefixCls,Pr=rt.generateConfig,Lr=rt.locale,_n=rt.viewDate,Vr=rt.onNextYear,_r=rt.onPrevYear,kn=rt.onYearClick,Ur=c.useContext($),En=Ur.hideHeader;if(En)return null;var jn="".concat(cr,"-header");return c.createElement(ge,Object.assign({},rt,{prefixCls:jn,onSuperPrev:_r,onSuperNext:Vr}),c.createElement("button",{type:"button",onClick:kn,className:"".concat(cr,"-year-btn")},Pr.locale.format(Lr.locale,_n,Lr.yearFormat)))}var Sr=Ut,hr=4,gr=1;function Jr(rt){var cr=rt.prefixCls,Pr=rt.locale,Lr=rt.value,_n=rt.viewDate,Vr=rt.generateConfig,_r=c.useContext(Vn),kn=_r.rangedValue,Ur=_r.hoverRangedValue,En="".concat(cr,"-cell"),jn=gi({cellPrefixCls:En,value:Lr,generateConfig:Vr,rangedValue:kn,hoverRangedValue:Ur,isSameCell:function(ri,Yn){return or(Vr,ri,Yn)},isInView:function(){return!0},offsetCell:function(ri,Yn){return Vr.addMonth(ri,Yn*3)}}),Hn=Vr.setDate(Vr.setMonth(_n,0),1);return c.createElement(bn,Object.assign({},rt,{rowNum:gr,colNum:hr,baseDate:Hn,getCellText:function(ri){return Vr.locale.format(Pr.locale,ri,Pr.quarterFormat||"[Q]Q")},getCellClassName:jn,getCellDate:function(ri,Yn){return Vr.addMonth(ri,Yn*3)},titleCell:function(ri){return Vr.locale.format(Pr.locale,ri,"YYYY-[Q]Q")}}))}var $r=Jr;function Pn(rt){var cr=rt.prefixCls,Pr=rt.operationRef,Lr=rt.onViewDateChange,_n=rt.generateConfig,Vr=rt.value,_r=rt.viewDate,kn=rt.onPanelChange,Ur=rt.onSelect,En="".concat(cr,"-quarter-panel");Pr.current={onKeyDown:function(Bn){return ee(Bn,{onLeftRight:function(Yn){Ur(_n.addMonth(Vr||_r,Yn*3),"key")},onCtrlLeftRight:function(Yn){Ur(_n.addYear(Vr||_r,Yn),"key")},onUpDown:function(Yn){Ur(_n.addYear(Vr||_r,Yn),"key")}})}};var jn=function(Bn){var ri=_n.addYear(_r,Bn);Lr(ri),kn(null,ri)};return c.createElement("div",{className:En},c.createElement(Sr,Object.assign({},rt,{prefixCls:cr,onPrevYear:function(){jn(-1)},onNextYear:function(){jn(1)},onYearClick:function(){kn("year",_r)}})),c.createElement($r,Object.assign({},rt,{prefixCls:cr,onSelect:function(Bn){Ur(Bn,"mouse")}})))}var Dn=Pn;function Zn(rt){var cr=rt.prefixCls,Pr=rt.generateConfig,Lr=rt.viewDate,_n=rt.onPrevDecade,Vr=rt.onNextDecade,_r=rt.onDecadeClick,kn=c.useContext($),Ur=kn.hideHeader;if(Ur)return null;var En="".concat(cr,"-header"),jn=Pr.getYear(Lr),Hn=Math.floor(jn/Re)*Re,Bn=Hn+Re-1;return c.createElement(ge,Object.assign({},rt,{prefixCls:En,onSuperPrev:_n,onSuperNext:Vr}),c.createElement("button",{type:"button",onClick:_r,className:"".concat(cr,"-decade-btn")},Hn,"-",Bn))}var li=Zn,Ai=3,Ii=4;function $e(rt){var cr=rt.prefixCls,Pr=rt.value,Lr=rt.viewDate,_n=rt.locale,Vr=rt.generateConfig,_r=c.useContext(Vn),kn=_r.rangedValue,Ur=_r.hoverRangedValue,En="".concat(cr,"-cell"),jn=Vr.getYear(Lr),Hn=Math.floor(jn/Re)*Re,Bn=Hn+Re-1,ri=Vr.setYear(Lr,Hn-Math.ceil((Ai*Ii-Re)/2)),Yn=function(ki){var bi=Vr.getYear(ki);return Hn<=bi&&bi<=Bn},ii=gi({cellPrefixCls:En,value:Pr,generateConfig:Vr,rangedValue:kn,hoverRangedValue:Ur,isSameCell:function(ki,bi){return ut(Vr,ki,bi)},isInView:Yn,offsetCell:function(ki,bi){return Vr.addYear(ki,bi)}});return c.createElement(bn,Object.assign({},rt,{rowNum:Ii,colNum:Ai,baseDate:ri,getCellText:Vr.getYear,getCellClassName:ii,getCellDate:Vr.addYear,titleCell:function(ki){return Vr.locale.format(_n.locale,ki,"YYYY")}}))}var Se=$e,Re=10;function je(rt){var cr=rt.prefixCls,Pr=rt.operationRef,Lr=rt.onViewDateChange,_n=rt.generateConfig,Vr=rt.value,_r=rt.viewDate,kn=rt.sourceMode,Ur=rt.onSelect,En=rt.onPanelChange,jn="".concat(cr,"-year-panel");Pr.current={onKeyDown:function(ri){return ee(ri,{onLeftRight:function(ii){Ur(_n.addYear(Vr||_r,ii),"key")},onCtrlLeftRight:function(ii){Ur(_n.addYear(Vr||_r,ii*Re),"key")},onUpDown:function(ii){Ur(_n.addYear(Vr||_r,ii*Ai),"key")},onEnter:function(){En(kn==="date"?"date":"month",Vr||_r)}})}};var Hn=function(ri){var Yn=_n.addYear(_r,ri*10);Lr(Yn),En(null,Yn)};return c.createElement("div",{className:jn},c.createElement(li,Object.assign({},rt,{prefixCls:cr,onPrevDecade:function(){Hn(-1)},onNextDecade:function(){Hn(1)},onDecadeClick:function(){En("decade",_r)}})),c.createElement(Se,Object.assign({},rt,{prefixCls:cr,onSelect:function(ri){En(kn==="date"?"date":"month",ri),Ur(ri,"mouse")}})))}var Ye=je;function Ve(rt){var cr=rt.prefixCls,Pr=rt.generateConfig,Lr=rt.viewDate,_n=rt.onPrevDecades,Vr=rt.onNextDecades,_r=c.useContext($),kn=_r.hideHeader;if(kn)return null;var Ur="".concat(cr,"-header"),En=Pr.getYear(Lr),jn=Math.floor(En/Xr)*Xr,Hn=jn+Xr-1;return c.createElement(ge,Object.assign({},rt,{prefixCls:Ur,onSuperPrev:_n,onSuperNext:Vr}),jn,"-",Hn)}var qe=Ve,xt=3,ct=4;function Jt(rt){var cr=Ir-1,Pr=rt.prefixCls,Lr=rt.viewDate,_n=rt.generateConfig,Vr=rt.disabledDate,_r="".concat(Pr,"-cell"),kn=_n.getYear(Lr),Ur=Math.floor(kn/Ir)*Ir,En=Math.floor(kn/Xr)*Xr,jn=En+Xr-1,Hn=_n.setYear(Lr,En-Math.ceil((xt*ct*Ir-Xr)/2)),Bn=function(Yn){var ii,ai=Vr&&Vr(Yn),ki=_n.getYear(Yn),bi=ki+cr;return ii={},Object(U.a)(ii,"".concat(_r,"-disabled"),ai),Object(U.a)(ii,"".concat(_r,"-in-view"),En<=ki&&bi<=jn),Object(U.a)(ii,"".concat(_r,"-selected"),ki===Ur),ii};return c.createElement(bn,Object.assign({},rt,{rowNum:ct,colNum:xt,baseDate:Hn,getCellText:function(Yn){var ii=_n.getYear(Yn);return"".concat(ii,"-").concat(ii+cr)},getCellClassName:Bn,getCellDate:function(Yn,ii){return _n.addYear(Yn,ii*Ir)}}))}var Rr=Jt,Ir=10,Xr=Ir*10;function qt(rt){var cr=rt.prefixCls,Pr=rt.onViewDateChange,Lr=rt.generateConfig,_n=rt.viewDate,Vr=rt.operationRef,_r=rt.onSelect,kn=rt.onPanelChange,Ur="".concat(cr,"-decade-panel");Vr.current={onKeyDown:function(Bn){return ee(Bn,{onLeftRight:function(Yn){_r(Lr.addYear(_n,Yn*Ir),"key")},onCtrlLeftRight:function(Yn){_r(Lr.addYear(_n,Yn*Xr),"key")},onUpDown:function(Yn){_r(Lr.addYear(_n,Yn*Ir*xt),"key")},onEnter:function(){kn("year",_n)}})}};var En=function(Bn){var ri=Lr.addYear(_n,Bn*Xr);Pr(ri),kn(null,ri)},jn=function(Bn){_r(Bn,"mouse"),kn("year",Bn)};return c.createElement("div",{className:Ur},c.createElement(qe,Object.assign({},rt,{prefixCls:cr,onPrevDecades:function(){En(-1)},onNextDecades:function(){En(1)}})),c.createElement(Rr,Object.assign({},rt,{prefixCls:cr,onSelect:jn})))}var pn=qt;function fr(rt,cr,Pr){return Pr?c.createElement("div",{className:"".concat(rt,"-footer-extra")},Pr(cr)):null}function mn(rt){var cr=rt.prefixCls,Pr=rt.rangeList,Lr=Pr===void 0?[]:Pr,_n=rt.components,Vr=_n===void 0?{}:_n,_r=rt.needConfirmButton,kn=rt.onNow,Ur=rt.onOk,En=rt.okDisabled,jn=rt.showNow,Hn=rt.locale,Bn,ri;if(Lr.length){var Yn=Vr.rangeItem||"span";Bn=c.createElement(c.Fragment,null,Lr.map(function(ai){var ki=ai.label,bi=ai.onClick,Ki=ai.onMouseEnter,Aa=ai.onMouseLeave;return c.createElement("li",{key:ki,className:"".concat(cr,"-preset")},c.createElement(Yn,{onClick:bi,onMouseEnter:Ki,onMouseLeave:Aa},ki))}))}if(_r){var ii=Vr.button||"button";kn&&!Bn&&jn!==!1&&(Bn=c.createElement("li",{className:"".concat(cr,"-now")},c.createElement("a",{className:"".concat(cr,"-now-btn"),onClick:kn},Hn.now))),ri=_r&&c.createElement("li",{className:"".concat(cr,"-ok")},c.createElement(ii,{disabled:En,onClick:Ur},Hn.ok))}return!Bn&&!ri?null:c.createElement("ul",{className:"".concat(cr,"-ranges")},Bn,ri)}function en(rt){var cr,Pr=rt.prefixCls,Lr=Pr===void 0?"rc-picker":Pr,_n=rt.className,Vr=rt.style,_r=rt.locale,kn=rt.generateConfig,Ur=rt.value,En=rt.defaultValue,jn=rt.pickerValue,Hn=rt.defaultPickerValue,Bn=rt.disabledDate,ri=rt.mode,Yn=rt.picker,ii=Yn===void 0?"date":Yn,ai=rt.tabIndex,ki=ai===void 0?0:ai,bi=rt.showNow,Ki=rt.showTime,Aa=rt.showToday,ea=rt.renderExtraFooter,Ji=rt.hideHeader,sa=rt.onSelect,fa=rt.onChange,xo=rt.onPanelChange,Qa=rt.onMouseDown,Wi=rt.onPickerValueChange,qi=rt.onOk,ca=rt.components,ma=rt.direction,ka=rt.hourStep,La=ka===void 0?1:ka,Za=rt.minuteStep,eo=Za===void 0?1:Za,Po=rt.secondStep,jo=Po===void 0?1:Po,cs=ii==="date"&&!!Ki||ii==="time",Mo=24%La===0,Lo=60%eo===0,Ba=60%jo===0,za=c.useContext($),Ta=za.operationRef,ko=za.panelRef,Qo=za.onSelect,so=za.hideRanges,Os=za.defaultOpenValue,ho=c.useContext(Vn),bo=ho.inRange,ds=ho.panelPosition,Ho=ho.rangedValue,zo=ho.hoverRangedValue,rn=c.useRef({}),es=c.useRef(!0),Js=Object(W.a)(null,{value:Ur,defaultValue:En,postState:function(Qn){return!Qn&&Os&&ii==="time"?Os:Qn}}),Es=Object(j.a)(Js,2),gs=Es[0],Ko=Es[1],hs=Object(W.a)(null,{value:jn,defaultValue:Hn||gs,postState:function(Qn){return Qn||kn.getNow()}}),bs=Object(j.a)(hs,2),ws=bs[0],qo=bs[1],us=function(Qn){qo(Qn),Wi&&Wi(Qn)},_s=function(Qn){var Ei=le[ii];return Ei?Ei(Qn):Qn},vs=Object(W.a)(function(){return ii==="time"?"time":_s("date")},{value:ri}),vo=Object(j.a)(vs,2),to=vo[0],Jo=vo[1];c.useEffect(function(){Jo(ii)},[ii]);var ts=c.useState(function(){return to}),Ha=Object(j.a)(ts,2),It=Ha[0],Vt=Ha[1],hn=function(Qn,Ei){var Fi=_s(Qn||to);Vt(to),Jo(Fi),xo&&(to!==Fi||Ht(kn,ws,ws))&&xo(Ei,Fi)},zn=function(Qn,Ei){var Fi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(to===ii||Fi)&&(Ko(Qn),sa&&sa(Qn),Qo&&Qo(Qn,Ei),fa&&!Ht(kn,Qn,gs)&&fa(Qn))},vt=function(Qn){return rn.current&&rn.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(),rn.current.onKeyDown(Qn)):(Object(C.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ae=function(Qn){rn.current&&rn.current.onBlur&&rn.current.onBlur(Qn)};Ta&&ds!=="right"&&(Ta.current={onKeyDown:vt,onClose:function(){rn.current&&rn.current.onClose&&rn.current.onClose()}}),c.useEffect(function(){Ur&&!es.current&&qo(Ur)},[Ur]),c.useEffect(function(){es.current=!1},[]);var me,be=Object(F.a)(Object(F.a)({},rt),{},{operationRef:rn,prefixCls:Lr,viewDate:ws,value:gs,onViewDateChange:us,sourceMode:It,onPanelChange:hn,disabledDate:to!=="decade"?Bn:void 0});delete be.onChange,delete be.onSelect;switch(to){case"decade":me=c.createElement(pn,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),zn(Qn,Ei)}}));break;case"year":me=c.createElement(Ye,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),zn(Qn,Ei)}}));break;case"month":me=c.createElement(wt,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),zn(Qn,Ei)}}));break;case"quarter":me=c.createElement(Dn,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),zn(Qn,Ei)}}));break;case"week":me=c.createElement(un,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),zn(Qn,Ei)}}));break;case"time":delete be.showTime,me=c.createElement(Ne,Object.assign({},be,Object(V.a)(Ki)==="object"?Ki:null,{onSelect:function(Qn,Ei){us(Qn),zn(Qn,Ei)}}));break;default:Ki?me=c.createElement(Ar,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),zn(Qn,Ei)}})):me=c.createElement(Ze,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),zn(Qn,Ei)}}))}var Ke,At,Gt=function(){var Qn=kn.getNow(),Ei=Ct(kn.getHour(Qn),kn.getMinute(Qn),kn.getSecond(Qn),Mo?La:1,Lo?eo:1,Ba?jo:1),Fi=Ot(kn,Qn,Ei[0],Ei[1],Ei[2]);zn(Fi,"submit")};so||(Ke=fr(Lr,to,ea),At=mn({prefixCls:Lr,components:ca,needConfirmButton:cs,okDisabled:!gs||Bn&&Bn(gs),locale:_r,showNow:bi,onNow:cs&&Gt,onOk:function(){gs&&(zn(gs,"submit",!0),qi&&qi(gs))}}));var Dr;if(Aa&&to==="date"&&ii==="date"&&!Ki){var Gr=kn.getNow(),fn="".concat(Lr,"-today-btn"),Kn=Bn&&Bn(Gr);Dr=c.createElement("a",{className:T()(fn,Kn&&"".concat(fn,"-disabled")),"aria-disabled":Kn,onClick:function(){Kn||zn(Gr,"mouse",!0)}},_r.today)}return c.createElement($.Provider,{value:Object(F.a)(Object(F.a)({},za),{},{hideHeader:"hideHeader"in rt?Ji:za.hideHeader,hidePrevBtn:bo&&ds==="right",hideNextBtn:bo&&ds==="left"})},c.createElement("div",{tabIndex:ki,className:T()("".concat(Lr,"-panel"),_n,(cr={},Object(U.a)(cr,"".concat(Lr,"-panel-has-range"),Ho&&Ho[0]&&Ho[1]),Object(U.a)(cr,"".concat(Lr,"-panel-has-range-hover"),zo&&zo[0]&&zo[1]),Object(U.a)(cr,"".concat(Lr,"-panel-rtl"),ma==="rtl"),cr)),style:Vr,onKeyDown:vt,onBlur:ae,onMouseDown:Qa,ref:ko},me,Ke||At||Dr?c.createElement("div",{className:"".concat(Lr,"-footer")},Ke,At,Dr):null))}var kr=en,Gn=d("JX7q"),di=d("i8i4"),_i=d.n(di),Br=d("l4aY"),sn=d("m+aA"),Sn=d("c+Xe"),Pt=d("zT1h"),gt=d("QC+M");function Et(rt,cr,Pr){return Pr?rt[0]===cr[0]:rt[0]===cr[0]&&rt[1]===cr[1]}function Lt(rt,cr,Pr){var Lr=rt[cr]||{};return Object(F.a)(Object(F.a)({},Lr),Pr)}function kt(rt,cr,Pr,Lr){for(var _n=Pr.points,Vr=Object.keys(rt),_r=0;_r<Vr.length;_r+=1){var kn=Vr[_r];if(Et(rt[kn].points,_n,Lr))return"".concat(cr,"-placement-").concat(kn)}return""}var yt=d("Ff2n"),Qt=d("xEkU"),tr=d.n(Qt),ir=d("9mu1"),yr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function xn(rt,cr){var Pr={};return Pr[rt.toLowerCase()]=cr.toLowerCase(),Pr["Webkit".concat(rt)]="webkit".concat(cr),Pr["Moz".concat(rt)]="moz".concat(cr),Pr["ms".concat(rt)]="MS".concat(cr),Pr["O".concat(rt)]="o".concat(cr.toLowerCase()),Pr}function vn(rt,cr){var Pr={animationend:xn("Animation","AnimationEnd"),transitionend:xn("Transition","TransitionEnd")};return rt&&("AnimationEvent"in cr||delete Pr.animationend.animation,"TransitionEvent"in cr||delete Pr.transitionend.transition),Pr}var Wn=vn(yr,typeof window!="undefined"?window:{}),Yr={};if(yr){var xr=document.createElement("div");Yr=xr.style}var ln={};function On(rt){if(ln[rt])return ln[rt];var cr=Wn[rt];if(cr)for(var Pr=Object.keys(cr),Lr=Pr.length,_n=0;_n<Lr;_n+=1){var Vr=Pr[_n];if(Object.prototype.hasOwnProperty.call(cr,Vr)&&Vr in Yr)return ln[rt]=cr[Vr],ln[rt]}return""}var In=On("animationend"),Un=On("transitionend"),ti=!!(In&&Un);function ui(rt,cr){if(!rt)return null;if(Object(V.a)(rt)==="object"){var Pr=cr.replace(/-\w/g,function(Lr){return Lr[1].toUpperCase()});return rt[Pr]}return"".concat(rt,"-").concat(cr)}var si="none",Pi="appear",zi="enter",Ri="leave";function Yi(rt){var cr=rt,Pr=!!c.forwardRef;Object(V.a)(rt)==="object"&&(cr=rt.transitionSupport,Pr="forwardRef"in rt?rt.forwardRef:Pr);function Lr(Vr){return!!(Vr.motionName&&cr)}var _n=function(Vr){Object(P.a)(kn,Vr);var _r=Object(M.a)(kn);function kn(){var Ur;return Object(D.a)(this,kn),Ur=_r.apply(this,arguments),Ur.$cacheEle=null,Ur.node=null,Ur.raf=null,Ur.destroyed=!1,Ur.deadlineId=null,Ur.state={status:si,statusActive:!1,newStatus:!1,statusStyle:null},Ur.onDomUpdate=function(){var En=Ur.state,jn=En.status,Hn=En.newStatus,Bn=Ur.props,ri=Bn.onAppearStart,Yn=Bn.onEnterStart,ii=Bn.onLeaveStart,ai=Bn.onAppearActive,ki=Bn.onEnterActive,bi=Bn.onLeaveActive,Ki=Bn.motionAppear,Aa=Bn.motionEnter,ea=Bn.motionLeave;if(!Lr(Ur.props))return;var Ji=Ur.getElement();Ur.$cacheEle!==Ji&&(Ur.removeEventListener(Ur.$cacheEle),Ur.addEventListener(Ji),Ur.$cacheEle=Ji),Hn&&jn===Pi&&Ki?Ur.updateStatus(ri,null,null,function(){Ur.updateActiveStatus(ai,Pi)}):Hn&&jn===zi&&Aa?Ur.updateStatus(Yn,null,null,function(){Ur.updateActiveStatus(ki,zi)}):Hn&&jn===Ri&&ea&&Ur.updateStatus(ii,null,null,function(){Ur.updateActiveStatus(bi,Ri)})},Ur.onMotionEnd=function(En){if(En&&!En.deadline&&En.target!==Ur.getElement())return;var jn=Ur.state,Hn=jn.status,Bn=jn.statusActive,ri=Ur.props,Yn=ri.onAppearEnd,ii=ri.onEnterEnd,ai=ri.onLeaveEnd;Hn===Pi&&Bn?Ur.updateStatus(Yn,{status:si},En):Hn===zi&&Bn?Ur.updateStatus(ii,{status:si},En):Hn===Ri&&Bn&&Ur.updateStatus(ai,{status:si},En)},Ur.setNodeRef=function(En){var jn=Ur.props.internalRef;Ur.node=En,Object(Sn.b)(jn,En)},Ur.getElement=function(){try{return Object(sn.a)(Ur.node||Object(Gn.a)(Ur))}catch(En){return Ur.$cacheEle}},Ur.addEventListener=function(En){if(!En)return;En.addEventListener(Un,Ur.onMotionEnd),En.addEventListener(In,Ur.onMotionEnd)},Ur.removeEventListener=function(En){if(!En)return;En.removeEventListener(Un,Ur.onMotionEnd),En.removeEventListener(In,Ur.onMotionEnd)},Ur.updateStatus=function(En,jn,Hn,Bn){var ri=En?En(Ur.getElement(),Hn):null;if(ri===!1||Ur.destroyed)return;var Yn;Bn&&(Yn=function(){Ur.nextFrame(Bn)}),Ur.setState(Object(F.a)({statusStyle:Object(V.a)(ri)==="object"?ri:null,newStatus:!1},jn),Yn)},Ur.updateActiveStatus=function(En,jn){Ur.nextFrame(function(){var Hn=Ur.state.status;if(Hn!==jn)return;var Bn=Ur.props.motionDeadline;Ur.updateStatus(En,{statusActive:!0}),Bn>0&&(Ur.deadlineId=setTimeout(function(){Ur.onMotionEnd({deadline:!0})},Bn))})},Ur.nextFrame=function(En){Ur.cancelNextFrame(),Ur.raf=tr()(En)},Ur.cancelNextFrame=function(){Ur.raf&&(tr.a.cancel(Ur.raf),Ur.raf=null)},Ur}return Object(R.a)(kn,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var En,jn=this.state,Hn=jn.status,Bn=jn.statusActive,ri=jn.statusStyle,Yn=this.props,ii=Yn.children,ai=Yn.motionName,ki=Yn.visible,bi=Yn.removeOnLeave,Ki=Yn.leavedClassName,Aa=Yn.eventProps;return ii?Hn===si||!Lr(this.props)?ki?ii(Object(F.a)({},Aa),this.setNodeRef):bi?null:ii(Object(F.a)(Object(F.a)({},Aa),{},{className:Ki}),this.setNodeRef):ii(Object(F.a)(Object(F.a)({},Aa),{},{className:T()(ui(ai,Hn),(En={},Object(U.a)(En,ui(ai,"".concat(Hn,"-active")),Bn),Object(U.a)(En,ai,typeof ai=="string"),En)),style:ri}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(En,jn){var Hn=jn.prevProps,Bn=jn.status;if(!Lr(En))return{};var ri=En.visible,Yn=En.motionAppear,ii=En.motionEnter,ai=En.motionLeave,ki=En.motionLeaveImmediately,bi={prevProps:En};return(Bn===Pi&&!Yn||Bn===zi&&!ii||Bn===Ri&&!ai)&&(bi.status=si,bi.statusActive=!1,bi.newStatus=!1),!Hn&&ri&&Yn&&(bi.status=Pi,bi.statusActive=!1,bi.newStatus=!0),Hn&&!Hn.visible&&ri&&ii&&(bi.status=zi,bi.statusActive=!1,bi.newStatus=!0),(Hn&&Hn.visible&&!ri&&ai||!Hn&&ki&&!ri&&ai)&&(bi.status=Ri,bi.statusActive=!1,bi.newStatus=!0),bi}}]),kn}(c.Component);return _n.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Pr?c.forwardRef(function(Vr,_r){return c.createElement(_n,Object.assign({internalRef:_r},Vr))}):_n}var $n=Yi(ti),gn="add",mi="keep",Hi="remove",Li="removed";function Bi(rt){var cr;return rt&&Object(V.a)(rt)==="object"&&"key"in rt?cr=rt:cr={key:rt},Object(F.a)(Object(F.a)({},cr),{},{key:String(cr.key)})}function wr(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return rt.map(Bi)}function lr(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Pr=[],Lr=0,_n=cr.length,Vr=wr(rt),_r=wr(cr);Vr.forEach(function(En){for(var jn=!1,Hn=Lr;Hn<_n;Hn+=1){var Bn=_r[Hn];if(Bn.key===En.key){Lr<Hn&&(Pr=Pr.concat(_r.slice(Lr,Hn).map(function(ri){return Object(F.a)(Object(F.a)({},ri),{},{status:gn})})),Lr=Hn),Pr.push(Object(F.a)(Object(F.a)({},Bn),{},{status:mi})),Lr+=1,jn=!0;break}}jn||Pr.push(Object(F.a)(Object(F.a)({},En),{},{status:Hi}))}),Lr<_n&&(Pr=Pr.concat(_r.slice(Lr).map(function(En){return Object(F.a)(Object(F.a)({},En),{},{status:gn})})));var kn={};Pr.forEach(function(En){var jn=En.key;kn[jn]=(kn[jn]||0)+1});var Ur=Object.keys(kn).filter(function(En){return kn[En]>1});return Ur.forEach(function(En){Pr=Pr.filter(function(jn){var Hn=jn.key,Bn=jn.status;return Hn!==En||Bn!==Hi}),Pr.forEach(function(jn){jn.key===En&&(jn.status=mi)})}),Pr}var on=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Zt(rt){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$n,Pr=function(Lr){Object(P.a)(Vr,Lr);var _n=Object(M.a)(Vr);function Vr(){var _r;return Object(D.a)(this,Vr),_r=_n.apply(this,arguments),_r.state={keyEntities:[]},_r.removeKey=function(kn){_r.setState(function(Ur){var En=Ur.keyEntities;return{keyEntities:En.map(function(jn){return jn.key!==kn?jn:Object(F.a)(Object(F.a)({},jn),{},{status:Li})})}})},_r}return Object(R.a)(Vr,[{key:"render",value:function(){var kn=this,Ur=this.state.keyEntities,En=this.props,jn=En.component,Hn=En.children,Bn=Object(yt.a)(En,["component","children"]),ri=jn||c.Fragment,Yn={};return on.forEach(function(ii){Yn[ii]=Bn[ii],delete Bn[ii]}),delete Bn.keys,c.createElement(ri,Object.assign({},Bn),Ur.map(function(ii){var ai=ii.status,ki=Object(yt.a)(ii,["status"]),bi=ai===gn||ai===mi;return c.createElement(cr,Object.assign({},Yn,{key:ki.key,visible:bi,eventProps:ki,onLeaveEnd:function(){Yn.onLeaveEnd&&Yn.onLeaveEnd.apply(Yn,arguments),kn.removeKey(ki.key)}}),Hn)}))}}],[{key:"getDerivedStateFromProps",value:function(kn,Ur){var En=kn.keys,jn=Ur.keyEntities,Hn=wr(En);if(!rt)return{keyEntities:Hn.map(function(Yn){return Object(F.a)(Object(F.a)({},Yn),{},{status:mi})})};var Bn=lr(jn,Hn),ri=jn.length;return{keyEntities:Bn.filter(function(Yn){for(var ii=null,ai=0;ai<ri;ai+=1){var ki=jn[ai];if(ki.key===Yn.key){ii=ki;break}}return!(ii&&ii.status===Li&&Yn.status===Hi)})}}}]),Vr}(c.Component);return Pr.defaultProps={component:"div"},Pr}var br=Zt(ti),Or=$n,Wr=function(cr,Pr){var Lr=cr.prefixCls,_n=cr.className,Vr=cr.style,_r=cr.children,kn=cr.onMouseEnter,Ur=cr.onMouseLeave,En=cr.onMouseDown,jn=cr.onTouchStart,Hn=_r;return c.Children.count(_r)>1&&(Hn=c.createElement("div",{className:"".concat(Lr,"-content")},_r)),c.createElement("div",{ref:Pr,className:_n,onMouseEnter:kn,onMouseLeave:Ur,onMouseDown:En,onTouchStart:jn,style:Vr},Hn)},An=c.forwardRef(Wr);An.displayName="PopupInner";var bt=An;function mr(rt){var cr=rt.prefixCls,Pr=rt.motion,Lr=rt.animation,_n=rt.transitionName;return Pr||(Lr?{motionName:"".concat(cr,"-").concat(Lr)}:_n?{motionName:_n}:null)}function vr(rt){return rt&&rt.motionName}var Fr=function(rt){Object(P.a)(Pr,rt);var cr=Object(M.a)(Pr);function Pr(){var Lr;return Object(D.a)(this,Pr),Lr=cr.apply(this,arguments),Lr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Lr.popupRef=o.a.createRef(),Lr.alignRef=o.a.createRef(),Lr.nextFrameState=null,Lr.nextFrameId=null,Lr.onAlign=function(_n,Vr){var _r=Lr.state.status,kn=Lr.props,Ur=kn.getClassNameFromAlign,En=kn.onAlign,jn=Ur(Vr);_r==="align"?Lr.setState({alignClassName:jn,status:"aligned"},function(){Lr.alignRef.current.forceAlign()}):_r==="aligned"?(Lr.setState({alignClassName:jn,status:"afterAlign"}),En(_n,Vr)):Lr.setState({alignClassName:jn})},Lr.onMotionEnd=function(){var _n=Lr.props.visible;Lr.setState({status:_n?"AfterMotion":"stable",inMotion:!1})},Lr.setStateOnNextFrame=function(_n){Lr.cancelFrameState(),Lr.nextFrameState=Object(F.a)(Object(F.a)({},Lr.nextFrameState),_n),Lr.nextFrameId=tr()(function(){var Vr=Object(F.a)({},Lr.nextFrameState);Lr.nextFrameState=null,Lr.setState(Vr)})},Lr.getMotion=function(){return Object(F.a)({},mr(Lr.props))},Lr.getAlignTarget=function(){var _n=Lr.props,Vr=_n.point,_r=_n.getRootDomNode;return Vr||_r},Lr.cancelFrameState=function(){tr.a.cancel(Lr.nextFrameId)},Lr.renderPopupElement=function(){var _n=Lr.state,Vr=_n.status,_r=_n.targetHeight,kn=_n.targetWidth,Ur=_n.alignClassName,En=Lr.props,jn=En.prefixCls,Hn=En.className,Bn=En.style,ri=En.stretch,Yn=En.visible,ii=En.align,ai=En.destroyPopupOnHide,ki=En.onMouseEnter,bi=En.onMouseLeave,Ki=En.onMouseDown,Aa=En.onTouchStart,ea=En.children,Ji=T()(jn,Hn,Ur),sa="".concat(jn,"-hidden"),fa={};ri&&(ri.indexOf("height")!==-1?fa.height=_r:ri.indexOf("minHeight")!==-1&&(fa.minHeight=_r),ri.indexOf("width")!==-1?fa.width=kn:ri.indexOf("minWidth")!==-1&&(fa.minWidth=kn));var xo=Object(F.a)(Object(F.a)(Object(F.a)(Object(F.a)({},fa),Lr.getZIndexStyle()),Bn),{},{opacity:Vr==="stable"||!Yn?void 0:0,pointerEvents:Vr==="stable"||!Yn?void 0:"none"}),Qa=Lr.getMotion(),Wi=Yn;Yn&&Vr!=="beforeMotion"&&Vr!=="motion"&&Vr!=="stable"&&(Qa.motionAppear=!1,Qa.motionEnter=!1,Qa.motionLeave=!1),(Vr==="afterAlign"||Vr==="beforeMotion")&&(Wi=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ma){var ka=Qa==null?void 0:Qa[ma];Qa[ma]=function(){for(var La=arguments.length,Za=new Array(La),eo=0;eo<La;eo++)Za[eo]=arguments[eo];ka==null||ka.apply(void 0,Za),Lr.setState({inMotion:!0})}});var qi=!Yn||Vr!=="align"&&Vr!=="aligned"&&Vr!=="stable",ca=!0;return Vr==="stable"&&(ca=Yn),ai&&!ca?null:o.a.createElement(Or,Object.assign({visible:Wi},Qa,{removeOnLeave:!1,onEnterEnd:Lr.onMotionEnd,onLeaveEnd:Lr.onMotionEnd,leavedClassName:sa}),function(ma,ka){var La=ma.style,Za=ma.className;return o.a.createElement(ir.a,{target:Lr.getAlignTarget(),key:"popup",ref:Lr.alignRef,monitorWindowResize:!0,disabled:qi,align:ii,onAlign:Lr.onAlign},o.a.createElement(bt,{prefixCls:jn,className:T()(Ji,Za),ref:Object(Sn.a)(ka,Lr.popupRef),onMouseEnter:ki,onMouseLeave:bi,onMouseDown:Ki,onTouchStart:Aa,style:Object(F.a)(Object(F.a)({},xo),La)},ea))})},Lr.renderMaskElement=function(){var _n=Lr.props,Vr=_n.mask,_r=_n.maskMotion,kn=_n.maskTransitionName,Ur=_n.maskAnimation,En=_n.prefixCls,jn=_n.visible;if(!Vr)return null;var Hn={};return _r&&_r.motionName&&(Hn=Object(F.a)({motionAppear:!0},mr({motion:_r,prefixCls:En,transitionName:kn,animation:Ur}))),o.a.createElement(Or,Object.assign({},Hn,{visible:jn,removeOnLeave:!0}),function(Bn){var ri=Bn.className;return o.a.createElement("div",{style:Lr.getZIndexStyle(),key:"mask",className:T()("".concat(En,"-mask"),ri)})})},Lr}return Object(R.a)(Pr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _n=this.state.status,Vr=this.props,_r=Vr.getRootDomNode,kn=Vr.visible,Ur=Vr.stretch;if(this.cancelFrameState(),kn&&_n!=="stable")switch(_n){case null:{this.setStateOnNextFrame({status:Ur?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:vr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var En=["measure","align",null,"beforeMotion","motion"],jn=En.indexOf(_n),Hn=En[jn+1];jn!==-1&&Hn&&this.setStateOnNextFrame({status:Hn})}}if(_n==="measure"){var Bn=_r();Bn&&this.setStateOnNextFrame({targetHeight:Bn.offsetHeight,targetWidth:Bn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var _n=this.props.zIndex;return{zIndex:_n}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(_n,Vr){var _r=_n.visible,kn=Object(yt.a)(_n,["visible"]),Ur=Vr.prevVisible,En=Vr.status,jn=Vr.inMotion,Hn={prevVisible:_r,status:En},Bn=mr(kn);return Ur===null&&_r===!1?(Hn.status="stable",Hn.inMotion=!1):_r!==Ur&&(Hn.inMotion=!1,_r||vr(Bn)&&jn?Hn.status=null:Hn.status="stable",_r&&(Hn.alignClassName=null)),Hn}}]),Pr}(c.Component),nn=Fr,cn=c.createContext(null),tn=cn;function Ln(){}function Tn(){return""}function Xn(){return window.document}var ci=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Jn(rt){var cr=function(Pr){Object(P.a)(_n,Pr);var Lr=Object(M.a)(_n);function _n(Vr){var _r;Object(D.a)(this,_n),_r=Lr.call(this,Vr),_r.popupRef=o.a.createRef(),_r.triggerRef=o.a.createRef(),_r.onMouseEnter=function(Ur){var En=_r.props.mouseEnterDelay;_r.fireEvents("onMouseEnter",Ur),_r.delaySetPopupVisible(!0,En,En?null:Ur)},_r.onMouseMove=function(Ur){_r.fireEvents("onMouseMove",Ur),_r.setPoint(Ur)},_r.onMouseLeave=function(Ur){_r.fireEvents("onMouseLeave",Ur),_r.delaySetPopupVisible(!1,_r.props.mouseLeaveDelay)},_r.onPopupMouseEnter=function(){_r.clearDelayTimer()},_r.onPopupMouseLeave=function(Ur){if(Ur.relatedTarget&&!Ur.relatedTarget.setTimeout&&_r.popupRef.current&&_r.popupRef.current.popupRef.current&&Object(Br.a)(_r.popupRef.current.popupRef.current,Ur.relatedTarget))return;_r.delaySetPopupVisible(!1,_r.props.mouseLeaveDelay)},_r.onFocus=function(Ur){_r.fireEvents("onFocus",Ur),_r.clearDelayTimer(),_r.isFocusToShow()&&(_r.focusTime=Date.now(),_r.delaySetPopupVisible(!0,_r.props.focusDelay))},_r.onMouseDown=function(Ur){_r.fireEvents("onMouseDown",Ur),_r.preClickTime=Date.now()},_r.onTouchStart=function(Ur){_r.fireEvents("onTouchStart",Ur),_r.preTouchTime=Date.now()},_r.onBlur=function(Ur){_r.fireEvents("onBlur",Ur),_r.clearDelayTimer(),_r.isBlurToHide()&&_r.delaySetPopupVisible(!1,_r.props.blurDelay)},_r.onContextMenu=function(Ur){Ur.preventDefault(),_r.fireEvents("onContextMenu",Ur),_r.setPopupVisible(!0,Ur)},_r.onContextMenuClose=function(){_r.isContextMenuToShow()&&_r.close()},_r.onClick=function(Ur){if(_r.fireEvents("onClick",Ur),_r.focusTime){var En;if(_r.preClickTime&&_r.preTouchTime?En=Math.min(_r.preClickTime,_r.preTouchTime):_r.preClickTime?En=_r.preClickTime:_r.preTouchTime&&(En=_r.preTouchTime),Math.abs(En-_r.focusTime)<20)return;_r.focusTime=0}_r.preClickTime=0,_r.preTouchTime=0,_r.isClickToShow()&&(_r.isClickToHide()||_r.isBlurToHide())&&Ur&&Ur.preventDefault&&Ur.preventDefault();var jn=!_r.state.popupVisible;(_r.isClickToHide()&&!jn||jn&&_r.isClickToShow())&&_r.setPopupVisible(!_r.state.popupVisible,Ur)},_r.onPopupMouseDown=function(){if(_r.hasPopupMouseDown=!0,clearTimeout(_r.mouseDownTimeout),_r.mouseDownTimeout=window.setTimeout(function(){_r.hasPopupMouseDown=!1},0),_r.context){var Ur;(Ur=_r.context).onPopupMouseDown.apply(Ur,arguments)}},_r.onDocumentClick=function(Ur){if(_r.props.mask&&!_r.props.maskClosable)return;var En=Ur.target,jn=_r.getRootDomNode(),Hn=_r.getPopupDomNode();!Object(Br.a)(jn,En)&&!Object(Br.a)(Hn,En)&&!_r.hasPopupMouseDown&&_r.close()},_r.getRootDomNode=function(){var Ur=_r.props.getTriggerDOMNode;if(Ur)return Ur(_r.triggerRef.current);try{var En=Object(sn.a)(_r.triggerRef.current);if(En)return En}catch(jn){}return _i.a.findDOMNode(Object(Gn.a)(_r))},_r.getPopupClassNameFromAlign=function(Ur){var En=[],jn=_r.props,Hn=jn.popupPlacement,Bn=jn.builtinPlacements,ri=jn.prefixCls,Yn=jn.alignPoint,ii=jn.getPopupClassNameFromAlign;return Hn&&Bn&&En.push(kt(Bn,ri,Ur,Yn)),ii&&En.push(ii(Ur)),En.join(" ")},_r.getComponent=function(){var Ur=_r.props,En=Ur.prefixCls,jn=Ur.destroyPopupOnHide,Hn=Ur.popupClassName,Bn=Ur.onPopupAlign,ri=Ur.popupMotion,Yn=Ur.popupAnimation,ii=Ur.popupTransitionName,ai=Ur.popupStyle,ki=Ur.mask,bi=Ur.maskAnimation,Ki=Ur.maskTransitionName,Aa=Ur.maskMotion,ea=Ur.zIndex,Ji=Ur.popup,sa=Ur.stretch,fa=Ur.alignPoint,xo=_r.state,Qa=xo.popupVisible,Wi=xo.point,qi=_r.getPopupAlign(),ca={};return _r.isMouseEnterToShow()&&(ca.onMouseEnter=_r.onPopupMouseEnter),_r.isMouseLeaveToHide()&&(ca.onMouseLeave=_r.onPopupMouseLeave),ca.onMouseDown=_r.onPopupMouseDown,ca.onTouchStart=_r.onPopupMouseDown,o.a.createElement(nn,Object.assign({prefixCls:En,destroyPopupOnHide:jn,visible:Qa,point:fa&&Wi,className:Hn,align:qi,onAlign:Bn,animation:Yn,getClassNameFromAlign:_r.getPopupClassNameFromAlign},ca,{stretch:sa,getRootDomNode:_r.getRootDomNode,style:ai,mask:ki,zIndex:ea,transitionName:ii,maskAnimation:bi,maskTransitionName:Ki,maskMotion:Aa,ref:_r.popupRef,motion:ri}),typeof Ji=="function"?Ji():Ji)},_r.getContainer=function(){var Ur=Object(Gn.a)(_r),En=Ur.props,jn=document.createElement("div");jn.style.position="absolute",jn.style.top="0",jn.style.left="0",jn.style.width="100%";var Hn=En.getPopupContainer?En.getPopupContainer(_r.getRootDomNode()):En.getDocument().body;return Hn.appendChild(jn),jn},_r.setPoint=function(Ur){var En=_r.props.alignPoint;if(!En||!Ur)return;_r.setState({point:{pageX:Ur.pageX,pageY:Ur.pageY}})},_r.handlePortalUpdate=function(){_r.state.prevPopupVisible!==_r.state.popupVisible&&_r.props.afterPopupVisibleChange(_r.state.popupVisible)};var kn;return"popupVisible"in Vr?kn=!!Vr.popupVisible:kn=!!Vr.defaultPopupVisible,_r.state={prevPopupVisible:kn,popupVisible:kn},ci.forEach(function(Ur){_r["fire".concat(Ur)]=function(En){_r.fireEvents(Ur,En)}}),_r}return Object(R.a)(_n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _r=this.props,kn=this.state;if(kn.popupVisible){var Ur;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ur=_r.getDocument(),this.clickOutsideHandler=Object(Pt.a)(Ur,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ur=Ur||_r.getDocument(),this.touchOutsideHandler=Object(Pt.a)(Ur,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ur=Ur||_r.getDocument(),this.contextMenuOutsideHandler1=Object(Pt.a)(Ur,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Pt.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 _r=this.props,kn=_r.popupPlacement,Ur=_r.popupAlign,En=_r.builtinPlacements;return kn&&En?Lt(En,kn,Ur):Ur}},{key:"setPopupVisible",value:function(_r,kn){var Ur=this.props.alignPoint,En=this.state.popupVisible;this.clearDelayTimer(),En!==_r&&("popupVisible"in this.props||this.setState({popupVisible:_r,prevPopupVisible:En}),this.props.onPopupVisibleChange(_r)),Ur&&kn&&this.setPoint(kn)}},{key:"delaySetPopupVisible",value:function(_r,kn,Ur){var En=this,jn=kn*1e3;if(this.clearDelayTimer(),jn){var Hn=Ur?{pageX:Ur.pageX,pageY:Ur.pageY}:null;this.delayTimer=window.setTimeout(function(){En.setPopupVisible(_r,Hn),En.clearDelayTimer()},jn)}else this.setPopupVisible(_r,Ur)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(_r){var kn=this.props.children.props,Ur=this.props;return kn[_r]&&Ur[_r]?this["fire".concat(_r)]:kn[_r]||Ur[_r]}},{key:"isClickToShow",value:function(){var _r=this.props,kn=_r.action,Ur=_r.showAction;return kn.indexOf("click")!==-1||Ur.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var _r=this.props,kn=_r.action,Ur=_r.showAction;return kn.indexOf("contextMenu")!==-1||Ur.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var _r=this.props,kn=_r.action,Ur=_r.hideAction;return kn.indexOf("click")!==-1||Ur.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var _r=this.props,kn=_r.action,Ur=_r.showAction;return kn.indexOf("hover")!==-1||Ur.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var _r=this.props,kn=_r.action,Ur=_r.hideAction;return kn.indexOf("hover")!==-1||Ur.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var _r=this.props,kn=_r.action,Ur=_r.showAction;return kn.indexOf("focus")!==-1||Ur.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var _r=this.props,kn=_r.action,Ur=_r.hideAction;return kn.indexOf("focus")!==-1||Ur.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(_r,kn){var Ur=this.props.children.props[_r];Ur&&Ur(kn);var En=this.props[_r];En&&En(kn)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var _r=this.state.popupVisible,kn=this.props,Ur=kn.children,En=kn.forceRender,jn=kn.alignPoint,Hn=kn.className,Bn=kn.autoDestroy,ri=o.a.Children.only(Ur),Yn={key:"trigger"};this.isContextMenuToShow()?Yn.onContextMenu=this.onContextMenu:Yn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Yn.onClick=this.onClick,Yn.onMouseDown=this.onMouseDown,Yn.onTouchStart=this.onTouchStart):(Yn.onClick=this.createTwoChains("onClick"),Yn.onMouseDown=this.createTwoChains("onMouseDown"),Yn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Yn.onMouseEnter=this.onMouseEnter,jn&&(Yn.onMouseMove=this.onMouseMove)):Yn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Yn.onMouseLeave=this.onMouseLeave:Yn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Yn.onFocus=this.onFocus,Yn.onBlur=this.onBlur):(Yn.onFocus=this.createTwoChains("onFocus"),Yn.onBlur=this.createTwoChains("onBlur"));var ii=T()(ri&&ri.props&&ri.props.className,Hn);ii&&(Yn.className=ii);var ai=Object(F.a)({},Yn);Object(Sn.c)(ri)&&(ai.ref=Object(Sn.a)(this.triggerRef,ri.ref));var ki=o.a.cloneElement(ri,ai),bi;return(_r||this.popupRef.current||En)&&(bi=o.a.createElement(rt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!_r&&Bn&&(bi=null),o.a.createElement(tn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},ki,bi)}}],[{key:"getDerivedStateFromProps",value:function(_r,kn){var Ur=_r.popupVisible,En={};return Ur!==void 0&&kn.popupVisible!==Ur&&(En.popupVisible=Ur,En.prevPopupVisible=kn.popupVisible),En}}]),_n}(o.a.Component);return cr.contextType=tn,cr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Tn,getDocument:Xn,onPopupVisibleChange:Ln,afterPopupVisibleChange:Ln,onPopupAlign:Ln,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},cr}var pi=Jn(gt.a),Si={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 Ni(rt){var cr,Pr=rt.prefixCls,Lr=rt.popupElement,_n=rt.popupStyle,Vr=rt.visible,_r=rt.dropdownClassName,kn=rt.dropdownAlign,Ur=rt.transitionName,En=rt.getPopupContainer,jn=rt.children,Hn=rt.range,Bn=rt.popupPlacement,ri=rt.direction,Yn="".concat(Pr,"-dropdown"),ii=function(){return Bn!==void 0?Bn:ri==="rtl"?"bottomRight":"bottomLeft"};return c.createElement(pi,{showAction:[],hideAction:[],popupPlacement:ii(),builtinPlacements:Si,prefixCls:Yn,popupTransitionName:Ur,popup:Lr,popupAlign:kn,popupVisible:Vr,popupClassName:T()(_r,(cr={},Object(U.a)(cr,"".concat(Yn,"-range"),Hn),Object(U.a)(cr,"".concat(Yn,"-rtl"),ri==="rtl"),cr)),popupStyle:_n,getPopupContainer:En},jn)}var xi=Ni;function yi(rt){var cr=rt.open,Pr=rt.value,Lr=rt.isClickOutside,_n=rt.triggerOpen,Vr=rt.forwardKeyDown,_r=rt.blurToCancel,kn=rt.onSubmit,Ur=rt.onCancel,En=rt.onFocus,jn=rt.onBlur,Hn=Object(c.useState)(!1),Bn=Object(j.a)(Hn,2),ri=Bn[0],Yn=Bn[1],ii=Object(c.useState)(!1),ai=Object(j.a)(ii,2),ki=ai[0],bi=ai[1],Ki=Object(c.useRef)(!1),Aa=Object(c.useRef)(!1),ea={onMouseDown:function(){Yn(!0),_n(!0)},onKeyDown:function(sa){switch(sa.which){case z.a.ENTER:{cr?kn()!==!1&&Yn(!0):_n(!0),sa.preventDefault();return}case z.a.TAB:{ri&&cr&&!sa.shiftKey?(Yn(!1),sa.preventDefault()):!ri&&cr&&(!Vr(sa)&&sa.shiftKey&&(Yn(!0),sa.preventDefault()));return}case z.a.ESC:{Yn(!0),Ur();return}}!cr&&![z.a.SHIFT].includes(sa.which)?_n(!0):ri||Vr(sa)},onFocus:function(sa){Yn(!0),bi(!0),En&&En(sa)},onBlur:function(sa){if(Ki.current||!Lr(document.activeElement)){Ki.current=!1;return}_r?setTimeout(function(){Lr(document.activeElement)&&Ur()},0):cr&&(_n(!1),Aa.current&&kn()),bi(!1),jn&&jn(sa)}};return Object(c.useEffect)(function(){Aa.current=!1},[cr]),Object(c.useEffect)(function(){Aa.current=!0},[Pr]),Object(c.useEffect)(function(){return J(function(Ji){var sa=Ji.target;cr&&(Lr(sa)?ki||_n(!1):(Ki.current=!0,requestAnimationFrame(function(){Ki.current=!1})))})}),[ea,{focused:ki,typing:ri}]}function vi(rt){var cr=rt.valueTexts,Pr=rt.onTextChange,Lr=c.useState(""),_n=Object(j.a)(Lr,2),Vr=_n[0],_r=_n[1],kn=c.useRef([]);kn.current=cr;function Ur(jn){_r(jn),Pr(jn)}function En(){_r(kn.current[0])}return c.useEffect(function(){cr.every(function(jn){return jn!==Vr})&&En()},[cr.join("||")]),[Vr,Ur,En]}var Ti=d("Gytx"),Ui=d.n(Ti);function $i(rt,cr){var Pr=cr.formatList,Lr=cr.generateConfig,_n=cr.locale;return Object(He.a)(function(){if(!rt)return[[""],""];for(var Vr="",_r=[],kn=0;kn<Pr.length;kn+=1){var Ur=Pr[kn],En=Lr.locale.format(_n.locale,rt,Ur);_r.push(En),kn===0&&(Vr=En)}return[_r,Vr]},[rt,Pr],function(Vr,_r){return Vr[0]!==_r[0]||!Ui()(Vr[1],_r[1])})}function Di(rt,cr){var Pr=cr.formatList,Lr=cr.generateConfig,_n=cr.locale,Vr=Object(c.useState)(null),_r=Object(j.a)(Vr,2),kn=_r[0],Ur=_r[1],En=Object(c.useRef)(null);function jn(ai){var ki=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(En.current),ki){Ur(ai);return}En.current=requestAnimationFrame(function(){Ur(ai)})}var Hn=$i(kn,{formatList:Pr,generateConfig:Lr,locale:_n}),Bn=Object(j.a)(Hn,2),ri=Bn[1];function Yn(ai){jn(ai)}function ii(){var ai=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;jn(null,ai)}return Object(c.useEffect)(function(){ii(!0)},[rt]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(En.current)}},[]),[ri,Yn,ii]}function ua(rt){var cr,Pr=rt.prefixCls,Lr=Pr===void 0?"rc-picker":Pr,_n=rt.id,Vr=rt.tabIndex,_r=rt.style,kn=rt.className,Ur=rt.dropdownClassName,En=rt.dropdownAlign,jn=rt.popupStyle,Hn=rt.transitionName,Bn=rt.generateConfig,ri=rt.locale,Yn=rt.inputReadOnly,ii=rt.allowClear,ai=rt.autoFocus,ki=rt.showTime,bi=rt.picker,Ki=bi===void 0?"date":bi,Aa=rt.format,ea=rt.use12Hours,Ji=rt.value,sa=rt.defaultValue,fa=rt.open,xo=rt.defaultOpen,Qa=rt.defaultOpenValue,Wi=rt.suffixIcon,qi=rt.clearIcon,ca=rt.disabled,ma=rt.disabledDate,ka=rt.placeholder,La=rt.getPopupContainer,Za=rt.pickerRef,eo=rt.panelRender,Po=rt.onChange,jo=rt.onOpenChange,cs=rt.onFocus,Mo=rt.onBlur,Lo=rt.onMouseDown,Ba=rt.onMouseUp,za=rt.onMouseEnter,Ta=rt.onMouseLeave,ko=rt.onContextMenu,Qo=rt.onClick,so=rt.direction,Os=rt.autoComplete,ho=Os===void 0?"off":Os,bo=c.useRef(null),ds=Ki==="date"&&!!ki||Ki==="time",Ho=Te(Xe(Aa,Ki,ki,ea)),zo=c.useRef(null),rn=c.useRef(null),es=Object(W.a)(null,{value:Ji,defaultValue:sa}),Js=Object(j.a)(es,2),Es=Js[0],gs=Js[1],Ko=c.useState(Es),hs=Object(j.a)(Ko,2),bs=hs[0],ws=hs[1],qo=c.useRef(null),us=Object(W.a)(!1,{value:fa,defaultValue:xo,postState:function(Ka){return ca?!1:Ka},onChange:function(Ka){jo&&jo(Ka),!Ka&&qo.current&&qo.current.onClose&&qo.current.onClose()}}),_s=Object(j.a)(us,2),vs=_s[0],vo=_s[1],to=$i(bs,{formatList:Ho,generateConfig:Bn,locale:ri}),Jo=Object(j.a)(to,2),ts=Jo[0],Ha=Jo[1],It=vi({valueTexts:ts,onTextChange:function(Ka){var is=Bn.locale.parse(ri.locale,Ka,Ho);is&&(!ma||!ma(is))&&ws(is)}}),Vt=Object(j.a)(It,3),hn=Vt[0],zn=Vt[1],vt=Vt[2],ae=function(Ka){ws(Ka),gs(Ka),Po&&!Ht(Bn,Es,Ka)&&Po(Ka,Ka?Bn.locale.format(ri.locale,Ka,Ho[0]):"")},me=function(Ka){if(ca&&Ka)return;vo(Ka)},be=function(Ka){return vs&&qo.current&&qo.current.onKeyDown?qo.current.onKeyDown(Ka):(Object(C.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ke=function(){Ba&&Ba.apply(void 0,arguments),bo.current&&(bo.current.focus(),me(!0))},At=yi({blurToCancel:ds,open:vs,value:hn,triggerOpen:me,forwardKeyDown:be,isClickOutside:function(Ka){return!fe([zo.current,rn.current],Ka)},onSubmit:function(){return ma&&ma(bs)?!1:(ae(bs),me(!1),vt(),!0)},onCancel:function(){me(!1),ws(Es),vt()},onFocus:cs,onBlur:Mo}),Gt=Object(j.a)(At,2),Dr=Gt[0],Gr=Gt[1],fn=Gr.focused,Kn=Gr.typing;c.useEffect(function(){vs||(ws(Es),!ts.length||ts[0]===""?zn(""):Ha!==hn&&vt())},[vs,ts]),c.useEffect(function(){vs||vt()},[Ki]),c.useEffect(function(){ws(Es)},[Es]),Za&&(Za.current={focus:function(){bo.current&&bo.current.focus()},blur:function(){bo.current&&bo.current.blur()}});var qn=Object(F.a)(Object(F.a)({},rt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Qn=c.createElement(kr,Object.assign({},qn,{generateConfig:Bn,className:T()(Object(U.a)({},"".concat(Lr,"-panel-focused"),!Kn)),value:bs,locale:ri,tabIndex:-1,onChange:ws,direction:so}));eo&&(Qn=eo(Qn));var Ei=c.createElement("div",{className:"".concat(Lr,"-panel-container"),onMouseDown:function(Ka){Ka.preventDefault()}},Qn),Fi;Wi&&(Fi=c.createElement("span",{className:"".concat(Lr,"-suffix")},Wi));var va;ii&&Es&&!ca&&(va=c.createElement("span",{onMouseDown:function(Ka){Ka.preventDefault(),Ka.stopPropagation()},onMouseUp:function(Ka){Ka.preventDefault(),Ka.stopPropagation(),ae(null),me(!1)},className:"".concat(Lr,"-clear")},qi||c.createElement("span",{className:"".concat(Lr,"-clear-btn")})));var Oa=function(Ka,is){(is==="submit"||is!=="key"&&!ds)&&(ae(Ka),me(!1))},fo=so==="rtl"?"bottomRight":"bottomLeft",wo=Di(hn,{formatList:Ho,generateConfig:Bn,locale:ri}),lo=Object(j.a)(wo,3),Yo=lo[0],Vo=lo[1],No=lo[2];return c.createElement($.Provider,{value:{operationRef:qo,hideHeader:Ki==="time",panelRef:zo,onSelect:Oa,open:vs,defaultOpenValue:Qa,onDateMouseEnter:Vo,onDateMouseLeave:No}},c.createElement(xi,{visible:vs,popupElement:Ei,popupStyle:jn,prefixCls:Lr,dropdownClassName:Ur,dropdownAlign:En,getPopupContainer:La,transitionName:Hn,popupPlacement:fo,direction:so},c.createElement("div",{className:T()(Lr,kn,(cr={},Object(U.a)(cr,"".concat(Lr,"-disabled"),ca),Object(U.a)(cr,"".concat(Lr,"-focused"),fn),Object(U.a)(cr,"".concat(Lr,"-rtl"),so==="rtl"),cr)),style:_r,onMouseDown:Lo,onMouseUp:Ke,onMouseEnter:za,onMouseLeave:Ta,onContextMenu:ko,onClick:Qo},c.createElement("div",{className:T()("".concat(Lr,"-input"),Object(U.a)({},"".concat(Lr,"-input-placeholder"),!!Yo)),ref:rn},c.createElement("input",Object.assign({id:_n,tabIndex:Vr,disabled:ca,readOnly:Yn||!Kn,value:Yo||hn,onChange:function(Ka){zn(Ka.target.value)},autoFocus:ai,placeholder:ka,ref:bo,title:hn},Dr,{size:se(Ki,Ho[0])},et(rt),{autoComplete:ho})),Fi,va))))}var aa=function(rt){Object(P.a)(Pr,rt);var cr=Object(M.a)(Pr);function Pr(){var Lr;return Object(D.a)(this,Pr),Lr=cr.apply(this,arguments),Lr.pickerRef=c.createRef(),Lr.focus=function(){Lr.pickerRef.current&&Lr.pickerRef.current.focus()},Lr.blur=function(){Lr.pickerRef.current&&Lr.pickerRef.current.blur()},Lr}return Object(R.a)(Pr,[{key:"render",value:function(){return c.createElement(ua,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Pr}(c.Component),Gi=aa;function Vi(rt,cr,Pr){var Lr=rt.picker,_n=rt.locale,Vr=rt.selectedValue,_r=rt.disabledDate,kn=rt.disabled,Ur=rt.generateConfig,En=ze(Vr,0),jn=ze(Vr,1);function Hn(ai){var ki=Ur.getYear(ai),bi=Ur.locale.getWeek(_n.locale,ai);return ki*100+bi}function Bn(ai){var ki=Ur.getYear(ai),bi=Ur.getMonth(ai);return ki*100+bi}function ri(ai){var ki=Ur.getYear(ai),bi=Xt(Ur,ai);return ki*10+bi}var Yn=c.useCallback(function(ai){if(_r&&_r(ai))return!0;if(kn[1]&&jn)return!ar(Ur,ai,jn)&&Ur.isAfter(ai,jn);if(cr&&jn)switch(Lr){case"quarter":return ri(ai)>ri(jn);case"month":return Bn(ai)>Bn(jn);case"week":return Hn(ai)>Hn(jn);default:return!ar(Ur,ai,jn)&&Ur.isAfter(ai,jn)}return!1},[_r,kn[1],jn,cr]),ii=c.useCallback(function(ai){if(_r&&_r(ai))return!0;if(kn[0]&&En)return!ar(Ur,ai,jn)&&Ur.isAfter(En,ai);if(Pr&&En)switch(Lr){case"quarter":return ri(ai)<ri(En);case"month":return Bn(ai)<Bn(En);case"week":return Hn(ai)<Hn(En);default:return!ar(Ur,ai,En)&&Ur.isAfter(En,ai)}return!1},[_r,kn[0],En,Pr]);return[Yn,ii]}function ta(rt,cr,Pr,Lr){var _n=dn(rt,Pr,Lr,1);function Vr(_r){return _r(rt,cr)?"same":_r(_n,cr)?"closing":"far"}switch(Pr){case"year":return Vr(function(_r,kn){return Rt(Lr,_r,kn)});case"quarter":case"month":return Vr(function(_r,kn){return ut(Lr,_r,kn)});default:return Vr(function(_r,kn){return Zr(Lr,_r,kn)})}}function Xi(rt,cr,Pr,Lr){var _n=ze(rt,0),Vr=ze(rt,1);if(cr===0)return _n;if(_n&&Vr){var _r=ta(_n,Vr,Pr,Lr);switch(_r){case"same":return _n;case"closing":return _n;default:return dn(Vr,Pr,Lr,-1)}}return _n}function ga(rt){var cr=rt.values,Pr=rt.picker,Lr=rt.defaultDates,_n=rt.generateConfig,Vr=c.useState(function(){return[ze(Lr,0),ze(Lr,1)]}),_r=Object(j.a)(Vr,2),kn=_r[0],Ur=_r[1],En=c.useState(null),jn=Object(j.a)(En,2),Hn=jn[0],Bn=jn[1],ri=ze(cr,0),Yn=ze(cr,1);function ii(ki){return kn[ki]?kn[ki]:ze(Hn,ki)||Xi(cr,ki,Pr,_n)||ri||Yn||_n.getNow()}function ai(ki,bi){if(ki){var Ki=nt(Hn,ki,bi);Ur(nt(kn,null,bi)||[null,null]);var Aa=(bi+1)%2;ze(cr,Aa)||(Ki=nt(Ki,ki,Aa)),Bn(Ki)}else(ri||Yn)&&Bn(null)}return[ii,ai]}function ra(rt,cr){return rt&&rt[0]&&rt[1]&&cr.isAfter(rt[0],rt[1])?[rt[1],rt[0]]:rt}function pa(rt,cr,Pr,Lr){return rt||Lr&&Lr[cr]?!0:!!Pr[(cr+1)%2]}function _a(rt){var cr,Pr,Lr,_n=rt.prefixCls,Vr=_n===void 0?"rc-picker":_n,_r=rt.id,kn=rt.style,Ur=rt.className,En=rt.popupStyle,jn=rt.dropdownClassName,Hn=rt.transitionName,Bn=rt.dropdownAlign,ri=rt.getPopupContainer,Yn=rt.generateConfig,ii=rt.locale,ai=rt.placeholder,ki=rt.autoFocus,bi=rt.disabled,Ki=rt.format,Aa=rt.picker,ea=Aa===void 0?"date":Aa,Ji=rt.showTime,sa=rt.use12Hours,fa=rt.separator,xo=fa===void 0?"~":fa,Qa=rt.value,Wi=rt.defaultValue,qi=rt.defaultPickerValue,ca=rt.open,ma=rt.defaultOpen,ka=rt.disabledDate,La=rt.disabledTime,Za=rt.dateRender,eo=rt.panelRender,Po=rt.ranges,jo=rt.allowEmpty,cs=rt.allowClear,Mo=rt.suffixIcon,Lo=rt.clearIcon,Ba=rt.pickerRef,za=rt.inputReadOnly,Ta=rt.mode,ko=rt.renderExtraFooter,Qo=rt.onChange,so=rt.onOpenChange,Os=rt.onPanelChange,ho=rt.onCalendarChange,bo=rt.onFocus,ds=rt.onBlur,Ho=rt.onOk,zo=rt.components,rn=rt.order,es=rt.direction,Js=rt.activePickerIndex,Es=rt.autoComplete,gs=Es===void 0?"off":Es,Ko=ea==="date"&&!!Ji||ea==="time",hs=Object(c.useRef)({}),bs=Object(c.useRef)(null),ws=Object(c.useRef)(null),qo=Object(c.useRef)(null),us=Object(c.useRef)(null),_s=Object(c.useRef)(null),vs=Object(c.useRef)(null),vo=Object(c.useRef)(null),to=Te(Xe(Ki,ea,Ji,sa)),Jo=Object(W.a)(0,{value:Js}),ts=Object(j.a)(Jo,2),Ha=ts[0],It=ts[1],Vt=Object(c.useRef)(null),hn=c.useMemo(function(){return Array.isArray(bi)?bi:[bi||!1,bi||!1]},[bi]),zn=Object(W.a)(null,{value:Qa,defaultValue:Wi,postState:function(Na){return ea==="time"&&!rn?Na:ra(Na,Yn)}}),vt=Object(j.a)(zn,2),ae=vt[0],me=vt[1],be=ga({values:ae,picker:ea,defaultDates:qi,generateConfig:Yn}),Ke=Object(j.a)(be,2),At=Ke[0],Gt=Ke[1],Dr=Object(W.a)(ae,{postState:function(Na){var ro=Na;if(hn[0]&&hn[1])return ro;for(var Io=0;Io<2;Io+=1)hn[Io]&&!ze(ro,Io)&&!ze(jo,Io)&&(ro=nt(ro,Yn.getNow(),Io));return ro}}),Gr=Object(j.a)(Dr,2),fn=Gr[0],Kn=Gr[1],qn=Object(W.a)([ea,ea],{value:Ta}),Qn=Object(j.a)(qn,2),Ei=Qn[0],Fi=Qn[1];Object(c.useEffect)(function(){Fi([ea,ea])},[ea]);var va=function(Na,ro){Fi(Na),Os&&Os(ro,Na)},Oa=Vi({picker:ea,selectedValue:fn,locale:ii,disabled:hn,disabledDate:ka,generateConfig:Yn},hs.current[1],hs.current[0]),fo=Object(j.a)(Oa,2),wo=fo[0],lo=fo[1],Yo=Object(W.a)(!1,{value:ca,defaultValue:ma,postState:function(Na){return hn[Ha]?!1:Na},onChange:function(Na){so&&so(Na),!Na&&Vt.current&&Vt.current.onClose&&Vt.current.onClose()}}),Vo=Object(j.a)(Yo,2),No=Vo[0],ao=Vo[1],Ka=No&&Ha===0,is=No&&Ha===1,Is=Object(c.useState)(0),Go=Object(j.a)(Is,2),la=Go[0],Vs=Go[1];Object(c.useEffect)(function(){!No&&bs.current&&Vs(bs.current.offsetWidth)},[No]);var Hs=c.useRef();function fs(Bo,Na){if(Bo)clearTimeout(Hs.current),hs.current[Na]=!0,It(Na),ao(Bo),No||Gt(null,Na);else if(Ha===Na){ao(Bo);var ro=hs.current;Hs.current=setTimeout(function(){ro===hs.current&&(hs.current={})})}}function as(Bo){fs(!0,Bo),setTimeout(function(){var Na=[vs,vo][Bo];Na.current&&Na.current.focus()},0)}function Ss(Bo,Na){var ro=Bo,Io=ze(ro,0),Bs=ze(ro,1);Io&&Bs&&Yn.isAfter(Io,Bs)&&(ea==="week"&&!er(Yn,ii.locale,Io,Bs)||ea==="quarter"&&!or(Yn,Io,Bs)||ea!=="week"&&ea!=="quarter"&&ea!=="time"&&!ar(Yn,Io,Bs)?(Na===0?(ro=[Io,null],Bs=null):(Io=null,ro=[null,Bs]),hs.current=Object(U.a)({},Na,!0)):(ea!=="time"||rn!==!1)&&(ro=ra(ro,Yn))),Kn(ro);var Ol=ro&&ro[0]?Yn.locale.format(ii.locale,ro[0],to[0]):"",_l=ro&&ro[1]?Yn.locale.format(ii.locale,ro[1],to[0]):"";if(ho){var ml={range:Na===0?"start":"end"};ho(ro,[Ol,_l],ml)}var Al=pa(Io,0,hn,jo),Il=pa(Bs,1,hn,jo),Ll=ro===null||Al&&Il;Ll&&(me(ro),Qo&&(!Ht(Yn,ze(ae,0),Io)||!Ht(Yn,ze(ae,1),Bs))&&Qo(ro,[Ol,_l]));var Ks=null;Na===0&&!hn[1]?Ks=1:Na===1&&!hn[0]&&(Ks=0),Ks!==null&&Ks!==Ha&&(!hs.current[Ks]||!ze(ro,Ks))&&ze(ro,Na)?as(Ks):fs(!1,Na)}var xl=function(Na){return No&&Vt.current&&Vt.current.onKeyDown?Vt.current.onKeyDown(Na):(Object(C.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},vl={formatList:to,generateConfig:Yn,locale:ii},zs=$i(ze(fn,0),vl),Zo=Object(j.a)(zs,2),As=Zo[0],nl=Zo[1],Ps=$i(ze(fn,1),vl),po=Object(j.a)(Ps,2),Wa=po[0],Eo=po[1],Xo=function(Na,ro){var Io=Yn.locale.parse(ii.locale,Na,to),Bs=ro===0?wo:lo;Io&&!Bs(Io)&&(Kn(nt(fn,Io,ro)),Gt(Io,ro))},$o=vi({valueTexts:As,onTextChange:function(Na){return Xo(Na,0)}}),Co=Object(j.a)($o,3),rs=Co[0],os=Co[1],Fs=Co[2],ol=vi({valueTexts:Wa,onTextChange:function(Na){return Xo(Na,1)}}),Zs=Object(j.a)(ol,3),dl=Zs[0],hl=Zs[1],sl=Zs[2],yl=Object(c.useState)(null),Ns=Object(j.a)(yl,2),ys=Ns[0],Ds=Ns[1],xs=Object(c.useState)(null),Xs=Object(j.a)(xs,2),ll=Xs[0],El=Xs[1],jl=Di(rs,{formatList:to,generateConfig:Yn,locale:ii}),$s=Object(j.a)(jl,3),Nl=$s[0],kl=$s[1],yu=$s[2],cu=Di(dl,{formatList:to,generateConfig:Yn,locale:ii}),eu=Object(j.a)(cu,3),tu=eu[0],Vl=eu[1],Ys=eu[2],il=function(Na){El(nt(fn,Na,Ha)),Ha===0?kl(Na):Vl(Na)},fl=function(){El(nt(fn,null,Ha)),Ha===0?yu():Ys()},Pl=function(Na,ro){return{blurToCancel:Ko,forwardKeyDown:xl,onBlur:ds,isClickOutside:function(Bs){return!fe([ws.current,qo.current,us.current],Bs)},onFocus:function(Bs){It(Na),bo&&bo(Bs)},triggerOpen:function(Bs){fs(Bs,Na)},onSubmit:function(){Ss(fn,Na),ro()},onCancel:function(){fs(!1,Na),Kn(ae),ro()}}},du=yi(Object(F.a)(Object(F.a)({},Pl(0,Fs)),{},{open:Ka,value:rs})),ru=Object(j.a)(du,2),nu=ru[0],Qs=ru[1],iu=Qs.focused,au=Qs.typing,bu=yi(Object(F.a)(Object(F.a)({},Pl(1,sl)),{},{open:is,value:dl})),bl=Object(j.a)(bu,2),Fl=bl[0],Hl=bl[1],Gl=Hl.focused,Tl=Hl.typing,Tu=function(Na){!No&&!vs.current.contains(Na.target)&&!vo.current.contains(Na.target)&&(hn[0]?hn[1]||as(1):as(0))},Cu=function(Na){No&&(iu||Gl)&&!vs.current.contains(Na.target)&&!vo.current.contains(Na.target)&&Na.preventDefault()},Cl=ae&&ae[0]?Yn.locale.format(ii.locale,ae[0],"YYYYMMDDHHmmss"):"",ou=ae&&ae[1]?Yn.locale.format(ii.locale,ae[1],"YYYYMMDDHHmmss"):"";Object(c.useEffect)(function(){No||(Kn(ae),!As.length||As[0]===""?os(""):nl!==rs&&Fs(),!Wa.length||Wa[0]===""?hl(""):Eo!==dl&&sl())},[No,As,Wa]),Object(c.useEffect)(function(){Kn(ae)},[Cl,ou]),Ba&&(Ba.current={focus:function(){vs.current&&vs.current.focus()},blur:function(){vs.current&&vs.current.blur(),vo.current&&vo.current.blur()}});var hu=Object.keys(Po||{}),su=hu.map(function(Bo){var Na=Po[Bo],ro=typeof Na=="function"?Na():Na;return{label:Bo,onClick:function(){Ss(ro,null),fs(!1,Ha)},onMouseEnter:function(){Ds(ro)},onMouseLeave:function(){Ds(null)}}});function Rs(){var Bo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ro=null;No&&ll&&ll[0]&&ll[1]&&Yn.isAfter(ll[1],ll[0])&&(ro=ll);var Io=Ji;if(Ji&&Object(V.a)(Ji)==="object"&&Ji.defaultValue){var Bs=Ji.defaultValue;Io=Object(F.a)(Object(F.a)({},Ji),{},{defaultValue:ze(Bs,Ha)||void 0})}var Ol=null;return Za&&(Ol=function(ml,Al){return Za(ml,Al,{range:Ha?"end":"start"})}),c.createElement(Vn.Provider,{value:{inRange:!0,panelPosition:Bo,rangedValue:ys||fn,hoverRangedValue:ro}},c.createElement(kr,Object.assign({},rt,Na,{dateRender:Ol,showTime:Io,mode:Ei[Ha],generateConfig:Yn,style:void 0,direction:es,disabledDate:Ha===0?wo:lo,disabledTime:function(ml){return La?La(ml,Ha===0?"start":"end"):!1},className:T()(Object(U.a)({},"".concat(Vr,"-panel-focused"),Ha===0?!au:!Tl)),value:ze(fn,Ha),locale:ii,tabIndex:-1,onPanelChange:function(ml,Al){va(nt(Ei,Al,Ha),nt(fn,ml,Ha));var Il=ml;Bo==="right"&&Ei[Ha]===Al&&(Il=dn(Il,Al,Yn,-1)),Gt(Il,Ha)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var el=0,Bl=0;Ha&&qo.current&&_s.current&&ws.current&&(el=qo.current.offsetWidth+_s.current.offsetWidth,ws.current.offsetWidth&&el>ws.current.offsetWidth&&(Bl=el));var wu=es==="rtl"?{right:el}:{left:el};function fu(){var Bo,Na=fr(Vr,Ei[Ha],ko),ro=mn({prefixCls:Vr,components:zo,needConfirmButton:Ko,okDisabled:!ze(fn,Ha)||ka&&ka(fn[Ha]),locale:ii,rangeList:su,onOk:function(){ze(fn,Ha)&&(Ss(fn,Ha),Ho&&Ho(fn))}});if(ea!=="time"&&!Ji){var Io=At(Ha),Bs=dn(Io,ea,Yn),Ol=Ei[Ha],_l=Ol===ea,ml=Rs(_l?"left":!1,{pickerValue:Io,onPickerValueChange:function(Ks){Gt(Ks,Ha)}}),Al=Rs("right",{pickerValue:Bs,onPickerValueChange:function(Ks){Gt(dn(Ks,ea,Yn,-1),Ha)}});es==="rtl"?Bo=c.createElement(c.Fragment,null,Al,_l&&ml):Bo=c.createElement(c.Fragment,null,ml,_l&&Al)}else Bo=Rs();var Il=c.createElement(c.Fragment,null,c.createElement("div",{className:"".concat(Vr,"-panels")},Bo),(Na||ro)&&c.createElement("div",{className:"".concat(Vr,"-footer")},Na,ro));return eo&&(Il=eo(Il)),c.createElement("div",{className:"".concat(Vr,"-panel-container"),style:{marginLeft:Bl},ref:ws,onMouseDown:function(Ks){Ks.preventDefault()}},Il)}var Xl=c.createElement("div",{className:T()("".concat(Vr,"-range-wrapper"),"".concat(Vr,"-").concat(ea,"-range-wrapper")),style:{minWidth:la}},c.createElement("div",{className:"".concat(Vr,"-range-arrow"),style:wu}),fu()),Kl;Mo&&(Kl=c.createElement("span",{className:"".concat(Vr,"-suffix")},Mo));var lu;cs&&(ze(ae,0)&&!hn[0]||ze(ae,1)&&!hn[1])&&(lu=c.createElement("span",{onMouseDown:function(Na){Na.preventDefault(),Na.stopPropagation()},onMouseUp:function(Na){Na.preventDefault(),Na.stopPropagation();var ro=ae;hn[0]||(ro=nt(ro,null,0)),hn[1]||(ro=nt(ro,null,1)),Ss(ro,null),fs(!1,Ha)},className:"".concat(Vr,"-clear")},Lo||c.createElement("span",{className:"".concat(Vr,"-clear-btn")})));var pu={size:se(ea,to[0])},mu=0,pl=0;qo.current&&us.current&&_s.current&&(Ha===0?pl=qo.current.offsetWidth:(mu=el,pl=us.current.offsetWidth));var wl=es==="rtl"?{right:mu}:{left:mu},Dl=function(Na,ro){var Io=nt(fn,Na,Ha);ro==="submit"||ro!=="key"&&!Ko?(Ss(Io,Ha),Ha===0?yu():Ys()):Kn(Io)};return c.createElement($.Provider,{value:{operationRef:Vt,hideHeader:ea==="time",onDateMouseEnter:il,onDateMouseLeave:fl,hideRanges:!0,onSelect:Dl,open:No}},c.createElement(xi,{visible:No,popupElement:Xl,popupStyle:En,prefixCls:Vr,dropdownClassName:jn,dropdownAlign:Bn,getPopupContainer:ri,transitionName:Hn,range:!0,direction:es},c.createElement("div",Object.assign({ref:bs,className:T()(Vr,"".concat(Vr,"-range"),Ur,(cr={},Object(U.a)(cr,"".concat(Vr,"-disabled"),hn[0]&&hn[1]),Object(U.a)(cr,"".concat(Vr,"-focused"),Ha===0?iu:Gl),Object(U.a)(cr,"".concat(Vr,"-rtl"),es==="rtl"),cr)),style:kn,onClick:Tu,onMouseDown:Cu},et(rt)),c.createElement("div",{className:T()("".concat(Vr,"-input"),(Pr={},Object(U.a)(Pr,"".concat(Vr,"-input-active"),Ha===0),Object(U.a)(Pr,"".concat(Vr,"-input-placeholder"),!!Nl),Pr)),ref:qo},c.createElement("input",Object.assign({id:_r,disabled:hn[0],readOnly:za||!au,value:Nl||rs,onChange:function(Na){os(Na.target.value)},autoFocus:ki,placeholder:ze(ai,0)||"",ref:vs},nu,pu,{autoComplete:gs}))),c.createElement("div",{className:"".concat(Vr,"-range-separator"),ref:_s},xo),c.createElement("div",{className:T()("".concat(Vr,"-input"),(Lr={},Object(U.a)(Lr,"".concat(Vr,"-input-active"),Ha===1),Object(U.a)(Lr,"".concat(Vr,"-input-placeholder"),!!tu),Lr)),ref:us},c.createElement("input",Object.assign({disabled:hn[1],readOnly:za||!Tl,value:tu||dl,onChange:function(Na){hl(Na.target.value)},placeholder:ze(ai,1)||"",ref:vo},Fl,pu,{autoComplete:gs}))),c.createElement("div",{className:"".concat(Vr,"-active-bar"),style:Object(F.a)(Object(F.a)({},wl),{},{width:pl,position:"absolute"})}),Kl,lu)))}var Da=function(rt){Object(P.a)(Pr,rt);var cr=Object(M.a)(Pr);function Pr(){var Lr;return Object(D.a)(this,Pr),Lr=cr.apply(this,arguments),Lr.pickerRef=c.createRef(),Lr.focus=function(){Lr.pickerRef.current&&Lr.pickerRef.current.focus()},Lr.blur=function(){Lr.pickerRef.current&&Lr.pickerRef.current.blur()},Lr}return Object(R.a)(Pr,[{key:"render",value:function(){return c.createElement(_a,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Pr}(c.Component),Ra=Da,Ao=Gi,ja=d("61s2");function Ya(rt,cr,Pr){return Pr!==void 0?Pr:rt==="year"&&cr.lang.yearPlaceholder?cr.lang.yearPlaceholder:rt==="quarter"&&cr.lang.quarterPlaceholder?cr.lang.quarterPlaceholder:rt==="month"&&cr.lang.monthPlaceholder?cr.lang.monthPlaceholder:rt==="week"&&cr.lang.weekPlaceholder?cr.lang.weekPlaceholder:rt==="time"&&cr.timePickerLocale.placeholder?cr.timePickerLocale.placeholder:cr.lang.placeholder}function Ia(rt,cr,Pr){return Pr!==void 0?Pr:rt==="year"&&cr.lang.yearPlaceholder?cr.lang.rangeYearPlaceholder:rt==="month"&&cr.lang.monthPlaceholder?cr.lang.rangeMonthPlaceholder:rt==="week"&&cr.lang.weekPlaceholder?cr.lang.rangeWeekPlaceholder:rt==="time"&&cr.timePickerLocale.placeholder?cr.timePickerLocale.rangePlaceholder:cr.lang.rangePlaceholder}var Va=d("uaoM"),co=d("H84U"),Ca=d("YMnH"),yo=d("3Nzz"),uo=function(rt,cr){var Pr={};for(var Lr in rt)Object.prototype.hasOwnProperty.call(rt,Lr)&&cr.indexOf(Lr)<0&&(Pr[Lr]=rt[Lr]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Lr=Object.getOwnPropertySymbols(rt);_n<Lr.length;_n++)cr.indexOf(Lr[_n])<0&&Object.prototype.propertyIsEnumerable.call(rt,Lr[_n])&&(Pr[Lr[_n]]=rt[Lr[_n]]);return Pr};function Ga(rt){function cr(Ur,En){var jn=function(Hn){g()(ri,Hn);var Bn=y()(ri);function ri(Yn){var ii;return l()(this,ri),ii=Bn.call(this,Yn),ii.pickerRef=c.createRef(),ii.focus=function(){ii.pickerRef.current&&ii.pickerRef.current.focus()},ii.blur=function(){ii.pickerRef.current&&ii.pickerRef.current.blur()},ii.getDefaultLocale=function(){var ai=ii.props.locale,ki=f()(f()({},ja.a),ai);return ki.lang=f()(f()({},ki.lang),(ai||{}).lang),ki},ii.renderPicker=function(ai){var ki=ii.context,bi=ki.getPrefixCls,Ki=ki.direction,Aa=ki.getPopupContainer,ea=ii.props,Ji=ea.prefixCls,sa=ea.getPopupContainer,fa=ea.className,xo=ea.size,Qa=ea.bordered,Wi=Qa===void 0?!0:Qa,qi=ea.placeholder,ca=uo(ea,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),ma=ii.props,ka=ma.format,La=ma.showTime,Za=bi("picker",Ji),eo={showToday:!0},Po={};Ur&&(Po.picker=Ur);var jo=Ur||ii.props.picker;return Po=f()(f()(f()({},Po),La?_o(f()({format:ka,picker:jo},La)):{}),jo==="time"?_o(f()(f()({format:ka},ii.props),{picker:jo})):{}),c.createElement(yo.b.Consumer,null,function(cs){var Mo,Lo=xo||cs;return c.createElement(Ao,f()({ref:ii.pickerRef,placeholder:Ya(jo,ai,qi),suffixIcon:jo==="time"?c.createElement(I.a,null):c.createElement(b.a,null),clearIcon:c.createElement(N.a,null),allowClear:!0,transitionName:"slide-up"},eo,ca,Po,{locale:ai.lang,className:T()(fa,(Mo={},t()(Mo,"".concat(Za,"-").concat(Lo),Lo),t()(Mo,"".concat(Za,"-borderless"),!Wi),Mo)),prefixCls:Za,getPopupContainer:sa||Aa,generateConfig:rt,prevIcon:c.createElement("span",{className:"".concat(Za,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(Za,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(Za,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(Za,"-super-next-icon")}),components:Ro,direction:Ki}))})},Object(Va.a)(Ur!=="quarter",En,"DatePicker.".concat(En," is legacy usage. Please use DatePicker[picker='").concat(Ur,"'] directly.")),ii}return h()(ri,[{key:"render",value:function(){return c.createElement(Ca.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),ri}(c.Component);return jn.contextType=co.b,En&&(jn.displayName=En),jn}var Pr=cr(),Lr=cr("week","WeekPicker"),_n=cr("month","MonthPicker"),Vr=cr("year","YearPicker"),_r=cr("time","TimePicker"),kn=cr("quarter","QuarterPicker");return{DatePicker:Pr,WeekPicker:Lr,MonthPicker:_n,YearPicker:Vr,TimePicker:_r,QuarterPicker:kn}}var Oo=d("8ISB"),oa=d.n(Oo),qa=function(rt,cr){var Pr={};for(var Lr in rt)Object.prototype.hasOwnProperty.call(rt,Lr)&&cr.indexOf(Lr)<0&&(Pr[Lr]=rt[Lr]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Lr=Object.getOwnPropertySymbols(rt);_n<Lr.length;_n++)cr.indexOf(Lr[_n])<0&&Object.prototype.propertyIsEnumerable.call(rt,Lr[_n])&&(Pr[Lr[_n]]=rt[Lr[_n]]);return Pr};function oo(rt){var cr=function(Pr){g()(_n,Pr);var Lr=y()(_n);function _n(){var Vr;return l()(this,_n),Vr=Lr.apply(this,arguments),Vr.pickerRef=c.createRef(),Vr.focus=function(){Vr.pickerRef.current&&Vr.pickerRef.current.focus()},Vr.blur=function(){Vr.pickerRef.current&&Vr.pickerRef.current.blur()},Vr.getDefaultLocale=function(){var _r=Vr.props.locale,kn=f()(f()({},ja.a),_r);return kn.lang=f()(f()({},kn.lang),(_r||{}).lang),kn},Vr.renderPicker=function(_r){var kn=Vr.context,Ur=kn.getPrefixCls,En=kn.direction,jn=kn.getPopupContainer,Hn=Vr.props,Bn=Hn.prefixCls,ri=Hn.getPopupContainer,Yn=Hn.className,ii=Hn.size,ai=Hn.bordered,ki=ai===void 0?!0:ai,bi=Hn.placeholder,Ki=qa(Hn,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Aa=Vr.props,ea=Aa.format,Ji=Aa.showTime,sa=Aa.picker,fa=Ur("picker",Bn),xo={};return xo=f()(f()(f()({},xo),Ji?_o(f()({format:ea,picker:sa},Ji)):{}),sa==="time"?_o(f()(f()({format:ea},Vr.props),{picker:sa})):{}),c.createElement(yo.b.Consumer,null,function(Qa){var Wi,qi=ii||Qa;return c.createElement(Ra,f()({separator:c.createElement("span",{"aria-label":"to",className:"".concat(fa,"-separator")},c.createElement(oa.a,null)),ref:Vr.pickerRef,placeholder:Ia(sa,_r,bi),suffixIcon:sa==="time"?c.createElement(I.a,null):c.createElement(b.a,null),clearIcon:c.createElement(N.a,null),allowClear:!0,transitionName:"slide-up"},Ki,xo,{className:T()(Yn,(Wi={},t()(Wi,"".concat(fa,"-").concat(qi),qi),t()(Wi,"".concat(fa,"-borderless"),!ki),Wi)),locale:_r.lang,prefixCls:fa,getPopupContainer:ri||jn,generateConfig:rt,prevIcon:c.createElement("span",{className:"".concat(fa,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(fa,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(fa,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(fa,"-super-next-icon")}),components:Ro,direction:En}))})},Vr}return h()(_n,[{key:"render",value:function(){return c.createElement(Ca.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),_n}(c.Component);return cr.contextType=co.b,cr}var Ro={button:i,rangeItem:e};function Xa(rt){return rt?Array.isArray(rt)?rt:[rt]:[]}function _o(rt){var cr=rt.format,Pr=rt.picker,Lr=rt.showHour,_n=rt.showMinute,Vr=rt.showSecond,_r=rt.use12Hours,kn=Xa(cr)[0],Ur=f()({},rt);return kn&&(!kn.includes("s")&&Vr===void 0&&(Ur.showSecond=!1),!kn.includes("m")&&_n===void 0&&(Ur.showMinute=!1),!kn.includes("H")&&!kn.includes("h")&&Lr===void 0&&(Ur.showHour=!1),(kn.includes("a")||kn.includes("A"))&&_r===void 0&&(Ur.use12Hours=!0)),Pr==="time"?Ur:{showTime:Ur}}function go(rt){var cr=Ga(rt),Pr=cr.DatePicker,Lr=cr.WeekPicker,_n=cr.MonthPicker,Vr=cr.YearPicker,_r=cr.TimePicker,kn=cr.QuarterPicker,Ur=oo(rt),En=Pr;return En.WeekPicker=Lr,En.MonthPicker=_n,En.YearPicker=Vr,En.RangePicker=Ur,En.TimePicker=_r,En.QuarterPicker=kn,En}var Ja=go,Fa=Ja(w),ha=B.a=Fa},"+lIL":function(H,B,d){var O=d("ProS");d("/ry/"),d("3OrL");var E=d("L5E0"),C=d("7Phj");O.registerVisual(E),O.registerLayout(C)},"+nKL":function(H,B,d){"use strict";var O=d("q1tI"),E=d("TSYQ"),C=d.n(E),A=d("t23M");function w(X,Fe){var Ne=Object.keys(X);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(X);Fe&&(q=q.filter(function(ht){return Object.getOwnPropertyDescriptor(X,ht).enumerable})),Ne.push.apply(Ne,q)}return Ne}function m(X){for(var Fe=1;Fe<arguments.length;Fe++){var Ne=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?w(Object(Ne),!0).forEach(function(q){f(X,q,Ne[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(Ne)):w(Object(Ne)).forEach(function(q){Object.defineProperty(X,q,Object.getOwnPropertyDescriptor(Ne,q))})}return X}function f(X,Fe,Ne){return Fe in X?Object.defineProperty(X,Fe,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):X[Fe]=Ne,X}var c=O.forwardRef(function(X,Fe){var Ne=X.height,q=X.offset,ht=X.children,Rt=X.prefixCls,ut=X.onInnerResize,Xt={},or={display:"flex",flexDirection:"column"};return q!==void 0&&(Xt={height:Ne,position:"relative",overflow:"hidden"},or=m(m({},or),{},{transform:"translateY(".concat(q,"px)"),position:"absolute",left:0,right:0,top:0})),O.createElement("div",{style:Xt},O.createElement(A.a,{onResize:function(ar){var dr=ar.offsetHeight;dr&&ut&&ut()}},O.createElement("div",{style:or,className:C()(f({},"".concat(Rt,"-holder-inner"),Rt)),ref:Fe},ht)))});c.displayName="Filler";var o=c,r=d("wgJM");function i(X){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},i(X)}function n(X,Fe,Ne){return Fe in X?Object.defineProperty(X,Fe,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):X[Fe]=Ne,X}function e(X,Fe){if(!(X instanceof Fe))throw new TypeError("Cannot call a class as a function")}function s(X,Fe){for(var Ne=0;Ne<Fe.length;Ne++){var q=Fe[Ne];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(X,q.key,q)}}function t(X,Fe,Ne){return Fe&&s(X.prototype,Fe),Ne&&s(X,Ne),Object.defineProperty(X,"prototype",{writable:!1}),X}function a(X,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Object.defineProperty(X,"prototype",{writable:!1}),Fe&&l(X,Fe)}function l(X,Fe){return l=Object.setPrototypeOf||function(q,ht){return q.__proto__=ht,q},l(X,Fe)}function u(X){var Fe=g();return function(){var q=v(X),ht;if(Fe){var Rt=v(this).constructor;ht=Reflect.construct(q,arguments,Rt)}else ht=q.apply(this,arguments);return h(this,ht)}}function h(X,Fe){if(Fe&&(i(Fe)==="object"||typeof Fe=="function"))return Fe;if(Fe!==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 g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(X){return!1}}function v(X){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(Ne){return Ne.__proto__||Object.getPrototypeOf(Ne)},v(X)}var y=20;function x(X){return"touches"in X?X.touches[0].pageY:X.pageY}var T=function(X){a(Ne,X);var Fe=u(Ne);function Ne(){var q;e(this,Ne);for(var ht=arguments.length,Rt=new Array(ht),ut=0;ut<ht;ut++)Rt[ut]=arguments[ut];return q=Fe.call.apply(Fe,[this].concat(Rt)),q.moveRaf=null,q.scrollbarRef=O.createRef(),q.thumbRef=O.createRef(),q.visibleTimeout=null,q.state={dragging:!1,pageY:null,startTop:null,visible:!1},q.delayHidden=function(){clearTimeout(q.visibleTimeout),q.setState({visible:!0}),q.visibleTimeout=setTimeout(function(){q.setState({visible:!1})},2e3)},q.onScrollbarTouchStart=function(Xt){Xt.preventDefault()},q.onContainerMouseDown=function(Xt){Xt.stopPropagation(),Xt.preventDefault()},q.patchEvents=function(){window.addEventListener("mousemove",q.onMouseMove),window.addEventListener("mouseup",q.onMouseUp),q.thumbRef.current.addEventListener("touchmove",q.onMouseMove),q.thumbRef.current.addEventListener("touchend",q.onMouseUp)},q.removeEvents=function(){var Xt;window.removeEventListener("mousemove",q.onMouseMove),window.removeEventListener("mouseup",q.onMouseUp),(Xt=q.scrollbarRef.current)===null||Xt===void 0||Xt.removeEventListener("touchstart",q.onScrollbarTouchStart),q.thumbRef.current&&(q.thumbRef.current.removeEventListener("touchstart",q.onMouseDown),q.thumbRef.current.removeEventListener("touchmove",q.onMouseMove),q.thumbRef.current.removeEventListener("touchend",q.onMouseUp)),r.a.cancel(q.moveRaf)},q.onMouseDown=function(Xt){var or=q.props.onStartMove;q.setState({dragging:!0,pageY:x(Xt),startTop:q.getTop()}),or(),q.patchEvents(),Xt.stopPropagation(),Xt.preventDefault()},q.onMouseMove=function(Xt){var or=q.state,Zr=or.dragging,ar=or.pageY,dr=or.startTop,er=q.props.onScroll;if(r.a.cancel(q.moveRaf),Zr){var Ht=x(Xt)-ar,dt=dr+Ht,Hr=q.getEnableScrollRange(),dn=q.getEnableHeightRange(),Nn=dn?dt/dn:0,Vn=Math.ceil(Nn*Hr);q.moveRaf=Object(r.a)(function(){er(Vn)})}},q.onMouseUp=function(){var Xt=q.props.onStopMove;q.setState({dragging:!1}),Xt(),q.removeEvents()},q.getSpinHeight=function(){var Xt=q.props,or=Xt.height,Zr=Xt.count,ar=or/Zr*10;return ar=Math.max(ar,y),ar=Math.min(ar,or/2),Math.floor(ar)},q.getEnableScrollRange=function(){var Xt=q.props,or=Xt.scrollHeight,Zr=Xt.height;return or-Zr||0},q.getEnableHeightRange=function(){var Xt=q.props.height,or=q.getSpinHeight();return Xt-or||0},q.getTop=function(){var Xt=q.props.scrollTop,or=q.getEnableScrollRange(),Zr=q.getEnableHeightRange();if(Xt===0||or===0)return 0;var ar=Xt/or;return ar*Zr},q.showScroll=function(){var Xt=q.props,or=Xt.height,Zr=Xt.scrollHeight;return Zr>or},q}return t(Ne,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(ht){ht.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var ht=this.state,Rt=ht.dragging,ut=ht.visible,Xt=this.props.prefixCls,or=this.getSpinHeight(),Zr=this.getTop(),ar=this.showScroll(),dr=ar&&ut;return O.createElement("div",{ref:this.scrollbarRef,className:C()("".concat(Xt,"-scrollbar"),n({},"".concat(Xt,"-scrollbar-show"),ar)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:dr?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},O.createElement("div",{ref:this.thumbRef,className:C()("".concat(Xt,"-scrollbar-thumb"),n({},"".concat(Xt,"-scrollbar-thumb-moving"),Rt)),style:{width:"100%",height:or,top:Zr,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),Ne}(O.Component);function S(X){var Fe=X.children,Ne=X.setRef,q=O.useCallback(function(ht){Ne(ht)},[]);return O.cloneElement(Fe,{ref:q})}function b(X,Fe,Ne,q,ht,Rt){var ut=Rt.getKey;return X.slice(Fe,Ne+1).map(function(Xt,or){var Zr=Fe+or,ar=ht(Xt,Zr,{}),dr=ut(Xt);return O.createElement(S,{key:dr,setRef:function(Ht){return q(Xt,Ht)}},ar)})}var _=d("m+aA");function I(X,Fe){if(!(X instanceof Fe))throw new TypeError("Cannot call a class as a function")}function L(X,Fe){for(var Ne=0;Ne<Fe.length;Ne++){var q=Fe[Ne];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(X,q.key,q)}}function N(X,Fe,Ne){return Fe&&L(X.prototype,Fe),Ne&&L(X,Ne),Object.defineProperty(X,"prototype",{writable:!1}),X}var D=function(){function X(){I(this,X),this.maps=void 0,this.maps=Object.create(null)}return N(X,[{key:"set",value:function(Ne,q){this.maps[Ne]=q}},{key:"get",value:function(Ne){return this.maps[Ne]}}]),X}(),R=D;function P(X,Fe){return W(X)||j(X,Fe)||U(X,Fe)||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,Fe){if(!X)return;if(typeof X=="string")return F(X,Fe);var Ne=Object.prototype.toString.call(X).slice(8,-1);if(Ne==="Object"&&X.constructor&&(Ne=X.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(X);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return F(X,Fe)}function F(X,Fe){(Fe==null||Fe>X.length)&&(Fe=X.length);for(var Ne=0,q=new Array(Fe);Ne<Fe;Ne++)q[Ne]=X[Ne];return q}function j(X,Fe){var Ne=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ne==null)return;var q=[],ht=!0,Rt=!1,ut,Xt;try{for(Ne=Ne.call(X);!(ht=(ut=Ne.next()).done)&&!(q.push(ut.value),Fe&&q.length===Fe);ht=!0);}catch(or){Rt=!0,Xt=or}finally{try{!ht&&Ne.return!=null&&Ne.return()}finally{if(Rt)throw Xt}}return q}function W(X){if(Array.isArray(X))return X}function V(X,Fe,Ne){var q=O.useState(0),ht=P(q,2),Rt=ht[0],ut=ht[1],Xt=Object(O.useRef)(new Map),or=Object(O.useRef)(new R),Zr=Object(O.useRef)();function ar(){r.a.cancel(Zr.current)}function dr(){ar(),Zr.current=Object(r.a)(function(){Xt.current.forEach(function(Ht,dt){if(Ht&&Ht.offsetParent){var Hr=Object(_.a)(Ht),dn=Hr.offsetHeight;or.current.get(dt)!==dn&&or.current.set(dt,Hr.offsetHeight)}}),ut(function(Ht){return Ht+1})})}function er(Ht,dt){var Hr=X(Ht),dn=Xt.current.get(Hr);dt?(Xt.current.set(Hr,dt),dr()):Xt.current.delete(Hr),!dn!==!dt&&(dt?Fe==null||Fe(Ht):Ne==null||Ne(Ht))}return Object(O.useEffect)(function(){return ar},[]),[er,dr,or.current,Rt]}function z(X){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},z(X)}function Y(X,Fe,Ne,q,ht,Rt,ut,Xt){var or=O.useRef();return function(Zr){if(Zr==null){Xt();return}if(r.a.cancel(or.current),typeof Zr=="number")ut(Zr);else if(Zr&&z(Zr)==="object"){var ar,dr=Zr.align;"index"in Zr?ar=Zr.index:ar=Fe.findIndex(function(Hr){return ht(Hr)===Zr.key});var er=Zr.offset,Ht=er===void 0?0:er,dt=function Hr(dn,Nn){if(dn<0||!X.current)return;var Vn=X.current.clientHeight,gi=!1,bn=Nn;if(Vn){for(var Mn=Nn||dr,jt=0,St=0,Ie=0,_e=Math.min(Fe.length,ar),Le=0;Le<=_e;Le+=1){var Ze=ht(Fe[Le]);St=jt;var it=Ne.get(Ze);Ie=St+(it===void 0?q:it),jt=Ie,Le===ar&&it===void 0&&(gi=!0)}var ft=null;switch(Mn){case"top":ft=St-Ht;break;case"bottom":ft=Ie-Vn+Ht;break;default:{var Nt=X.current.scrollTop,Ar=Nt+Vn;St<Nt?bn="top":Ie>Ar&&(bn="bottom")}}ft!==null&&ft!==X.current.scrollTop&&ut(ft)}or.current=Object(r.a)(function(){gi&&Rt(),Hr(dn-1,bn)})};dt(3)}}}function $(X,Fe,Ne,q){var ht=Ne-X,Rt=Fe-Ne,ut=Math.min(ht,Rt)*2;if(q<=ut){var Xt=Math.floor(q/2);return q%2?Ne+Xt+1:Ne-Xt}return ht>Rt?Ne-(q-Rt):Ne+(q-ht)}function ue(X,Fe,Ne){var q=X.length,ht=Fe.length,Rt,ut;if(q===0&&ht===0)return null;q<ht?(Rt=X,ut=Fe):(Rt=Fe,ut=X);var Xt={__EMPTY_ITEM__:!0};function or(dt){return dt!==void 0?Ne(dt):Xt}for(var Zr=null,ar=Math.abs(q-ht)!==1,dr=0;dr<ut.length;dr+=1){var er=or(Rt[dr]),Ht=or(ut[dr]);if(er!==Ht){Zr=dr,ar=ar||er!==or(ut[dr+1]);break}}return Zr===null?null:{index:Zr,multiple:ar}}function ne(X,Fe){return pe(X)||He(X,Fe)||Oe(X,Fe)||ge()}function ge(){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 Oe(X,Fe){if(!X)return;if(typeof X=="string")return De(X,Fe);var Ne=Object.prototype.toString.call(X).slice(8,-1);if(Ne==="Object"&&X.constructor&&(Ne=X.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(X);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return De(X,Fe)}function De(X,Fe){(Fe==null||Fe>X.length)&&(Fe=X.length);for(var Ne=0,q=new Array(Fe);Ne<Fe;Ne++)q[Ne]=X[Ne];return q}function He(X,Fe){var Ne=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ne==null)return;var q=[],ht=!0,Rt=!1,ut,Xt;try{for(Ne=Ne.call(X);!(ht=(ut=Ne.next()).done)&&!(q.push(ut.value),Fe&&q.length===Fe);ht=!0);}catch(or){Rt=!0,Xt=or}finally{try{!ht&&Ne.return!=null&&Ne.return()}finally{if(Rt)throw Xt}}return q}function pe(X){if(Array.isArray(X))return X}function Ue(X,Fe,Ne){var q=O.useState(X),ht=ne(q,2),Rt=ht[0],ut=ht[1],Xt=O.useState(null),or=ne(Xt,2),Zr=or[0],ar=or[1];return O.useEffect(function(){var dr=ue(Rt||[],X||[],Fe);(dr==null?void 0:dr.index)!==void 0&&(Ne==null||Ne(dr.index),ar(X[dr.index])),ut(X)},[X]),[Zr]}function oe(X){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},oe(X)}var ee=(typeof navigator=="undefined"?"undefined":oe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Xe=ee,se=function(X,Fe){var Ne=Object(O.useRef)(!1),q=Object(O.useRef)(null);function ht(){clearTimeout(q.current),Ne.current=!0,q.current=setTimeout(function(){Ne.current=!1},50)}var Rt=Object(O.useRef)({top:X,bottom:Fe});return Rt.current.top=X,Rt.current.bottom=Fe,function(ut){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,or=ut<0&&Rt.current.top||ut>0&&Rt.current.bottom;return Xt&&or?(clearTimeout(q.current),Ne.current=!1):(!or||Ne.current)&&ht(),!Ne.current&&or}};function Q(X,Fe,Ne,q){var ht=Object(O.useRef)(0),Rt=Object(O.useRef)(null),ut=Object(O.useRef)(null),Xt=Object(O.useRef)(!1),or=se(Fe,Ne);function Zr(dr){if(!X)return;r.a.cancel(Rt.current);var er=dr.deltaY;if(ht.current+=er,ut.current=er,or(er))return;Xe||dr.preventDefault(),Rt.current=Object(r.a)(function(){var Ht=Xt.current?10:1;q(ht.current*Ht),ht.current=0})}function ar(dr){if(!X)return;Xt.current=dr.detail===ut.current}return[Zr,ar]}var G=d("TNol"),J=14/15;function ve(X,Fe,Ne){var q=Object(O.useRef)(!1),ht=Object(O.useRef)(0),Rt=Object(O.useRef)(null),ut=Object(O.useRef)(null),Xt,or=function(er){if(q.current){var Ht=Math.ceil(er.touches[0].pageY),dt=ht.current-Ht;ht.current=Ht,Ne(dt)&&er.preventDefault(),clearInterval(ut.current),ut.current=setInterval(function(){dt*=J,(!Ne(dt,!0)||Math.abs(dt)<=.1)&&clearInterval(ut.current)},16)}},Zr=function(){q.current=!1,Xt()},ar=function(er){Xt(),er.touches.length===1&&!q.current&&(q.current=!0,ht.current=Math.ceil(er.touches[0].pageY),Rt.current=er.target,Rt.current.addEventListener("touchmove",or),Rt.current.addEventListener("touchend",Zr))};Xt=function(){Rt.current&&(Rt.current.removeEventListener("touchmove",or),Rt.current.removeEventListener("touchend",Zr))},Object(G.a)(function(){return X&&Fe.current.addEventListener("touchstart",ar),function(){var dr;(dr=Fe.current)===null||dr===void 0||dr.removeEventListener("touchstart",ar),Xt(),clearInterval(ut.current)}},[X])}var de=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Ce(){return Ce=Object.assign||function(X){for(var Fe=1;Fe<arguments.length;Fe++){var Ne=arguments[Fe];for(var q in Ne)Object.prototype.hasOwnProperty.call(Ne,q)&&(X[q]=Ne[q])}return X},Ce.apply(this,arguments)}function Ee(X,Fe){var Ne=Object.keys(X);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(X);Fe&&(q=q.filter(function(ht){return Object.getOwnPropertyDescriptor(X,ht).enumerable})),Ne.push.apply(Ne,q)}return Ne}function le(X){for(var Fe=1;Fe<arguments.length;Fe++){var Ne=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?Ee(Object(Ne),!0).forEach(function(q){fe(X,q,Ne[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(Ne)):Ee(Object(Ne)).forEach(function(q){Object.defineProperty(X,q,Object.getOwnPropertyDescriptor(Ne,q))})}return X}function fe(X,Fe,Ne){return Fe in X?Object.defineProperty(X,Fe,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):X[Fe]=Ne,X}function xe(X,Fe){return et(X)||Te(X,Fe)||ot(X,Fe)||Qe()}function Qe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ot(X,Fe){if(!X)return;if(typeof X=="string")return Je(X,Fe);var Ne=Object.prototype.toString.call(X).slice(8,-1);if(Ne==="Object"&&X.constructor&&(Ne=X.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(X);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return Je(X,Fe)}function Je(X,Fe){(Fe==null||Fe>X.length)&&(Fe=X.length);for(var Ne=0,q=new Array(Fe);Ne<Fe;Ne++)q[Ne]=X[Ne];return q}function Te(X,Fe){var Ne=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ne==null)return;var q=[],ht=!0,Rt=!1,ut,Xt;try{for(Ne=Ne.call(X);!(ht=(ut=Ne.next()).done)&&!(q.push(ut.value),Fe&&q.length===Fe);ht=!0);}catch(or){Rt=!0,Xt=or}finally{try{!ht&&Ne.return!=null&&Ne.return()}finally{if(Rt)throw Xt}}return q}function et(X){if(Array.isArray(X))return X}function ze(X,Fe){if(X==null)return{};var Ne=nt(X,Fe),q,ht;if(Object.getOwnPropertySymbols){var Rt=Object.getOwnPropertySymbols(X);for(ht=0;ht<Rt.length;ht++){if(q=Rt[ht],Fe.indexOf(q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(X,q))continue;Ne[q]=X[q]}}return Ne}function nt(X,Fe){if(X==null)return{};var Ne={},q=Object.keys(X),ht,Rt;for(Rt=0;Rt<q.length;Rt++){if(ht=q[Rt],Fe.indexOf(ht)>=0)continue;Ne[ht]=X[ht]}return Ne}var Ot=[],Ct={overflowY:"auto",overflowAnchor:"none"};function Tt(X,Fe){var Ne=X.prefixCls,q=Ne===void 0?"rc-virtual-list":Ne,ht=X.className,Rt=X.height,ut=X.itemHeight,Xt=X.fullHeight,or=Xt===void 0?!0:Xt,Zr=X.style,ar=X.data,dr=X.children,er=X.itemKey,Ht=X.virtual,dt=X.component,Hr=dt===void 0?"div":dt,dn=X.onScroll,Nn=X.onVisibleChange,Vn=ze(X,de),gi=!!(Ht!==!1&&Rt&&ut),bn=gi&&ar&&ut*ar.length>Rt,Mn=Object(O.useState)(0),jt=xe(Mn,2),St=jt[0],Ie=jt[1],_e=Object(O.useState)(!1),Le=xe(_e,2),Ze=Le[0],it=Le[1],ft=C()(q,ht),Nt=ar||Ot,Ar=Object(O.useRef)(),Mr=Object(O.useRef)(),un=Object(O.useRef)(),Mt=O.useCallback(function(pn){return typeof er=="function"?er(pn):pn==null?void 0:pn[er]},[er]),at={getKey:Mt};function lt(pn){Ie(function(fr){var mn;typeof pn=="function"?mn=pn(fr):mn=pn;var en=Se(mn);return Ar.current.scrollTop=en,en})}var rr=Object(O.useRef)({start:0,end:Nt.length}),Bt=Object(O.useRef)(),_t=Ue(Nt,Mt),Kt=xe(_t,1),wt=Kt[0];Bt.current=wt;var Ut=V(Mt,null,null),Sr=xe(Ut,4),hr=Sr[0],gr=Sr[1],Jr=Sr[2],$r=Sr[3],Pn=O.useMemo(function(){if(!gi)return{scrollHeight:void 0,start:0,end:Nt.length-1,offset:void 0};if(!bn){var pn;return{scrollHeight:((pn=Mr.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:Nt.length-1,offset:void 0}}for(var fr=0,mn,en,kr,Gn=Nt.length,di=0;di<Gn;di+=1){var _i=Nt[di],Br=Mt(_i),sn=Jr.get(Br),Sn=fr+(sn===void 0?ut:sn);Sn>=St&&mn===void 0&&(mn=di,en=fr),Sn>St+Rt&&kr===void 0&&(kr=di),fr=Sn}return mn===void 0&&(mn=0,en=0),kr===void 0&&(kr=Nt.length-1),kr=Math.min(kr+1,Nt.length),{scrollHeight:fr,start:mn,end:kr,offset:en}},[bn,gi,St,Nt,$r,Rt]),Dn=Pn.scrollHeight,Zn=Pn.start,li=Pn.end,Ai=Pn.offset;rr.current.start=Zn,rr.current.end=li;var Ii=Dn-Rt,$e=Object(O.useRef)(Ii);$e.current=Ii;function Se(pn){var fr=pn;return Number.isNaN($e.current)||(fr=Math.min(fr,$e.current)),fr=Math.max(fr,0),fr}var Re=St<=0,je=St>=Ii,Ye=se(Re,je);function Ve(pn){var fr=pn;lt(fr)}function qe(pn){var fr=pn.currentTarget.scrollTop;fr!==St&<(fr),dn==null||dn(pn)}var xt=Q(gi,Re,je,function(pn){lt(function(fr){var mn=fr+pn;return mn})}),ct=xe(xt,2),Jt=ct[0],Rr=ct[1];ve(gi,Ar,function(pn,fr){return Ye(pn,fr)?!1:(Jt({preventDefault:function(){},deltaY:pn}),!0)}),Object(G.a)(function(){function pn(fr){gi&&fr.preventDefault()}return Ar.current.addEventListener("wheel",Jt),Ar.current.addEventListener("DOMMouseScroll",Rr),Ar.current.addEventListener("MozMousePixelScroll",pn),function(){Ar.current&&(Ar.current.removeEventListener("wheel",Jt),Ar.current.removeEventListener("DOMMouseScroll",Rr),Ar.current.removeEventListener("MozMousePixelScroll",pn))}},[gi]);var Ir=Y(Ar,Nt,Jr,ut,Mt,gr,lt,function(){var pn;(pn=un.current)===null||pn===void 0||pn.delayHidden()});O.useImperativeHandle(Fe,function(){return{scrollTo:Ir}}),Object(G.a)(function(){if(Nn){var pn=Nt.slice(Zn,li+1);Nn(pn,Nt)}},[Zn,li,Nt]);var Xr=b(Nt,Zn,li,hr,dr,at),qt=null;return Rt&&(qt=le(fe({},or?"height":"maxHeight",Rt),Ct),gi&&(qt.overflowY="hidden",Ze&&(qt.pointerEvents="none"))),O.createElement("div",Ce({style:le(le({},Zr),{},{position:"relative"}),className:ft},Vn),O.createElement(Hr,{className:"".concat(q,"-holder"),style:qt,ref:Ar,onScroll:qe},O.createElement(o,{prefixCls:q,height:Dn,offset:Ai,onInnerResize:gr,ref:Mr},Xr)),gi&&O.createElement(T,{ref:un,prefixCls:q,scrollTop:St,height:Rt,scrollHeight:Dn,count:Nt.length,onScroll:Ve,onStartMove:function(){it(!0)},onStopMove:function(){it(!1)}}))}var Dt=O.forwardRef(Tt);Dt.displayName="List";var Be=Dt,ie=B.a=Be},"+rIm":function(H,B,d){var O=d("bYtY"),E=O.retrieve,C=O.defaults,A=O.extend,w=O.each,m=d("7aKB"),f=d("IwbS"),c=d("Qxkt"),o=d("OELB"),r=o.isRadianAroundZero,i=o.remRadian,n=d("oVpE"),e=n.createSymbol,s=d("Fofx"),t=d("QBsz"),a=t.applyTransform,l=d("aX7z"),u=l.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 F=new f.Group({position:U.position.slice(),rotation:U.rotation});F.updateTransform(),this._transform=F.transform,this._dumbGroup=F};p.prototype={constructor:p,hasBuilder:function(M){return!!g[M]},add:function(M){g[M].call(this)},getGroup:function(){return this.group}};var g={axisLine:function(){var M=this.opt,U=this.axisModel;if(!U.get("axisLine.show"))return;var F=this.axisModel.axis.getExtent(),j=this._transform,W=[F[0],0],V=[F[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 Y=U.get("axisLine.symbol"),$=U.get("axisLine.symbolSize"),ue=U.get("axisLine.symbolOffset")||0;if(typeof ue=="number"&&(ue=[ue,ue]),Y!=null){typeof Y=="string"&&(Y=[Y,Y]),(typeof $=="string"||typeof $=="number")&&($=[$,$]);var ne=$[0],ge=$[1];w([{rotate:M.rotation+Math.PI/2,offset:ue[0],r:0},{rotate:M.rotation-Math.PI/2,offset:ue[1],r:Math.sqrt((W[0]-V[0])*(W[0]-V[0])+(W[1]-V[1])*(W[1]-V[1]))}],function(Oe,De){if(Y[De]!=="none"&&Y[De]!=null){var He=e(Y[De],-ne/2,-ge/2,ne,ge,z.stroke,!0),pe=Oe.r+Oe.offset,Ue=[W[0]+pe*Math.cos(M.rotation),W[1]-pe*Math.sin(M.rotation)];He.attr({rotation:Oe.rotate,position:Ue,silent:!0,z2:11}),this.group.add(He)}},this)}},axisTickLabel:function(){var M=this.axisModel,U=this.opt,F=N(this,M,U),j=R(this,M,U);S(M,j,F),D(this,M,U)},axisName:function(){var M=this.opt,U=this.axisModel,F=E(M.axisName,U.get("name"));if(!F)return;var j=U.get("nameLocation"),W=M.nameDirection,V=U.getModel("nameTextStyle"),z=U.get("nameGap")||0,Y=this.axisModel.axis.getExtent(),$=Y[0]>Y[1]?-1:1,ue=[j==="start"?Y[0]-$*z:j==="end"?Y[1]+$*z:(Y[0]+Y[1])/2,I(j)?M.labelOffset+W*z:0],ne,ge=U.get("nameRotate");ge!=null&&(ge=ge*h/180);var Oe;I(j)?ne=y(M.rotation,ge!=null?ge:M.rotation,W):(ne=x(M,j,ge||0,Y),Oe=M.axisNameAvailableWidth,Oe!=null&&(Oe=Math.abs(Oe/Math.sin(ne.rotation)),!isFinite(Oe)&&(Oe=null)));var De=V.getFont(),He=U.get("nameTruncate",!0)||{},pe=He.ellipsis,Ue=E(M.nameTruncateMaxWidth,He.maxWidth,Oe),oe=pe!=null&&Ue!=null?m.truncateText(F,Ue,De,pe,{minChar:2,placeholder:He.placeholder}):F,ee=U.get("tooltip",!0),Xe=U.mainType,se={componentType:Xe,name:F,$vars:["name"]};se[Xe+"Index"]=U.componentIndex;var Q=new f.Text({anid:"name",__fullText:F,__truncatedText:oe,position:ue,rotation:ne.rotation,silent:T(U),z2:1,tooltip:ee&&ee.show?A({content:F,formatter:function(){return F},formatterParams:se},ee):null});f.setTextStyle(Q.style,V,{text:oe,textFont:De,textFill:V.getTextColor()||U.get("axisLine.lineStyle.color"),textAlign:V.get("align")||ne.textAlign,textVerticalAlign:V.get("verticalAlign")||ne.textVerticalAlign}),U.get("triggerEvent")&&(Q.eventData=v(U),Q.eventData.targetType="axisName",Q.eventData.name=F),this._dumbGroup.add(Q),Q.updateTransform(),this.group.add(Q),Q.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,F){var j=i(U-M),W,V;return r(j)?(V=F>0?"top":"bottom",W="center"):r(j-h)?(V=F>0?"bottom":"top",W="center"):(V="middle",j>0&&j<h?W=F>0?"right":"left":W=F>0?"left":"right"),{rotation:j,textAlign:W,textVerticalAlign:V}};function x(M,U,F,j){var W=i(F-M.rotation),V,z,Y=j[0]>j[1],$=U==="start"&&!Y||U!=="start"&&Y;return r(W-h/2)?(z=$?"bottom":"top",V="center"):r(W-h*1.5)?(z=$?"top":"bottom",V="center"):(z="middle",W<h*1.5&&W>h/2?V=$?"left":"right":V=$?"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 S(M,U,F){if(u(M.axis))return;var j=M.get("axisLabel.showMinLabel"),W=M.get("axisLabel.showMaxLabel");U=U||[],F=F||[];var V=U[0],z=U[1],Y=U[U.length-1],$=U[U.length-2],ue=F[0],ne=F[1],ge=F[F.length-1],Oe=F[F.length-2];j===!1?(b(V),b(ue)):_(V,z)&&(j?(b(z),b(ne)):(b(V),b(ue))),W===!1?(b(Y),b(ge)):_($,Y)&&(W?(b($),b(Oe)):(b(Y),b(ge)))}function b(M){M&&(M.ignore=!0)}function _(M,U,F){var j=M&&M.getBoundingRect().clone(),W=U&&U.getBoundingRect().clone();if(!j||!W)return;var V=s.identity([]);return s.rotate(V,V,-M.rotation),j.applyTransform(s.mul([],V,M.getLocalTransform())),W.applyTransform(s.mul([],V,U.getLocalTransform())),j.intersect(W)}function I(M){return M==="middle"||M==="center"}function L(M,U,F,j,W){for(var V=[],z=[],Y=[],$=0;$<M.length;$++){var ue=M[$].coord;z[0]=ue,z[1]=0,Y[0]=ue,Y[1]=F,U&&(a(z,z,U),a(Y,Y,U));var ne=new f.Line({anid:W+"_"+M[$].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:Y[0],y2:Y[1]},style:j,z2:2,silent:!0});V.push(ne)}return V}function N(M,U,F){var j=U.axis,W=U.getModel("axisTick");if(!W.get("show")||j.scale.isBlank())return;for(var V=W.getModel("lineStyle"),z=F.tickDirection*W.get("length"),Y=j.getTicksCoords(),$=L(Y,M._transform,z,C(V.getLineStyle(),{stroke:U.get("axisLine.lineStyle.color")}),"ticks"),ue=0;ue<$.length;ue++)M.group.add($[ue]);return $}function D(M,U,F){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"),Y=F.tickDirection*W.get("length"),$=C(z.getLineStyle(),C(U.getModel("axisTick").getLineStyle(),{stroke:U.get("axisLine.lineStyle.color")})),ue=0;ue<V.length;ue++)for(var ne=L(V[ue],M._transform,Y,$,"minorticks_"+ue),ge=0;ge<ne.length;ge++)M.group.add(ne[ge])}function R(M,U,F){var j=U.axis,W=E(F.axisLabelShow,U.get("axisLabel.show"));if(!W||j.scale.isBlank())return;var V=U.getModel("axisLabel"),z=V.get("margin"),Y=j.getViewLabels(),$=(E(F.labelRotate,V.get("rotate"))||0)*h/180,ue=y(F.rotation,$,F.labelDirection),ne=U.getCategories&&U.getCategories(!0),ge=[],Oe=T(U),De=U.get("triggerEvent");return w(Y,function(He,pe){var Ue=He.tickValue,oe=He.formattedLabel,ee=He.rawLabel,Xe=V;ne&&ne[Ue]&&ne[Ue].textStyle&&(Xe=new c(ne[Ue].textStyle,V,U.ecModel));var se=Xe.getTextColor()||U.get("axisLine.lineStyle.color"),Q=j.dataToCoord(Ue),G=[Q,F.labelOffset+F.labelDirection*z],J=new f.Text({anid:"label_"+Ue,position:G,rotation:ue.rotation,silent:Oe,z2:10});f.setTextStyle(J.style,Xe,{text:oe,textAlign:Xe.getShallow("align",!0)||ue.textAlign,textVerticalAlign:Xe.getShallow("verticalAlign",!0)||Xe.getShallow("baseline",!0)||ue.textVerticalAlign,textFill:typeof se=="function"?se(j.type==="category"?ee:j.type==="value"?Ue+"":Ue,pe):se}),De&&(J.eventData=v(U),J.eventData.targetType="axisLabel",J.eventData.value=ee),M._dumbGroup.add(J),J.updateTransform(),ge.push(J),M.group.add(J),J.decomposeTransform()}),ge}var P=p;H.exports=P},"+wW9":function(H,B,d){var O=d("bYtY"),E=O.each,C=O.isArray,A=O.isObject,w=d("JuEJ"),m=d("4NO4"),f=m.normalizeToArray;function c(s,t){t=t.split(",");for(var a=s,l=0;l<t.length&&!(a=a&&a[t[l]],a==null);l++);return a}function o(s,t,a,l){t=t.split(",");for(var u=s,h,p=0;p<t.length-1;p++)h=t[p],u[h]==null&&(u[h]={}),u=u[h];(l||u[t[p]]==null)&&(u[t[p]]=a)}function r(s){E(i,function(t){t[0]in s&&!(t[1]in s)&&(s[t[1]]=s[t[0]])})}var i=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(s,t){w(s,t),s.series=f(s.series),E(s.series,function(a){if(!A(a))return;var l=a.type;if(l==="line")a.clipOverflow!=null&&(a.clip=a.clipOverflow);else if(l==="pie"||l==="gauge")a.clockWise!=null&&(a.clockwise=a.clockWise);else if(l==="gauge"){var u=c(a,"pointer.color");u!=null&&o(a,"itemStyle.color",u)}r(a)}),s.dataRange&&(s.visualMap=s.dataRange),E(n,function(a){var l=s[a];l&&(C(l)||(l=[l]),E(l,function(u){r(u)}))})}H.exports=e},"/IIm":function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("H6uX"),w=d("IwbS"),m=d("pP6R"),f=d("gPAo"),c=C.curry,o=C.each,r=C.map,i=Math.min,n=Math.max,e=Math.pow,s=1e4,t=6,a=6,l="globalPan",u={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},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},g=0;function v(le){A.call(this),this._zr=le,this.group=new w.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+g++,this._handlers={},o(G,function(fe,xe){this._handlers[xe]=C.bind(fe,this)},this)}v.prototype={constructor:v,enableBrush:function(le){return this._brushType&&x(this),le.brushType&&y(this,le),this},setPanels:function(le){if(le&&le.length){var fe=this._panels={};C.each(le,function(xe){fe[xe.panelId]=C.clone(xe)})}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(Ot){return C.merge(C.clone(p),Ot,!0)});var fe="\0-brush-index-",xe=this._covers,Qe=this._covers=[],ot=this,Je=this._creatingCover;return new f(xe,le,et,Te).add(ze).update(ze).remove(nt).execute(),this;function Te(Ot,Ct){return(Ot.id!=null?Ot.id:fe+Ct)+"-"+Ot.brushType}function et(Ot,Ct){return Te(Ot.__brushOption,Ct)}function ze(Ot,Ct){var Tt=le[Ot];if(Ct!=null&&xe[Ct]===Je)Qe[Ot]=xe[Ct];else{var Dt=Qe[Ot]=Ct!=null?(xe[Ct].__brushOption=Tt,xe[Ct]):_(ot,b(ot,Tt));N(ot,Dt)}}function nt(Ot){xe[Ot]!==Je&&ot.group.remove(xe[Ot])}},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 xe=le._zr;le._enableGlobalPan||m.take(xe,l,le._uid),T(xe,le._handlers),le._brushType=fe.brushType,le._brushOption=C.merge(C.clone(p),fe,!0)}function x(le){var fe=le._zr;m.release(fe,l,le._uid),S(fe,le._handlers),le._brushType=le._brushOption=null}function T(le,fe){o(fe,function(xe,Qe){le.on(Qe,xe)})}function S(le,fe){o(fe,function(xe,Qe){le.off(Qe,xe)})}function b(le,fe){var xe=de[fe.brushType].createCover(le,fe);return xe.__brushOption=fe,L(xe,fe),le.group.add(xe),xe}function _(le,fe){var xe=D(fe);return xe.endCreating&&(xe.endCreating(le,fe),L(fe,fe.__brushOption)),fe}function I(le,fe){var xe=fe.__brushOption;D(fe).updateCoverShape(le,fe,xe.range,xe)}function L(le,fe){var xe=fe.z;xe==null&&(xe=s),le.traverse(function(Qe){Qe.z=xe,Qe.z2=xe})}function N(le,fe){D(fe).updateCommon(le,fe),I(le,fe)}function D(le){return de[le.__brushOption.brushType]}function R(le,fe,xe){var Qe=le._panels;if(!Qe)return!0;var ot,Je=le._transform;return o(Qe,function(Te){Te.isTargetByCursor(fe,xe,Je)&&(ot=Te)}),ot}function P(le,fe){var xe=le._panels;if(!xe)return!0;var Qe=fe.__brushOption.panelId;return Qe!=null?xe[Qe]:!0}function M(le){var fe=le._covers,xe=fe.length;return o(fe,function(Qe){le.group.remove(Qe)},le),fe.length=0,!!xe}function U(le,fe){var xe=r(le._covers,function(Qe){var ot=Qe.__brushOption,Je=C.clone(ot.range);return{brushType:ot.brushType,panelId:ot.panelId,range:Je}});le.trigger("brush",xe,{isEnd:!!fe.isEnd,removeOnClick:!!fe.removeOnClick})}function F(le){var fe=le._track;if(!fe.length)return!1;var xe=fe[fe.length-1],Qe=fe[0],ot=xe[0]-Qe[0],Je=xe[1]-Qe[1],Te=e(ot*ot+Je*Je,.5);return Te>t}function j(le){var fe=le.length-1;return fe<0&&(fe=0),[le[0],le[fe]]}function W(le,fe,xe,Qe){var ot=new w.Group;return ot.add(new w.Rect({name:"main",style:$(xe),silent:!0,draggable:!0,cursor:"move",drift:c(le,fe,ot,"nswe"),ondragend:c(U,fe,{isEnd:!0})})),o(Qe,function(Je){ot.add(new w.Rect({name:Je,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(le,fe,ot,Je),ondragend:c(U,fe,{isEnd:!0})}))}),ot}function V(le,fe,xe,Qe){var ot=Qe.brushStyle.lineWidth||0,Je=n(ot,a),Te=xe[0][0],et=xe[1][0],ze=Te-ot/2,nt=et-ot/2,Ot=xe[0][1],Ct=xe[1][1],Tt=Ot-Je+ot/2,Dt=Ct-Je+ot/2,Be=Ot-Te,ie=Ct-et,X=Be+ot,Fe=ie+ot;Y(le,fe,"main",Te,et,Be,ie),Qe.transformable&&(Y(le,fe,"w",ze,nt,Je,Fe),Y(le,fe,"e",Tt,nt,Je,Fe),Y(le,fe,"n",ze,nt,X,Je),Y(le,fe,"s",ze,Dt,X,Je),Y(le,fe,"nw",ze,nt,Je,Je),Y(le,fe,"ne",Tt,nt,Je,Je),Y(le,fe,"sw",ze,Dt,Je,Je),Y(le,fe,"se",Tt,Dt,Je,Je))}function z(le,fe){var xe=fe.__brushOption,Qe=xe.transformable,ot=fe.childAt(0);ot.useStyle($(xe)),ot.attr({silent:!Qe,cursor:Qe?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(Je){var Te=fe.childOfName(Je),et=ge(le,Je);Te&&Te.attr({silent:!Qe,invisible:!Qe,cursor:Qe?h[et]+"-resize":null})})}function Y(le,fe,xe,Qe,ot,Je,Te){var et=fe.childOfName(xe);et&&et.setShape(Ue(pe(le,fe,[[Qe,ot],[Qe+Je,ot+Te]])))}function $(le){return C.defaults({strokeNoScale:!0},le.brushStyle)}function ue(le,fe,xe,Qe){var ot=[i(le,xe),i(fe,Qe)],Je=[n(le,xe),n(fe,Qe)];return[[ot[0],Je[0]],[ot[1],Je[1]]]}function ne(le){return w.getTransform(le.group)}function ge(le,fe){if(fe.length>1){fe=fe.split("");var xe=[ge(le,fe[0]),ge(le,fe[1])];return(xe[0]==="e"||xe[0]==="w")&&xe.reverse(),xe.join("")}else{var Qe={w:"left",e:"right",n:"top",s:"bottom"},ot={left:"w",right:"e",top:"n",bottom:"s"},xe=w.transformDirection(Qe[fe],ne(le));return ot[xe]}}function Oe(le,fe,xe,Qe,ot,Je,Te,et){var ze=Qe.__brushOption,nt=le(ze.range),Ot=He(xe,Je,Te);o(ot.split(""),function(Ct){var Tt=u[Ct];nt[Tt[0]][Tt[1]]+=Ot[Tt[0]]}),ze.range=fe(ue(nt[0][0],nt[1][0],nt[0][1],nt[1][1])),N(xe,Qe),U(xe,{isEnd:!1})}function De(le,fe,xe,Qe,ot){var Je=fe.__brushOption.range,Te=He(le,xe,Qe);o(Je,function(et){et[0]+=Te[0],et[1]+=Te[1]}),N(le,fe),U(le,{isEnd:!1})}function He(le,fe,xe){var Qe=le.group,ot=Qe.transformCoordToLocal(fe,xe),Je=Qe.transformCoordToLocal(0,0);return[ot[0]-Je[0],ot[1]-Je[1]]}function pe(le,fe,xe){var Qe=P(le,fe);return Qe&&Qe!==!0?Qe.clipPath(xe,le._transform):C.clone(xe)}function Ue(le){var fe=i(le[0][0],le[1][0]),xe=i(le[0][1],le[1][1]),Qe=n(le[0][0],le[1][0]),ot=n(le[0][1],le[1][1]);return{x:fe,y:xe,width:Qe-fe,height:ot-xe}}function oe(le,fe,xe){if(!le._brushType||ve(le,fe))return;var Qe=le._zr,ot=le._covers,Je=R(le,fe,xe);if(!le._dragging)for(var Te=0;Te<ot.length;Te++){var et=ot[Te].__brushOption;if(Je&&(Je===!0||et.panelId===Je.panelId)&&de[et.brushType].contain(ot[Te],xe[0],xe[1]))return}Je&&Qe.setCursorStyle("crosshair")}function ee(le){var fe=le.event;fe.preventDefault&&fe.preventDefault()}function Xe(le,fe,xe){return le.childOfName("main").contain(fe,xe)}function se(le,fe,xe,Qe){var ot=le._creatingCover,Je=le._creatingPanel,Te=le._brushOption,et;if(le._track.push(xe.slice()),F(le)||ot){if(Je&&!ot){Te.brushMode==="single"&&M(le);var ze=C.clone(Te);ze.brushType=Q(ze.brushType,Je),ze.panelId=Je===!0?null:Je.panelId,ot=le._creatingCover=b(le,ze),le._covers.push(ot)}if(ot){var nt=de[Q(le._brushType,Je)],Ot=ot.__brushOption;Ot.range=nt.getCreatingRange(pe(le,ot,le._track)),Qe&&(_(le,ot),nt.updateCommon(le,ot)),I(le,ot),et={isEnd:Qe}}}else Qe&&Te.brushMode==="single"&&Te.removeOnClick&&(R(le,fe,xe)&&M(le)&&(et={isEnd:Qe,removeOnClick:!0}));return et}function Q(le,fe){return le==="auto"?fe.defaultBrushType:le}var G={mousedown:function(le){if(this._dragging)J(this,le);else if(!le.target||!le.target.draggable){ee(le);var fe=this.group.transformCoordToLocal(le.offsetX,le.offsetY);this._creatingCover=null;var xe=this._creatingPanel=R(this,le,fe);xe&&(this._dragging=!0,this._track=[fe.slice()])}},mousemove:function(le){var fe=le.offsetX,xe=le.offsetY,Qe=this.group.transformCoordToLocal(fe,xe);if(oe(this,le,Qe),this._dragging){ee(le);var ot=se(this,le,Qe,!1);ot&&U(this,ot)}},mouseup:function(le){J(this,le)}};function J(le,fe){if(le._dragging){ee(fe);var xe=fe.offsetX,Qe=fe.offsetY,ot=le.group.transformCoordToLocal(xe,Qe),Je=se(le,fe,ot,!0);le._dragging=!1,le._track=[],le._creatingCover=null,Je&&U(le,Je)}}function ve(le,fe,xe){var Qe=le._zr;return fe<0||fe>Qe.getWidth()||xe<0||xe>Qe.getHeight()}var de={lineX:Ce(0),lineY:Ce(1),rect:{createCover:function(le,fe){return W(c(Oe,function(xe){return xe},function(xe){return xe}),le,fe,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(le){var fe=j(le);return ue(fe[1][0],fe[1][1],fe[0][0],fe[0][1])},updateCoverShape:function(le,fe,xe,Qe){V(le,fe,xe,Qe)},updateCommon:z,contain:Xe},polygon:{createCover:function(le,fe){var xe=new w.Group;return xe.add(new w.Polyline({name:"main",style:$(fe),silent:!0})),xe},getCreatingRange:function(le){return le},endCreating:function(le,fe){fe.remove(fe.childAt(0)),fe.add(new w.Polygon({name:"main",draggable:!0,drift:c(De,le,fe),ondragend:c(U,le,{isEnd:!0})}))},updateCoverShape:function(le,fe,xe,Qe){fe.childAt(0).setShape({points:pe(le,fe,xe)})},updateCommon:z,contain:Xe}};function Ce(le){return{createCover:function(fe,xe){return W(c(Oe,function(Qe){var ot=[Qe,[0,100]];return le&&ot.reverse(),ot},function(Qe){return Qe[le]}),fe,xe,[["w","e"],["n","s"]][le])},getCreatingRange:function(fe){var xe=j(fe),Qe=i(xe[0][le],xe[1][le]),ot=n(xe[0][le],xe[1][le]);return[Qe,ot]},updateCoverShape:function(fe,xe,Qe,ot){var Je,Te=P(fe,xe);if(Te!==!0&&Te.getLinearBrushOtherExtent)Je=Te.getLinearBrushOtherExtent(le,fe._transform);else{var et=fe._zr;Je=[0,[et.getWidth(),et.getHeight()][1-le]]}var ze=[Qe,Je];le&&ze.reverse(),V(fe,xe,ze,ot)},updateCommon:z,contain:Xe}}var Ee=v;H.exports=Ee},"/MfK":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="DeleteOutlined";var f=B.a=E.forwardRef(m)},"/POA":function(H,B,d){!function(O,E){if(!0)H.exports=E();else var C,A}(window,function(){return function(O){var E={};function C(A){if(E[A])return E[A].exports;var w=E[A]={i:A,l:!1,exports:{}};return O[A].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=O,C.c=E,C.d=function(A,w,m){C.o(A,w)||Object.defineProperty(A,w,{enumerable:!0,get:m})},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,w){if(1&w&&(A=C(A)),8&w)return A;if(4&w&&typeof A=="object"&&A&&A.__esModule)return A;var m=Object.create(null);if(C.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:A}),2&w&&typeof A!="string")for(var f in A)C.d(m,f,function(c){return A[c]}.bind(null,f));return m},C.n=function(A){var w=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(w,"a",w),w},C.o=function(A,w){return Object.prototype.hasOwnProperty.call(A,w)},C.p="",C(C.s=34)}([function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.forwardEvent=E.EventEmitter=void 0;var A=function(){function w(){this._listeners=[],this._disposed=!1}return Object.defineProperty(w.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}),w.prototype.fire=function(m,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,m,f)},w.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},w}();E.EventEmitter=A,E.forwardEvent=function(w,m){return w(function(f){return m.fire(f)})}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.IUnicodeService=E.IOptionsService=E.ILogService=E.IInstantiationService=E.IDirtyRowService=E.ICharsetService=E.ICoreService=E.ICoreMouseService=E.IBufferService=void 0;var A=C(14);E.IBufferService=A.createDecorator("BufferService"),E.ICoreMouseService=A.createDecorator("CoreMouseService"),E.ICoreService=A.createDecorator("CoreService"),E.ICharsetService=A.createDecorator("CharsetService"),E.IDirtyRowService=A.createDecorator("DirtyRowService"),E.IInstantiationService=A.createDecorator("InstantiationService"),E.ILogService=A.createDecorator("LogService"),E.IOptionsService=A.createDecorator("OptionsService"),E.IUnicodeService=A.createDecorator("UnicodeService")},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.getDisposeArrayDisposable=E.disposeArray=E.Disposable=void 0;var A=function(){function m(){this._disposables=[],this._isDisposed=!1}return m.prototype.dispose=function(){this._isDisposed=!0;for(var f=0,c=this._disposables;f<c.length;f++)c[f].dispose();this._disposables.length=0},m.prototype.register=function(f){return this._disposables.push(f),f},m.prototype.unregister=function(f){var c=this._disposables.indexOf(f);c!==-1&&this._disposables.splice(c,1)},m}();function w(m){for(var f=0,c=m;f<c.length;f++)c[f].dispose();m.length=0}E.Disposable=A,E.disposeArray=w,E.getDisposeArrayDisposable=function(m){return{dispose:function(){return w(m)}}}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.WHITESPACE_CELL_CODE=E.WHITESPACE_CELL_WIDTH=E.WHITESPACE_CELL_CHAR=E.NULL_CELL_CODE=E.NULL_CELL_WIDTH=E.NULL_CELL_CHAR=E.CHAR_DATA_CODE_INDEX=E.CHAR_DATA_WIDTH_INDEX=E.CHAR_DATA_CHAR_INDEX=E.CHAR_DATA_ATTR_INDEX=E.DEFAULT_ATTR=E.DEFAULT_COLOR=void 0,E.DEFAULT_COLOR=256,E.DEFAULT_ATTR=256|E.DEFAULT_COLOR<<9,E.CHAR_DATA_ATTR_INDEX=0,E.CHAR_DATA_CHAR_INDEX=1,E.CHAR_DATA_WIDTH_INDEX=2,E.CHAR_DATA_CODE_INDEX=3,E.NULL_CELL_CHAR="",E.NULL_CELL_WIDTH=1,E.NULL_CELL_CODE=0,E.WHITESPACE_CELL_CHAR=" ",E.WHITESPACE_CELL_WIDTH=1,E.WHITESPACE_CELL_CODE=32},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(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(E,"__esModule",{value:!0}),E.CellData=void 0;var m=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 w(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?m.stringFromCodePoint(2097151&this.content):""},i.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},i.prototype.setFromCharData=function(n){this.fg=n[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 s=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=s&&s<=56319){var t=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(s-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);E.CellData=o},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ISoundService=E.ISelectionService=E.IRenderService=E.IMouseService=E.ICoreBrowserService=E.ICharSizeService=void 0;var A=C(14);E.ICharSizeService=A.createDecorator("CharSizeService"),E.ICoreBrowserService=A.createDecorator("CoreBrowserService"),E.IMouseService=A.createDecorator("MouseService"),E.IRenderService=A.createDecorator("RenderService"),E.ISelectionService=A.createDecorator("SelectionService"),E.ISoundService=A.createDecorator("SoundService")},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ExtendedAttrs=E.AttributeData=void 0;var A=function(){function m(){this.fg=0,this.bg=0,this.extended=new w}return m.toColorRGB=function(f){return[f>>>16&255,f>>>8&255,255&f]},m.fromColorRGB=function(f){return(255&f[0])<<16|(255&f[1])<<8|255&f[2]},m.prototype.clone=function(){var f=new m;return f.fg=this.fg,f.bg=this.bg,f.extended=this.extended.clone(),f},m.prototype.isInverse=function(){return 67108864&this.fg},m.prototype.isBold=function(){return 134217728&this.fg},m.prototype.isUnderline=function(){return 268435456&this.fg},m.prototype.isBlink=function(){return 536870912&this.fg},m.prototype.isInvisible=function(){return 1073741824&this.fg},m.prototype.isItalic=function(){return 67108864&this.bg},m.prototype.isDim=function(){return 134217728&this.bg},m.prototype.getFgColorMode=function(){return 50331648&this.fg},m.prototype.getBgColorMode=function(){return 50331648&this.bg},m.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},m.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},m.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},m.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},m.prototype.isFgDefault=function(){return(50331648&this.fg)==0},m.prototype.isBgDefault=function(){return(50331648&this.bg)==0},m.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},m.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},m.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},m.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},m.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},m.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},m.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},m.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},m.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},m.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},m.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},m}();E.AttributeData=A;var w=function(){function m(f,c){f===void 0&&(f=0),c===void 0&&(c=-1),this.underlineStyle=f,this.underlineColor=c}return m.prototype.clone=function(){return new m(this.underlineStyle,this.underlineColor)},m.prototype.isEmpty=function(){return this.underlineStyle===0},m}();E.ExtendedAttrs=w},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.addDisposableDomListener=void 0,E.addDisposableDomListener=function(A,w,m,f){A.addEventListener(w,m,f);var c=!1;return{dispose:function(){c||(c=!0,A.removeEventListener(w,m,f))}}}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Utf8ToUtf32=E.StringToUtf32=E.utf32ToString=E.stringFromCodePoint=void 0,E.stringFromCodePoint=function(m){return m>65535?(m-=65536,String.fromCharCode(55296+(m>>10))+String.fromCharCode(m%1024+56320)):String.fromCharCode(m)},E.utf32ToString=function(m,f,c){f===void 0&&(f=0),c===void 0&&(c=m.length);for(var o="",r=f;r<c;++r){var i=m[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 m(){this._interim=0}return m.prototype.clear=function(){this._interim=0},m.prototype.decode=function(f,c){var o=f.length;if(!o)return 0;var r=0,i=0;this._interim&&(56320<=(s=f.charCodeAt(i++))&&s<=57343?c[r++]=1024*(this._interim-55296)+s-56320+65536:(c[r++]=this._interim,c[r++]=s),this._interim=0);for(var n=i;n<o;++n){var e=f.charCodeAt(n);if(55296<=e&&e<=56319){if(++n>=o)return this._interim=e,r;var s;56320<=(s=f.charCodeAt(n))&&s<=57343?c[r++]=1024*(e-55296)+s-56320+65536:(c[r++]=e,c[r++]=s)}else c[r++]=e}return r},m}();E.StringToUtf32=A;var w=function(){function m(){this.interim=new Uint8Array(3)}return m.prototype.clear=function(){this.interim.fill(0)},m.prototype.decode=function(f,c){var o=f.length;if(!o)return 0;var r,i,n,e,s=0,t=0,a=0;if(this.interim[0]){var l=!1,u=this.interim[0];u&=(224&u)==192?31:(240&u)==224?15:7;for(var h=0,p=void 0;(p=63&this.interim[++h])&&h<4;)u<<=6,u|=p;for(var g=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,v=g-h;a<v;){if(a>=o)return 0;if((192&(p=f[a++]))!=128){a--,l=!0;break}this.interim[h++]=p,u<<=6,u|=63&p}l||(g===2?u<128?a--:c[s++]=u:g===3?u<2048||u>=55296&&u<=57343||(c[s++]=u):u<65536||u>1114111||(c[s++]=u)),this.interim.fill(0)}for(var y=o-4,x=a;x<o;){for(;!(!(x<y)||128&(r=f[x])||128&(i=f[x+1])||128&(n=f[x+2])||128&(e=f[x+3]));)c[s++]=r,c[s++]=i,c[s++]=n,c[s++]=e,x+=4;if((r=f[x++])<128)c[s++]=r;else if((224&r)==192){if(x>=o)return this.interim[0]=r,s;if((192&(i=f[x++]))!=128){x--;continue}if((t=(31&r)<<6|63&i)<128){x--;continue}c[s++]=t}else if((240&r)==224){if(x>=o)return this.interim[0]=r,s;if((192&(i=f[x++]))!=128){x--;continue}if(x>=o)return this.interim[0]=r,this.interim[1]=i,s;if((192&(n=f[x++]))!=128){x--;continue}if((t=(15&r)<<12|(63&i)<<6|63&n)<2048||t>=55296&&t<=57343)continue;c[s++]=t}else if((248&r)==240){if(x>=o)return this.interim[0]=r,s;if((192&(i=f[x++]))!=128){x--;continue}if(x>=o)return this.interim[0]=r,this.interim[1]=i,s;if((192&(n=f[x++]))!=128){x--;continue}if(x>=o)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=n,s;if((192&(e=f[x++]))!=128){x--;continue}if((t=(7&r)<<18|(63&i)<<12|(63&n)<<6|63&e)<65536||t>1114111)continue;c[s++]=t}}return s},m}();E.Utf8ToUtf32=w},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CHAR_ATLAS_CELL_SPACING=E.DIM_OPACITY=E.INVERTED_DEFAULT_COLOR=void 0,E.INVERTED_DEFAULT_COLOR=257,E.DIM_OPACITY=.5,E.CHAR_ATLAS_CELL_SPACING=1},function(O,E,C){"use strict";var A,w,m,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(E,"__esModule",{value:!0}),E.contrastRatio=E.toPaddedHex=E.rgba=E.rgb=E.css=E.color=E.channels=void 0,function(r){r.toCss=function(i,n,e,s){return s!==void 0?"#"+c(i)+c(n)+c(e)+c(s):"#"+c(i)+c(n)+c(e)},r.toRgba=function(i,n,e,s){return s===void 0&&(s=255),(i<<24|n<<16|e<<8|s)>>>0}}(A=E.channels||(E.channels={})),(w=E.color||(E.color={})).blend=function(r,i){var n=(255&i.rgba)/255;if(n===1)return{css:i.css,rgba:i.rgba};var e=i.rgba>>24&255,s=i.rgba>>16&255,t=i.rgba>>8&255,a=r.rgba>>24&255,l=r.rgba>>16&255,u=r.rgba>>8&255,h=a+Math.round((e-a)*n),p=l+Math.round((s-l)*n),g=u+Math.round((t-u)*n);return{css:A.toCss(h,p,g),rgba:A.toRgba(h,p,g)}},w.isOpaque=function(r){return(255&r.rgba)==255},w.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)},w.opaque=function(r){var i=(255|r.rgba)>>>0,n=f.toChannels(i),e=n[0],s=n[1],t=n[2];return{css:A.toCss(e,s,t),rgba:i}},w.opacity=function(r,i){var n=Math.round(255*i),e=f.toChannels(r.rgba),s=e[0],t=e[1],a=e[2];return{css:A.toCss(s,t,a,n),rgba:A.toRgba(s,t,a,n)}},(E.css||(E.css={})).toColor=function(r){switch(r.length){case 7:return{css:r,rgba:(parseInt(r.slice(1),16)<<8|255)>>>0};case 9:return{css:r,rgba:parseInt(r.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(r){function i(n,e,s){var t=n/255,a=e/255,l=s/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4))}r.relativeLuminance=function(n){return i(n>>16&255,n>>8&255,255&n)},r.relativeLuminance2=i}(m=E.rgb||(E.rgb={})),function(r){function i(e,s,t){for(var a=e>>24&255,l=e>>16&255,u=e>>8&255,h=s>>24&255,p=s>>16&255,g=s>>8&255,v=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(a,l,u));v<t&&(h>0||p>0||g>0);)h-=Math.max(0,Math.ceil(.1*h)),p-=Math.max(0,Math.ceil(.1*p)),g-=Math.max(0,Math.ceil(.1*g)),v=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(a,l,u));return(h<<24|p<<16|g<<8|255)>>>0}function n(e,s,t){for(var a=e>>24&255,l=e>>16&255,u=e>>8&255,h=s>>24&255,p=s>>16&255,g=s>>8&255,v=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(a,l,u));v<t&&(h<255||p<255||g<255);)h=Math.min(255,h+Math.ceil(.1*(255-h))),p=Math.min(255,p+Math.ceil(.1*(255-p))),g=Math.min(255,g+Math.ceil(.1*(255-g))),v=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(a,l,u));return(h<<24|p<<16|g<<8|255)>>>0}r.ensureContrastRatio=function(e,s,t){var a=m.relativeLuminance(e>>8),l=m.relativeLuminance(s>>8);if(o(a,l)<t)return l<a?i(e,s,t):n(e,s,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,s,t){return{css:A.toCss(e,s,t),rgba:A.toRgba(e,s,t)}}}(f=E.rgba||(E.rgba={})),E.toPaddedHex=c,E.contrastRatio=o},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.isLinux=E.isWindows=E.isIphone=E.isIpad=E.isMac=E.isSafari=E.isFirefox=void 0;var A=typeof navigator=="undefined",w=A?"node":navigator.userAgent,m=A?"node":navigator.platform;function f(c,o){return c.indexOf(o)>=0}E.isFirefox=!!~w.indexOf("Firefox"),E.isSafari=/^((?!chrome|android).)*safari/i.test(w),E.isMac=f(["Macintosh","MacIntel","MacPPC","Mac68K"],m),E.isIpad=m==="iPad",E.isIphone=m==="iPhone",E.isWindows=f(["Windows","Win16","Win32","WinCE"],m),E.isLinux=m.indexOf("Linux")>=0},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.C1=E.C0=void 0,function(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"}(E.C0||(E.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"}(E.C1||(E.C1={}))},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BaseRenderLayer=void 0;var A=C(3),w=C(9),m=C(25),f=C(6),c=C(28),o=C(10),r=C(17),i=function(){function n(e,s,t,a,l,u,h,p){this._container=e,this._alpha=a,this._colors=l,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-"+s+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return n.prototype.dispose=function(){var e;r.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},n.prototype._initCanvas=function(){this._ctx=c.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},n.prototype.onOptionsChanged=function(){},n.prototype.onBlur=function(){},n.prototype.onFocus=function(){},n.prototype.onCursorMove=function(){},n.prototype.onGridChanged=function(e,s){},n.prototype.onSelectionChanged=function(e,s,t){t===void 0&&(t=!1)},n.prototype.setColors=function(e){this._refreshCharAtlas(e)},n.prototype._setTransparency=function(e){if(e!==this._alpha){var s=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,s),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},n.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=m.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},n.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},n.prototype._fillCells=function(e,s,t,a){this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight)},n.prototype._fillBottomLineAtCells=function(e,s,t){t===void 0&&(t=1),this._ctx.fillRect(e*this._scaledCellWidth,(s+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},n.prototype._fillLeftLineAtCell=function(e,s,t){this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},n.prototype._strokeRectAtCell=function(e,s,t,a){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,s*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,a*this._scaledCellHeight-window.devicePixelRatio)},n.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},n.prototype._clearCells=function(e,s,t,a){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight))},n.prototype._fillCharTrueColor=function(e,s,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(e.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},n.prototype._drawChars=function(e,s,t){var a,l,u=this._getContrastColor(e);u||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,s,t,u):(e.isInverse()?(a=e.isBgDefault()?w.INVERTED_DEFAULT_COLOR:e.getBgColor(),l=e.isFgDefault()?w.INVERTED_DEFAULT_COLOR:e.getFgColor()):(l=e.isBgDefault()?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=l,this._currentGlyphIdentifier.fg=a,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,s,t))},n.prototype._drawUncachedChars=function(e,s,t,a){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(a)this._ctx.fillStyle=a.css;else if(e.isBgDefault())this._ctx.fillStyle=o.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var l=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(a)this._ctx.fillStyle=a.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+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=w.DIM_OPACITY),this._ctx.fillText(e.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},n.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},n.prototype._getFont=function(e,s){return(s?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},n.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var s=this._colors.contrastCache.getColor(e.bg,e.fg);if(s!==void 0)return s||void 0;var t=e.getFgColor(),a=e.getFgColorMode(),l=e.getBgColor(),u=e.getBgColorMode(),h=!!e.isInverse(),p=!!e.isInverse();if(h){var g=t;t=l,l=g;var v=a;a=u,u=v}var y=this._resolveBackgroundRgba(u,l,h),x=this._resolveForegroundRgba(a,t,h,p),T=o.rgba.ensureContrastRatio(y,x,this._optionsService.options.minimumContrastRatio);if(T){var S={css:o.channels.toCss(T>>24&255,T>>16&255,T>>8&255),rgba:T};return this._colors.contrastCache.setColor(e.bg,e.fg,S),S}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},n.prototype._resolveBackgroundRgba=function(e,s,t){switch(e){case 16777216:case 33554432:return this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},n.prototype._resolveForegroundRgba=function(e,s,t,a){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&a&&s<8&&(s+=8),this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},n}();E.BaseRenderLayer=i},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.createDecorator=E.getServiceDependencies=E.serviceRegistry=void 0;function A(w,m,f){m.di$target===m?m.di$dependencies.push({id:w,index:f}):(m.di$dependencies=[{id:w,index:f}],m.di$target=m)}E.serviceRegistry=new Map,E.getServiceDependencies=function(w){return w.di$dependencies||[]},E.createDecorator=function(w){if(E.serviceRegistry.has(w))return E.serviceRegistry.get(w);var m=function 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 m.toString=function(){return w},E.serviceRegistry.set(w,m),m}},function(O,E,C){"use strict";function A(w,m,f,c){if(f===void 0&&(f=0),c===void 0&&(c=w.length),f>=w.length)return w;f=(w.length+f)%w.length,c=c>=w.length?w.length:(w.length+c)%w.length;for(var o=f;o<c;++o)w[o]=m;return w}Object.defineProperty(E,"__esModule",{value:!0}),E.concat=E.fillFallback=E.fill=void 0,E.fill=function(w,m,f,c){return w.fill?w.fill(m,f,c):A(w,m,f,c)},E.fillFallback=A,E.concat=function(w,m){var f=new w.constructor(w.length+m.length);return f.set(w),f.set(m,w.length),f}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BufferLine=E.DEFAULT_ATTR_DATA=void 0;var A=C(8),w=C(3),m=C(4),f=C(6);E.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||m.CellData.fromCharData([0,w.NULL_CELL_CHAR,w.NULL_CELL_WIDTH,w.NULL_CELL_CODE]),s=0;s<r;++s)this.setCell(s,e);this.length=r}return 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[w.CHAR_DATA_ATTR_INDEX],i[w.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[r]=i[1],this._data[3*r+0]=2097152|r|i[w.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*r+0]=i[w.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|i[w.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,s,t){268435456&s&&(this._extendedAttrs[r]=t),this._data[3*r+0]=i|n<<22,this._data[3*r+1]=e,this._data[3*r+2]=s},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 s=new m.CellData,t=this.length-r-i-1;t>=0;--t)this.setCell(r+i+t,this.loadCell(r+t,s));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 s=new m.CellData,t=0;t<this.length-r-i;++t)this.setCell(r+t,this.loadCell(r+i+t,s));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 s=Object.keys(this._combined);for(e=0;e<s.length;e++){var t=parseInt(s[e],10);t>=r&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=r}},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,s){var t=r._data;if(s)for(var a=e-1;a>=0;a--)for(var l=0;l<3;l++)this._data[3*(n+a)+l]=t[3*(i+a)+l];else for(a=0;a<e;a++)for(l=0;l<3;l++)this._data[3*(n+a)+l]=t[3*(i+a)+l];var u=Object.keys(r._combined);for(l=0;l<u.length;l++){var h=parseInt(u[l],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 s=this._data[3*i+0],t=2097151&s;e+=2097152&s?this._combined[i]:t?A.stringFromCodePoint(t):w.WHITESPACE_CELL_CHAR,i+=s>>22||1}return e},o}();E.BufferLine=c},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.removeElementFromParent=void 0,E.removeElementFromParent=function(){for(var A,w=[],m=0;m<arguments.length;m++)w[m]=arguments[m];for(var f=0,c=w;f<c.length;f++){var o=c[f];(A=o==null?void 0:o.parentElement)===null||A===void 0||A.removeChild(o)}}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.tooMuchOutput=E.promptLabel=void 0,E.promptLabel="Terminal input",E.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(T,S){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,_){b.__proto__=_}||function(b,_){for(var I in _)_.hasOwnProperty(I)&&(b[I]=_[I])})(T,S)},function(x,T){function S(){this.constructor=x}A(x,T),x.prototype=T===null?Object.create(T):(S.prototype=T.prototype,new S)});Object.defineProperty(E,"__esModule",{value:!0}),E.InputHandler=E.WindowsOptionsReportType=void 0;var m,f=C(12),c=C(20),o=C(39),r=C(2),i=C(15),n=C(8),e=C(16),s=C(0),t=C(3),a=C(4),l=C(6),u=C(22),h=C(24),p={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function g(x,T){if(x>24)return T.setWinLines||!1;switch(x){case 1:return!!T.restoreWin;case 2:return!!T.minimizeWin;case 3:return!!T.setWinPosition;case 4:return!!T.setWinSizePixels;case 5:return!!T.raiseWin;case 6:return!!T.lowerWin;case 7:return!!T.refreshWin;case 8:return!!T.setWinSizeChars;case 9:return!!T.maximizeWin;case 10:return!!T.fullscreenWin;case 11:return!!T.getWinState;case 13:return!!T.getWinPosition;case 14:return!!T.getWinSizePixels;case 15:return!!T.getScreenSizePixels;case 16:return!!T.getCellSizePixels;case 18:return!!T.getWinSizeChars;case 19:return!!T.getScreenSizeChars;case 20:return!!T.getIconTitle;case 21:return!!T.getWinTitle;case 22:return!!T.pushTitle;case 23:return!!T.popTitle;case 24:return!!T.setWinLines}return!1}!function(x){x[x.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",x[x.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(m=E.WindowsOptionsReportType||(E.WindowsOptionsReportType={}));var v=function(){function x(T,S,b,_){this._bufferService=T,this._coreService=S,this._logService=b,this._optionsService=_,this._data=new Uint32Array(0)}return x.prototype.hook=function(T){this._data=new Uint32Array(0)},x.prototype.put=function(T,S,b){this._data=i.concat(this._data,T.subarray(S,b))},x.prototype.unhook=function(T){if(T){var S=n.utf32ToString(this._data);switch(this._data=new Uint32Array(0),S){case'"q':return this._coreService.triggerDataEvent(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 b=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+b+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",S),this._coreService.triggerDataEvent(f.C0.ESC+"P0$r"+f.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},x}(),y=function(x){function T(S,b,_,I,L,N,D,R,P){P===void 0&&(P=new o.EscapeSequenceParser);var M=x.call(this)||this;M._bufferService=S,M._charsetService=b,M._coreService=_,M._dirtyRowService=I,M._logService=L,M._optionsService=N,M._coreMouseService=D,M._unicodeService=R,M._parser=P,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 s.EventEmitter,M._onRequestRefreshRows=new s.EventEmitter,M._onRequestReset=new s.EventEmitter,M._onRequestScroll=new s.EventEmitter,M._onRequestSyncScrollBar=new s.EventEmitter,M._onRequestWindowsOptionsReport=new s.EventEmitter,M._onA11yChar=new s.EventEmitter,M._onA11yTab=new s.EventEmitter,M._onCursorMove=new s.EventEmitter,M._onLineFeed=new s.EventEmitter,M._onScroll=new s.EventEmitter,M._onTitleChange=new s.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){F._parser.setEscHandler({intermediates:"(",final:V},function(){return M.selectCharset("("+V)}),F._parser.setEscHandler({intermediates:")",final:V},function(){return M.selectCharset(")"+V)}),F._parser.setEscHandler({intermediates:"*",final:V},function(){return M.selectCharset("*"+V)}),F._parser.setEscHandler({intermediates:"+",final:V},function(){return M.selectCharset("+"+V)}),F._parser.setEscHandler({intermediates:"-",final:V},function(){return M.selectCharset("-"+V)}),F._parser.setEscHandler({intermediates:".",final:V},function(){return M.selectCharset("."+V)}),F._parser.setEscHandler({intermediates:"/",final:V},function(){return M.selectCharset("/"+V)})},F=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 w(T,x),Object.defineProperty(T.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),T.prototype.dispose=function(){x.prototype.dispose.call(this)},T.prototype.parse=function(S){var b=this._bufferService.buffer,_=b.x,I=b.y;if(this._logService.debug("parsing data",S),this._parseBuffer.length<S.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(S.length,131072))),this._dirtyRowService.clearRange(),S.length>131072)for(var L=0;L<S.length;L+=131072){var N=L+131072<S.length?L+131072:S.length,D=typeof S=="string"?this._stringDecoder.decode(S.substring(L,N),this._parseBuffer):this._utf8Decoder.decode(S.subarray(L,N),this._parseBuffer);this._parser.parse(this._parseBuffer,D)}else D=typeof S=="string"?this._stringDecoder.decode(S,this._parseBuffer):this._utf8Decoder.decode(S,this._parseBuffer),this._parser.parse(this._parseBuffer,D);(b=this._bufferService.buffer).x===_&&b.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},T.prototype.print=function(S,b,_){var I,L,N=this._bufferService.buffer,D=this._charsetService.charset,R=this._optionsService.options.screenReaderMode,P=this._bufferService.cols,M=this._coreService.decPrivateModes.wraparound,U=this._coreService.modes.insertMode,F=this._curAttrData,j=N.lines.get(N.ybase+N.y);this._dirtyRowService.markDirty(N.y),N.x&&_-b>0&&j.getWidth(N.x-1)===2&&j.setCellFromCodePoint(N.x-1,0,1,F.fg,F.bg,F.extended);for(var W=b;W<_;++W){if(I=S[W],L=this._unicodeService.wcwidth(I),I<127&&D){var V=D[String.fromCharCode(I)];V&&(I=V.charCodeAt(0))}if(R&&this._onA11yChar.fire(n.stringFromCodePoint(I)),L||!N.x){if(N.x+L-1>=P){if(M){for(;N.x<P;)j.setCellFromCodePoint(N.x++,0,1,F.fg,F.bg,F.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=P-1,L===2)continue}if(U&&(j.insertCells(N.x,L,N.getNullCell(F),F),j.getWidth(P-1)===2&&j.setCellFromCodePoint(P-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,F.fg,F.bg,F.extended)),j.setCellFromCodePoint(N.x++,I,L,F.fg,F.bg,F.extended),L>0)for(;--L;)j.setCellFromCodePoint(N.x++,0,0,F.fg,F.bg,F.extended)}else j.getWidth(N.x-1)?j.addCodepointToCell(N.x-1,I):j.addCodepointToCell(N.x-2,I)}_-b>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<P&&_-b>0&&j.getWidth(N.x)===0&&!j.hasContent(N.x)&&j.setCellFromCodePoint(N.x,0,1,F.fg,F.bg,F.extended),this._dirtyRowService.markDirty(N.y)},T.prototype.addCsiHandler=function(S,b){var _=this;return S.final!=="t"||S.prefix||S.intermediates?this._parser.addCsiHandler(S,b):this._parser.addCsiHandler(S,function(I){return!g(I.params[0],_._optionsService.options.windowOptions)||b(I)})},T.prototype.addDcsHandler=function(S,b){return this._parser.addDcsHandler(S,new h.DcsHandler(b))},T.prototype.addEscHandler=function(S,b){return this._parser.addEscHandler(S,b)},T.prototype.addOscHandler=function(S,b){return this._parser.addOscHandler(S,new u.OscHandler(b))},T.prototype.bell=function(){this._onRequestBell.fire()},T.prototype.lineFeed=function(){var S=this._bufferService.buffer;this._dirtyRowService.markDirty(S.y),this._optionsService.options.convertEol&&(S.x=0),S.y++,S.y===S.scrollBottom+1?(S.y--,this._onRequestScroll.fire(this._eraseAttrData())):S.y>=this._bufferService.rows&&(S.y=this._bufferService.rows-1),S.x>=this._bufferService.cols&&S.x--,this._dirtyRowService.markDirty(S.y),this._onLineFeed.fire()},T.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},T.prototype.backspace=function(){var S,b=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(b.x>0&&b.x--);if(this._restrictCursor(this._bufferService.cols),b.x>0)b.x--;else if(b.x===0&&b.y>b.scrollTop&&b.y<=b.scrollBottom&&((S=b.lines.get(b.ybase+b.y))===null||S===void 0?void 0:S.isWrapped)){b.lines.get(b.ybase+b.y).isWrapped=!1,b.y--,b.x=this._bufferService.cols-1;var _=b.lines.get(b.ybase+b.y);_.hasWidth(b.x)&&!_.hasContent(b.x)&&b.x--}this._restrictCursor()},T.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var S=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-S)}},T.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},T.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},T.prototype._restrictCursor=function(S){S===void 0&&(S=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(S,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},T.prototype._setCursor=function(S,b){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=S,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+b):(this._bufferService.buffer.x=S,this._bufferService.buffer.y=b),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},T.prototype._moveCursor=function(S,b){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+S,this._bufferService.buffer.y+b)},T.prototype.cursorUp=function(S){var b=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;b>=0?this._moveCursor(0,-Math.min(b,S.params[0]||1)):this._moveCursor(0,-(S.params[0]||1))},T.prototype.cursorDown=function(S){var b=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;b>=0?this._moveCursor(0,Math.min(b,S.params[0]||1)):this._moveCursor(0,S.params[0]||1)},T.prototype.cursorForward=function(S){this._moveCursor(S.params[0]||1,0)},T.prototype.cursorBackward=function(S){this._moveCursor(-(S.params[0]||1),0)},T.prototype.cursorNextLine=function(S){this.cursorDown(S),this._bufferService.buffer.x=0},T.prototype.cursorPrecedingLine=function(S){this.cursorUp(S),this._bufferService.buffer.x=0},T.prototype.cursorCharAbsolute=function(S){this._setCursor((S.params[0]||1)-1,this._bufferService.buffer.y)},T.prototype.cursorPosition=function(S){this._setCursor(S.length>=2?(S.params[1]||1)-1:0,(S.params[0]||1)-1)},T.prototype.charPosAbsolute=function(S){this._setCursor((S.params[0]||1)-1,this._bufferService.buffer.y)},T.prototype.hPositionRelative=function(S){this._moveCursor(S.params[0]||1,0)},T.prototype.linePosAbsolute=function(S){this._setCursor(this._bufferService.buffer.x,(S.params[0]||1)-1)},T.prototype.vPositionRelative=function(S){this._moveCursor(0,S.params[0]||1)},T.prototype.hVPosition=function(S){this.cursorPosition(S)},T.prototype.tabClear=function(S){var b=S.params[0];b===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:b===3&&(this._bufferService.buffer.tabs={})},T.prototype.cursorForwardTab=function(S){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var b=S.params[0]||1;b--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},T.prototype.cursorBackwardTab=function(S){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var b=S.params[0]||1,_=this._bufferService.buffer;b--;)_.x=_.prevStop()},T.prototype._eraseInBufferLine=function(S,b,_,I){I===void 0&&(I=!1);var L=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+S);L.replaceCells(b,_,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(L.isWrapped=!1)},T.prototype._resetBufferLine=function(S){var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+S);b.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),b.isWrapped=!1},T.prototype.eraseInDisplay=function(S){var b;switch(this._restrictCursor(),S.params[0]){case 0:for(b=this._bufferService.buffer.y,this._dirtyRowService.markDirty(b),this._eraseInBufferLine(b++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);b<this._bufferService.rows;b++)this._resetBufferLine(b);this._dirtyRowService.markDirty(b);break;case 1:for(b=this._bufferService.buffer.y,this._dirtyRowService.markDirty(b),this._eraseInBufferLine(b,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(b+1).isWrapped=!1);b--;)this._resetBufferLine(b);this._dirtyRowService.markDirty(0);break;case 2:for(b=this._bufferService.rows,this._dirtyRowService.markDirty(b-1);b--;)this._resetBufferLine(b);this._dirtyRowService.markDirty(0);break;case 3:var _=this._bufferService.buffer.lines.length-this._bufferService.rows;_>0&&(this._bufferService.buffer.lines.trimStart(_),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-_,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-_,0),this._onScroll.fire(0))}},T.prototype.eraseInLine=function(S){switch(this._restrictCursor(),S.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},T.prototype.insertLines=function(S){this._restrictCursor();var b=S.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){for(var I=_.ybase+_.y,L=this._bufferService.rows-1-_.scrollBottom,N=this._bufferService.rows-1+_.ybase-L+1;b--;)_.lines.splice(N-1,1),_.lines.splice(I,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},T.prototype.deleteLines=function(S){this._restrictCursor();var b=S.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){var I,L=_.ybase+_.y;for(I=this._bufferService.rows-1-_.scrollBottom,I=this._bufferService.rows-1+_.ybase-I;b--;)_.lines.splice(L,1),_.lines.splice(I,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},T.prototype.insertChars=function(S){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.insertCells(this._bufferService.buffer.x,S.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.deleteChars=function(S){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.deleteCells(this._bufferService.buffer.x,S.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.scrollUp=function(S){for(var b=S.params[0]||1,_=this._bufferService.buffer;b--;)_.lines.splice(_.ybase+_.scrollTop,1),_.lines.splice(_.ybase+_.scrollBottom,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},T.prototype.scrollDown=function(S){for(var b=S.params[0]||1,_=this._bufferService.buffer;b--;)_.lines.splice(_.ybase+_.scrollBottom,1),_.lines.splice(_.ybase+_.scrollTop,0,_.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},T.prototype.scrollLeft=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.deleteCells(0,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},T.prototype.scrollRight=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.insertCells(0,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},T.prototype.insertColumns=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=this._bufferService.buffer.lines.get(b.ybase+I);L.insertCells(b.x,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},T.prototype.deleteColumns=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.deleteCells(b.x,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},T.prototype.eraseChars=function(S){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(S.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.repeatPrecedingCharacter=function(S){if(this._parser.precedingCodepoint){for(var b=S.params[0]||1,_=new Uint32Array(b),I=0;I<b;++I)_[I]=this._parser.precedingCodepoint;this.print(_,0,_.length)}},T.prototype.sendDeviceAttributesPrimary=function(S){S.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(f.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(f.C0.ESC+"[?6c"))},T.prototype.sendDeviceAttributesSecondary=function(S){S.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(S.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(f.C0.ESC+"[>83;40003;0c"))},T.prototype._is=function(S){return(this._optionsService.options.termName+"").indexOf(S)===0},T.prototype.setMode=function(S){for(var b=0;b<S.length;b++)switch(S.params[b]){case 4:this._coreService.modes.insertMode=!0}},T.prototype.setModePrivate=function(S){for(var b=0;b<S.length;b++)switch(S.params[b]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,c.DEFAULT_CHARSET),this._charsetService.setgCharset(1,c.DEFAULT_CHARSET),this._charsetService.setgCharset(2,c.DEFAULT_CHARSET),this._charsetService.setgCharset(3,c.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},T.prototype.resetMode=function(S){for(var b=0;b<S.length;b++)switch(S.params[b]){case 4:this._coreService.modes.insertMode=!1}},T.prototype.resetModePrivate=function(S){for(var b=0;b<S.length;b++)switch(S.params[b]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),S.params[b]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},T.prototype._updateAttrColor=function(S,b,_,I,L){return b===2?(S|=50331648,S&=-16777216,S|=l.AttributeData.fromColorRGB([_,I,L])):b===5&&(S&=-50331904,S|=33554432|255&_),S},T.prototype._extractColor=function(S,b,_){var I=[0,0,-1,0,0,0],L=0,N=0;do{if(I[N+L]=S.params[b+N],S.hasSubParams(b+N)){var D=S.getSubParams(b+N),R=0;do I[1]===5&&(L=1),I[N+R+1+L]=D[R];while(++R<D.length&&R+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+b<S.length&&N+L<I.length);for(R=2;R<I.length;++R)I[R]===-1&&(I[R]=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(S,b){b.extended=b.extended.clone(),(!~S||S>5)&&(S=1),b.extended.underlineStyle=S,b.fg|=268435456,S===0&&(b.fg&=-268435457),b.updateExtended()},T.prototype.charAttributes=function(S){if(S.length===1&&S.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var b,_=S.length,I=this._curAttrData,L=0;L<_;L++)(b=S.params[L])>=30&&b<=37?(I.fg&=-50331904,I.fg|=16777216|b-30):b>=40&&b<=47?(I.bg&=-50331904,I.bg|=16777216|b-40):b>=90&&b<=97?(I.fg&=-50331904,I.fg|=16777224|b-90):b>=100&&b<=107?(I.bg&=-50331904,I.bg|=16777224|b-100):b===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):b===1?I.fg|=134217728:b===3?I.bg|=67108864:b===4?(I.fg|=268435456,this._processUnderline(S.hasSubParams(L)?S.getSubParams(L)[0]:1,I)):b===5?I.fg|=536870912:b===7?I.fg|=67108864:b===8?I.fg|=1073741824:b===2?I.bg|=134217728:b===21?this._processUnderline(2,I):b===22?(I.fg&=-134217729,I.bg&=-134217729):b===23?I.bg&=-67108865:b===24?I.fg&=-268435457:b===25?I.fg&=-536870913:b===27?I.fg&=-67108865:b===28?I.fg&=-1073741825:b===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):b===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):b===38||b===48||b===58?L+=this._extractColor(S,L,I):b===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):b===100?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",b)},T.prototype.deviceStatus=function(S){switch(S.params[0]){case 5:this._coreService.triggerDataEvent(f.C0.ESC+"[0n");break;case 6:var b=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"["+b+";"+_+"R")}},T.prototype.deviceStatusPrivate=function(S){switch(S.params[0]){case 6:var b=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"[?"+b+";"+_+"R")}},T.prototype.softReset=function(S){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},T.prototype.setCursorStyle=function(S){var b=S.params[0]||1;switch(b){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var _=b%2==1;this._optionsService.options.cursorBlink=_},T.prototype.setScrollRegion=function(S){var b,_=S.params[0]||1;(S.length<2||(b=S.params[1])>this._bufferService.rows||b===0)&&(b=this._bufferService.rows),b>_&&(this._bufferService.buffer.scrollTop=_-1,this._bufferService.buffer.scrollBottom=b-1,this._setCursor(0,0))},T.prototype.windowOptions=function(S){if(g(S.params[0],this._optionsService.options.windowOptions)){var b=S.length>1?S.params[1]:0;switch(S.params[0]){case 14:b!==2&&this._onRequestWindowsOptionsReport.fire(m.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(m.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(f.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:b!==0&&b!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),b!==0&&b!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:b!==0&&b!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),b!==0&&b!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},T.prototype.saveCursor=function(S){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},T.prototype.restoreCursor=function(S){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},T.prototype.setTitle=function(S){this._windowTitle=S,this._onTitleChange.fire(S)},T.prototype.setIconName=function(S){this._iconName=S},T.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},T.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},T.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},T.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,c.DEFAULT_CHARSET)},T.prototype.selectCharset=function(S){S.length===2?S[0]!=="/"&&this._charsetService.setgCharset(p[S[0]],c.CHARSETS[S[1]]||c.DEFAULT_CHARSET):this.selectDefaultCharset()},T.prototype.index=function(){this._restrictCursor();var S=this._bufferService.buffer;this._bufferService.buffer.y++,S.y===S.scrollBottom+1?(S.y--,this._onRequestScroll.fire(this._eraseAttrData())):S.y>=this._bufferService.rows&&(S.y=this._bufferService.rows-1),this._restrictCursor()},T.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},T.prototype.reverseIndex=function(){this._restrictCursor();var S=this._bufferService.buffer;if(S.y===S.scrollTop){var b=S.scrollBottom-S.scrollTop;S.lines.shiftElements(S.ybase+S.y,b,1),S.lines.set(S.ybase+S.y,S.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}else S.y--,this._restrictCursor()},T.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},T.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},T.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},T.prototype.setgLevel=function(S){this._charsetService.setgLevel(S)},T.prototype.screenAlignmentPattern=function(){var S=new a.CellData;S.content=1<<22|"E".charCodeAt(0),S.fg=this._curAttrData.fg,S.bg=this._curAttrData.bg;var b=this._bufferService.buffer;this._setCursor(0,0);for(var _=0;_<this._bufferService.rows;++_){var I=b.ybase+b.y+_,L=b.lines.get(I);L&&(L.fill(S),L.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},T}(r.Disposable);E.InputHandler=y},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DEFAULT_CHARSET=E.CHARSETS=void 0,E.CHARSETS={},E.DEFAULT_CHARSET=E.CHARSETS.B,E.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},E.CHARSETS.A={"#":"\xA3"},E.CHARSETS.B=void 0,E.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},E.CHARSETS.C=E.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},E.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},E.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},E.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},E.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},E.CHARSETS.E=E.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},E.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},E.CHARSETS.H=E.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},E.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Params=void 0;var A=function(){function w(m,f){if(m===void 0&&(m=32),f===void 0&&(f=32),this.maxLength=m,this.maxSubParamsLength=f,f>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(m),this.length=0,this._subParams=new Int32Array(f),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(m),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return w.fromArray=function(m){var f=new w;if(!m.length)return f;for(var c=m[0]instanceof Array?1:0;c<m.length;++c){var o=m[c];if(o instanceof Array)for(var r=0;r<o.length;++r)f.addSubParam(o[r]);else f.addParam(o)}return f},w.prototype.clone=function(){var m=new w(this.maxLength,this.maxSubParamsLength);return m.params.set(this.params),m.length=this.length,m._subParams.set(this._subParams),m._subParamsLength=this._subParamsLength,m._subParamsIdx.set(this._subParamsIdx),m._rejectDigits=this._rejectDigits,m._rejectSubDigits=this._rejectSubDigits,m._digitIsSub=this._digitIsSub,m},w.prototype.toArray=function(){for(var m=[],f=0;f<this.length;++f){m.push(this.params[f]);var c=this._subParamsIdx[f]>>8,o=255&this._subParamsIdx[f];o-c>0&&m.push(Array.prototype.slice.call(this._subParams,c,o))}return m},w.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},w.prototype.addParam=function(m){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=m>2147483647?2147483647:m}},w.prototype.addSubParam=function(m){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=m>2147483647?2147483647:m,this._subParamsIdx[this.length-1]++}},w.prototype.hasSubParams=function(m){return(255&this._subParamsIdx[m])-(this._subParamsIdx[m]>>8)>0},w.prototype.getSubParams=function(m){var f=this._subParamsIdx[m]>>8,c=255&this._subParamsIdx[m];return c-f>0?this._subParams.subarray(f,c):null},w.prototype.getSubParamsAll=function(){for(var m={},f=0;f<this.length;++f){var c=this._subParamsIdx[f]>>8,o=255&this._subParamsIdx[f];o-c>0&&(m[f]=this._subParams.slice(c,o))}return m},w.prototype.addDigit=function(m){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+m,2147483647):m}},w}();E.Params=A},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.OscHandler=E.OscParser=void 0;var A=C(23),w=C(8),m=function(){function c(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return c.prototype.addHandler=function(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",w.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}();E.OscParser=m;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+=w.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}();E.OscHandler=f},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PAYLOAD_LIMIT=void 0,E.PAYLOAD_LIMIT=1e7},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DcsHandler=E.DcsParser=void 0;var A=C(8),w=C(21),m=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 s=this._active.length-1;s>=0;s--)this._active[s].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}();E.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>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},r.prototype.unhook=function(i){var n;return this._hitLimit?n=!1:i&&(n=this._handler(this._data,this._params||new w.Params)),this._params=void 0,this._data="",this._hitLimit=!1,n},r}();E.DcsHandler=o},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.removeTerminalFromCache=E.acquireCharAtlas=void 0;var A=C(26),w=C(43),m=[];E.acquireCharAtlas=function(f,c,o,r,i){for(var n=A.generateConfig(r,i,f,o),e=0;e<m.length;e++){var s=(t=m[e]).ownedBy.indexOf(c);if(s>=0){if(A.configEquals(t.config,n))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),m.splice(e,1)):t.ownedBy.splice(s,1);break}}for(e=0;e<m.length;e++){var t=m[e];if(A.configEquals(t.config,n))return t.ownedBy.push(c),t.atlas}var a={atlas:new w.DynamicCharAtlas(document,n),config:n,ownedBy:[c]};return m.push(a),a.atlas},E.removeTerminalFromCache=function(f){for(var c=0;c<m.length;c++){var o=m[c].ownedBy.indexOf(f);if(o!==-1){m[c].ownedBy.length===1?(m[c].atlas.dispose(),m.splice(c,1)):m[c].ownedBy.splice(o,1);break}}}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.is256Color=E.configEquals=E.generateConfig=void 0;var A=C(3);E.generateConfig=function(w,m,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:w,scaledCharHeight:m,fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontWeightBold:f.fontWeightBold,allowTransparency:f.allowTransparency,colors:o}},E.configEquals=function(w,m){for(var f=0;f<w.colors.ansi.length;f++)if(w.colors.ansi[f].rgba!==m.colors.ansi[f].rgba)return!1;return w.devicePixelRatio===m.devicePixelRatio&&w.fontFamily===m.fontFamily&&w.fontSize===m.fontSize&&w.fontWeight===m.fontWeight&&w.fontWeightBold===m.fontWeightBold&&w.allowTransparency===m.allowTransparency&&w.scaledCharWidth===m.scaledCharWidth&&w.scaledCharHeight===m.scaledCharHeight&&w.colors.foreground===m.colors.foreground&&w.colors.background===m.colors.background},E.is256Color=function(w){return w<A.DEFAULT_COLOR}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ColorManager=E.DEFAULT_ANSI_COLORS=void 0;var A=C(10),w=C(45),m=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};E.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],s=0;s<216;s++){var t=e[s/36%6|0],a=e[s/6%6|0],l=e[s%6];n.push({css:A.channels.toCss(t,a,l),rgba:A.channels.toRgba(t,a,l)})}for(s=0;s<24;s++){var u=8+10*s;n.push({css:A.channels.toCss(u,u,u),rgba:A.channels.toRgba(u,u,u)})}return n}();var i=function(){function n(e,s){this.allowTransparency=s;var t=e.createElement("canvas");t.width=1,t.height=1;var a=t.getContext("2d");if(!a)throw new Error("Could not get rendering context");this._ctx=a,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new w.ColorContrastCache,this.colors={foreground:m,background:f,cursor:c,cursorAccent:o,selectionTransparent:r,selectionOpaque:A.color.blend(f,r),ansi:E.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return n.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},n.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,m),this.colors.background=this._parseColor(e.background,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,E.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,E.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,E.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,E.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,E.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,E.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,E.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,E.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,E.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,E.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,E.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,E.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,E.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,E.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,E.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,E.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},n.prototype._parseColor=function(e,s,t){if(t===void 0&&(t=this.allowTransparency),e===void 0)return s;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+s.css),s;this._ctx.fillRect(0,0,1,1);var a=this._ctx.getImageData(0,0,1,1).data;if(a[3]!==255){if(!t)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+s.css+"."),s;var l=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(y){return Number(y)}),u=l[0],h=l[1],p=l[2],g=l[3],v=Math.round(255*g);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}();E.ColorManager=i},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.throwIfFalsy=void 0,E.throwIfFalsy=function(A){if(!A)throw new Error("value must not be falsy");return A}},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(n,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,t){s.__proto__=t}||function(s,t){for(var a in t)t.hasOwnProperty(a)&&(s[a]=t[a])})(n,e)},function(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(E,"__esModule",{value:!0}),E.CharacterJoinerRegistry=E.JoinedCellData=void 0;var m=C(6),f=C(3),c=C(4),o=function(i){function n(e,s,t){var a=i.call(this)||this;return a.content=0,a.combinedData="",a.fg=e.fg,a.bg=e.bg,a.combinedData=s,a._width=t,a}return w(n,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}(m.AttributeData);E.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 s=[],t=e.translateToString(!0),a=0,l=0,u=0,h=e.getFg(0),p=e.getBg(0),g=0;g<e.getTrimmedLength();g++)if(e.loadCell(g,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==h||this._workCell.bg!==p){if(g-a>1)for(var v=this._getJoinedRanges(t,u,l,e,a),y=0;y<v.length;y++)s.push(v[y]);a=g,u=l,h=this._workCell.fg,p=this._workCell.bg}l+=this._workCell.getChars().length||f.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-a>1)for(v=this._getJoinedRanges(t,u,l,e,a),y=0;y<v.length;y++)s.push(v[y]);return s},i.prototype._getJoinedRanges=function(n,e,s,t,a){for(var l=n.substring(e,s),u=this._characterJoiners[0].handler(l),h=1;h<this._characterJoiners.length;h++)for(var p=this._characterJoiners[h].handler(l),g=0;g<p.length;g++)i._mergeRanges(u,p[g]);return this._stringRangesToCellRanges(u,t,a),u},i.prototype._stringRangesToCellRanges=function(n,e,s){var t=0,a=!1,l=0,u=n[t];if(u){for(var h=s;h<this._bufferService.cols;h++){var p=e.getWidth(h),g=e.getString(h).length||f.WHITESPACE_CELL_CHAR.length;if(p!==0){if(!a&&u[0]<=l&&(u[0]=h,a=!0),u[1]<=l){if(u[1]=h,!(u=n[++t]))break;u[0]<=l?(u[0]=h,a=!0):a=!1}l+=g}}u&&(u[1]=this._bufferService.cols)}},i._mergeRanges=function(n,e){for(var s=!1,t=0;t<n.length;t++){var a=n[t];if(s){if(e[1]<=a[0])return n[t-1][1]=e[1],n;if(e[1]<=a[1])return n[t-1][1]=Math.max(e[1],a[1]),n.splice(t,1),n;n.splice(t,1),t--}else{if(e[1]<=a[0])return n.splice(t,0,e),n;if(e[1]<=a[1])return a[0]=Math.min(e[0],a[0]),n;e[0]<a[1]&&(a[0]=Math.min(e[0],a[0]),s=!0)}}return s?n[n.length-1][1]=e[1]:n.push(e),n},i}();E.CharacterJoinerRegistry=r},function(O,E,C){"use strict";function A(w,m){var f=m.getBoundingClientRect();return[w.clientX-f.left,w.clientY-f.top]}Object.defineProperty(E,"__esModule",{value:!0}),E.getRawByteCoords=E.getCoords=E.getCoordsRelativeToElement=void 0,E.getCoordsRelativeToElement=A,E.getCoords=function(w,m,f,c,o,r,i,n){if(o){var e=A(w,m);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}},E.getRawByteCoords=function(w){if(w)return{x:w[0]+32,y:w[1]+32}}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.RenderDebouncer=void 0;var A=function(){function w(m){this._renderCallback=m}return w.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},w.prototype.refresh=function(m,f,c){var o=this;this._rowCount=c,m=m!==void 0?m:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,m):m,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return o._innerRefresh()}))},w.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var m=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(m,f)}},w}();E.RenderDebouncer=A},function(O,E,C){"use strict";var A,w=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(E,"__esModule",{value:!0}),E.ScreenDprMonitor=void 0;var m=function(f){function c(){var o=f!==null&&f.apply(this,arguments)||this;return o._currentDevicePixelRatio=window.devicePixelRatio,o}return w(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);E.ScreenDprMonitor=m},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.clone=void 0,E.clone=function A(w,m){if(m===void 0&&(m=5),typeof w!="object")return w;var f=Array.isArray(w)?[]:{};for(var c in w)f[c]=m<=1?w[c]:w[c]?A(w[c],m-1):w[c];return f}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Terminal=void 0;var A=C(4),w=C(35),m=C(18),f=C(0),c=C(83),o=function(){function t(a){this._core=new w.Terminal(a),this._addonManager=new c.AddonManager}return t.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unicode",{get:function(){return this._checkProposedApi(),new s(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._checkProposedApi(),new 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,l){this._verifyIntegers(a,l),this._core.resize(a,l)},t.prototype.open=function(a){this._core.open(a)},t.prototype.attachCustomKeyEventHandler=function(a){this._core.attachCustomKeyEventHandler(a)},t.prototype.registerLinkMatcher=function(a,l,u){return this._checkProposedApi(),this._core.registerLinkMatcher(a,l,u)},t.prototype.deregisterLinkMatcher=function(a){this._checkProposedApi(),this._core.deregisterLinkMatcher(a)},t.prototype.registerLinkProvider=function(a){return this._checkProposedApi(),this._core.registerLinkProvider(a)},t.prototype.registerCharacterJoiner=function(a){return this._checkProposedApi(),this._core.registerCharacterJoiner(a)},t.prototype.deregisterCharacterJoiner=function(a){this._checkProposedApi(),this._core.deregisterCharacterJoiner(a)},t.prototype.registerMarker=function(a){return this._checkProposedApi(),this._verifyIntegers(a),this._core.addMarker(a)},t.prototype.addMarker=function(a){return this.registerMarker(a)},t.prototype.hasSelection=function(){return this._core.hasSelection()},t.prototype.select=function(a,l,u){this._verifyIntegers(a,l,u),this._core.select(a,l,u)},t.prototype.getSelection=function(){return this._core.getSelection()},t.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},t.prototype.clearSelection=function(){this._core.clearSelection()},t.prototype.selectAll=function(){this._core.selectAll()},t.prototype.selectLines=function(a,l){this._verifyIntegers(a,l),this._core.selectLines(a,l)},t.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},t.prototype.scrollLines=function(a){this._verifyIntegers(a),this._core.scrollLines(a)},t.prototype.scrollPages=function(a){this._verifyIntegers(a),this._core.scrollPages(a)},t.prototype.scrollToTop=function(){this._core.scrollToTop()},t.prototype.scrollToBottom=function(){this._core.scrollToBottom()},t.prototype.scrollToLine=function(a){this._verifyIntegers(a),this._core.scrollToLine(a)},t.prototype.clear=function(){this._core.clear()},t.prototype.write=function(a,l){this._core.write(a,l)},t.prototype.writeUtf8=function(a,l){this._core.write(a,l)},t.prototype.writeln=function(a,l){this._core.write(a),this._core.write(`\r
|
|
|
`,l)},t.prototype.paste=function(a){this._core.paste(a)},t.prototype.getOption=function(a){return this._core.optionsService.getOption(a)},t.prototype.setOption=function(a,l){this._core.optionsService.setOption(a,l)},t.prototype.refresh=function(a,l){this._verifyIntegers(a,l),this._core.refresh(a,l)},t.prototype.reset=function(){this._core.reset()},t.prototype.loadAddon=function(a){return this._addonManager.loadAddon(this,a)},Object.defineProperty(t,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),t.prototype._verifyIntegers=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];for(var u=0,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}();E.Terminal=o;var r=function(){function t(a,l){this._buffer=a,this.type=l}return t.prototype.init=function(a){return this._buffer=a,this},Object.defineProperty(t.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),t.prototype.getLine=function(a){var l=this._buffer.lines.get(a);if(l)return new n(l)},t.prototype.getNullCell=function(){return new A.CellData},t}(),i=function(){function t(a){var l=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 l._onBufferChange.fire(l.active)})}return Object.defineProperty(t.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),t}(),n=function(){function t(a){this._line=a}return Object.defineProperty(t.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),t.prototype.getCell=function(a,l){if(!(a<0||a>=this._line.length))return l?(this._line.loadCell(a,l),l):this._line.loadCell(a,new A.CellData)},t.prototype.translateToString=function(a,l,u){return this._line.translateToString(a,l,u)},t}(),e=function(){function t(a){this._core=a}return t.prototype.registerCsiHandler=function(a,l){return this._core.addCsiHandler(a,function(u){return l(u.toArray())})},t.prototype.addCsiHandler=function(a,l){return this.registerCsiHandler(a,l)},t.prototype.registerDcsHandler=function(a,l){return this._core.addDcsHandler(a,function(u,h){return l(u,h.toArray())})},t.prototype.addDcsHandler=function(a,l){return this.registerDcsHandler(a,l)},t.prototype.registerEscHandler=function(a,l){return this._core.addEscHandler(a,l)},t.prototype.addEscHandler=function(a,l){return this.registerEscHandler(a,l)},t.prototype.registerOscHandler=function(a,l){return this._core.addOscHandler(a,l)},t.prototype.addOscHandler=function(a,l){return this.registerOscHandler(a,l)},t}(),s=function(){function t(a){this._core=a}return t.prototype.register=function(a){this._core.unicodeService.register(a)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(l){this._core.unicodeService.activeVersion=l},enumerable:!1,configurable:!0}),t}()},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(M,U){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,j){F.__proto__=j}||function(F,j){for(var W in j)j.hasOwnProperty(W)&&(F[W]=j[W])})(M,U)},function(P,M){function U(){this.constructor=P}A(P,M),P.prototype=M===null?Object.create(M):(U.prototype=M.prototype,new U)});Object.defineProperty(E,"__esModule",{value:!0}),E.Terminal=void 0;var m=C(36),f=C(37),c=C(38),o=C(12),r=C(19),i=C(40),n=C(50),e=C(51),s=C(11),t=C(7),a=C(18),l=C(54),u=C(55),h=C(56),p=C(57),g=C(59),v=C(0),y=C(16),x=C(27),T=C(60),S=C(5),b=C(61),_=C(62),I=C(63),L=C(64),N=C(65),D=typeof window!="undefined"?window.document:null,R=function(P){function M(U){U===void 0&&(U={});var F=P.call(this,U)||this;return F.browser=s,F._keyDownHandled=!1,F._onCursorMove=new v.EventEmitter,F._onKey=new v.EventEmitter,F._onRender=new v.EventEmitter,F._onSelectionChange=new v.EventEmitter,F._onTitleChange=new v.EventEmitter,F._onFocus=new v.EventEmitter,F._onBlur=new v.EventEmitter,F._onA11yCharEmitter=new v.EventEmitter,F._onA11yTabEmitter=new v.EventEmitter,F._setup(),F.linkifier=F._instantiationService.createInstance(n.Linkifier),F.linkifier2=F.register(F._instantiationService.createInstance(I.Linkifier2)),F.register(F._inputHandler.onRequestBell(function(){return F.bell()})),F.register(F._inputHandler.onRequestRefreshRows(function(j,W){return F.refresh(j,W)})),F.register(F._inputHandler.onRequestReset(function(){return F.reset()})),F.register(F._inputHandler.onRequestScroll(function(j,W){return F.scroll(j,W||void 0)})),F.register(F._inputHandler.onRequestWindowsOptionsReport(function(j){return F._reportWindowsOptions(j)})),F.register(v.forwardEvent(F._inputHandler.onCursorMove,F._onCursorMove)),F.register(v.forwardEvent(F._inputHandler.onTitleChange,F._onTitleChange)),F.register(v.forwardEvent(F._inputHandler.onA11yChar,F._onA11yCharEmitter)),F.register(v.forwardEvent(F._inputHandler.onA11yTab,F._onA11yTabEmitter)),F.register(F._bufferService.onResize(function(j){return F._afterResize(j.cols,j.rows)})),F}return w(M,P),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,F,j;this._isDisposed||(P.prototype.dispose.call(this),(U=this._renderService)===null||U===void 0||U.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(j=(F=this.element)===null||F===void 0?void 0:F.parentNode)===null||j===void 0||j.removeChild(this.element))},M.prototype._setup=function(){P.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 F,j,W,V;switch(P.prototype._updateOptions.call(this,U),U){case"fontFamily":case"fontSize":(F=this._renderService)===null||F===void 0||F.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),F=this._bufferService.buffer.y*U,j=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=j+"px",this.textarea.style.top=F+"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 F=function(W){return c.handlePasteEvent(W,U.textarea,U._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",F)),this.register(t.addDisposableDomListener(this.element,"paste",F)),s.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(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)})),s.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(F){return U._keyUp(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(F){return U._keyDown(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(F){return U._keyPress(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return U._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(F){return U._compositionHelper.compositionupdate(F)})),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(F){return U._queueLinkification(F.start,F.end)}))},M.prototype.open=function(U){var F=this;if(!U)throw new Error("Terminal requires a parent element.");D.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=D.createDocumentFragment();this._viewportElement=D.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),j.appendChild(this._viewportElement),this._viewportScrollArea=D.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=D.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=D.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),j.appendChild(this.screenElement),this.textarea=D.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",a.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(t.addDisposableDomListener(this.textarea,"focus",function(z){return F._onTextAreaFocus(z)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return F._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var W=this._instantiationService.createInstance(L.CoreBrowserService,this.textarea);this._instantiationService.setService(S.ICoreBrowserService,W),this._charSizeService=this._instantiationService.createInstance(b.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.ICharSizeService,this._charSizeService),this._compositionView=D.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(m.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(j),this._theme=this.options.theme||this._theme,this._colorManager=new x.ColorManager(D,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(z){return F._colorManager.onOptionsChange(z)})),this._colorManager.setTheme(this._theme);var V=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(T.RenderService,V,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(z){return F._onRender.fire(z)})),this.onResize(function(z){return F._renderService.resize(z.cols,z.rows)}),this._soundService=this._instantiationService.createInstance(l.SoundService),this._instantiationService.setService(S.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(_.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(f.Viewport,function(z,Y){return F.scrollLines(z,Y)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return F.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){F._renderService.onCursorMove(),F._syncTextArea()})),this.register(this.onResize(function(){return F._renderService.onResize(F.cols,F.rows)})),this.register(this.onBlur(function(){return F._renderService.onBlur()})),this.register(this.onFocus(function(){return F._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return F.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(z){return F.scrollLines(z.amount,z.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return F._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(z){return F._renderService.onSelectionChanged(z.start,z.end,z.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(z){F.textarea.value=z,F.textarea.focus(),F.textarea.select()})),this.register(this.onScroll(function(){F.viewport.syncScrollArea(),F._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return F._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(u.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return F._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(z){return F._selectionService.onMouseDown(z)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new 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 F,j,W;this._theme=U,(F=this._colorManager)===null||F===void 0||F.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,F=this,j=this.element;function W(ne){var ge,Oe,De=F._mouseService.getRawByteCoords(ne,F.screenElement,F.cols,F.rows);if(!De)return!1;switch(ne.overrideType||ne.type){case"mousemove":Oe=32,ne.buttons===void 0?(ge=3,ne.button!==void 0&&(ge=ne.button<3?ne.button:3)):ge=1&ne.buttons?0:4&ne.buttons?1:2&ne.buttons?2:3;break;case"mouseup":Oe=0,ge=ne.button<3?ne.button:3;break;case"mousedown":Oe=1,ge=ne.button<3?ne.button:3;break;case"wheel":ne.deltaY!==0&&(Oe=ne.deltaY<0?0:1),ge=4;break;default:return!1}return!(Oe===void 0||ge===void 0||ge>4)&&F._coreMouseService.triggerMouseEvent({col:De.x-33,row:De.y-33,button:ge,action:Oe,ctrl:ne.ctrlKey,alt:ne.altKey,shift:ne.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},z=function(ge){return W(ge),ge.buttons||(U._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&U._document.removeEventListener("mousemove",V.mousedrag)),U.cancel(ge)},Y=function(ge){return W(ge),ge.preventDefault(),U.cancel(ge)},$=function(ge){ge.buttons&&W(ge)},ue=function(ge){ge.buttons||W(ge)};this.register(this._coreMouseService.onProtocolChange(function(ne){ne?(U.optionsService.options.logLevel==="debug"&&U._logService.debug("Binding to mouse events:",U._coreMouseService.explainEvents(ne)),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&ne?V.mousemove||(j.addEventListener("mousemove",ue),V.mousemove=ue):(j.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&ne?V.wheel||(j.addEventListener("wheel",Y,{passive:!1}),V.wheel=Y):(j.removeEventListener("wheel",V.wheel),V.wheel=null),2&ne?V.mouseup||(V.mouseup=z):(U._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&ne?V.mousedrag||(V.mousedrag=$):(U._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(j,"mousedown",function(ne){if(ne.preventDefault(),U.focus(),U._coreMouseService.areMouseEventsActive&&!U._selectionService.shouldForceSelection(ne))return W(ne),V.mouseup&&U._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&U._document.addEventListener("mousemove",V.mousedrag),U.cancel(ne)})),this.register(t.addDisposableDomListener(j,"wheel",function(ne){if(!V.wheel){if(!U.buffer.hasScrollback){var ge=U.viewport.getLinesScrolled(ne);if(ge===0)return;for(var Oe=o.C0.ESC+(U._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ne.deltaY<0?"A":"B"),De="",He=0;He<Math.abs(ge);He++)De+=Oe;U._coreService.triggerDataEvent(De,!0)}}},{passive:!0})),this.register(t.addDisposableDomListener(j,"wheel",function(ne){if(!V.wheel)return U.viewport.onWheel(ne)?void 0:U.cancel(ne)},{passive:!1})),this.register(t.addDisposableDomListener(j,"touchstart",function(ne){if(!U._coreMouseService.areMouseEventsActive)return U.viewport.onTouchStart(ne),U.cancel(ne)},{passive:!0})),this.register(t.addDisposableDomListener(j,"touchmove",function(ne){if(!U._coreMouseService.areMouseEventsActive)return U.viewport.onTouchMove(ne)?void 0:U.cancel(ne)},{passive:!1}))},M.prototype.refresh=function(U,F){var j;(j=this._renderService)===null||j===void 0||j.refreshRows(U,F)},M.prototype._queueLinkification=function(U,F){var j;(j=this.linkifier)===null||j===void 0||j.linkifyRows(U,F)},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,F){P.prototype.scrollLines.call(this,U,F),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,F,j){var W=this.linkifier.registerLinkMatcher(U,F,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 F=this._renderService.registerCharacterJoiner(U);return this.refresh(0,this.rows-1),F},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,F,j){this._selectionService.setSelection(U,F,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,F){var j;(j=this._selectionService)===null||j===void 0||j.selectLines(U,F)},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 F=g.evaluateKeyboardEvent(U,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(U),F.type===3||F.type===2){var j=this.rows-1;return this.scrollLines(F.type===2?-j:j),this.cancel(U,!0)}return F.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,U)||(F.cancel&&this.cancel(U,!0),!F.key||(F.key!==o.C0.ETX&&F.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:F.key,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(F.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(U,!0)))},M.prototype._isThirdLevelShift=function(U,F){var j=U.isMac&&!this.options.macOptionIsMeta&&F.altKey&&!F.ctrlKey&&!F.metaKey||U.isWindows&&F.altKey&&F.ctrlKey&&!F.metaKey;return F.type==="keypress"?j:j&&(!F.keyCode||F.keyCode>47)},M.prototype._keyUp=function(U){this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1||(function(F){return F.keyCode===16||F.keyCode===17||F.keyCode===18}(U)||this.focus(),this.updateCursorStyle(U))},M.prototype._keyPress=function(U){var F;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(this.cancel(U),U.charCode)F=U.charCode;else if(U.which===null||U.which===void 0)F=U.keyCode;else{if(U.which===0||U.charCode===0)return!1;F=U.which}return!(!F||(U.altKey||U.ctrlKey||U.metaKey)&&!this._isThirdLevelShift(this.browser,U))&&(F=String.fromCharCode(F),this._onKey.fire({key:F,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(F,!0),!0)},M.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},M.prototype.resize=function(U,F){U!==this.cols||F!==this.rows?P.prototype.resize.call(this,U,F):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},M.prototype._afterResize=function(U,F){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,F;this.options.rows=this.rows,this.options.cols=this.cols;var j=this._customKeyEventHandler;this._setup(),P.prototype.reset.call(this),(U=this._selectionService)===null||U===void 0||U.reset(),this._customKeyEventHandler=j,this.refresh(0,this.rows-1),(F=this.viewport)===null||F===void 0||F.syncScrollArea()},M.prototype._reportWindowsOptions=function(U){if(this._renderService)switch(U){case r.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var F=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),j=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+j+";"+F+"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,F){if(this.options.cancelEvents||F)return U.preventDefault(),U.stopPropagation(),!1},M.prototype._visualBell=function(){return!1},M.prototype._soundBell=function(){return this.options.bellStyle==="sound"},M}(N.CoreTerminal);E.Terminal=R},function(O,E,C){"use strict";var A=this&&this.__decorate||function(o,r,i,n){var e,s=arguments.length,t=s<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=(s<3?e(t):s>3?e(r,i,t):e(r,i))||t);return s>3&&t&&Object.defineProperty(r,i,t),t},w=this&&this.__param||function(o,r){return function(i,n){r(i,n,o)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CompositionHelper=void 0;var m=C(5),f=C(1),c=function(){function o(r,i,n,e,s,t){this._textarea=r,this._compositionView=i,this._bufferService=n,this._optionsService=e,this._charSizeService=s,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(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 s=void 0;s=i._isComposing?i._textarea.value.substring(n.start,n.end):i._textarea.value.substring(n.start),i._coreService.triggerDataEvent(s,!0)}},0)}else{this._isSendingComposition=!1;var 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,s=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=s+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=s+"px",this._textarea.style.top=e+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}r||setTimeout(function(){return i.updateCompositionElements(!0)},0)}},o=A([w(2,f.IBufferService),w(3,f.IOptionsService),w(4,m.ICharSizeService),w(5,f.ICoreService)],o)}();E.CompositionHelper=c},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(s,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}A(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,h=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},f=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Viewport=void 0;var c=C(2),o=C(7),r=C(5),i=C(1),n=function(e){function s(t,a,l,u,h,p,g){var v=e.call(this)||this;return v._scrollLines=t,v._viewportElement=a,v._scrollArea=l,v._bufferService=u,v._optionsService=h,v._charSizeService=p,v._renderService=g,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 w(s,e),s.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},s.prototype._refresh=function(t){var a=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return a._innerRefresh()}))},s.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==a&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=a),this._refreshAnimationFrame=null},s.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===a&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},s.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var a=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(a,!0)}},s.prototype._bubbleScroll=function(t,a){var l=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(a<0&&this._viewportElement.scrollTop!==0||a>0&&l<this._lastRecordedBufferHeight)||(t.cancelable&&t.preventDefault(),!1)},s.prototype.onWheel=function(t){var a=this._getPixelsScrolled(t);return a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},s.prototype._getPixelsScrolled=function(t){if(t.deltaY===0)return 0;var a=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_LINE?a*=this._currentRowHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._currentRowHeight*this._bufferService.rows),a},s.prototype.getLinesScrolled=function(t){if(t.deltaY===0)return 0;var a=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(a/=this._currentRowHeight+0,this._wheelPartialScroll+=a,a=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._bufferService.rows),a},s.prototype._applyScrollModifier=function(t,a){var l=this._optionsService.options.fastScrollModifier;return l==="alt"&&a.altKey||l==="ctrl"&&a.ctrlKey||l==="shift"&&a.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},s.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},s.prototype.onTouchMove=function(t){var a=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},s=m([f(3,i.IBufferService),f(4,i.IOptionsService),f(5,r.ICharSizeService),f(6,r.IRenderService)],s)}(c.Disposable);E.Viewport=n},function(O,E,C){"use strict";function A(c){return c.replace(/\r?\n/g,"\r")}function w(c,o){return o?"[200~"+c+"[201~":c}function m(c,o,r){c=w(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(E,"__esModule",{value:!0}),E.rightClickHandler=E.moveTextAreaUnderMouseCursor=E.paste=E.handlePasteEvent=E.copyHandler=E.bracketTextForPaste=E.prepareTextForTerminal=void 0,E.prepareTextForTerminal=A,E.bracketTextForPaste=w,E.copyHandler=function(c,o){c.clipboardData&&c.clipboardData.setData("text/plain",o.selectionText),c.preventDefault()},E.handlePasteEvent=function(c,o,r){c.stopPropagation(),c.clipboardData&&m(c.clipboardData.getData("text/plain"),o,r)},E.paste=m,E.moveTextAreaUnderMouseCursor=f,E.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,E,C){"use strict";var A,w=this&&this.__extends||(A=function(s,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}A(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)});Object.defineProperty(E,"__esModule",{value:!0}),E.EscapeSequenceParser=E.VT500_TRANSITION_TABLE=E.TransitionTable=void 0;var m=C(2),f=C(15),c=C(21),o=C(22),r=C(24),i=function(){function e(s){this.table=new Uint8Array(s)}return e.prototype.setDefault=function(s,t){f.fill(this.table,s<<4|t)},e.prototype.add=function(s,t,a,l){this.table[t<<8|s]=a<<4|l},e.prototype.addMany=function(s,t,a,l){for(var u=0;u<s.length;u++)this.table[t<<8|s[u]]=a<<4|l},e}();E.TransitionTable=i,E.VT500_TRANSITION_TABLE=function(){var e=new i(4095),s=Array.apply(null,Array(256)).map(function(p,g){return g}),t=function(g,v){return s.slice(g,v)},a=t(32,127),l=t(0,24);l.push(25),l.push.apply(l,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(l,0,3,0),e.addMany(l,1,3,1),e.add(127,1,0,1),e.addMany(l,8,0,8),e.addMany(l,3,3,3),e.add(127,3,0,3),e.addMany(l,4,3,4),e.add(127,4,0,4),e.addMany(l,6,3,6),e.addMany(l,5,3,5),e.add(127,5,0,5),e.addMany(l,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(a,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(a,7,0,7),e.addMany(l,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(l,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(l,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(l,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(l,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(l,13,13,13),e.addMany(a,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var n=function(e){function s(t){t===void 0&&(t=E.VT500_TRANSITION_TABLE);var a=e.call(this)||this;return a._transitions=t,a.initialState=0,a.currentState=a.initialState,a._params=new c.Params,a._params.addParam(0),a._collect=0,a.precedingCodepoint=0,a._printHandlerFb=function(l,u,h){},a._executeHandlerFb=function(l){},a._csiHandlerFb=function(l,u){},a._escHandlerFb=function(l){},a._errorHandlerFb=function(l){return l},a._printHandler=a._printHandlerFb,a._executeHandlers=Object.create(null),a._csiHandlers=Object.create(null),a._escHandlers=Object.create(null),a._oscParser=new o.OscParser,a._dcsParser=new r.DcsParser,a._errorHandler=a._errorHandlerFb,a.setEscHandler({final:"\\"},function(){}),a}return w(s,e),s.prototype._identifier=function(t,a){a===void 0&&(a=[64,126]);var l=0;if(t.prefix){if(t.prefix.length>1)throw new Error("only one byte as prefix supported");if((l=t.prefix.charCodeAt(0))&&60>l||l>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var u=0;u<t.intermediates.length;++u){var h=t.intermediates.charCodeAt(u);if(32>h||h>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");l<<=8,l|=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 l<<=8,l|=p},s.prototype.identToString=function(t){for(var a=[];t;)a.push(String.fromCharCode(255&t)),t>>=8;return a.reverse().join("")},s.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},s.prototype.setPrintHandler=function(t){this._printHandler=t},s.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},s.prototype.addEscHandler=function(t,a){var l=this._identifier(t,[48,126]);this._escHandlers[l]===void 0&&(this._escHandlers[l]=[]);var u=this._escHandlers[l];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},s.prototype.setEscHandler=function(t,a){this._escHandlers[this._identifier(t,[48,126])]=[a]},s.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},s.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},s.prototype.setExecuteHandler=function(t,a){this._executeHandlers[t.charCodeAt(0)]=a},s.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},s.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},s.prototype.addCsiHandler=function(t,a){var l=this._identifier(t);this._csiHandlers[l]===void 0&&(this._csiHandlers[l]=[]);var u=this._csiHandlers[l];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},s.prototype.setCsiHandler=function(t,a){this._csiHandlers[this._identifier(t)]=[a]},s.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},s.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},s.prototype.addDcsHandler=function(t,a){return this._dcsParser.addHandler(this._identifier(t),a)},s.prototype.setDcsHandler=function(t,a){this._dcsParser.setHandler(this._identifier(t),a)},s.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},s.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},s.prototype.addOscHandler=function(t,a){return this._oscParser.addHandler(t,a)},s.prototype.setOscHandler=function(t,a){this._oscParser.setHandler(t,a)},s.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},s.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},s.prototype.setErrorHandler=function(t){this._errorHandler=t},s.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},s.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},s.prototype.parse=function(t,a){for(var l=0,u=0,h=this.currentState,p=this._oscParser,g=this._dcsParser,v=this._collect,y=this._params,x=this._transitions.table,T=0;T<a;++T){switch((u=x[h<<8|((l=t[T])<160?l:160)])>>4){case 2:for(var S=T+1;;++S){if(S>=a||(l=t[S])<32||l>126&&l<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(l=t[S])<32||l>126&&l<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(l=t[S])<32||l>126&&l<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(l=t[S])<32||l>126&&l<160){this._printHandler(t,T,S),T=S-1;break}}break;case 3:this._executeHandlers[l]?this._executeHandlers[l]():this._executeHandlerFb(l),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:T,code:l,currentState:h,collect:v,params:y,abort:!1}).abort)return;break;case 7:for(var b=this._csiHandlers[v<<8|l],_=b?b.length-1:-1;_>=0&&b[_](y)===!1;_--);_<0&&this._csiHandlerFb(v<<8|l,y),this.precedingCodepoint=0;break;case 8:do switch(l){case 59:y.addParam(0);break;case 58:y.addSubParam(-1);break;default:y.addDigit(l-48)}while(++T<a&&(l=t[T])>47&&l<60);T--;break;case 9:v<<=8,v|=l;break;case 10:for(var I=this._escHandlers[v<<8|l],L=I?I.length-1:-1;L>=0&&I[L]()===!1;L--);L<0&&this._escHandlerFb(v<<8|l),this.precedingCodepoint=0;break;case 11:y.reset(),y.addParam(0),v=0;break;case 12:g.hook(v<<8|l,y);break;case 13:for(var N=T+1;;++N)if(N>=a||(l=t[N])===24||l===26||l===27||l>127&&l<160){g.put(t,T,N),T=N-1;break}break;case 14:g.unhook(l!==24&&l!==26),l===27&&(u|=1),y.reset(),y.addParam(0),v=0,this.precedingCodepoint=0;break;case 4:p.start();break;case 5:for(var D=T+1;;D++)if(D>=a||(l=t[D])<32||l>127&&l<=159){p.put(t,T,D),T=D-1;break}break;case 6:p.end(l!==24&&l!==26),l===27&&(u|=1),y.reset(),y.addParam(0),v=0,this.precedingCodepoint=0}h=15&u}this._collect=v,this.currentState=h},s}(m.Disposable);E.EscapeSequenceParser=n},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(g,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var T in x)x.hasOwnProperty(T)&&(y[T]=x[T])})(g,v)},function(p,g){function v(){this.constructor=p}A(p,g),p.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),m=this&&this.__decorate||function(p,g,v,y){var x,T=arguments.length,S=T<3?g:y===null?y=Object.getOwnPropertyDescriptor(g,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(p,g,v,y);else for(var b=p.length-1;b>=0;b--)(x=p[b])&&(S=(T<3?x(S):T>3?x(g,v,S):x(g,v))||S);return T>3&&S&&Object.defineProperty(g,v,S),S},f=this&&this.__param||function(p,g){return function(v,y){g(v,y,p)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Renderer=void 0;var c=C(41),o=C(47),r=C(48),i=C(49),n=C(29),e=C(2),s=C(5),t=C(1),a=C(25),l=C(0),u=1,h=function(p){function g(v,y,x,T,S,b,_,I,L){var N=p.call(this)||this;N._colors=v,N._screenElement=y,N._bufferService=S,N._charSizeService=b,N._optionsService=_,N._id=u++,N._onRequestRedraw=new l.EventEmitter;var D=N._optionsService.options.allowTransparency;return N._characterJoinerRegistry=new n.CharacterJoinerRegistry(N._bufferService),N._renderLayers=[new c.TextRenderLayer(N._screenElement,0,N._colors,N._characterJoinerRegistry,D,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,x,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 w(g,p),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),g.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)},g.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},g.prototype.setColors=function(v){this._colors=v;for(var y=0,x=this._renderLayers;y<x.length;y++){var T=x[y];T.setColors(this._colors),T.reset()}},g.prototype.onResize=function(v,y){this._updateDimensions();for(var x=0,T=this._renderLayers;x<T.length;x++)T[x].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},g.prototype.onBlur=function(){this._runOperation(function(v){return v.onBlur()})},g.prototype.onFocus=function(){this._runOperation(function(v){return v.onFocus()})},g.prototype.onSelectionChanged=function(v,y,x){x===void 0&&(x=!1),this._runOperation(function(T){return T.onSelectionChanged(v,y,x)})},g.prototype.onCursorMove=function(){this._runOperation(function(v){return v.onCursorMove()})},g.prototype.onOptionsChanged=function(){this._runOperation(function(v){return v.onOptionsChanged()})},g.prototype.clear=function(){this._runOperation(function(v){return v.reset()})},g.prototype._runOperation=function(v){for(var y=0,x=this._renderLayers;y<x.length;y++)v(x[y])},g.prototype.renderRows=function(v,y){for(var x=0,T=this._renderLayers;x<T.length;x++)T[x].onGridChanged(v,y)},g.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},g.prototype.registerCharacterJoiner=function(v){return this._characterJoinerRegistry.registerCharacterJoiner(v)},g.prototype.deregisterCharacterJoiner=function(v){return this._characterJoinerRegistry.deregisterCharacterJoiner(v)},g=m([f(4,t.IBufferService),f(5,s.ICharSizeService),f(6,t.IOptionsService),f(7,t.ICoreService),f(8,s.ICoreBrowserService)],g)}(e.Disposable);E.Renderer=h},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(s,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}A(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)});Object.defineProperty(E,"__esModule",{value:!0}),E.TextRenderLayer=void 0;var m=C(42),f=C(13),c=C(6),o=C(3),r=C(29),i=C(4),n=function(e){function s(t,a,l,u,h,p,g,v){var y=e.call(this,t,"text",a,h,l,p,g,v)||this;return y._characterWidth=0,y._characterFont="",y._characterOverlapCache={},y._workCell=new i.CellData,y._state=new m.GridCache,y._characterJoinerRegistry=u,y}return w(s,e),s.prototype.resize=function(t){e.prototype.resize.call(this,t);var a=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===a||(this._characterWidth=t.scaledCharWidth,this._characterFont=a,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},s.prototype.reset=function(){this._state.clear(),this._clearAll()},s.prototype._forEachCell=function(t,a,l,u){for(var h=t;h<=a;h++)for(var p=h+this._bufferService.buffer.ydisp,g=this._bufferService.buffer.lines.get(p),v=l?l.getJoinedCharacters(p):[],y=0;y<this._bufferService.cols;y++){g.loadCell(y,this._workCell);var x=this._workCell,T=!1,S=y;if(x.getWidth()!==0){if(v.length>0&&y===v[0][0]){T=!0;var b=v.shift();x=new r.JoinedCellData(this._workCell,g.translateToString(!0,b[0],b[1]),b[1]-b[0]),S=b[1]-1}!T&&this._isOverlapping(x)&&S<g.length-1&&g.getCodePoint(S+1)===o.NULL_CELL_CODE&&(x.content&=-12582913,x.content|=2<<22),u(x,y,h),y=S}}},s.prototype._drawBackground=function(t,a){var l=this,u=this._ctx,h=this._bufferService.cols,p=0,g=0,v=null;u.save(),this._forEachCell(t,a,null,function(y,x,T){var S=null;y.isInverse()?S=y.isFgDefault()?l._colors.foreground.css:y.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(y.getFgColor()).join(",")+")":l._colors.ansi[y.getFgColor()].css:y.isBgRGB()?S="rgb("+c.AttributeData.toColorRGB(y.getBgColor()).join(",")+")":y.isBgPalette()&&(S=l._colors.ansi[y.getBgColor()].css),v===null&&(p=x,g=T),T!==g?(u.fillStyle=v||"",l._fillCells(p,g,h-p,1),p=x,g=T):v!==S&&(u.fillStyle=v||"",l._fillCells(p,g,x-p,1),p=x,g=T),v=S}),v!==null&&(u.fillStyle=v,this._fillCells(p,g,h-p,1)),u.restore()},s.prototype._drawForeground=function(t,a){var l=this;this._forEachCell(t,a,this._characterJoinerRegistry,function(u,h,p){if(!u.isInvisible()&&(l._drawChars(u,h,p),u.isUnderline())){if(l._ctx.save(),u.isInverse())if(u.isBgDefault())l._ctx.fillStyle=l._colors.background.css;else if(u.isBgRGB())l._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getBgColor()).join(",")+")";else{var g=u.getBgColor();l._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&g<8&&(g+=8),l._ctx.fillStyle=l._colors.ansi[g].css}else if(u.isFgDefault())l._ctx.fillStyle=l._colors.foreground.css;else if(u.isFgRGB())l._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getFgColor()).join(",")+")";else{var v=u.getFgColor();l._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&v<8&&(v+=8),l._ctx.fillStyle=l._colors.ansi[v].css}l._fillBottomLineAtCells(h,p,u.getWidth()),l._ctx.restore()}})},s.prototype.onGridChanged=function(t,a){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,t,this._bufferService.cols,a-t+1),this._drawBackground(t,a),this._drawForeground(t,a))},s.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},s.prototype._isOverlapping=function(t){if(t.getWidth()!==1)return!1;if(t.getCode()<256)return!1;var a=t.getChars();if(this._characterOverlapCache.hasOwnProperty(a))return this._characterOverlapCache[a];this._ctx.save(),this._ctx.font=this._characterFont;var l=Math.floor(this._ctx.measureText(a).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[a]=l,l},s}(f.BaseRenderLayer);E.TextRenderLayer=n},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.GridCache=void 0;var A=function(){function w(){this.cache=[]}return w.prototype.resize=function(m,f){for(var c=0;c<m;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=m},w.prototype.clear=function(){for(var m=0;m<this.cache.length;m++)for(var f=0;f<this.cache[m].length;f++)this.cache[m][f]=void 0},w}();E.GridCache=A},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(u,h){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])})(u,h)},function(l,u){function h(){this.constructor=l}A(l,u),l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)});Object.defineProperty(E,"__esModule",{value:!0}),E.NoneCharAtlas=E.DynamicCharAtlas=E.getGlyphCacheKey=void 0;var m=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 s(l){return l.code<<21|l.bg<<12|l.fg<<3|(l.bold?0:4)+(l.dim?0:2)+(l.italic?0:1)}E.getGlyphCacheKey=s;var t=function(l){function u(h,p){var g=l.call(this)||this;g._config=p,g._drawToCacheCount=0,g._glyphsWaitingOnBitmap=[],g._bitmapCommitTimeout=null,g._bitmap=null,g._cacheCanvas=h.createElement("canvas"),g._cacheCanvas.width=1024,g._cacheCanvas.height=1024,g._cacheCtx=i.throwIfFalsy(g._cacheCanvas.getContext("2d",{alpha:!0}));var v=h.createElement("canvas");v.width=g._config.scaledCharWidth,v.height=g._config.scaledCharHeight,g._tmpCtx=i.throwIfFalsy(v.getContext("2d",{alpha:g._config.allowTransparency})),g._width=Math.floor(1024/g._config.scaledCharWidth),g._height=Math.floor(1024/g._config.scaledCharHeight);var y=g._width*g._height;return g._cacheMap=new o.LRUMap(y),g._cacheMap.prealloc(y),g}return w(u,l),u.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},u.prototype.beginFrame=function(){this._drawToCacheCount=0},u.prototype.draw=function(h,p,g,v){if(p.code===32)return!0;if(!this._canCache(p))return!1;var y=s(p),x=this._cacheMap.get(y);if(x!=null)return this._drawFromCache(h,x,g,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 S=this._drawToCache(p,T);return this._cacheMap.set(y,S),this._drawFromCache(h,S,g,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,g,v){if(!p.isEmpty){var y=this._toCoordinateX(p.index),x=this._toCoordinateY(p.index);h.drawImage(p.inBitmap?this._bitmap:this._cacheCanvas,y,x,this._config.scaledCharWidth,this._config.scaledCharHeight,g,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===m.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===m.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 g=this._getBackgroundColor(h);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=g.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var 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=m.DIM_OPACITY),this._tmpCtx.fillText(h.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var x=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),T=!1;this._config.allowTransparency||(T=function(I,L){for(var N=!0,D=L.rgba>>>24,R=L.rgba>>>16&255,P=L.rgba>>>8&255,M=0;M<I.data.length;M+=4)I.data[M]===D&&I.data[M+1]===R&&I.data[M+2]===P?I.data[M+3]=0:N=!1;return N}(x,g));var S=this._toCoordinateX(p),b=this._toCoordinateY(p);this._cacheCtx.putImageData(x,S,b);var _={index:p,isEmpty:T,inBitmap:!1};return this._addGlyphToBitmap(_),_},u.prototype._addGlyphToBitmap=function(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(g){h._bitmap=g;for(var v=0;v<p.length;v++)p[v].inBitmap=!0}),this._bitmapCommitTimeout=null},u}(f.BaseCharAtlas);E.DynamicCharAtlas=t;var a=function(l){function u(h,p){return l.call(this)||this}return w(u,l),u.prototype.draw=function(h,p,g,v){return!1},u}(f.BaseCharAtlas);E.NoneCharAtlas=a},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BaseCharAtlas=void 0;var A=function(){function w(){this._didWarmUp=!1}return w.prototype.dispose=function(){},w.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},w.prototype._doWarmUp=function(){},w.prototype.beginFrame=function(){},w}();E.BaseCharAtlas=A},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ColorContrastCache=void 0;var A=function(){function w(){this._color={},this._rgba={}}return w.prototype.clear=function(){this._color={},this._rgba={}},w.prototype.setCss=function(m,f,c){this._rgba[m]||(this._rgba[m]={}),this._rgba[m][f]=c},w.prototype.getCss=function(m,f){return this._rgba[m]?this._rgba[m][f]:void 0},w.prototype.setColor=function(m,f,c){this._color[m]||(this._color[m]={}),this._color[m][f]=c},w.prototype.getColor=function(m,f){return this._color[m]?this._color[m][f]:void 0},w}();E.ColorContrastCache=A},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.LRUMap=void 0;var A=function(){function w(m){this.capacity=m,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return w.prototype._unlinkNode=function(m){var f=m.prev,c=m.next;m===this._head&&(this._head=c),m===this._tail&&(this._tail=f),f!==null&&(f.next=c),c!==null&&(c.prev=f)},w.prototype._appendNode=function(m){var f=this._tail;f!==null&&(f.next=m),m.prev=f,m.next=null,this._tail=m,this._head===null&&(this._head=m)},w.prototype.prealloc=function(m){for(var f=this._nodePool,c=0;c<m;c++)f.push({prev:null,next:null,key:null,value:null})},w.prototype.get=function(m){var f=this._map[m];return f!==void 0?(this._unlinkNode(f),this._appendNode(f),f.value):null},w.prototype.peekValue=function(m){var f=this._map[m];return f!==void 0?f.value:null},w.prototype.peek=function(){var m=this._head;return m===null?null:m.value},w.prototype.set=function(m,f){var c=this._map[m];if(c!==void 0)c=this._map[m],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=m,c.value=f,this._map[m]=c;else{var o=this._nodePool;o.length>0?((c=o.pop()).key=m,c.value=f):c={prev:null,next:null,key:m,value:f},this._map[m]=c,this.size++}this._appendNode(c)},w}();E.LRUMap=A},function(O,E,C){"use strict";var A,w=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(E,"__esModule",{value:!0}),E.SelectionRenderLayer=void 0;var m=function(f){function c(o,r,i,n,e,s){var t=f.call(this,o,"selection",r,!0,i,n,e,s)||this;return t._clearState(),t}return w(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,s=Math.max(n,0),t=Math.min(e,this._bufferService.rows-1);if(!(s>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,i){var a=o[0],l=r[0]-a,u=t-s+1;this._fillCells(a,s,l,u)}else{a=n===s?o[0]:0;var h=s===t?r[0]:this._bufferService.cols;this._fillCells(a,s,h-a,1);var p=Math.max(t-s-1,0);if(this._fillCells(0,s+1,this._bufferService.cols,p),s!==t){var g=e===t?r[0]:this._bufferService.cols;this._fillCells(0,t,g,1)}}this._state.start=[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);E.SelectionRenderLayer=m},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(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(E,"__esModule",{value:!0}),E.CursorRenderLayer=void 0;var m=C(13),f=C(4),c=function(r){function i(n,e,s,t,a,l,u,h,p){var g=r.call(this,n,"cursor",e,!0,s,t,l,u)||this;return g._onRequestRedraw=a,g._coreService=h,g._coreBrowserService=p,g._cell=new f.CellData,g._state={x:0,y:0,isFocused:!1,style:"",width:0},g._cursorRenderers={bar:g._renderBarCursor.bind(g),block:g._renderBlockCursor.bind(g),underline:g._renderUnderlineCursor.bind(g)},g}return w(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,s=e-this._bufferService.buffer.ydisp;if(s<0||s>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var a=this._optionsService.options.cursorStyle;return a&&a!=="block"?this._cursorRenderers[a](t,s,this._cell):this._renderBlurCursor(t,s,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=s,this._state.isFocused=!1,this._state.style=a,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===s&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,s,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=s,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},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,s){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,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(n,e,s.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(s,n,e),this._ctx.restore()},i.prototype._renderUnderlineCursor=function(n,e,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(n,e),this._ctx.restore()},i.prototype._renderBlurCursor=function(n,e,s){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(n,e,s.getWidth(),1),this._ctx.restore()},i}(m.BaseRenderLayer);E.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 s=600-(Date.now()-n._animationTimeRestarted);return n._animationTimeRestarted=void 0,void n._restartInterval(s)}n.isCursorVisible=!n.isCursorVisible,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0})},600)},i)},r.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},r.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},r}()},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(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(E,"__esModule",{value:!0}),E.LinkRenderLayer=void 0;var m=C(13),f=C(9),c=C(26),o=function(r){function i(n,e,s,t,a,l,u,h){var p=r.call(this,n,"link",e,!0,s,t,u,h)||this;return a.onShowLinkUnderline(function(g){return p._onShowLinkUnderline(g)}),a.onHideLinkUnderline(function(g){return p._onHideLinkUnderline(g)}),l.onShowLinkUnderline(function(g){return p._onShowLinkUnderline(g)}),l.onHideLinkUnderline(function(g){return p._onHideLinkUnderline(g)}),p}return w(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}(m.BaseRenderLayer);E.LinkRenderLayer=o},function(O,E,C){"use strict";var A=this&&this.__decorate||function(r,i,n,e){var s,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 l=r.length-1;l>=0;l--)(s=r[l])&&(a=(t<3?s(a):t>3?s(i,n,a):s(i,n))||a);return t>3&&a&&Object.defineProperty(i,n,a),a},w=this&&this.__param||function(r,i){return function(n,e){i(n,e,r)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseZone=E.Linkifier=void 0;var m=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 m.EventEmitter,this._onHideLinkUnderline=new m.EventEmitter,this._onLinkTooltip=new m.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(r.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),r.prototype.attachToDom=function(i,n){this._element=i,this._mouseZoneManager=n},r.prototype.linkifyRows=function(i,n){var 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,s=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,n,e,s,s);t.hasNext();)for(var a=t.next(),l=0;l<this._linkMatchers.length;l++)this._doLinkifyRow(a.range.first,a.content,this._linkMatchers[l]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},r.prototype.registerLinkMatcher=function(i,n,e){if(e===void 0&&(e={}),!n)throw new Error("handler must be defined");var s={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(s),s.id},r.prototype._addLinkMatcherToList=function(i){if(this._linkMatchers.length!==0){for(var n=this._linkMatchers.length-1;n>=0;n--)if(i.priority<=this._linkMatchers[n].priority)return void this._linkMatchers.splice(n+1,0,i);this._linkMatchers.splice(0,0,i)}else this._linkMatchers.push(i)},r.prototype.deregisterLinkMatcher=function(i){for(var n=0;n<this._linkMatchers.length;n++)if(this._linkMatchers[n].id===i)return this._linkMatchers.splice(n,1),!0;return!1},r.prototype._doLinkifyRow=function(i,n,e){for(var s,t=this,a=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),l=-1,u=function(){var g=s[typeof e.matchIndex!="number"?0:e.matchIndex];if(!g)return h._logService.debug("match found without corresponding matchIndex",s,e),"break";if(l=n.indexOf(g,l+1),a.lastIndex=l+g.length,l<0)return"break";var v=h._bufferService.buffer.stringIndexToBufferIndex(i,l);if(v[0]<0)return"break";var y=h._bufferService.buffer.lines.get(v[0]);if(!y)return"break";var x=y.getFg(v[1]),T=x?x>>9&511:void 0;e.validationCallback?e.validationCallback(g,function(S){t._rowsTimeoutId||S&&t._addLink(v[1],v[0]-t._bufferService.buffer.ydisp,g,e,T)}):h._addLink(v[1],v[0]-h._bufferService.buffer.ydisp,g,e,T)},h=this;(s=a.exec(n))!==null&&!(u()==="break"););},r.prototype._addLink=function(i,n,e,s,t){var a=this;if(this._mouseZoneManager&&this._element){var l=this._unicodeService.getStringCellWidth(e),u=i%this._bufferService.cols,h=n+Math.floor(i/this._bufferService.cols),p=(u+l)%this._bufferService.cols,g=h+Math.floor((u+l)/this._bufferService.cols);p===0&&(p=this._bufferService.cols,g--),this._mouseZoneManager.add(new o(u+1,h+1,p+1,g+1,function(v){if(s.handler)return s.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,g,t)),a._element.classList.add("xterm-cursor-pointer")},function(v){a._onLinkTooltip.fire(a._createLinkHoverEvent(u,h,p,g,t)),s.hoverTooltipCallback&&s.hoverTooltipCallback(v,e,{start:{x:u,y:h},end:{x:p,y:g}})},function(){a._onHideLinkUnderline.fire(a._createLinkHoverEvent(u,h,p,g,t)),a._element.classList.remove("xterm-cursor-pointer"),s.hoverLeaveCallback&&s.hoverLeaveCallback()},function(v){return!s.willLinkActivate||s.willLinkActivate(v,e)}))}},r.prototype._createLinkHoverEvent=function(i,n,e,s,t){return{x1:i,y1:n,x2:e,y2:s,cols:this._bufferService.cols,fg:t}},r._timeBeforeLatency=200,r=A([w(0,f.IBufferService),w(1,f.ILogService),w(2,f.IUnicodeService)],r)}();E.Linkifier=c;var o=function(i,n,e,s,t,a,l,u,h){this.x1=i,this.y1=n,this.x2=e,this.y2=s,this.clickCallback=t,this.hoverCallback=a,this.tooltipCallback=l,this.leaveCallback=u,this.willLinkActivate=h};E.MouseZone=o},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(g,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var T in x)x.hasOwnProperty(T)&&(y[T]=x[T])})(g,v)},function(p,g){function v(){this.constructor=p}A(p,g),p.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),m=this&&this.__decorate||function(p,g,v,y){var x,T=arguments.length,S=T<3?g:y===null?y=Object.getOwnPropertyDescriptor(g,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(p,g,v,y);else for(var b=p.length-1;b>=0;b--)(x=p[b])&&(S=(T<3?x(S):T>3?x(g,v,S):x(g,v))||S);return T>3&&S&&Object.defineProperty(g,v,S),S},f=this&&this.__param||function(p,g){return function(v,y){g(v,y,p)}};Object.defineProperty(E,"__esModule",{value:!0}),E.SelectionService=void 0;var c=C(11),o=C(52),r=C(4),i=C(0),n=C(5),e=C(1),s=C(30),t=C(53),a=C(2),l=String.fromCharCode(160),u=new RegExp(l,"g"),h=function(p){function g(v,y,x,T,S,b,_){var I=p.call(this)||this;return I._element=v,I._screenElement=y,I._bufferService=x,I._coreService=T,I._mouseService=S,I._optionsService=b,I._renderService=_,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new r.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new 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 w(g,p),Object.defineProperty(g.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this._removeMouseDownListeners()},g.prototype.reset=function(){this.clearSelection()},g.prototype.disable=function(){this.clearSelection(),this._enabled=!1},g.prototype.enable=function(){this._enabled=!0},Object.defineProperty(g.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hasSelection",{get:function(){var y=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;return!(!y||!x)&&(y[0]!==x[0]||y[1]!==x[1])},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;if(!y||!x)return"";var T=this._bufferService.buffer,S=[];if(this._activeSelectionMode===3){if(y[0]===x[0])return"";for(var b=y[1];b<=x[1];b++){var _=T.translateBufferLineToString(b,!0,y[0],x[0]);S.push(_)}}else{var I=y[1]===x[1]?x[0]:void 0;for(S.push(T.translateBufferLineToString(y[1],!0,y[0],I)),b=y[1]+1;b<=x[1]-1;b++){var L=T.lines.get(b);_=T.translateBufferLineToString(b,!0),L&&L.isWrapped?S[S.length-1]+=_:S.push(_)}y[1]!==x[1]&&(L=T.lines.get(x[1]),_=T.translateBufferLineToString(x[1],!0,0,x[0]),L&&L.isWrapped?S[S.length-1]+=_:S.push(_))}return S.map(function(N){return N.replace(u," ")}).join(c.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),g.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},g.prototype.refresh=function(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)},g.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},g.prototype.isClickInSelection=function(v){var y=this._getMouseBufferCoords(v),x=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!!(x&&T&&y)&&this._areCoordsInSelection(y,x,T)},g.prototype._areCoordsInSelection=function(v,y,x){return v[1]>y[1]&&v[1]<x[1]||y[1]===x[1]&&v[1]===y[1]&&v[0]>=y[0]&&v[0]<x[0]||y[1]<x[1]&&v[1]===x[1]&&v[0]<x[0]||y[1]<x[1]&&v[1]===y[1]&&v[0]>=y[0]},g.prototype.selectWordAtCursor=function(v){var y=this._getMouseBufferCoords(v);y&&(this._selectWordAt(y,!1),this._model.selectionEnd=void 0,this.refresh(!0))},g.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},g.prototype.selectLines=function(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()},g.prototype._onTrim=function(v){this._model.onTrim(v)&&this.refresh()},g.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},g.prototype._getMouseEventScrollAmount=function(v){var y=s.getCoordsRelativeToElement(v,this._screenElement)[1],x=this._renderService.dimensions.canvasHeight;return y>=0&&y<=x?0:(y>x&&(y-=x),y=Math.min(Math.max(y,-50),50),(y/=50)/Math.abs(y)+Math.round(14*y))},g.prototype.shouldForceSelection=function(v){return c.isMac?v.altKey&&this._optionsService.options.macOptionClickForcesSelection:v.shiftKey},g.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)}},g.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)},g.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},g.prototype._onIncrementalClick=function(v){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(v))},g.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]++}},g.prototype._onDoubleClick=function(v){var y=this._getMouseBufferCoords(v);y&&(this._activeSelectionMode=1,this._selectWordAt(y,!0))},g.prototype._onTripleClick=function(v){var y=this._getMouseBufferCoords(v);y&&(this._activeSelectionMode=2,this._selectLineAt(y[1]))},g.prototype.shouldColumnSelect=function(v){return v.altKey&&!(c.isMac&&this._optionsService.options.macOptionClickForcesSelection)},g.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 x=this._bufferService.buffer;if(this._model.selectionEnd[1]<x.lines.length){var T=x.lines.get(this._model.selectionEnd[1]);T&&T.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}y&&y[0]===this._model.selectionEnd[0]&&y[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},g.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var 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()}},g.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 x=this._mouseService.getCoords(v,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(x&&x[0]!==void 0&&x[1]!==void 0){var T=t.moveToCellSequence(x[0]-1,x[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(T,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},g.prototype._onBufferActivate=function(v){var y=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=v.activeBuffer.lines.onTrim(function(x){return y._onTrim(x)})},g.prototype._convertViewportColToCharacterIndex=function(v,y){for(var x=y[0],T=0;y[0]>=T;T++){var S=v.loadCell(T,this._workCell).getChars().length;this._workCell.getWidth()===0?x--:S>1&&y[0]!==T&&(x+=S-1)}return x},g.prototype.setSelection=function(v,y,x){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[v,y],this._model.selectionStartLength=x,this.refresh()},g.prototype._getWordAt=function(v,y,x,T){if(x===void 0&&(x=!0),T===void 0&&(T=!0),!(v[0]>=this._bufferService.cols)){var S=this._bufferService.buffer,b=S.lines.get(v[1]);if(b){var _=S.translateBufferLineToString(v[1],!1),I=this._convertViewportColToCharacterIndex(b,v),L=I,N=v[0]-I,D=0,R=0,P=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],F=v[0];b.getWidth(U)===0&&(D++,U--),b.getWidth(F)===2&&(R++,F++);var j=b.getString(F).length;for(j>1&&(M+=j-1,L+=j-1);U>0&&I>0&&!this._isCharWordSeparator(b.loadCell(U-1,this._workCell));){b.loadCell(U-1,this._workCell);var W=this._workCell.getChars().length;this._workCell.getWidth()===0?(D++,U--):W>1&&(P+=W-1,I-=W-1),I--,U--}for(;F<b.length&&L+1<_.length&&!this._isCharWordSeparator(b.loadCell(F+1,this._workCell));){b.loadCell(F+1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===2?(R++,F++):V>1&&(M+=V-1,L+=V-1),L++,F++}}L++;var z=I+N-D+P,Y=Math.min(this._bufferService.cols,L-I+D+R-P-M);if(y||_.slice(I,L).trim()!==""){if(x&&z===0&&b.getCodePoint(0)!==32){var $=S.lines.get(v[1]-1);if($&&b.isWrapped&&$.getCodePoint(this._bufferService.cols-1)!==32){var ue=this._getWordAt([this._bufferService.cols-1,v[1]-1],!1,!0,!1);if(ue){var ne=this._bufferService.cols-ue.start;z-=ne,Y+=ne}}}if(T&&z+Y===this._bufferService.cols&&b.getCodePoint(this._bufferService.cols-1)!==32){var ge=S.lines.get(v[1]+1);if(ge&&ge.isWrapped&&ge.getCodePoint(0)!==32){var Oe=this._getWordAt([0,v[1]+1],!1,!1,!0);Oe&&(Y+=Oe.length)}}return{start:z,length:Y}}}}},g.prototype._selectWordAt=function(v,y){var x=this._getWordAt(v,y);if(x){for(;x.start<0;)x.start+=this._bufferService.cols,v[1]--;this._model.selectionStart=[x.start,v[1]],this._model.selectionStartLength=x.length}},g.prototype._selectToWordAt=function(v){var y=this._getWordAt(v,!0);if(y){for(var x=v[1];y.start<0;)y.start+=this._bufferService.cols,x--;if(!this._model.areSelectionValuesReversed())for(;y.start+y.length>this._bufferService.cols;)y.length-=this._bufferService.cols,x++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?y.start:y.start+y.length,x]}},g.prototype._isCharWordSeparator=function(v){return v.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(v.getChars())>=0},g.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},g=m([f(2,e.IBufferService),f(3,e.ICoreService),f(4,n.IMouseService),f(5,e.IOptionsService),f(6,n.IRenderService)],g)}(a.Disposable);E.SelectionService=h},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SelectionModel=void 0;var A=function(){function w(m){this._bufferService=m,this.isSelectAllActive=!1,this.selectionStartLength=0}return w.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(w.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var 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}),w.prototype.areSelectionValuesReversed=function(){var m=this.selectionStart,f=this.selectionEnd;return!(!m||!f)&&(m[1]>f[1]||m[1]===f[1]&&m[0]>f[0])},w.prototype.onTrim=function(m){return this.selectionStart&&(this.selectionStart[1]-=m),this.selectionEnd&&(this.selectionEnd[1]-=m),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},w}();E.SelectionModel=A},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.moveToCellSequence=void 0;var A=C(12);function w(i,n,e,s){var t=i-m(e,i),a=n-m(e,n);return r(Math.abs(t-a)-function(l,u,h){for(var p=0,g=l-m(h,l),v=u-m(h,u),y=0;y<Math.abs(g-v);y++){var x=f(l,u)==="A"?-1:1,T=h.buffer.lines.get(g+x*y);T&&T.isWrapped&&p++}return p}(i,n,e),o(f(i,n),s))}function m(i,n){for(var e=0,s=i.buffer.lines.get(n),t=s&&s.isWrapped;t&&n>=0&&n<i.rows;)e++,t=(s=i.buffer.lines.get(--n))&&s.isWrapped;return e}function f(i,n){return i>n?"A":"B"}function c(i,n,e,s,t,a){for(var l=i,u=n,h="";l!==e||u!==s;)l+=t?1:-1,t&&l>a.cols-1?(h+=a.buffer.translateBufferLineToString(u,!1,i,l),l=0,i=0,u++):!t&&l<0&&(h+=a.buffer.translateBufferLineToString(u,!1,0,i+1),i=l=a.cols-1,u--);return h+a.buffer.translateBufferLineToString(u,!1,i,l)}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="",s=0;s<i;s++)e+=n;return e}E.moveToCellSequence=function(i,n,e,s){var t,a=e.buffer.x,l=e.buffer.y;if(!e.buffer.hasScrollback)return function(h,p,g,v,y,x){return w(p,v,y,x).length===0?"":r(c(h,p,h,p-m(y,p),!1,y).length,o("D",x))}(a,l,0,n,e,s)+w(l,n,e,s)+function(h,p,g,v,y,x){var T;T=w(p,v,y,x).length>0?v-m(y,v):p;var S=v,b=function(_,I,L,N,D,R){var P;return P=w(L,N,D,R).length>0?N-m(D,N):I,_<L&&P<=N||_>=L&&P<N?"C":"D"}(h,p,g,v,y,x);return r(c(h,T,g,S,b==="C",y).length,o(b,x))}(a,l,i,n,e,s);if(l===n)return t=a>i?"D":"C",r(Math.abs(a-i),o(t,s));t=l>n?"D":"C";var u=Math.abs(l-n);return r(function(h,p){return p.cols-h}(l>n?i:a,e)+(u-1)*e.cols+1+((l>n?a:i)-1),o(t,s))}},function(O,E,C){"use strict";var A=this&&this.__decorate||function(c,o,r,i){var n,e=arguments.length,s=e<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(c,o,r,i);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(s=(e<3?n(s):e>3?n(o,r,s):n(o,r))||s);return e>3&&s&&Object.defineProperty(o,r,s),s},w=this&&this.__param||function(c,o){return function(r,i){o(r,i,c)}};Object.defineProperty(E,"__esModule",{value:!0}),E.SoundService=void 0;var m=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([w(0,m.IOptionsService)],c)}();E.SoundService=f},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(s,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}A(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,h=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},f=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseZoneManager=void 0;var c=C(2),o=C(7),r=C(5),i=C(1),n=function(e){function s(t,a,l,u,h,p){var g=e.call(this)||this;return g._element=t,g._screenElement=a,g._bufferService=l,g._mouseService=u,g._selectionService=h,g._optionsService=p,g._zones=[],g._areZonesActive=!1,g._lastHoverCoords=[void 0,void 0],g._initialSelectionLength=0,g.register(o.addDisposableDomListener(g._element,"mousedown",function(v){return g._onMouseDown(v)})),g._mouseMoveListener=function(v){return g._onMouseMove(v)},g._mouseLeaveListener=function(v){return g._onMouseLeave(v)},g._clickListener=function(v){return g._onClick(v)},g}return w(s,e),s.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},s.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},s.prototype.clearAll=function(t,a){if(this._zones.length!==0){t&&a||(t=0,a=this._bufferService.rows-1);for(var l=0;l<this._zones.length;l++){var u=this._zones[l];(u.y1>t&&u.y1<=a+1||u.y2>t&&u.y2<=a+1||u.y1<t&&u.y2>a+1)&&(this._currentZone&&this._currentZone===u&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(l--,1))}this._zones.length===0&&this._deactivate()}},s.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},s.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},s.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},s.prototype._onHover=function(t){var a=this,l=this._findZoneEventAt(t);l!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),l&&(this._currentZone=l,l.hoverCallback&&l.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return a._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},s.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var a=this._findZoneEventAt(t);a&&a.tooltipCallback&&a.tooltipCallback(t)},s.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var a=this._findZoneEventAt(t);(a==null?void 0:a.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},s.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},s.prototype._onClick=function(t){var a=this._findZoneEventAt(t),l=this._getSelectionLength();a&&l===this._initialSelectionLength&&(a.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},s.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},s.prototype._findZoneEventAt=function(t){var a=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(a)for(var l=a[0],u=a[1],h=0;h<this._zones.length;h++){var p=this._zones[h];if(p.y1===p.y2){if(u===p.y1&&l>=p.x1&&l<p.x2)return p}else if(u===p.y1&&l>=p.x1||u===p.y2&&l<p.x2||u>p.y1&&u<p.y2)return p}},s=m([f(2,i.IBufferService),f(3,r.IMouseService),f(4,r.ISelectionService),f(5,i.IOptionsService)],s)}(c.Disposable);E.MouseZoneManager=n},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(t,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])})(t,a)},function(s,t){function a(){this.constructor=s}A(s,t),s.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(E,"__esModule",{value:!0}),E.AccessibilityManager=void 0;var m=C(18),f=C(11),c=C(31),o=C(7),r=C(2),i=C(32),n=C(17),e=function(s){function t(a,l){var u=s.call(this)||this;u._terminal=a,u._renderService=l,u._liveRegionLineCount=0,u._charsToConsume=[],u._charsToAnnounce="",u._accessibilityTreeRoot=document.createElement("div"),u._accessibilityTreeRoot.classList.add("xterm-accessibility"),u._rowContainer=document.createElement("div"),u._rowContainer.classList.add("xterm-accessibility-tree"),u._rowContainer.setAttribute("role","list"),u._rowElements=[];for(var 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 w(t,s),t.prototype.dispose=function(){s.prototype.dispose.call(this),n.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(a,l){var u=a.target,h=this._rowElements[l===0?1:this._rowElements.length-2];if(u.getAttribute("aria-posinset")!==(l===0?"1":""+this._terminal.buffer.lines.length)&&a.relatedTarget===h){var p,g;if(l===0?(p=u,g=this._rowElements.pop(),this._rowContainer.removeChild(g)):(p=this._rowElements.shift(),g=u,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),g.removeEventListener("focus",this._bottomBoundaryFocusListener),l===0){var 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(l===0?-1:1),this._rowElements[l===0?1:this._rowElements.length-2].focus(),a.preventDefault(),a.stopImmediatePropagation()}},t.prototype._onResize=function(a){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var l=this._rowContainer.children.length;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);for(;this._rowElements.length>a;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var a=document.createElement("div");return a.setAttribute("role","listitem"),a.tabIndex=-1,this._refreshRowDimensions(a),a},t.prototype._onTab=function(a){for(var l=0;l<a;l++)this._onChar(" ")},t.prototype._onChar=function(a){var l=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==a&&(this._charsToAnnounce+=a):this._charsToAnnounce+=a,a===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=m.tooMuchOutput)),f.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){l._accessibilityTreeRoot.appendChild(l._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,f.isMac&&n.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(a){this._clearLiveRegion(),this._charsToConsume.push(a)},t.prototype._refreshRows=function(a,l){this._renderRowsDebouncer.refresh(a,l,this._terminal.rows)},t.prototype._renderRows=function(a,l){for(var u=this._terminal.buffer,h=u.lines.length.toString(),p=a;p<=l;p++){var g=u.translateBufferLineToString(u.ydisp+p,!0),v=(u.ydisp+p+1).toString(),y=this._rowElements[p];y&&(g.length===0?y.innerHTML=" ":y.textContent=g,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);E.AccessibilityManager=e},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(h,p){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[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)}),m=this&&this.__decorate||function(u,h,p,g){var v,y=arguments.length,x=y<3?h:g===null?g=Object.getOwnPropertyDescriptor(h,p):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(u,h,p,g);else for(var T=u.length-1;T>=0;T--)(v=u[T])&&(x=(y<3?v(x):y>3?v(h,p,x):v(h,p))||x);return y>3&&x&&Object.defineProperty(h,p,x),x},f=this&&this.__param||function(u,h){return function(p,g){h(p,g,u)}};Object.defineProperty(E,"__esModule",{value:!0}),E.DomRenderer=void 0;var c=C(58),o=C(9),r=C(2),i=C(5),n=C(1),e=C(0),s=C(10),t=C(17),a=1,l=function(u){function h(p,g,v,y,x,T,S,b,_){var I=u.call(this)||this;return I._colors=p,I._element=g,I._screenElement=v,I._viewportElement=y,I._linkifier=x,I._linkifier2=T,I._charSizeService=S,I._optionsService=b,I._bufferService=_,I._terminalClass=a++,I._rowElements=[],I._rowContainer=document.createElement("div"),I._rowContainer.classList.add("xterm-rows"),I._rowContainer.style.lineHeight="normal",I._rowContainer.setAttribute("aria-hidden","true"),I._refreshRowElements(I._bufferService.cols,I._bufferService.rows),I._selectionContainer=document.createElement("div"),I._selectionContainer.classList.add("xterm-selection"),I._selectionContainer.setAttribute("aria-hidden","true"),I.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},I._updateDimensions(),I._injectCss(),I._rowFactory=new c.DomRendererRowFactory(document,I._optionsService,I._colors),I._element.classList.add("xterm-dom-renderer-owner-"+I._terminalClass),I._screenElement.appendChild(I._rowContainer),I._screenElement.appendChild(I._selectionContainer),I._linkifier.onShowLinkUnderline(function(L){return I._onLinkHover(L)}),I._linkifier.onHideLinkUnderline(function(L){return I._onLinkLeave(L)}),I._linkifier2.onShowLinkUnderline(function(L){return I._onLinkHover(L)}),I._linkifier2.onHideLinkUnderline(function(L){return I._onLinkLeave(L)}),I}return w(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,g=this._rowElements;p<g.length;p++){var v=g[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 g=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";g+=this._terminalSelector+" span:not(."+c.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+c.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+c.ITALIC_CLASS+" { font-style: italic;}",g+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",g+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",g+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+":not(."+c.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",g+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(v,y){g+=p._terminalSelector+" .xterm-fg-"+y+" { color: "+v.css+"; }"+p._terminalSelector+" .xterm-bg-"+y+" { background-color: "+v.css+"; }"}),g+=this._terminalSelector+" .xterm-fg-"+o.INVERTED_DEFAULT_COLOR+" { color: "+s.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+o.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=g},h.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},h.prototype._refreshRowElements=function(p,g){for(var v=this._rowElements.length;v<=g;v++){var y=document.createElement("div");this._rowContainer.appendChild(y),this._rowElements.push(y)}for(;this._rowElements.length>g;)this._rowContainer.removeChild(this._rowElements.pop())},h.prototype.onResize=function(p,g){this._refreshRowElements(p,g),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,g,v){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(p&&g){var y=p[1]-this._bufferService.buffer.ydisp,x=g[1]-this._bufferService.buffer.ydisp,T=Math.max(y,0),S=Math.min(x,this._bufferService.rows-1);if(!(T>=this._bufferService.rows||S<0)){var b=document.createDocumentFragment();if(v)b.appendChild(this._createSelectionElement(T,p[0],g[0],S-T+1));else{var _=y===T?p[0]:0,I=T===S?g[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(T,_,I));var L=S-T-1;if(b.appendChild(this._createSelectionElement(T+1,0,this._bufferService.cols,L)),T!==S){var N=x===S?g[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(S,0,N))}}this._selectionContainer.appendChild(b)}}},h.prototype._createSelectionElement=function(p,g,v,y){y===void 0&&(y=1);var x=document.createElement("div");return x.style.height=y*this.dimensions.actualCellHeight+"px",x.style.top=p*this.dimensions.actualCellHeight+"px",x.style.left=g*this.dimensions.actualCellWidth+"px",x.style.width=this.dimensions.actualCellWidth*(v-g)+"px",x},h.prototype.onCursorMove=function(){},h.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},h.prototype.clear=function(){for(var p=0,g=this._rowElements;p<g.length;p++)g[p].innerHTML=""},h.prototype.renderRows=function(p,g){for(var v=this._bufferService.buffer.ybase+this._bufferService.buffer.y,y=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),x=this._optionsService.options.cursorBlink,T=p;T<=g;T++){var S=this._rowElements[T];S.innerHTML="";var b=T+this._bufferService.buffer.ydisp,_=this._bufferService.buffer.lines.get(b),I=this._optionsService.options.cursorStyle;S.appendChild(this._rowFactory.createRow(_,b===v,I,y,x,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,g,v,y,x,T){for(;p!==g||v!==y;){var S=this._rowElements[v];if(!S)return;var b=S.children[p];b&&(b.style.textDecoration=T?"underline":"none"),++p>=x&&(p=0,v++)}},h=m([f(6,i.ICharSizeService),f(7,n.IOptionsService),f(8,n.IBufferService)],h)}(r.Disposable);E.DomRenderer=l},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DomRendererRowFactory=E.CURSOR_STYLE_UNDERLINE_CLASS=E.CURSOR_STYLE_BAR_CLASS=E.CURSOR_STYLE_BLOCK_CLASS=E.CURSOR_BLINK_CLASS=E.CURSOR_CLASS=E.UNDERLINE_CLASS=E.ITALIC_CLASS=E.DIM_CLASS=E.BOLD_CLASS=void 0;var A=C(9),w=C(3),m=C(4),f=C(10);E.BOLD_CLASS="xterm-bold",E.DIM_CLASS="xterm-dim",E.ITALIC_CLASS="xterm-italic",E.UNDERLINE_CLASS="xterm-underline",E.CURSOR_CLASS="xterm-cursor",E.CURSOR_BLINK_CLASS="xterm-cursor-blink",E.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",E.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",E.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var c=function(){function r(i,n,e){this._document=i,this._optionsService=n,this._colors=e,this._workCell=new m.CellData}return r.prototype.setColors=function(i){this._colors=i},r.prototype.createRow=function(i,n,e,s,t,a,l){for(var u=this._document.createDocumentFragment(),h=0,p=Math.min(i.length,l)-1;p>=0;p--)if(i.loadCell(p,this._workCell).getCode()!==w.NULL_CELL_CODE||n&&p===s){h=p+1;break}for(p=0;p<h;p++){i.loadCell(p,this._workCell);var g=this._workCell.getWidth();if(g!==0){var v=this._document.createElement("span");if(g>1&&(v.style.width=a*g+"px"),n&&p===s)switch(v.classList.add(E.CURSOR_CLASS),t&&v.classList.add(E.CURSOR_BLINK_CLASS),e){case"bar":v.classList.add(E.CURSOR_STYLE_BAR_CLASS);break;case"underline":v.classList.add(E.CURSOR_STYLE_UNDERLINE_CLASS);break;default:v.classList.add(E.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&v.classList.add(E.BOLD_CLASS),this._workCell.isItalic()&&v.classList.add(E.ITALIC_CLASS),this._workCell.isDim()&&v.classList.add(E.DIM_CLASS),this._workCell.isUnderline()&&v.classList.add(E.UNDERLINE_CLASS),this._workCell.isInvisible()?v.textContent=w.WHITESPACE_CELL_CHAR:v.textContent=this._workCell.getChars()||w.WHITESPACE_CELL_CHAR;var y=this._workCell.getFgColor(),x=this._workCell.getFgColorMode(),T=this._workCell.getBgColor(),S=this._workCell.getBgColorMode(),b=!!this._workCell.isInverse();if(b){var _=y;y=T,T=_;var I=x;x=S,S=I}switch(x){case 16777216:case 33554432:this._workCell.isBold()&&y<8&&this._optionsService.options.drawBoldTextInBrightColors&&(y+=8),this._applyMinimumContrast(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)||b&&v.classList.add("xterm-fg-"+A.INVERTED_DEFAULT_COLOR)}switch(S){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:b&&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 s=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return s===void 0&&(s=f.color.ensureContrastRatio(n,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,s!=null?s:null)),!!s&&(this._addStyle(i,"color:"+s.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}E.DomRendererRowFactory=c},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.evaluateKeyboardEvent=void 0;var A=C(12),w={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};E.evaluateKeyboardEvent=function(m,f,c,o){var r={type:0,cancel:!1,key:void 0},i=(m.shiftKey?1:0)|(m.altKey?2:0)|(m.ctrlKey?4:0)|(m.metaKey?8:0);switch(m.keyCode){case 0:m.key==="UIKeyInputUpArrow"?r.key=f?A.C0.ESC+"OA":A.C0.ESC+"[A":m.key==="UIKeyInputLeftArrow"?r.key=f?A.C0.ESC+"OD":A.C0.ESC+"[D":m.key==="UIKeyInputRightArrow"?r.key=f?A.C0.ESC+"OC":A.C0.ESC+"[C":m.key==="UIKeyInputDownArrow"&&(r.key=f?A.C0.ESC+"OB":A.C0.ESC+"[B");break;case 8:if(m.shiftKey){r.key=A.C0.BS;break}if(m.altKey){r.key=A.C0.ESC+A.C0.DEL;break}r.key=A.C0.DEL;break;case 9:if(m.shiftKey){r.key=A.C0.ESC+"[Z";break}r.key=A.C0.HT,r.cancel=!0;break;case 13:r.key=m.altKey?A.C0.ESC+A.C0.CR:A.C0.CR,r.cancel=!0;break;case 27:r.key=A.C0.ESC,m.altKey&&(r.key=A.C0.ESC+A.C0.ESC),r.cancel=!0;break;case 37:if(m.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(m.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(m.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(m.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:m.shiftKey||m.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:m.shiftKey?r.type=2:r.key=A.C0.ESC+"[5~";break;case 34:m.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(!m.ctrlKey||m.shiftKey||m.altKey||m.metaKey)if(c&&!o||!m.altKey||m.metaKey)c&&!m.altKey&&!m.ctrlKey&&m.metaKey?m.keyCode===65&&(r.type=1):m.key&&!m.ctrlKey&&!m.altKey&&!m.metaKey&&m.keyCode>=48&&m.key.length===1?r.key=m.key:m.key&&m.ctrlKey&&m.key==="_"&&(r.key=A.C0.US);else{var n=w[m.keyCode],e=n&&n[m.shiftKey?1:0];if(e)r.key=A.C0.ESC+e;else if(m.keyCode>=65&&m.keyCode<=90){var s=m.ctrlKey?m.keyCode-64:m.keyCode+32;r.key=A.C0.ESC+String.fromCharCode(s)}}else m.keyCode>=65&&m.keyCode<=90?r.key=String.fromCharCode(m.keyCode-64):m.keyCode===32?r.key=A.C0.NUL:m.keyCode>=51&&m.keyCode<=55?r.key=String.fromCharCode(m.keyCode-51+27):m.keyCode===56?r.key=A.C0.DEL:m.keyCode===219?r.key=A.C0.ESC:m.keyCode===220?r.key=A.C0.FS:m.keyCode===221&&(r.key=A.C0.GS)}return r}},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(l,u){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g])})(l,u)},function(a,l){function u(){this.constructor=a}A(a,l),a.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}),m=this&&this.__decorate||function(a,l,u,h){var p,g=arguments.length,v=g<3?l:h===null?h=Object.getOwnPropertyDescriptor(l,u):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(a,l,u,h);else for(var y=a.length-1;y>=0;y--)(p=a[y])&&(v=(g<3?p(v):g>3?p(l,u,v):p(l,u))||v);return g>3&&v&&Object.defineProperty(l,u,v),v},f=this&&this.__param||function(a,l){return function(u,h){l(u,h,a)}};Object.defineProperty(E,"__esModule",{value:!0}),E.RenderService=void 0;var c=C(31),o=C(0),r=C(2),i=C(32),n=C(7),e=C(1),s=C(5),t=function(a){function l(u,h,p,g,v,y){var x=a.call(this)||this;if(x._renderer=u,x._rowCount=h,x._isPaused=!1,x._needsFullRefresh=!1,x._isNextRenderRedrawOnly=!0,x._needsSelectionRefresh=!1,x._canvasWidth=0,x._canvasHeight=0,x._selectionState={start:void 0,end:void 0,columnSelectMode:!1},x._onDimensionsChange=new o.EventEmitter,x._onRender=new o.EventEmitter,x._onRefreshRequest=new o.EventEmitter,x.register({dispose:function(){return x._renderer.dispose()}}),x._renderDebouncer=new c.RenderDebouncer(function(S,b){return x._renderRows(S,b)}),x.register(x._renderDebouncer),x._screenDprMonitor=new i.ScreenDprMonitor,x._screenDprMonitor.setListener(function(){return x.onDevicePixelRatioChange()}),x.register(x._screenDprMonitor),x.register(y.onResize(function(S){return x._fullRefresh()})),x.register(g.onOptionChange(function(){return x._renderer.onOptionsChanged()})),x.register(v.onCharSizeChange(function(){return x.onCharSizeChanged()})),x._renderer.onRequestRedraw(function(S){return x.refreshRows(S.start,S.end,!0)}),x.register(n.addDisposableDomListener(window,"resize",function(){return x.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var T=new IntersectionObserver(function(S){return x._onIntersectionChange(S[S.length-1])},{threshold:0});T.observe(p),x.register({dispose:function(){return T.disconnect()}})}return x}return w(l,a),Object.defineProperty(l.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),l.prototype._onIntersectionChange=function(u){this._isPaused=u.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},l.prototype.refreshRows=function(u,h,p){p===void 0&&(p=!1),this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(u,h,this._rowCount))},l.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},l.prototype.resize=function(u,h){this._rowCount=h,this._fireOnCanvasResize()},l.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},l.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},l.prototype.dispose=function(){a.prototype.dispose.call(this)},l.prototype.setRenderer=function(u){var 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()},l.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},l.prototype.setColors=function(u){this._renderer.setColors(u),this._fullRefresh()},l.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},l.prototype.onResize=function(u,h){this._renderer.onResize(u,h),this._fullRefresh()},l.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},l.prototype.onBlur=function(){this._renderer.onBlur()},l.prototype.onFocus=function(){this._renderer.onFocus()},l.prototype.onSelectionChanged=function(u,h,p){this._selectionState.start=u,this._selectionState.end=h,this._selectionState.columnSelectMode=p,this._renderer.onSelectionChanged(u,h,p)},l.prototype.onCursorMove=function(){this._renderer.onCursorMove()},l.prototype.clear=function(){this._renderer.clear()},l.prototype.registerCharacterJoiner=function(u){return this._renderer.registerCharacterJoiner(u)},l.prototype.deregisterCharacterJoiner=function(u){return this._renderer.deregisterCharacterJoiner(u)},l=m([f(3,e.IOptionsService),f(4,s.ICharSizeService),f(5,e.IBufferService)],l)}(r.Disposable);E.RenderService=t},function(O,E,C){"use strict";var A=this&&this.__decorate||function(r,i,n,e){var s,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 l=r.length-1;l>=0;l--)(s=r[l])&&(a=(t<3?s(a):t>3?s(i,n,a):s(i,n))||a);return t>3&&a&&Object.defineProperty(i,n,a),a},w=this&&this.__param||function(r,i){return function(n,e){i(n,e,r)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CharSizeService=void 0;var m=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([w(2,m.IOptionsService)],r)}();E.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,E,C){"use strict";var A=this&&this.__decorate||function(o,r,i,n){var e,s=arguments.length,t=s<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=(s<3?e(t):s>3?e(r,i,t):e(r,i))||t);return s>3&&t&&Object.defineProperty(r,i,t),t},w=this&&this.__param||function(o,r){return function(i,n){r(i,n,o)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseService=void 0;var m=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,s){return f.getCoords(r,i,n,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,s)},o.prototype.getRawByteCoords=function(r,i,n,e){var s=this.getCoords(r,i,n,e);return f.getRawByteCoords(s)},o=A([w(0,m.IRenderService),w(1,m.ICharSizeService)],o)}();E.MouseService=c},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(s,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}A(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,h=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},f=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Linkifier2=void 0;var c=C(1),o=C(0),r=C(2),i=C(7),n=function(e){function s(t){var a=e.call(this)||this;return a._bufferService=t,a._linkProviders=[],a._linkCacheDisposables=[],a._isMouseOut=!0,a._activeLine=-1,a._onShowLinkUnderline=a.register(new o.EventEmitter),a._onHideLinkUnderline=a.register(new o.EventEmitter),a.register(r.getDisposeArrayDisposable(a._linkCacheDisposables)),a}return w(s,e),Object.defineProperty(s.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),s.prototype.registerLinkProvider=function(t){var a=this;return this._linkProviders.push(t),{dispose:function(){var u=a._linkProviders.indexOf(t);u!==-1&&a._linkProviders.splice(u,1)}}},s.prototype.attachToDom=function(t,a,l){var u=this;this._element=t,this._mouseService=a,this._renderService=l,this.register(i.addDisposableDomListener(this._element,"mouseleave",function(){u._isMouseOut=!0,u._clearCurrentLink()})),this.register(i.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(i.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},s.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var a=this._positionFromMouseEvent(t,this._element,this._mouseService);if(a){this._isMouseOut=!1;for(var l=t.composedPath(),u=0;u<l.length;u++){var h=l[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)}}},s.prototype._onHover=function(t){if(this._activeLine!==t.y)return this._clearCurrentLink(),void this._askForLink(t,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,t)||(this._clearCurrentLink(),this._askForLink(t,!0))},s.prototype._askForLink=function(t,a){var l=this;this._activeProviderReplies&&a||(this._activeProviderReplies=new Map,this._activeLine=t.y);var u=!1;this._linkProviders.forEach(function(h,p){var g;a?((g=l._activeProviderReplies)===null||g===void 0?void 0:g.get(p))&&(u=l._checkLinkProviderResult(p,t,u)):h.provideLinks(t.y,function(v){var y,x;if(!l._isMouseOut){var T=v==null?void 0:v.map(function(S){return{link:S}});(y=l._activeProviderReplies)===null||y===void 0||y.set(p,T),u=l._checkLinkProviderResult(p,t,u),((x=l._activeProviderReplies)===null||x===void 0?void 0:x.size)===l._linkProviders.length&&l._removeIntersectingLinks(t.y,l._activeProviderReplies)}})})},s.prototype._removeIntersectingLinks=function(t,a){for(var l=new Set,u=0;u<a.size;u++){var h=a.get(u);if(h)for(var p=0;p<h.length;p++)for(var g=h[p],v=g.link.range.start.y<t?0:g.link.range.start.x,y=g.link.range.end.y>t?this._bufferService.cols:g.link.range.end.x,x=v;x<=y;x++){if(l.has(x)){h.splice(p--,1);break}l.add(x)}}},s.prototype._checkLinkProviderResult=function(t,a,l){var u,h=this;if(!this._activeProviderReplies)return l;for(var p=this._activeProviderReplies.get(t),g=!1,v=0;v<t;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(g=!0);if(!g&&p){var y=p.find(function(T){return h._linkAtPosition(T.link,a)});y&&(l=!0,this._handleNewLink(y))}if(this._activeProviderReplies.size===this._linkProviders.length&&!l)for(v=0;v<this._activeProviderReplies.size;v++){var x=(u=this._activeProviderReplies.get(v))===null||u===void 0?void 0:u.find(function(T){return h._linkAtPosition(T.link,a)});if(x){l=!0,this._handleNewLink(x);break}}return l},s.prototype._onClick=function(t){if(this._element&&this._mouseService&&this._currentLink){var a=this._positionFromMouseEvent(t,this._element,this._mouseService);a&&this._linkAtPosition(this._currentLink.link,a)&&this._currentLink.link.activate(t,this._currentLink.link.text)}},s.prototype._clearCurrentLink=function(t,a){this._element&&this._currentLink&&this._lastMouseEvent&&(!t||!a||this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=a)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,r.disposeArray(this._linkCacheDisposables))},s.prototype._handleNewLink=function(t){var a=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(t.link,l)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var 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,g;((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&&((g=a._element)===null||g===void 0||g.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,g,v;((p=a._currentLink)===null||p===void 0?void 0:p.state)&&((v=(g=a._currentLink)===null||g===void 0?void 0:g.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)})))}},s.prototype._linkHover=function(t,a,l){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(a,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),a.hover&&a.hover(l,a.text)},s.prototype._fireUnderlineEvent=function(t,a){var l=t.range,u=this._bufferService.buffer.ydisp,h=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-u-1,l.end.x,l.end.y-u-1,void 0);(a?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(h)},s.prototype._linkLeave=function(t,a,l){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(a,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),a.leave&&a.leave(l,a.text)},s.prototype._linkAtPosition=function(t,a){var l=t.range.start.y===t.range.end.y,u=t.range.start.y<a.y,h=t.range.end.y>a.y;return(l&&t.range.start.x<=a.x&&t.range.end.x>=a.x||u&&t.range.end.x>=a.x||h&&t.range.start.x<=a.x||u&&h)&&t.range.start.y<=a.y&&t.range.end.y>=a.y},s.prototype._positionFromMouseEvent=function(t,a,l){var u=l.getCoords(t,a,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}},s.prototype._createLinkUnderlineEvent=function(t,a,l,u,h){return{x1:t,y1:a,x2:l,y2:u,cols:this._bufferService.cols,fg:h}},s=m([f(0,c.IBufferService)],s)}(r.Disposable);E.Linkifier2=n},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CoreBrowserService=void 0;var A=function(){function w(m){this._textarea=m}return Object.defineProperty(w.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),w}();E.CoreBrowserService=A},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(y,x){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,S){T.__proto__=S}||function(T,S){for(var b in S)S.hasOwnProperty(b)&&(T[b]=S[b])})(y,x)},function(v,y){function x(){this.constructor=v}A(v,y),v.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)});Object.defineProperty(E,"__esModule",{value:!0}),E.CoreTerminal=void 0;var m=C(2),f=C(1),c=C(66),o=C(67),r=C(68),i=C(74),n=C(75),e=C(0),s=C(76),t=C(77),a=C(78),l=C(80),u=C(81),h=C(19),p=C(82),g=function(v){function y(x){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(x),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(s.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(l.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(S){return T._updateOptions(S)})),T._writeBuffer=new p.WriteBuffer(function(S){return T._inputHandler.parse(S)}),T}return w(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 x;this._isDisposed||(v.prototype.dispose.call(this),(x=this._windowsMode)===null||x===void 0||x.dispose(),this._windowsMode=void 0)},y.prototype.write=function(x,T){this._writeBuffer.write(x,T)},y.prototype.writeSync=function(x){this._writeBuffer.writeSync(x)},y.prototype.resize=function(x,T){isNaN(x)||isNaN(T)||(x=Math.max(x,r.MINIMUM_COLS),T=Math.max(T,r.MINIMUM_ROWS),this._bufferService.resize(x,T))},y.prototype.scroll=function(x,T){T===void 0&&(T=!1);var S,b=this._bufferService.buffer;(S=this._cachedBlankLine)&&S.length===this.cols&&S.getFg(0)===x.fg&&S.getBg(0)===x.bg||(S=b.getBlankLine(x,T),this._cachedBlankLine=S),S.isWrapped=T;var _=b.ybase+b.scrollTop,I=b.ybase+b.scrollBottom;if(b.scrollTop===0){var L=b.lines.isFull;I===b.lines.length-1?L?b.lines.recycle().copyFrom(S):b.lines.push(S.clone()):b.lines.splice(I+1,0,S.clone()),L?this._bufferService.isUserScrolling&&(b.ydisp=Math.max(b.ydisp-1,0)):(b.ybase++,this._bufferService.isUserScrolling||b.ydisp++)}else{var N=I-_+1;b.lines.shiftElements(_+1,N-1,-1),b.lines.set(I,S.clone())}this._bufferService.isUserScrolling||(b.ydisp=b.ybase),this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom),this._onScroll.fire(b.ydisp)},y.prototype.scrollLines=function(x,T){var S=this._bufferService.buffer;if(x<0){if(S.ydisp===0)return;this._bufferService.isUserScrolling=!0}else x+S.ydisp>=S.ybase&&(this._bufferService.isUserScrolling=!1);var b=S.ydisp;S.ydisp=Math.max(Math.min(S.ydisp+x,S.ybase),0),b!==S.ydisp&&(T||this._onScroll.fire(S.ydisp))},y.prototype.scrollPages=function(x){this.scrollLines(x*(this.rows-1))},y.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},y.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},y.prototype.scrollToLine=function(x){var T=x-this._bufferService.buffer.ydisp;T!==0&&this.scrollLines(T)},y.prototype.addEscHandler=function(x,T){return this._inputHandler.addEscHandler(x,T)},y.prototype.addDcsHandler=function(x,T){return this._inputHandler.addDcsHandler(x,T)},y.prototype.addCsiHandler=function(x,T){return this._inputHandler.addCsiHandler(x,T)},y.prototype.addOscHandler=function(x,T){return this._inputHandler.addOscHandler(x,T)},y.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},y.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},y.prototype._updateOptions=function(x){var T;switch(x){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)}},y.prototype._enableWindowsMode=function(){var x=this;if(!this._windowsMode){var T=[];T.push(this.onLineFeed(u.updateWindowsModeWrappedState.bind(null,this._bufferService))),T.push(this.addCsiHandler({final:"H"},function(){return u.updateWindowsModeWrappedState(x._bufferService),!1})),this._windowsMode={dispose:function(){for(var b=0,_=T;b<_.length;b++)_[b].dispose()}}}},y}(m.Disposable);E.CoreTerminal=g},function(O,E,C){"use strict";var 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 s=arguments[r],t=0,a=s.length;t<a;t++,e++)n[e]=s[t];return n};Object.defineProperty(E,"__esModule",{value:!0}),E.InstantiationService=E.ServiceCollection=void 0;var w=C(1),m=C(14),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 s=e[n],t=s[0],a=s[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}();E.ServiceCollection=f;var c=function(){function o(){this._services=new f,this._services.set(w.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=m.getServiceDependencies(r).sort(function(p,g){return p.index-g.index}),s=[],t=0,a=e;t<a.length;t++){var l=a[t],u=this._services.get(l.id);if(!u)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+l.id+".");s.push(u)}var 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,s))))},o}();E.InstantiationService=c},function(O,E,C){"use strict";var A=this&&this.__decorate||function(i,n,e,s){var t,a=arguments.length,l=a<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,e):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,n,e,s);else for(var u=i.length-1;u>=0;u--)(t=i[u])&&(l=(a<3?t(l):a>3?t(n,e,l):t(n,e))||l);return a>3&&l&&Object.defineProperty(n,e,l),l},w=this&&this.__param||function(i,n){return function(e,s){n(e,s,i)}},m=this&&this.__spreadArrays||function(){for(var i=0,n=0,e=arguments.length;n<e;n++)i+=arguments[n].length;var s=Array(i),t=0;for(n=0;n<e;n++)for(var a=arguments[n],l=0,u=a.length;l<u;l++,t++)s[t]=a[l];return s};Object.defineProperty(E,"__esModule",{value:!0}),E.LogService=E.LogLevel=void 0;var 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=E.LogLevel||(E.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(s){s==="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,s){this._evalLazyOptionalParams(s),n.call.apply(n,m([console,"xterm.js: "+e],s))},i.prototype.debug=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=f.DEBUG&&this._log(console.log,n,e)},i.prototype.info=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=f.INFO&&this._log(console.info,n,e)},i.prototype.warn=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=f.WARN&&this._log(console.warn,n,e)},i.prototype.error=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=f.ERROR&&this._log(console.error,n,e)},i=A([w(0,c.IOptionsService)],i)}();E.LogService=r},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(s,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}A(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,h=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},f=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.BufferService=E.MINIMUM_ROWS=E.MINIMUM_COLS=void 0;var c=C(1),o=C(69),r=C(0),i=C(2);E.MINIMUM_COLS=2,E.MINIMUM_ROWS=1;var n=function(e){function s(t){var a=e.call(this)||this;return a._optionsService=t,a.isUserScrolling=!1,a._onResize=new r.EventEmitter,a.cols=Math.max(t.options.cols,E.MINIMUM_COLS),a.rows=Math.max(t.options.rows,E.MINIMUM_ROWS),a.buffers=new o.BufferSet(t,a),a}return w(s,e),Object.defineProperty(s.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),s.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},s.prototype.resize=function(t,a){this.cols=t,this.rows=a,this.buffers.resize(t,a),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:a})},s.prototype.reset=function(){this.buffers.dispose(),this.buffers=new o.BufferSet(this._optionsService,this),this.isUserScrolling=!1},s=m([f(0,c.IOptionsService)],s)}(i.Disposable);E.BufferService=n},function(O,E,C){"use strict";var A,w=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 s in e)e.hasOwnProperty(s)&&(n[s]=e[s])})(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(E,"__esModule",{value:!0}),E.BufferSet=void 0;var m=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 m.Buffer(!0,i,n),e._normal.fillViewportRows(),e._alt=new m.Buffer(!1,i,n),e._activeBuffer=e._normal,e.setupTabStops(),e}return w(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);E.BufferSet=c},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BufferStringIterator=E.Buffer=E.MAX_BUFFER_SIZE=void 0;var A=C(71),w=C(16),m=C(4),f=C(3),c=C(72),o=C(73),r=C(20),i=C(6);E.MAX_BUFFER_SIZE=4294967295;var n=function(){function s(t,a,l){this._hasScrollback=t,this._optionsService=a,this._bufferService=l,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=w.DEFAULT_ATTR_DATA.clone(),this.savedCharset=r.DEFAULT_CHARSET,this.markers=[],this._nullCell=m.CellData.fromCharData([0,f.NULL_CELL_CHAR,f.NULL_CELL_WIDTH,f.NULL_CELL_CODE]),this._whitespaceCell=m.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 s.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new i.ExtendedAttrs),this._nullCell},s.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new i.ExtendedAttrs),this._whitespaceCell},s.prototype.getBlankLine=function(t,a){return new w.BufferLine(this._bufferService.cols,this.getNullCell(t),a)},Object.defineProperty(s.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isCursorInViewport",{get:function(){var a=this.ybase+this.y-this.ydisp;return a>=0&&a<this._rows},enumerable:!1,configurable:!0}),s.prototype._getCorrectBufferLength=function(t){if(!this._hasScrollback)return t;var a=t+this._optionsService.options.scrollback;return a>E.MAX_BUFFER_SIZE?E.MAX_BUFFER_SIZE:a},s.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=w.DEFAULT_ATTR_DATA);for(var a=this._rows;a--;)this.lines.push(this.getBlankLine(t))}},s.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},s.prototype.resize=function(t,a){var l=this.getNullCell(w.DEFAULT_ATTR_DATA),u=this._getCorrectBufferLength(a);if(u>this.lines.maxLength&&(this.lines.maxLength=u),this.lines.length>0){if(this._cols<t)for(var h=0;h<this.lines.length;h++)this.lines.get(h).resize(t,l);var p=0;if(this._rows<a)for(var g=this._rows;g<a;g++)this.lines.length<a+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new w.BufferLine(t,l)):this.ybase>0&&this.lines.length<=this.ybase+this.y+p+1?(this.ybase--,p++,this.ydisp>0&&this.ydisp--):this.lines.push(new w.BufferLine(t,l)));else for(g=this._rows;g>a;g--)this.lines.length>a+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(u<this.lines.maxLength){var 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,l);this._cols=t,this._rows=a},Object.defineProperty(s.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),s.prototype._reflow=function(t,a){this._cols!==t&&(t>this._cols?this._reflowLarger(t,a):this._reflowSmaller(t,a))},s.prototype._reflowLarger=function(t,a){var l=c.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(w.DEFAULT_ATTR_DATA));if(l.length>0){var u=c.reflowLargerCreateNewLayout(this.lines,l);c.reflowLargerApplyNewLayout(this.lines,u.layout),this._reflowLargerAdjustViewport(t,a,u.countRemoved)}},s.prototype._reflowLargerAdjustViewport=function(t,a,l){for(var u=this.getNullCell(w.DEFAULT_ATTR_DATA),h=l;h-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<a&&this.lines.push(new w.BufferLine(t,u))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-l,0)},s.prototype._reflowSmaller=function(t,a){for(var l=this.getNullCell(w.DEFAULT_ATTR_DATA),u=[],h=0,p=this.lines.length-1;p>=0;p--){var g=this.lines.get(p);if(!(!g||!g.isWrapped&&g.getTrimmedLength()<=t)){for(var v=[g];g.isWrapped&&p>0;)g=this.lines.get(--p),v.unshift(g);var y=this.ybase+this.y;if(!(y>=p&&y<p+v.length)){var x=v[v.length-1].getTrimmedLength(),T=c.reflowSmallerGetNewLineLengths(v,this._cols,t),S=T.length-v.length,b=void 0;b=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+S):Math.max(0,this.lines.length-this.lines.maxLength+S);for(var _=[],I=0;I<S;I++){var L=this.getBlankLine(w.DEFAULT_ATTR_DATA,!0);_.push(L)}_.length>0&&(u.push({start:p+v.length+h,newLines:_}),h+=_.length),v.push.apply(v,_);var N=T.length-1,D=T[N];D===0&&(D=T[--N]);for(var R=v.length-S-1,P=x;R>=0;){var M=Math.min(P,D);if(v[N].copyCellsFrom(v[R],P-M,D-M,M,!0),(D-=M)===0&&(D=T[--N]),(P-=M)===0){R--;var U=Math.max(R,0);P=c.getWrappedLineTrimmedLength(v,U,this._cols)}}for(I=0;I<v.length;I++)T[I]<t&&v[I].setCell(T[I],l);for(var F=S-b;F-- >0;)this.ybase===0?this.y<a-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+h)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+S,this.ybase+a-1)}}}if(u.length>0){var j=[],W=[];for(I=0;I<this.lines.length;I++)W.push(this.lines.get(I));var V=this.lines.length,z=V-1,Y=0,$=u[Y];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+h);var ue=0;for(I=Math.min(this.lines.maxLength-1,V+h-1);I>=0;I--)if($&&$.start>z+ue){for(var ne=$.newLines.length-1;ne>=0;ne--)this.lines.set(I--,$.newLines[ne]);I++,j.push({index:z+1,amount:$.newLines.length}),ue+=$.newLines.length,$=u[++Y]}else this.lines.set(I,W[z--]);var ge=0;for(I=j.length-1;I>=0;I--)j[I].index+=ge,this.lines.onInsertEmitter.fire(j[I]),ge+=j[I].amount;var Oe=Math.max(0,V+h-this.lines.maxLength);Oe>0&&this.lines.onTrimEmitter.fire(Oe)}},s.prototype.stringIndexToBufferIndex=function(t,a,l){for(l===void 0&&(l=!1);a;){var u=this.lines.get(t);if(!u)return[-1,-1];for(var h=l?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]},s.prototype.translateBufferLineToString=function(t,a,l,u){l===void 0&&(l=0);var h=this.lines.get(t);return h?h.translateToString(a,l,u):""},s.prototype.getWrappedRangeForLine=function(t){for(var a=t,l=t;a>0&&this.lines.get(a).isWrapped;)a--;for(;l+1<this.lines.length&&this.lines.get(l+1).isWrapped;)l++;return{first:a,last:l}},s.prototype.setupTabStops=function(t){for(t!=null?this.tabs[t]||(t=this.prevStop(t)):(this.tabs={},t=0);t<this._cols;t+=this._optionsService.options.tabStopWidth)this.tabs[t]=!0},s.prototype.prevStop=function(t){for(t==null&&(t=this.x);!this.tabs[--t]&&t>0;);return t>=this._cols?this._cols-1:t<0?0:t},s.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t<this._cols;);return t>=this._cols?this._cols-1:t<0?0:t},s.prototype.addMarker=function(t){var a=this,l=new o.Marker(t);return this.markers.push(l),l.register(this.lines.onTrim(function(u){l.line-=u,l.line<0&&l.dispose()})),l.register(this.lines.onInsert(function(u){l.line>=u.index&&(l.line+=u.amount)})),l.register(this.lines.onDelete(function(u){l.line>=u.index&&l.line<u.index+u.amount&&l.dispose(),l.line>u.index&&(l.line-=u.amount)})),l.register(l.onDispose(function(){return a._removeMarker(l)})),l},s.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},s.prototype.iterator=function(t,a,l,u,h){return new e(this,t,a,l,u,h)},s}();E.Buffer=n;var e=function(){function s(t,a,l,u,h,p){l===void 0&&(l=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=l,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 s.prototype.hasNext=function(){return this._current<this._endIndex},s.prototype.next=function(){var t=this._buffer.getWrappedRangeForLine(this._current);t.first<this._startIndex-this._startOverscan&&(t.first=this._startIndex-this._startOverscan),t.last>this._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var a="",l=t.first;l<=t.last;++l)a+=this._buffer.translateBufferLineToString(l,this._trimRight);return this._current=t.last+1,{range:t,content:a}},s}();E.BufferStringIterator=e},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CircularList=void 0;var A=C(0),w=function(){function m(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(m.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"maxLength",{get:function(){return this._maxLength},set:function(c){if(this._maxLength!==c){for(var 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(m.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}),m.prototype.get=function(f){return this._array[this._getCyclicIndex(f)]},m.prototype.set=function(f,c){this._array[this._getCyclicIndex(f)]=c},m.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++},m.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(m.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),m.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},m.prototype.splice=function(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},m.prototype.trimStart=function(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)},m.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))}},m.prototype._getCyclicIndex=function(f){return(this._startIndex+f)%this._maxLength},m}();E.CircularList=w},function(O,E,C){"use strict";function A(w,m,f){if(m===w.length-1)return w[m].getTrimmedLength();var c=!w[m].hasContent(f-1)&&w[m].getWidth(f-1)===1,o=w[m+1].getWidth(0)===2;return c&&o?f-1:f}Object.defineProperty(E,"__esModule",{value:!0}),E.getWrappedLineTrimmedLength=E.reflowSmallerGetNewLineLengths=E.reflowLargerApplyNewLayout=E.reflowLargerCreateNewLayout=E.reflowLargerGetLinesToRemove=void 0,E.reflowLargerGetLinesToRemove=function(w,m,f,c,o){for(var r=[],i=0;i<w.length-1;i++){var n=i,e=w.get(++n);if(e.isWrapped){for(var s=[w.get(i)];n<w.length&&e.isWrapped;)s.push(e),e=w.get(++n);if(c>=i&&c<n)i+=s.length-1;else{for(var t=0,a=A(s,t,m),l=1,u=0;l<s.length;){var h=A(s,l,m),p=h-u,g=f-a,v=Math.min(p,g);s[t].copyCellsFrom(s[l],u,a,v,!1),(a+=v)===f&&(t++,a=0),(u+=v)===h&&(l++,u=0),a===0&&t!==0&&s[t-1].getWidth(f-1)===2&&(s[t].copyCellsFrom(s[t-1],f-1,a++,1,!1),s[t-1].setCell(f-1,o))}s[t].replaceCells(a,f,o);for(var y=0,x=s.length-1;x>0&&(x>t||s[x].getTrimmedLength()===0);x--)y++;y>0&&(r.push(i+s.length-y),r.push(y)),i+=s.length-1}}}return r},E.reflowLargerCreateNewLayout=function(w,m){for(var f=[],c=0,o=m[c],r=0,i=0;i<w.length;i++)if(o===i){var n=m[++c];w.onDeleteEmitter.fire({index:i-r,amount:n}),i+=n-1,r+=n,o=m[++c]}else f.push(i);return{layout:f,countRemoved:r}},E.reflowLargerApplyNewLayout=function(w,m){for(var f=[],c=0;c<m.length;c++)f.push(w.get(m[c]));for(c=0;c<f.length;c++)w.set(c,f[c]);w.length=m.length},E.reflowSmallerGetNewLineLengths=function(w,m,f){for(var c=[],o=w.map(function(a,l){return A(w,l,m)}).reduce(function(a,l){return a+l}),r=0,i=0,n=0;n<o;){if(o-n<f){c.push(o-n);break}r+=f;var e=A(w,i,m);r>e&&(r-=e,i++);var s=w[i].getWidth(r-1)===2;s&&r--;var t=s?f-1:f;c.push(t),n+=t}return c},E.getWrappedLineTrimmedLength=A},function(O,E,C){"use strict";var A,w=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(E,"__esModule",{value:!0}),E.Marker=void 0;var m=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 m.EventEmitter,i}return w(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);E.Marker=f},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.OptionsService=E.DEFAULT_OPTIONS=E.DEFAULT_BELL_SOUND=void 0;var A=C(0),w=C(11),m=C(33);E.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",E.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:E.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:w.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var f=["cols","rows"],c=function(){function o(r){this._onOptionChange=new A.EventEmitter,this.options=m.clone(E.DEFAULT_OPTIONS);for(var i=0,n=Object.keys(r);i<n.length;i++){var e=n[i];if(e in this.options){var s=r[e];this.options[e]=s}}}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 E.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=E.DEFAULT_OPTIONS[r]);break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(r+" cannot be less than 1, value: "+i);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(r+" cannot be less than 0, value: "+i);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(r+" cannot be less than or equal to 0, value: "+i)}return i},o.prototype.getOption=function(r){if(!(r in E.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');return this.options[r]},o}();E.OptionsService=c},function(O,E,C){"use strict";var A,w=this&&this.__extends||(A=function(a,l){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,l)},function(t,a){function l(){this.constructor=t}A(t,a),t.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}),m=this&&this.__decorate||function(t,a,l,u){var h,p=arguments.length,g=p<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,l):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(t,a,l,u);else for(var v=t.length-1;v>=0;v--)(h=t[v])&&(g=(p<3?h(g):p>3?h(a,l,g):h(a,l))||g);return p>3&&g&&Object.defineProperty(a,l,g),g},f=this&&this.__param||function(t,a){return function(l,u){a(l,u,t)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CoreService=void 0;var c=C(1),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}),s=function(t){function a(l,u,h,p){var g=t.call(this)||this;return g._bufferService=u,g._logService=h,g._optionsService=p,g.isCursorInitialized=!1,g.isCursorHidden=!1,g._onData=g.register(new o.EventEmitter),g._onUserInput=g.register(new o.EventEmitter),g._onBinary=g.register(new o.EventEmitter),g._scrollToBottom=l,g.register({dispose:function(){return g._scrollToBottom=void 0}}),g.modes=r.clone(n),g.decPrivateModes=r.clone(e),g}return w(a,t),Object.defineProperty(a.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),a.prototype.reset=function(){this.modes=r.clone(n),this.decPrivateModes=r.clone(e)},a.prototype.triggerDataEvent=function(l,u){if(u===void 0&&(u=!1),!this._optionsService.options.disableStdin){var h=this._bufferService.buffer;h.ybase!==h.ydisp&&this._scrollToBottom(),u&&this._onUserInput.fire(),this._logService.debug('sending data "'+l+'"',function(){return l.split("").map(function(p){return p.charCodeAt(0)})}),this._onData.fire(l)}},a.prototype.triggerBinaryEvent=function(l){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+l+'"',function(){return l.split("").map(function(u){return u.charCodeAt(0)})}),this._onBinary.fire(l))},a=m([f(1,c.IBufferService),f(2,c.ILogService),f(3,c.IOptionsService)],a)}(i.Disposable);E.CoreService=s},function(O,E,C){"use strict";var A=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,h=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},w=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CoreMouseService=void 0;var m=C(1),f=C(0),c={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(s){return s.button!==4&&s.action===1&&(s.ctrl=!1,s.alt=!1,s.shift=!1,!0)}},VT200:{events:19,restrict:function(s){return s.action!==32}},DRAG:{events:23,restrict:function(s){return s.action!==32||s.button!==3}},ANY:{events:31,restrict:function(s){return!0}}};function o(e,s){var t=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(t|=64,t|=e.action):(t|=3&e.button,4&e.button&&(t|=64),8&e.button&&(t|=128),e.action===32?t|=32:e.action!==0||s||(t|=3)),t}var r=String.fromCharCode,i={DEFAULT:function(s){var t=[o(s,!1)+32,s.col+32,s.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"[M"+r(t[0])+r(t[1])+r(t[2])},SGR:function(s){var t=s.action===0&&s.button!==4?"m":"M";return"[<"+o(s,!0)+";"+s.col+";"+s.row+t}},n=function(){function e(s,t){this._bufferService=s,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new f.EventEmitter,this._lastEvent=null;for(var a=0,l=Object.keys(c);a<l.length;a++){var u=l[a];this.addProtocol(u,c[u])}for(var h=0,p=Object.keys(i);h<p.length;h++){var g=p[h];this.addEncoding(g,i[g])}this.reset()}return e.prototype.addProtocol=function(s,t){this._protocols[s]=t},e.prototype.addEncoding=function(s,t){this._encodings[s]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(t){if(!this._protocols[t])throw new Error('unknown protocol "'+t+'"');this._activeProtocol=t,this._onProtocolChange.fire(this._protocols[t].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(t){if(!this._encodings[t])throw new Error('unknown encoding "'+t+'"');this._activeEncoding=t},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(s){if(s.col<0||s.col>=this._bufferService.cols||s.row<0||s.row>=this._bufferService.rows)return!1;if(s.button===4&&s.action===32)return!1;if(s.button===3&&s.action!==32)return!1;if(s.button!==4&&(s.action===2||s.action===3))return!1;if(s.col++,s.row++,s.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,s))return!1;if(!this._protocols[this._activeProtocol].restrict(s))return!1;var t=this._encodings[this._activeEncoding](s);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=s,!0},e.prototype.explainEvents=function(s){return{down:!!(1&s),up:!!(2&s),drag:!!(4&s),move:!!(8&s),wheel:!!(16&s)}},e.prototype._compareEvents=function(s,t){return s.col===t.col&&s.row===t.row&&s.button===t.button&&s.action===t.action&&s.ctrl===t.ctrl&&s.alt===t.alt&&s.shift===t.shift},e=A([w(0,m.IBufferService),w(1,m.ICoreService)],e)}();E.CoreMouseService=n},function(O,E,C){"use strict";var A=this&&this.__decorate||function(c,o,r,i){var n,e=arguments.length,s=e<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(c,o,r,i);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(s=(e<3?n(s):e>3?n(o,r,s):n(o,r))||s);return e>3&&s&&Object.defineProperty(o,r,s),s},w=this&&this.__param||function(c,o){return function(r,i){o(r,i,c)}};Object.defineProperty(E,"__esModule",{value:!0}),E.DirtyRowService=void 0;var m=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([w(0,m.IBufferService)],c)}();E.DirtyRowService=f},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UnicodeService=void 0;var A=C(0),w=C(79),m=function(){function f(){this._providers=Object.create(null),this._active="",this._onChange=new A.EventEmitter;var c=new w.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}();E.UnicodeService=m},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UnicodeV6=void 0;var A,w=C(15),m=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],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),w.fill(A,1),A[0]=0,w.fill(A,0,1,32),w.fill(A,0,127,160),w.fill(A,2,4352,4448),A[9001]=2,A[9002]=2,w.fill(A,2,11904,42192),A[12351]=1,w.fill(A,2,44032,55204),w.fill(A,2,63744,64256),w.fill(A,2,65040,65050),w.fill(A,2,65072,65136),w.fill(A,2,65280,65377),w.fill(A,2,65504,65511);for(var r=0;r<m.length;++r)w.fill(A,0,m[r][0],m[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,s=0,t=n.length-1;if(i<n[0][0]||i>n[t][1])return!1;for(;t>=s;)if(i>n[e=s+t>>1][1])s=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}();E.UnicodeV6=c},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CharsetService=void 0;var A=function(){function w(){this.glevel=0,this._charsets=[]}return w.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},w.prototype.setgLevel=function(m){this.glevel=m,this.charset=this._charsets[m]},w.prototype.setgCharset=function(m,f){this._charsets[m]=f,this.glevel===m&&(this.charset=f)},w}();E.CharsetService=A},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.updateWindowsModeWrappedState=void 0;var A=C(3);E.updateWindowsModeWrappedState=function(w){var m=w.buffer.lines.get(w.buffer.ybase+w.buffer.y-1),f=m==null?void 0:m.get(w.cols-1),c=w.buffer.lines.get(w.buffer.ybase+w.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,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.WriteBuffer=void 0;var A=function(){function w(m){this._action=m,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return w.prototype.writeSync=function(m){if(this._writeBuffer.length){for(var 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(m)},w.prototype.write=function(m,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+=m.length,this._writeBuffer.push(m),this._callbacks.push(f)},w.prototype._innerWrite=function(){for(var m=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 m._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},w}();E.WriteBuffer=A},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AddonManager=void 0;var A=function(){function w(){this._addons=[]}return w.prototype.dispose=function(){for(var m=this._addons.length-1;m>=0;m--)this._addons[m].instance.dispose()},w.prototype.loadAddon=function(m,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(m)},w.prototype._wrappedAddonDispose=function(m){if(!m.isDisposed){for(var f=-1,c=0;c<this._addons.length;c++)if(this._addons[c]===m){f=c;break}if(f===-1)throw new Error("Could not dispose an addon that has not been loaded");m.isDisposed=!0,m.dispose.apply(m.instance),this._addons.splice(f,1)}},w}();E.AddonManager=A}])})},"/SeX":function(H,B,d){var O=d("knOB"),E=d("qZFw"),C=function(w){this.name=w||"",this.cx=0,this.cy=0,this._radiusAxis=new O,this._angleAxis=new E,this._radiusAxis.polar=this._angleAxis.polar=this};C.prototype={type:"polar",axisPointerEnabled:!0,constructor:C,dimensions:["radius","angle"],model:null,containPoint:function(w){var m=this.pointToCoord(w);return this._radiusAxis.contain(m[0])&&this._angleAxis.contain(m[1])},containData:function(w){return this._radiusAxis.containData(w[0])&&this._angleAxis.containData(w[1])},getAxis:function(w){return this["_"+w+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(w){var m=[],f=this._angleAxis,c=this._radiusAxis;return f.scale.type===w&&m.push(f),c.scale.type===w&&m.push(c),m},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(w){var m=this._angleAxis;return w===m?this._radiusAxis:m},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(w){var m=w!=null&&w!=="auto"?this.getAxis(w):this.getBaseAxis();return{baseAxes:[m],otherAxes:[this.getOtherAxis(m)]}},dataToPoint:function(w,m){return this.coordToPoint([this._radiusAxis.dataToRadius(w[0],m),this._angleAxis.dataToAngle(w[1],m)])},pointToData:function(w,m){var f=this.pointToCoord(w);return[this._radiusAxis.radiusToData(f[0],m),this._angleAxis.angleToData(f[1],m)]},pointToCoord:function(w){var m=w[0]-this.cx,f=w[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(m*m+f*f);m/=n,f/=n;for(var e=Math.atan2(-f,m)/Math.PI*180,s=e<r?1:-1;e<r||e>i;)e+=s*360;return[n,e]},coordToPoint:function(w){var m=w[0],f=w[1]/180*Math.PI,c=Math.cos(f)*m+this.cx,o=-Math.sin(f)*m+this.cy;return[c,o]},getArea:function(){var w=this.getAngleAxis(),m=this.getRadiusAxis(),f=m.getExtent().slice();f[0]>f[1]&&f.reverse();var c=w.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:w.inverse,contain:function(r,i){var n=r-this.cx,e=i-this.cy,s=n*n+e*e,t=this.r,a=this.r0;return s<=t*t&&s>=a*a}}}};var A=C;H.exports=A},"/WM3":function(H,B,d){var O=d("QuXc"),E=d("bYtY"),C=E.isFunction,A={createOnAllSeries:!0,performRawSeries:!0,reset:function(w,m){var f=w.getData(),c=(w.visualColorAccessPath||"itemStyle.color").split("."),o=w.get(c),r=C(o)&&!(o instanceof O)?o:null;(!o||r)&&(o=w.getColorFromPalette(w.name,null,m.getSeriesCount())),f.setVisual("color",o);var i=(w.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),n=w.get(i);if(f.setVisual("borderColor",n),!m.isSeriesFiltered(w)){r&&f.each(function(s){f.setItemVisual(s,"color",r(w.getDataParams(s)))});var e=function(s,t){var a=s.getItemModel(t),l=a.get(c,!0),u=a.get(i,!0);l!=null&&s.setItemVisual(t,"color",l),u!=null&&s.setItemVisual(t,"borderColor",u)};return{dataEach:f.hasItemOption?e:null}}}};H.exports=A},"/d5a":function(H,B){var d={average:function(C){for(var A=0,w=0,m=0;m<C.length;m++)isNaN(C[m])||(A+=C[m],w++);return w===0?NaN:A/w},sum:function(C){for(var A=0,w=0;w<C.length;w++)A+=C[w]||0;return A},max:function(C){for(var A=-Infinity,w=0;w<C.length;w++)C[w]>A&&(A=C[w]);return isFinite(A)?A:NaN},min:function(C){for(var A=Infinity,w=0;w<C.length;w++)C[w]<A&&(A=C[w]);return isFinite(A)?A:NaN},nearest:function(C){return C[0]}},O=function(C,A){return Math.round(C.length/2)};function E(C){return{seriesType:C,modifyOutputEnd:!0,reset:function(A,w,m){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],s=Math.round(f.count()/e);if(s>1){var t;typeof c=="string"?t=d[c]:typeof c=="function"&&(t=c),t&&A.setData(f.downSample(f.mapDimension(i.dim),1/s,t,O))}}}}}H.exports=E},"/ezw":function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("cDf5"),m=d.n(w),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=function(F){var j=F.prefixCls,W=F.className,V=F.width,z=F.style;return f.createElement("h3",{className:o()(j,W),style:A()({width:V},z)})},i=r,n=d("RIqP"),e=d.n(n),s=function(F){var j=function(ne){var ge=F.width,Oe=F.rows,De=Oe===void 0?2:Oe;return Array.isArray(ge)?ge[ne]:De-1===ne?ge:void 0},W=F.prefixCls,V=F.className,z=F.style,Y=F.rows,$=e()(Array(Y)).map(function(ue,ne){return f.createElement("li",{key:ne,style:{width:j(ne)}})});return f.createElement("ul",{className:o()(W,V),style:z},$)},t=s,a=d("H84U"),l=function(F){var j,W,V=F.prefixCls,z=F.className,Y=F.style,$=F.size,ue=F.shape,ne=o()((j={},E()(j,"".concat(V,"-lg"),$==="large"),E()(j,"".concat(V,"-sm"),$==="small"),j)),ge=o()((W={},E()(W,"".concat(V,"-circle"),ue==="circle"),E()(W,"".concat(V,"-square"),ue==="square"),E()(W,"".concat(V,"-round"),ue==="round"),W)),Oe=typeof $=="number"?{width:$,height:$,lineHeight:"".concat($,"px")}:{};return f.createElement("span",{className:o()(V,z,ne,ge),style:A()(A()({},Oe),Y)})},u=l,h=d("BGR+"),p=function(F){var j=function(V){var z=V.getPrefixCls,Y=F.prefixCls,$=F.className,ue=F.active,ne=z("skeleton",Y),ge=Object(h.default)(F,["prefixCls"]),Oe=o()(ne,$,"".concat(ne,"-element"),E()({},"".concat(ne,"-active"),ue));return f.createElement("div",{className:Oe},f.createElement(u,A()({prefixCls:"".concat(ne,"-avatar")},ge)))};return f.createElement(a.a,null,j)};p.defaultProps={size:"default",shape:"circle"};var g=p,v=function(F){var j=function(V){var z=V.getPrefixCls,Y=F.prefixCls,$=F.className,ue=F.active,ne=z("skeleton",Y),ge=Object(h.default)(F,["prefixCls"]),Oe=o()(ne,$,"".concat(ne,"-element"),E()({},"".concat(ne,"-active"),ue));return f.createElement("div",{className:Oe},f.createElement(u,A()({prefixCls:"".concat(ne,"-button")},ge)))};return f.createElement(a.a,null,j)};v.defaultProps={size:"default"};var y=v,x=function(F){var j=function(V){var z=V.getPrefixCls,Y=F.prefixCls,$=F.className,ue=F.active,ne=z("skeleton",Y),ge=Object(h.default)(F,["prefixCls"]),Oe=o()(ne,$,"".concat(ne,"-element"),E()({},"".concat(ne,"-active"),ue));return f.createElement("div",{className:Oe},f.createElement(u,A()({prefixCls:"".concat(ne,"-input")},ge)))};return f.createElement(a.a,null,j)};x.defaultProps={size:"default"};var T=x,S="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",b=function(F){var j=function(V){var z=V.getPrefixCls,Y=F.prefixCls,$=F.className,ue=F.style,ne=z("skeleton",Y),ge=o()(ne,$,"".concat(ne,"-element"));return f.createElement("div",{className:ge},f.createElement("div",{className:o()("".concat(ne,"-image"),$),style:ue},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(ne,"-image-svg")},f.createElement("path",{d:S,className:"".concat(ne,"-image-path")}))))};return f.createElement(a.a,null,j)},_=b;function I(U){return U&&m()(U)==="object"?U:{}}function L(U,F){return U&&!F?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function N(U,F){return!U&&F?{width:"38%"}:U&&F?{width:"50%"}:{}}function D(U,F){var j={};return(!U||!F)&&(j.width="61%"),!U&&F?j.rows=3:j.rows=2,j}var R=function(F){var j=function(V){var z=V.getPrefixCls,Y=V.direction,$=F.prefixCls,ue=F.loading,ne=F.className,ge=F.children,Oe=F.avatar,De=F.title,He=F.paragraph,pe=F.active,Ue=F.round,oe=z("skeleton",$);if(ue||!("loading"in F)){var ee,Xe=!!Oe,se=!!De,Q=!!He,G;if(Xe){var J=A()(A()({prefixCls:"".concat(oe,"-avatar")},L(se,Q)),I(Oe));G=f.createElement("div",{className:"".concat(oe,"-header")},f.createElement(u,J))}var ve;if(se||Q){var de;if(se){var Ce=A()(A()({prefixCls:"".concat(oe,"-title")},N(Xe,Q)),I(De));de=f.createElement(i,Ce)}var Ee;if(Q){var le=A()(A()({prefixCls:"".concat(oe,"-paragraph")},D(Xe,se)),I(He));Ee=f.createElement(t,le)}ve=f.createElement("div",{className:"".concat(oe,"-content")},de,Ee)}var fe=o()(oe,ne,(ee={},E()(ee,"".concat(oe,"-with-avatar"),Xe),E()(ee,"".concat(oe,"-active"),pe),E()(ee,"".concat(oe,"-rtl"),Y==="rtl"),E()(ee,"".concat(oe,"-round"),Ue),ee));return f.createElement("div",{className:fe},G,ve)}return ge};return f.createElement(a.a,null,j)};R.defaultProps={avatar:!1,title:!0,paragraph:!0},R.Button=y,R.Avatar=g,R.Input=T,R.Image=_;var P=R,M=B.a=P},"/iHx":function(H,B,d){var O=d("6GrX"),E=d("IwbS"),C=["textStyle","color"],A={getTextColor:function(w){var m=this.ecModel;return this.getShallow("color")||(!w&&m?m.get(C):null)},getFont:function(){return E.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(w){return O.getBoundingRect(w,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};H.exports=A},"/ry/":function(H,B,d){var O=d("bYtY"),E=d("T4UG"),C=d("5GhG"),A=C.seriesModelMixin,w=E.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});O.mixin(w,A,!0);var m=w;H.exports=m},"/stD":function(H,B,d){var O=d("bYtY"),E=d("IUWy"),C=d("Kagy"),A=C.toolbox.brush;function w(c,o,r){this.model=c,this.ecModel=o,this.api=r,this._brushType,this._brushMode}w.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:O.clone(A.title)};var m=w.prototype;m.render=m.updateView=function(c,o,r){var i,n,e;o.eachComponent({mainType:"brush"},function(s){i=s.brushType,n=s.brushOption.brushMode||"single",e|=s.areas.length}),this._brushType=i,this._brushMode=n,O.each(c.get("type",!0),function(s){c.setIconStatus(s,(s==="keep"?n==="multiple":s==="clear"?e:s===i)?"emphasis":"normal")})},m.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},m.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}})},E.register("brush",w);var f=w;H.exports=f},"/wGt":function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d("Ff2n"),l=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("md7G"),g=d("foSv"),v=d("1W/9"),y=d("rePB"),x=d("JX7q"),T=d("TSYQ"),S=d.n(T),b=d("qx4F"),_=d("4IlW");function I(de){return Array.isArray(de)?de:[de]}var L={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},N=Object.keys(L).filter(function(de){if(typeof document=="undefined")return!1;var Ce=document.getElementsByTagName("html")[0];return de in(Ce?Ce.style:{})})[0],D=L[N];function R(de,Ce,Ee,le){de.addEventListener?de.addEventListener(Ce,Ee,le):de.attachEvent&&de.attachEvent("on".concat(Ce),Ee)}function P(de,Ce,Ee,le){de.removeEventListener?de.removeEventListener(Ce,Ee,le):de.attachEvent&&de.detachEvent("on".concat(Ce),Ee)}function M(de,Ce){var Ee=typeof de=="function"?de(Ce):de;return Array.isArray(Ee)?Ee.length===2?Ee:[Ee[0],Ee[1]]:[Ee]}var U=function(Ce){return!isNaN(parseFloat(Ce))&&isFinite(Ce)},F=!(typeof window!="undefined"&&window.document&&window.document.createElement),j=function de(Ce,Ee,le,fe){if(!Ee||Ee===document||Ee instanceof Document)return!1;if(Ee===Ce.parentNode)return!0;var xe=Math.max(Math.abs(le),Math.abs(fe))===Math.abs(fe),Qe=Math.max(Math.abs(le),Math.abs(fe))===Math.abs(le),ot=Ee.scrollHeight-Ee.clientHeight,Je=Ee.scrollWidth-Ee.clientWidth,Te=document.defaultView.getComputedStyle(Ee),et=Te.overflowY==="auto"||Te.overflowY==="scroll",ze=Te.overflowX==="auto"||Te.overflowX==="scroll",nt=ot&&et,Ot=Je&&ze;return xe&&(!nt||nt&&(Ee.scrollTop>=ot&&fe<0||Ee.scrollTop<=0&&fe>0))||Qe&&(!Ot||Ot&&(Ee.scrollLeft>=Je&&le<0||Ee.scrollLeft<=0&&le>0))?de(Ce,Ee.parentNode,le,fe):!1};function W(de){var Ce=V();return function(){var le=Object(g.a)(de),fe;if(Ce){var xe=Object(g.a)(this).constructor;fe=Reflect.construct(le,arguments,xe)}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(de){return!1}}var z={},Y=function(de){Object(h.a)(Ee,de);var Ce=W(Ee);function Ee(le){var fe;return Object(l.a)(this,Ee),fe=Ce.call(this,le),fe.domFocus=function(){fe.dom&&fe.dom.focus()},fe.removeStartHandler=function(xe){if(xe.touches.length>1)return;fe.startPos={x:xe.touches[0].clientX,y:xe.touches[0].clientY}},fe.removeMoveHandler=function(xe){if(xe.changedTouches.length>1)return;var Qe=xe.currentTarget,ot=xe.changedTouches[0].clientX-fe.startPos.x,Je=xe.changedTouches[0].clientY-fe.startPos.y;(Qe===fe.maskDom||Qe===fe.handlerDom||Qe===fe.contentDom&&j(Qe,xe.target,ot,Je))&&xe.cancelable&&xe.preventDefault()},fe.transitionEnd=function(xe){var Qe=xe.target;P(Qe,D,fe.transitionEnd),Qe.style.transition=""},fe.onKeyDown=function(xe){if(xe.keyCode===_.a.ESC){var Qe=fe.props.onClose;xe.stopPropagation(),Qe&&Qe(xe)}},fe.onWrapperTransitionEnd=function(xe){var Qe=fe.props,ot=Qe.open,Je=Qe.afterVisibleChange;xe.target===fe.contentWrapper&&xe.propertyName.match(/transform$/)&&(fe.dom.style.transition="",!ot&&fe.getCurrentDrawerSome()&&(document.body.style.overflowX="",fe.maskDom&&(fe.maskDom.style.left="",fe.maskDom.style.width="")),Je&&Je(!!ot))},fe.openLevelTransition=function(){var xe=fe.props,Qe=xe.open,ot=xe.width,Je=xe.height,Te=fe.getHorizontalBoolAndPlacementName(),et=Te.isHorizontal,ze=Te.placementName,nt=fe.contentDom?fe.contentDom.getBoundingClientRect()[et?"width":"height"]:0,Ot=(et?ot:Je)||nt;fe.setLevelAndScrolling(Qe,ze,Ot)},fe.setLevelTransform=function(xe,Qe,ot,Je){var Te=fe.props,et=Te.placement,ze=Te.levelMove,nt=Te.duration,Ot=Te.ease,Ct=Te.showMask;fe.levelDom.forEach(function(Tt){Tt.style.transition="transform ".concat(nt," ").concat(Ot),R(Tt,D,fe.transitionEnd);var Dt=xe?ot:0;if(ze){var Be=M(ze,{target:Tt,open:xe});Dt=xe?Be[0]:Be[1]||0}var ie=typeof Dt=="number"?"".concat(Dt,"px"):Dt,X=et==="left"||et==="top"?ie:"-".concat(ie);X=Ct&&et==="right"&&Je?"calc(".concat(X," + ").concat(Je,"px)"):X,Tt.style.transform=Dt?"".concat(Qe,"(").concat(X,")"):""})},fe.setLevelAndScrolling=function(xe,Qe,ot){var Je=fe.props.onChange;if(!F){var Te=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(b.a)(!0):0;fe.setLevelTransform(xe,Qe,ot,Te),fe.toggleScrollingToDrawerAndBody(Te)}Je&&Je(xe)},fe.toggleScrollingToDrawerAndBody=function(xe){var Qe=fe.props,ot=Qe.getOpenCount,Je=Qe.getContainer,Te=Qe.showMask,et=Qe.open,ze=Je&&Je(),nt=ot&&ot();if(ze&&ze.parentNode===document.body&&Te){var Ot=["touchstart"],Ct=[document.body,fe.maskDom,fe.handlerDom,fe.contentDom];et&&document.body.style.overflow!=="hidden"?(xe&&fe.addScrollingEffect(xe),nt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Ct.forEach(function(Tt,Dt){if(!Tt)return;R(Tt,Ot[Dt]||"touchmove",Dt?fe.removeMoveHandler:fe.removeStartHandler,fe.passive)})):fe.getCurrentDrawerSome()&&(nt||(document.body.style.overflow=""),document.body.style.touchAction="",xe&&fe.remScrollingEffect(xe),Ct.forEach(function(Tt,Dt){if(!Tt)return;P(Tt,Ot[Dt]||"touchmove",Dt?fe.removeMoveHandler:fe.removeStartHandler,fe.passive)}))}},fe.addScrollingEffect=function(xe){var Qe=fe.props,ot=Qe.placement,Je=Qe.duration,Te=Qe.ease,et=Qe.getOpenCount,ze=Qe.switchScrollingEffect,nt=et&&et();nt===1&&ze();var Ot="width ".concat(Je," ").concat(Te),Ct="transform ".concat(Je," ").concat(Te);fe.dom.style.transition="none";switch(ot){case"right":fe.dom.style.transform="translateX(-".concat(xe,"px)");break;case"top":case"bottom":fe.dom.style.width="calc(100% - ".concat(xe,"px)"),fe.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){fe.dom&&(fe.dom.style.transition="".concat(Ct,",").concat(Ot),fe.dom.style.width="",fe.dom.style.transform="")})},fe.remScrollingEffect=function(xe){var Qe=fe.props,ot=Qe.placement,Je=Qe.duration,Te=Qe.ease,et=Qe.getOpenCount,ze=Qe.switchScrollingEffect,nt=et&&et();nt||ze(!0),N&&(document.body.style.overflowX="hidden"),fe.dom.style.transition="none";var Ot,Ct="width ".concat(Je," ").concat(Te),Tt="transform ".concat(Je," ").concat(Te);switch(ot){case"left":{fe.dom.style.width="100%",Ct="width 0s ".concat(Te," ").concat(Je);break}case"right":{fe.dom.style.transform="translateX(".concat(xe,"px)"),fe.dom.style.width="100%",Ct="width 0s ".concat(Te," ").concat(Je),fe.maskDom&&(fe.maskDom.style.left="-".concat(xe,"px"),fe.maskDom.style.width="calc(100% + ".concat(xe,"px)"));break}case"top":case"bottom":{fe.dom.style.width="calc(100% + ".concat(xe,"px)"),fe.dom.style.height="100%",fe.dom.style.transform="translateZ(0)",Ot="height 0s ".concat(Te," ").concat(Je);break}default:break}clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){fe.dom&&(fe.dom.style.transition="".concat(Tt,",").concat(Ot?"".concat(Ot,","):"").concat(Ct),fe.dom.style.transform="",fe.dom.style.width="",fe.dom.style.height="")})},fe.getCurrentDrawerSome=function(){return!Object.keys(z).some(function(xe){return z[xe]})},fe.getLevelDom=function(xe){var Qe=xe.level,ot=xe.getContainer;if(F)return;var Je=ot&&ot(),Te=Je?Je.parentNode:null;if(fe.levelDom=[],Qe==="all"){var et=Te?Array.prototype.slice.call(Te.children):[];et.forEach(function(ze){ze.nodeName!=="SCRIPT"&&ze.nodeName!=="STYLE"&&ze.nodeName!=="LINK"&&ze!==Je&&fe.levelDom.push(ze)})}else Qe&&I(Qe).forEach(function(ze){document.querySelectorAll(ze).forEach(function(nt){fe.levelDom.push(nt)})})},fe.getHorizontalBoolAndPlacementName=function(){var xe=fe.props.placement,Qe=xe==="left"||xe==="right",ot="translate".concat(Qe?"X":"Y");return{isHorizontal:Qe,placementName:ot}},fe.state={_self:Object(x.a)(fe)},fe}return Object(u.a)(Ee,[{key:"componentDidMount",value:function(){var fe=this;if(!F){var xe=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return xe=!0,null}}))}catch(et){}this.passive=xe?{passive:!1}:!1}var Qe=this.props,ot=Qe.open,Je=Qe.getContainer,Te=Je&&Je();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),ot&&(Te&&Te.parentNode===document.body&&(z[this.drawerId]=ot),this.openLevelTransition(),this.forceUpdate(function(){fe.domFocus()}))}},{key:"componentDidUpdate",value:function(fe){var xe=this.props,Qe=xe.open,ot=xe.getContainer,Je=ot&&ot();Qe!==fe.open&&(Qe&&this.domFocus(),Je&&Je.parentNode===document.body&&(z[this.drawerId]=!!Qe),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var fe=this.props,xe=fe.getOpenCount,Qe=fe.open,ot=fe.switchScrollingEffect,Je=typeof xe=="function"&&xe();delete z[this.drawerId],Qe&&(this.setLevelTransform(!1),document.body.style.touchAction=""),Je||(document.body.style.overflow="",ot(!0))}},{key:"render",value:function(){var fe,xe=this,Qe=this.props,ot=Qe.className,Je=Qe.children,Te=Qe.style,et=Qe.width,ze=Qe.height,nt=Qe.defaultOpen,Ot=Qe.open,Ct=Qe.prefixCls,Tt=Qe.placement,Dt=Qe.level,Be=Qe.levelMove,ie=Qe.ease,X=Qe.duration,Fe=Qe.getContainer,Ne=Qe.handler,q=Qe.onChange,ht=Qe.afterVisibleChange,Rt=Qe.showMask,ut=Qe.maskClosable,Xt=Qe.maskStyle,or=Qe.onClose,Zr=Qe.onHandleClick,ar=Qe.keyboard,dr=Qe.getOpenCount,er=Qe.switchScrollingEffect,Ht=Object(a.a)(Qe,["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"]),dt=this.dom?Ot:!1,Hr=S()(Ct,(fe={},Object(y.a)(fe,"".concat(Ct,"-").concat(Tt),!0),Object(y.a)(fe,"".concat(Ct,"-open"),dt),Object(y.a)(fe,ot||"",!!ot),Object(y.a)(fe,"no-mask",!Rt),fe)),dn=this.getHorizontalBoolAndPlacementName(),Nn=dn.placementName,Vn=Tt==="left"||Tt==="top"?"-100%":"100%",gi=dt?"":"".concat(Nn,"(").concat(Vn,")"),bn=Ne&&t.cloneElement(Ne,{onClick:function(jt){Ne.props.onClick&&Ne.props.onClick(),Zr&&Zr(jt)},ref:function(jt){xe.handlerDom=jt}});return t.createElement("div",Object.assign({},Ht,{tabIndex:-1,className:Hr,style:Te,ref:function(jt){xe.dom=jt},onKeyDown:dt&&ar?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Rt&&t.createElement("div",{className:"".concat(Ct,"-mask"),onClick:ut?or:void 0,style:Xt,ref:function(jt){xe.maskDom=jt}}),t.createElement("div",{className:"".concat(Ct,"-content-wrapper"),style:{transform:gi,msTransform:gi,width:U(et)?"".concat(et,"px"):et,height:U(ze)?"".concat(ze,"px"):ze},ref:function(jt){xe.contentWrapper=jt}},t.createElement("div",{className:"".concat(Ct,"-content"),ref:function(jt){xe.contentDom=jt},onTouchStart:dt&&Rt?this.removeStartHandler:void 0,onTouchMove:dt&&Rt?this.removeMoveHandler:void 0},Je),bn))}}],[{key:"getDerivedStateFromProps",value:function(fe,xe){var Qe=xe.prevProps,ot=xe._self,Je={prevProps:fe};if(Qe!==void 0){var Te=fe.placement,et=fe.level;Te!==Qe.placement&&(ot.contentDom=null),et!==Qe.level&&ot.getLevelDom(fe)}return Je}}]),Ee}(t.Component);Y.defaultProps={switchScrollingEffect:function(){}};var $=Y;function ue(de){var Ce=ne();return function(){var le=Object(g.a)(de),fe;if(Ce){var xe=Object(g.a)(this).constructor;fe=Reflect.construct(le,arguments,xe)}else fe=le.apply(this,arguments);return Object(p.a)(this,fe)}}function ne(){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(de){return!1}}var ge=function(de){Object(h.a)(Ee,de);var Ce=ue(Ee);function Ee(le){var fe;Object(l.a)(this,Ee),fe=Ce.call(this,le),fe.onHandleClick=function(Qe){var ot=fe.props,Je=ot.onHandleClick,Te=ot.open;if(Je&&Je(Qe),typeof Te=="undefined"){var et=fe.state.open;fe.setState({open:!et})}},fe.onClose=function(Qe){var ot=fe.props,Je=ot.onClose,Te=ot.open;Je&&Je(Qe),typeof Te=="undefined"&&fe.setState({open:!1})};var xe=typeof le.open!="undefined"?le.open:!!le.defaultOpen;return fe.state={open:xe},"onMaskClick"in le&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),fe}return Object(u.a)(Ee,[{key:"render",value:function(){var fe=this,xe=this.props,Qe=xe.defaultOpen,ot=xe.getContainer,Je=xe.wrapperClassName,Te=xe.forceRender,et=xe.handler,ze=Object(a.a)(xe,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),nt=this.state.open;if(!ot)return t.createElement("div",{className:Je,ref:function(Tt){fe.dom=Tt}},t.createElement($,Object.assign({},ze,{open:nt,handler:et,getContainer:function(){return fe.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ot=!!et||Te;return t.createElement(v.a,{visible:nt,forceRender:Ot,getContainer:ot,wrapperClassName:Je},function(Ct){var Tt=Ct.visible,Dt=Ct.afterClose,Be=Object(a.a)(Ct,["visible","afterClose"]);return t.createElement($,Object.assign({},ze,Be,{open:Tt!==void 0?Tt:nt,afterVisibleChange:Dt!==void 0?Dt:ze.afterVisibleChange,handler:et,onClose:fe.onClose,onHandleClick:fe.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(fe,xe){var Qe=xe.prevProps,ot={prevProps:fe};return typeof Qe!="undefined"&&fe.open!==Qe.open&&(ot.open=fe.open),ot}}]),Ee}(t.Component);ge.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 Oe=ge,De=Oe,He=d("V/uB"),pe=d.n(He),Ue=d("BGR+"),oe=d("H84U"),ee=d("CWQg"),Xe=function(de,Ce){var Ee={};for(var le in de)Object.prototype.hasOwnProperty.call(de,le)&&Ce.indexOf(le)<0&&(Ee[le]=de[le]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,le=Object.getOwnPropertySymbols(de);fe<le.length;fe++)Ce.indexOf(le[fe])<0&&Object.prototype.propertyIsEnumerable.call(de,le[fe])&&(Ee[le[fe]]=de[le[fe]]);return Ee},se=t.createContext(null),Q=Object(ee.a)("top","right","bottom","left"),G={distance:180},J=function(de){n()(Ee,de);var Ce=s()(Ee);function Ee(){var le;return m()(this,Ee),le=Ce.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,xe;return typeof fe=="boolean"?xe=fe?G.distance:0:xe=fe.distance,parseFloat(String(xe||0))},le.getPushTransform=function(fe){var xe=le.getPushDistance();if(fe==="left"||fe==="right")return"translateX(".concat(fe==="left"?xe:-xe,"px)");if(fe==="top"||fe==="bottom")return"translateY(".concat(fe==="top"?xe:-xe,"px)")},le.getRcDrawerStyle=function(){var fe=le.props,xe=fe.zIndex,Qe=fe.placement,ot=fe.mask,Je=fe.style,Te=le.state.push,et=ot?{}:le.getOffsetStyle();return A()(A()({zIndex:xe,transform:Te?le.getPushTransform(Qe):void 0},et),Je)},le.renderBody=function(){var fe=le.props,xe=fe.bodyStyle,Qe=fe.drawerStyle,ot=fe.prefixCls,Je=fe.visible;if(le.destroyClose&&!Je)return null;le.destroyClose=!1;var Te={},et=le.getDestroyOnClose();return et&&(Te.opacity=0,Te.transition="opacity .3s"),t.createElement("div",{className:"".concat(ot,"-wrapper-body"),style:A()(A()({},Te),Qe),onTransitionEnd:le.onDestroyTransitionEnd},le.renderHeader(),t.createElement("div",{className:"".concat(ot,"-body"),style:xe},le.props.children),le.renderFooter())},le.renderProvider=function(fe){return le.parentDrawer=fe,t.createElement(oe.a,null,function(xe){var Qe=xe.getPopupContainer,ot=xe.getPrefixCls,Je=le.props,Te=Je.prefixCls,et=Je.placement,ze=Je.className,nt=Je.mask,Ot=Je.direction,Ct=Je.visible,Tt=Xe(Je,["prefixCls","placement","className","mask","direction","visible"]),Dt=ot("select",Te),Be=S()(ze,E()({"no-mask":!nt},"".concat(Dt,"-rtl"),Ot==="rtl")),ie=nt?le.getOffsetStyle():{};return t.createElement(se.Provider,{value:r()(le)},t.createElement(De,A()({handler:!1},Object(Ue.default)(Tt,["zIndex","style","closable","closeIcon","destroyOnClose","drawerStyle","headerStyle","bodyStyle","footerStyle","footer","locale","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton","width","height","dropdownMatchSelectWidth","getTargetContainer"]),{getContainer:Tt.getContainer===void 0&&Qe?function(){return Qe(document.body)}:Tt.getContainer},ie,{prefixCls:Dt,open:Ct,showMask:nt,placement:et,style:le.getRcDrawerStyle(),className:Be}),le.renderBody()))})},le}return c()(Ee,[{key:"componentDidMount",value:function(){var fe=this.props.visible;fe&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(fe){var xe=this.props.visible;fe.visible!==xe&&this.parentDrawer&&(xe?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,xe=fe.placement,Qe=fe.width,ot=fe.height,Je=fe.visible,Te=fe.mask;if(!Je&&!Te)return{};var et={};return xe==="left"||xe==="right"?et.width=Qe:et.height=ot,et}},{key:"renderHeader",value:function(){var fe=this.props,xe=fe.title,Qe=fe.prefixCls,ot=fe.closable,Je=fe.headerStyle;if(!xe&&!ot)return null;var Te=xe?"".concat(Qe,"-header"):"".concat(Qe,"-header-no-title");return t.createElement("div",{className:Te,style:Je},xe&&t.createElement("div",{className:"".concat(Qe,"-title")},xe),ot&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var fe=this.props,xe=fe.footer,Qe=fe.footerStyle,ot=fe.prefixCls;if(!xe)return null;var Je="".concat(ot,"-footer");return t.createElement("div",{className:Je,style:Qe},xe)}},{key:"renderCloseIcon",value:function(){var fe=this.props,xe=fe.closable,Qe=fe.closeIcon,ot=Qe===void 0?t.createElement(pe.a,null):Qe,Je=fe.prefixCls,Te=fe.onClose;return xe&&t.createElement("button",{onClick:Te,"aria-label":"Close",className:"".concat(Je,"-close"),style:{"--scroll-bar":"".concat(Object(b.a)(),"px")}},ot)}},{key:"render",value:function(){return t.createElement(se.Consumer,null,this.renderProvider)}}]),Ee}(t.Component);J.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:G};var ve=B.a=Object(oe.c)({prefixCls:"drawer"})(J)},"/y7N":function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("6GrX"),A=d("7aKB"),w=d("Fofx"),m=d("aX7z"),f=d("+rIm");function c(l){var u=l.get("type"),h=l.getModel(u+"Style"),p;return u==="line"?(p=h.getLineStyle(),p.fill=null):u==="shadow"&&(p=h.getAreaStyle(),p.stroke=null),p}function o(l,u,h,p,g){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")}),x=h.getModel("label"),T=A.normalizeCssArray(x.get("padding")||0),S=x.getFont(),b=C.getBoundingRect(y,S),_=g.position,I=b.width+T[1]+T[3],L=b.height+T[0]+T[2],N=g.align;N==="right"&&(_[0]-=I),N==="center"&&(_[0]-=I/2);var D=g.verticalAlign;D==="bottom"&&(_[1]-=L),D==="middle"&&(_[1]-=L/2),r(_,I,L,p);var R=x.get("backgroundColor");(!R||R==="auto")&&(R=u.get("axisLine.lineStyle.color")),l.label={shape:{x:0,y:0,width:I,height:L,r:x.get("borderRadius")},position:_.slice(),style:{text:y,textFont:S,textFill:x.getTextColor(),textPosition:"inside",textPadding:T,fill:R,stroke:x.get("borderColor")||"transparent",lineWidth:x.get("borderWidth")||0,shadowBlur:x.get("shadowBlur"),shadowColor:x.get("shadowColor"),shadowOffsetX:x.get("shadowOffsetX"),shadowOffsetY:x.get("shadowOffsetY")},z2:10}}function r(l,u,h,p){var g=p.getWidth(),v=p.getHeight();l[0]=Math.min(l[0]+u,g)-u,l[1]=Math.min(l[1]+h,v)-h,l[0]=Math.max(l[0],0),l[1]=Math.max(l[1],0)}function i(l,u,h,p,g){l=u.scale.parse(l);var v=u.scale.getLabel(l,{precision:g.precision}),y=g.formatter;if(y){var x={value:m.getAxisRawValue(u,l),axisDimension:u.dim,axisIndex:u.index,seriesData:[]};O.each(p,function(T){var S=h.getSeriesByIndex(T.seriesIndex),b=T.dataIndexInside,_=S&&S.getDataParams(b);_&&x.seriesData.push(_)}),O.isString(y)?v=y.replace("{value}",v):O.isFunction(y)&&(v=y(x))}return v}function n(l,u,h){var p=w.create();return w.rotate(p,p,h.rotation),w.translate(p,p,h.position),E.applyTransform([l.dataToCoord(u),(h.labelOffset||0)+(h.labelDirection||1)*(h.labelMargin||0)],p)}function e(l,u,h,p,g,v){var y=f.innerTextLayout(h.rotation,0,h.labelDirection);h.labelMargin=g.get("label.margin"),o(u,p,g,v,{position:n(p.axis,l,h),align:y.textAlign,verticalAlign:y.textVerticalAlign})}function s(l,u,h){return h=h||0,{x1:l[h],y1:l[1-h],x2:u[h],y2:u[1-h]}}function t(l,u,h){return h=h||0,{x:l[h],y:l[1-h],width:u[h],height:u[1-h]}}function a(l,u,h,p,g,v){return{cx:l,cy:u,r0:h,r:p,startAngle:g,endAngle:v,clockwise:!0}}B.buildElStyle=c,B.buildLabelElOption=o,B.getValueLabel=i,B.getTransformedPosition=n,B.buildCartesianSingleLabelElOption=e,B.makeLineShape=s,B.makeRectShape=t,B.makeSectorShape=a},"/zsF":function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("bE4E"),A=d.n(C)},"0/Rx":function(H,B){function d(O){return{seriesType:O,reset:function(E,C){var A=C.findComponents({mainType:"legend"});if(!A||!A.length)return;var w=E.getData();w.filterSelf(function(m){for(var f=w.getName(m),c=0;c<A.length;c++)if(!A[c].isSelected(f))return!1;return!0})}}}H.exports=d},"01d+":function(H,B,d){var O=d("bYtY"),E=O.each,C=d("HF/U"),A=C.simpleLayout,w=C.simpleLayoutEdge;function m(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=[];E(i.dimensions,function(h){e=e.concat(n.mapDimension(h,!0))});for(var s=0;s<n.count();s++){for(var t=[],a=!1,l=0;l<e.length;l++){var u=n.get(e[l],s);isNaN(u)||(a=!0),t.push(u)}a?n.setItemLayout(s,i.dataToPoint(t)):n.setItemLayout(s,[NaN,NaN])}w(n.graph)}else(!r||r==="none")&&A(o)})}H.exports=m},"06DH":function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("Kagy"),A=d("IUWy"),w=C.toolbox.magicType,m="__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:E.clone(w.title),option:{},seriesIndex:{}};var c=f.prototype;c.getIcons=function(){var n=this.model,e=n.get("icon"),s={};return E.each(n.get("type"),function(t){e[t]&&(s[t]=e[t])}),s};var o={line:function(n,e,s,t){if(n==="bar")return E.merge({id:e,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},t.get("option.line")||{},!0)},bar:function(n,e,s,t){if(n==="line")return E.merge({id:e,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},t.get("option.bar")||{},!0)},stack:function(n,e,s,t){var a=s.get("stack")===m;if(n==="line"||n==="bar")return t.setIconStatus("stack",a?"normal":"emphasis"),E.merge({id:e,stack:a?"":m},t.get("option.stack")||{},!0)}},r=[["line","bar"],["stack"]];c.onclick=function(n,e,s){var t=this.model,a=t.get("seriesIndex."+s);if(!o[s])return;var l={series:[]},u=function(g){var v=g.subType,y=g.id,x=o[s](v,y,g,t);x&&(E.defaults(x,g.option),l.series.push(x));var T=g.coordinateSystem;if(T&&T.type==="cartesian2d"&&(s==="line"||s==="bar")){var S=T.getAxesByScale("ordinal")[0];if(S){var b=S.dim,_=b+"Axis",I=n.queryComponents({mainType:_,index:g.get(name+"Index"),id:g.get(name+"Id")})[0],L=I.componentIndex;l[_]=l[_]||[];for(var N=0;N<=L;N++)l[_][L]=l[_][L]||{};l[_][L].boundaryGap=s==="bar"}}};E.each(r,function(g){E.indexOf(g,s)>=0&&E.each(g,function(v){t.setIconStatus(v,"normal")})}),t.setIconStatus(s,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},u);var h;if(s==="stack"){var p=l.series&&l.series[0]&&l.series[0].stack===m;h=p?E.merge({stack:w.title.tiled},w.title):E.clone(w.title)}e.dispatchAction({type:"changeMagicType",currentType:s,newOption:l,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,B,d){var O=d("ItGF"),E="urn:schemas-microsoft-com:vml",C=typeof window=="undefined"?null:window,A=!1,w=C&&C.document;function m(o){return f(o)}var f;if(w&&!O.canvasSupported)try{!w.namespaces.zrvml&&w.namespaces.add("zrvml",E),f=function(r){return w.createElement("<zrvml:"+r+' class="zrvml">')}}catch(o){f=function(i){return w.createElement("<"+i+' xmlns="'+E+'" class="zrvml">')}}function c(){if(A||!w)return;A=!0;var o=w.styleSheets;o.length<31?w.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):o[0].addRule(".zrvml","behavior:url(#default#VML)")}B.doc=w,B.createNode=m,B.initVML=c},"09Wf":function(H,B,d){"use strict";d.d(B,"b",function(){return E}),d.d(B,"a",function(){return C});var O=d("CWQg"),E=Object(O.a)("success","processing","error","default","warning"),C=Object(O.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(H,B,d){var O=d("T4UG"),E=d("I3/A"),C=d("7aKB"),A=C.encodeHTML,w=d("Qxkt"),m=d("Tghj"),f=m.__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,s=r.levels,t=this.levelModels={},a=0;a<s.length;a++)s[a].depth!=null&&s[a].depth>=0&&(t[s[a].depth]=new w(s[a],this,i));if(e&&n){var l=E(e,n,this,!0,u);return l.data}function u(h,p){h.wrapMethod("getItemModel",function(g,v){return g.customizeGetParent(function(y){var x=this.parentModel,T=x.getData().getItemLayout(v).depth,S=x.levelModels[T];return S||this.parentModel}),g}),p.wrapMethod("getItemModel",function(g,v){return g.customizeGetParent(function(y){var x=this.parentModel,T=x.getGraph().getEdgeByIndex(v),S=T.node1.getLayout().depth,b=x.levelModels[S];return b||this.parentModel}),g})}},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),s=e.data,t=s.source+" -- "+s.target;return e.value&&(t+=" : "+e.value),A(t)}else if(n==="node"){var a=this.getGraph().getNodeByIndex(r),l=a.getLayout().value,u=this.getDataParams(r,n).data.name;if(l)var t=u+" : "+l;return 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),s=e.getLayout().value;n.value=s}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),o=c;H.exports=o},"0HBW":function(H,B,d){var O=d("ProS"),E=d("bYtY");d("Hxpc"),d("7uqq"),d("dmGj"),d("SehX");function C(A,w){w.update="updateView",O.registerAction(w,function(m,f){var c={};return f.eachComponent({mainType:"geo",query:m},function(o){o[A](m.name);var r=o.coordinateSystem;E.each(r.regions,function(i){c[i.name]=o.isSelected(i.name)||!1})}),{selected:c,name:m.name}})}C("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),C("select",{type:"geoSelect",event:"geoselected"}),C("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(H,B,d){var O=d("bYtY"),E=d("+TT/"),C=d("OELB"),A=d("IDmD"),w=864e5;function m(o,r,i){this._model=o}m.prototype={constructor:m,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(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(),s=this._model.getBoxLayoutParams(),t=this._orient==="horizontal"?[i,7]:[7,i];O.each([0,1],function(h){u(e,h)&&(s[n[h]]=e[h]*t[h])});var a={width:r.getWidth(),height:r.getHeight()},l=this._rect=E.getLayoutRect(s,a);O.each([0,1],function(h){u(e,h)||(e[h]=l[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+w))return[NaN,NaN];var s=i.day,t=this._getRangeInfo([n.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+s*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]},pointToData:function(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 s=this._getRangeInfo(o);return s.start.time>s.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/w)-Math.floor(o[0].time/w)+1,n=new Date(o[0].time),e=n.getDate(),s=o[1].date.getDate();n.setDate(e+i-1);var t=n.getDate();if(t!==s)for(var a=n.getTime()-o[1].time>0?1:-1;(t=n.getDate())!==s&&(n.getTime()-o[1].time)*a>0;)i-=a,n.setDate(t-a);var l=Math.floor((i+o[0].day+6)/7),u=r?-l+1:l-1;return r&&o.reverse(),{range:[o[0].formatedDate,o[1].formatedDate],start:o[0],end:o[1],allDay:i,weeks:l,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,s=new Date(n.start.time);return s.setDate(n.start.d+e),this.getDateInfo(s)}},m.dimensions=m.prototype.dimensions,m.getDimensionsInfo=m.prototype.getDimensionsInfo,m.create=function(o,r){var i=[];return o.eachComponent("calendar",function(n){var e=new m(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,s=i.seriesModel,t=e?e.coordinateSystem:s?s.coordinateSystem:null;return t===this?t[o](n):null}A.register("calendar",m);var c=m;H.exports=c},"0JQy":function(H,B){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+E+C,w="\\ufe0e\\ufe0f",m="["+d+"]",f="["+A+"]",c="\\ud83c[\\udffb-\\udfff]",o="(?:"+f+"|"+c+")",r="[^"+d+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",s=o+"?",t="["+w+"]?",a="(?:"+e+"(?:"+[r,i,n].join("|")+")"+t+s+")*",l=t+s+a,u="(?:"+[r+f+"?",f,i,n,m].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+l,"g");function p(g){return g.match(h)||[]}H.exports=p},"0NbB":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="CaretDownOutlined";var f=B.a=E.forwardRef(m)},"0V0F":function(H,B,d){var O=d("bYtY"),E=O.createHashMap,C=O.each;function A(m){var f=E();m.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(w)}function w(m){C(m,function(f,c){var o=[],r=[NaN,NaN],i=[f.stackResultDimension,f.stackedOverDimension],n=f.data,e=f.isStackedByIndex,s=n.map(i,function(t,a,l){var u=n.get(f.stackedDimension,l);if(isNaN(u))return r;var h,p;e?p=n.getRawIndex(l):h=n.get(f.stackedByDimension,l);for(var g=NaN,v=c-1;v>=0;v--){var y=m[v];if(e||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var x=y.data.getByRawIndex(y.stackResultDimension,p);if(u>=0&&x>0||u<=0&&x<0){u+=x,g=x;break}}}return o[0]=u,o[1]=g,o});n.hostModel.setData(s),f.data=s})}H.exports=A},"0XgM":function(H,B,d){},"0fbx":function(H,B,d){},"0o9m":function(H,B,d){var O=d("ProS");d("hNWo"),d("RlCK"),d("XpcN");var E=d("kDyi"),C=d("bLfw");O.registerProcessor(O.PRIORITY.PROCESSOR.SERIES_FILTER,E),C.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(H,B,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,B){var d=arguments[3],O=arguments[4],E=arguments[5],C=JSON.stringify;H.exports=function(A,w){for(var m,f=Object.keys(E),c=0,o=f.length;c<o;c++){var r=f[c],i=E[r].exports;if(i===A||i&&i.default===A){m=r;break}}if(!m){m=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[m]=["function(require,module,exports){"+A+"(self); }",n]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),s={};s[m]=m,O[e]=["function(require,module,exports){var f = require("+C(m)+");(f.default ? f.default : f)(self);}",s];var t={};a(e);function a(v){t[v]=!0;for(var y in O[v][1]){var x=O[v][1][y];t[x]||a(x)}}var l="("+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([l],{type:"text/javascript"});if(w&&w.bare)return h;var p=u.createObjectURL(h),g=new Worker(p);return g.objectURL=p,g}},"0s+r":function(H,B,d){var O=d("bYtY"),E=d("QBsz"),C=d("y23F"),A=d("H6uX"),w=d("YH21"),m=d("C0SR"),f="silent";function c(a,l,u){return{type:a,event:u,target:l.target,topTarget:l.topTarget,cancelBubble:!1,offsetX:u.zrX,offsetY:u.zrY,gestureEvent:u.gestureEvent,pinchX:u.pinchX,pinchY:u.pinchY,pinchScale:u.pinchScale,wheelDelta:u.zrDelta,zrByTouch:u.zrByTouch,which:u.which,stop:o}}function o(){w.stop(this.event)}function r(){}r.prototype.dispose=function(){};var i=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n=function(l,u,h,p){A.call(this),this.storage=l,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(l){this.proxy&&this.proxy.dispose(),l&&(O.each(i,function(u){l.on&&l.on(u,this[u],this)},this),l.handler=this),this.proxy=l},mousemove:function(l){var u=l.zrX,h=l.zrY,p=s(this,u,h),g=this._hovered,v=g.target;v&&!v.__zr&&(g=this.findHover(g.x,g.y),v=g.target);var y=this._hovered=p?{x:u,y:h}:this.findHover(u,h),x=y.target,T=this.proxy;T.setCursor&&T.setCursor(x?x.cursor:"default"),v&&x!==v&&this.dispatchToElement(g,"mouseout",l),this.dispatchToElement(y,"mousemove",l),x&&x!==v&&this.dispatchToElement(y,"mouseover",l)},mouseout:function(l){var u=l.zrEventControl,h=l.zrIsToLocalDOM;u!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",l),u!=="no_globalout"&&(!h&&this.trigger("globalout",{type:"globalout",event:l}))},resize:function(l){this._hovered={}},dispatch:function(l,u){var h=this[l];h&&h.call(this,u)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(l){var u=this.proxy;u.setCursor&&u.setCursor(l)},dispatchToElement:function(l,u,h){l=l||{};var p=l.target;if(p&&p.silent)return;for(var g="on"+u,v=c(u,l,h);p&&!(p[g]&&(v.cancelBubble=p[g].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[g]=="function"&&y[g].call(y,v),y.trigger&&y.trigger(u,v)}))},findHover:function(l,u,h){for(var p=this.storage.getDisplayList(),g={x:l,y:u},v=p.length-1;v>=0;v--){var y;if(p[v]!==h&&!p[v].ignore&&(y=e(p[v],l,u))&&(!g.topTarget&&(g.topTarget=p[v]),y!==f)){g.target=p[v];break}}return g},processGesture:function(l,u){this._gestureMgr||(this._gestureMgr=new m);var h=this._gestureMgr;u==="start"&&h.clear();var p=h.recognize(l,this.findHover(l.zrX,l.zrY,null).target,this.proxy.dom);if(u==="end"&&h.clear(),p){var g=p.type;l.gestureEvent=g,this.dispatchToElement({target:p.target},g,p.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){n.prototype[a]=function(l){var u=l.zrX,h=l.zrY,p=s(this,u,h),g,v;if((a!=="mouseup"||!p)&&(g=this.findHover(u,h),v=g.target),a==="mousedown")this._downEl=v,this._downPoint=[l.zrX,l.zrY],this._upEl=v;else if(a==="mouseup")this._upEl=v;else if(a==="click"){if(this._downEl!==this._upEl||!this._downPoint||E.dist(this._downPoint,[l.zrX,l.zrY])>4)return;this._downPoint=null}this.dispatchToElement(g,a,l)}});function e(a,l,u){if(a[a.rectHover?"rectContain":"contain"](l,u)){for(var h=a,p;h;){if(h.clipPath&&!h.clipPath.contain(l,u))return!1;h.silent&&(p=!0),h=h.parent}return p?f:!0}return!1}function s(a,l,u){var h=a.painter;return l<0||l>h.getWidth()||u<0||u>h.getHeight()}O.mixin(n,A),O.mixin(n,C);var t=n;H.exports=t},"10cm":function(H,B,d){var O=d("ProS"),E=d("2B6p"),C=E.updateCenterAndZoom;d("0qV/");var A={type:"graphRoam",event:"graphRoam",update:"none"};O.registerAction(A,function(w,m){m.eachComponent({mainType:"series",query:w},function(f){var c=f.coordinateSystem,o=C(c,w);f.setCenter&&f.setCenter(o.center),f.setZoom&&f.setZoom(o.zoom)})})},"15/o":function(H,B,d){},"19Vz":function(H,B,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",w),c.on("change",m),c.on("swapDoc",m),O.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){A(c)}),m(c);else if(!o&&i){c.off("blur",w),c.off("change",m),c.off("swapDoc",m),O.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),E(c);var n=c.getWrapperElement();n.className=n.className.replace(" CodeMirror-empty","")}o&&!c.hasFocus()&&w(c)});function E(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function C(c){E(c);var 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):E(c)},20)}function w(c){f(c)&&C(c)}function m(c){var o=c.getWrapperElement(),r=f(c);o.className=o.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?C(c):E(c)}function f(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1Jh7":function(H,B,d){var O=d("y+Vt"),E=d("T6xi"),C=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(w,m){E.buildPath(w,m,!1)}});H.exports=C},"1LEl":function(H,B,d){var O=d("ProS"),E=d("F9bG"),C=O.extendComponentView({type:"axisPointer",render:function(w,m,f){var c=m.getComponent("tooltip"),o=w.get("triggerOn")||c&&c.get("triggerOn")||"mousemove|click";E.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(w,m){E.unregister(m.getZr(),"axisPointer"),C.superApply(this._model,"remove",arguments)},dispose:function(w,m){E.unregister("axisPointer",m),C.superApply(this._model,"dispose",arguments)}}),A=C;H.exports=A},"1MYJ":function(H,B,d){var O=d("y+Vt"),E=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var A=this.__dirtyPath,w=this.shape.paths,m=0;m<w.length;m++)A=A||w[m].__dirtyPath;this.__dirtyPath=A,this.__dirty=this.__dirty||A},beforeBrush:function(){this._updatePathDirty();for(var A=this.shape.paths||[],w=this.getGlobalScale(),m=0;m<A.length;m++)A[m].path||A[m].createPathProxy(),A[m].path.setScale(w[0],w[1],A[m].segmentIgnoreThreshold)},buildPath:function(A,w){for(var m=w.paths||[],f=0;f<m.length;f++)m[f].buildPath(A,m[f].shape,!0)},afterBrush:function(){for(var A=this.shape.paths||[],w=0;w<A.length;w++)A[w].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),O.prototype.getBoundingRect.call(this)}});H.exports=E},"1NG9":function(H,B,d){var O=d("y+Vt"),E=d("QBsz"),C=d("iXp4"),A=E.min,w=E.max,m=E.scaleAndAdd,f=E.copy,c=[],o=[],r=[];function i(u){return isNaN(u[0])||isNaN(u[1])}function n(u,h,p,g,v,y,x,T,S,b,_){return b==="none"||!b?s.apply(this,arguments):e.apply(this,arguments)}function e(u,h,p,g,v,y,x,T,S,b,_){for(var I=0,L=p,N=0;N<g;N++){var D=h[L];if(L>=v||L<0)break;if(i(D)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](D[0],D[1]);else if(S>0){var R=h[I],P=b==="y"?1:0,M=(D[P]-R[P])*S;f(o,R),o[P]=R[P]+M,f(r,D),r[P]=D[P]-M,u.bezierCurveTo(o[0],o[1],r[0],r[1],D[0],D[1])}else u.lineTo(D[0],D[1]);I=L,L+=y}return N}function s(u,h,p,g,v,y,x,T,S,b,_){for(var I=0,L=p,N=0;N<g;N++){var D=h[L];if(L>=v||L<0)break;if(i(D)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](D[0],D[1]),f(o,D);else if(S>0){var R=L+y,P=h[R];if(_)for(;P&&i(h[R]);)R+=y,P=h[R];var M=.5,U=h[I],P=h[R];if(!P||i(P))f(r,D);else{i(P)&&!_&&(P=D),E.sub(c,P,U);var F,j;if(b==="x"||b==="y"){var W=b==="x"?0:1;F=Math.abs(D[W]-U[W]),j=Math.abs(D[W]-P[W])}else F=E.dist(D,U),j=E.dist(D,P);M=j/(j+F),m(r,D,c,-S*(1-M))}A(o,o,T),w(o,o,x),A(r,r,T),w(r,r,x),u.bezierCurveTo(o[0],o[1],r[0],r[1],D[0],D[1]),m(o,D,c,S*M)}else u.lineTo(D[0],D[1]);I=L,L+=y}return N}function t(u,h){var p=[Infinity,Infinity],g=[-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]>g[0]&&(g[0]=y[0]),y[1]>g[1]&&(g[1]=y[1])}return{min:h?p:g,max:h?g:p}}var a=O.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:C(O.prototype.brush),buildPath:function(u,h){var p=h.points,g=0,v=p.length,y=t(p,h.smoothConstraint);if(h.connectNulls){for(;v>0&&i(p[v-1]);v--);for(;g<v&&i(p[g]);g++);}for(;g<v;)g+=n(u,p,g,v,v,1,y.min,y.max,h.smooth,h.smoothMonotone,h.connectNulls)+1}}),l=O.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:C(O.prototype.brush),buildPath:function(u,h){var p=h.points,g=h.stackedOnPoints,v=0,y=p.length,x=h.smoothMonotone,T=t(p,h.smoothConstraint),S=t(g,h.smoothConstraint);if(h.connectNulls){for(;y>0&&i(p[y-1]);y--);for(;v<y&&i(p[v]);v++);}for(;v<y;){var b=n(u,p,v,y,y,1,T.min,T.max,h.smooth,x,h.connectNulls);n(u,g,v+b-1,b,y,-1,S.min,S.max,h.stackedOnSmooth,x,h.connectNulls),v+=b+1,u.closePath()}}});B.Polyline=a,B.Polygon=l},"1RvN":function(H,B){var d=function(){this.head=null,this.tail=null,this._len=0},O=d.prototype;O.insert=function(m){var f=new E(m);return this.insertEntry(f),f},O.insertEntry=function(m){this.head?(this.tail.next=m,m.prev=this.tail,m.next=null,this.tail=m):this.head=this.tail=m,this._len++},O.remove=function(m){var f=m.prev,c=m.next;f?f.next=c:this.head=c,c?c.prev=f:this.tail=f,m.next=m.prev=null,this._len--},O.len=function(){return this._len},O.clear=function(){this.head=this.tail=null,this._len=0};var E=function(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(m,f){var c=this._list,o=this._map,r=null;if(o[m]==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 E(f),n.key=m,c.insertEntry(n),o[m]=n}return r},A.get=function(m){var f=this._map[m],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 w=C;H.exports=w},"1bdT":function(H,B,d){var O=d("3gBT"),E=d("H6uX"),C=d("DN4a"),A=d("vWvF"),w=d("bYtY"),m=function(o){C.call(this,o),E.call(this,o),A.call(this,o),this.id=o.id||O()};m.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(w.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)}},w.mixin(m,A),w.mixin(m,C),w.mixin(m,E);var f=m;H.exports=f},"1dTM":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=d("GQ8N"),E=b(d("Lo0S")),C=d("VSMT"),A=d("GdRQ"),w=d("SZEN"),m=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")),s=T(d("Mmt2")),t=T(d("iUHT")),a=T(d("mHUz")),l=T(d("P2ho")),u=d("NBmB");d("mdZa");var h=T(d("34/K")),p=T(d("hXwI")),g=T(d("SgaC")),v=T(d("3690")),y=T(d("8K/p")),x=T(d("xO64"));function T(ve){return ve&&ve.__esModule?ve:{default:ve}}function S(){if(typeof WeakMap!="function")return null;var ve=new WeakMap;return S=function(){return ve},ve}function b(ve){if(ve&&ve.__esModule)return ve;if(ve===null||_(ve)!=="object"&&typeof ve!="function")return{default:ve};var de=S();if(de&&de.has(ve))return de.get(ve);var Ce={},Ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var le in ve)if(Object.prototype.hasOwnProperty.call(ve,le)){var fe=Ee?Object.getOwnPropertyDescriptor(ve,le):null;fe&&(fe.get||fe.set)?Object.defineProperty(Ce,le,fe):Ce[le]=ve[le]}return Ce.default=ve,de&&de.set(ve,Ce),Ce}function _(ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(Ce){return typeof Ce}:_=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},_(ve)}function I(ve,de){if(!(ve instanceof de))throw new TypeError("Cannot call a class as a function")}function L(ve,de){for(var Ce=0;Ce<de.length;Ce++){var Ee=de[Ce];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(ve,Ee.key,Ee)}}function N(ve,de,Ce){return de&&L(ve.prototype,de),Ce&&L(ve,Ce),ve}function D(ve,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(de&&de.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),de&&R(ve,de)}function R(ve,de){return R=Object.setPrototypeOf||function(Ee,le){return Ee.__proto__=le,Ee},R(ve,de)}function P(ve){var de=F();return function(){var Ee=j(ve),le;if(de){var fe=j(this).constructor;le=Reflect.construct(Ee,arguments,fe)}else le=Ee.apply(this,arguments);return M(this,le)}}function M(ve,de){return de&&(_(de)==="object"||typeof de=="function")?de:U(ve)}function U(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}function F(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ve){return!1}}function j(ve){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},j(ve)}var W=3,V="rgb(40, 40, 40)",z=17,Y=50,$=19,ue=75,ne=50,ge=1e3,Oe=50,De=1,He=1<<1,pe=1<<2,Ue=1<<3,oe=1<<4,ee=1<<24,Xe=1<<25,se=1<<26,Q=1<<27,G=1<<28,J=function(ve){D(Ce,ve);var de=P(Ce);function Ce(Ee,le,fe){var xe;if(I(this,Ce),!Ee)throw new Error("Must specify target");if(!le)throw new Error("Must specify URL");xe=de.call(this),xe._target=Ee,xe._url=le,fe=fe||{},xe._rfbCredentials=fe.credentials||{},xe._shared="shared"in fe?!!fe.shared:!0,xe._repeaterID=fe.repeaterID||"",xe._wsProtocols=fe.wsProtocols||[],xe._rfbConnectionState="",xe._rfbInitState="",xe._rfbAuthScheme=-1,xe._rfbCleanDisconnect=!0,xe._rfbVersion=0,xe._rfbMaxVersion=3.8,xe._rfbTightVNC=!1,xe._rfbVeNCryptState=0,xe._rfbXvpVer=0,xe._fbWidth=0,xe._fbHeight=0,xe._fbName="",xe._capabilities={power:!1},xe._supportsFence=!1,xe._supportsContinuousUpdates=!1,xe._enabledContinuousUpdates=!1,xe._supportsSetDesktopSize=!1,xe._screenID=0,xe._screenFlags=0,xe._qemuExtKeyEventSupported=!1,xe._clipboardText=null,xe._clipboardServerCapabilitiesActions={},xe._clipboardServerCapabilitiesFormats={},xe._sock=null,xe._display=null,xe._flushing=!1,xe._keyboard=null,xe._gestures=null,xe._disconnTimer=null,xe._resizeTimeout=null,xe._mouseMoveTimer=null,xe._decoders={},xe._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},xe._mousePos={},xe._mouseButtonMask=0,xe._mouseLastMoveTime=0,xe._viewportDragging=!1,xe._viewportDragPos={},xe._viewportHasMoved=!1,xe._accumulatedWheelDeltaX=0,xe._accumulatedWheelDeltaY=0,xe._gestureLastTapTime=null,xe._gestureFirstDoubleTapEv=null,xe._gestureLastMagnitudeX=0,xe._gestureLastMagnitudeY=0,xe._eventHandlers={focusCanvas:xe._focusCanvas.bind(U(xe)),windowResize:xe._windowResize.bind(U(xe)),handleMouse:xe._handleMouse.bind(U(xe)),handleWheel:xe._handleWheel.bind(U(xe)),handleGesture:xe._handleGesture.bind(U(xe))},E.Debug(">> RFB.constructor"),xe._screen=document.createElement("div"),xe._screen.style.display="flex",xe._screen.style.width="100%",xe._screen.style.height="100%",xe._screen.style.overflow="auto",xe._screen.style.background=V,xe._canvas=document.createElement("canvas"),xe._canvas.style.margin="auto",xe._canvas.style.outline="none",xe._canvas.style.flexShrink="0",xe._canvas.width=0,xe._canvas.height=0,xe._canvas.tabIndex=-1,xe._screen.appendChild(xe._canvas),xe._cursor=new e.default,xe._cursorImage=Ce.cursors.none,xe._decoders[u.encodings.encodingRaw]=new h.default,xe._decoders[u.encodings.encodingCopyRect]=new p.default,xe._decoders[u.encodings.encodingRRE]=new g.default,xe._decoders[u.encodings.encodingHextile]=new v.default,xe._decoders[u.encodings.encodingTight]=new y.default,xe._decoders[u.encodings.encodingTightPNG]=new x.default;try{xe._display=new c.default(xe._canvas)}catch(Qe){throw E.Error("Display exception: "+Qe),Qe}return xe._display.onflush=xe._onFlush.bind(U(xe)),xe._keyboard=new i.default(xe._canvas),xe._keyboard.onkeyevent=xe._handleKeyEvent.bind(U(xe)),xe._gestures=new n.default,xe._sock=new s.default,xe._sock.on("message",function(){xe._handleMessage()}),xe._sock.on("open",function(){xe._rfbConnectionState==="connecting"&&xe._rfbInitState===""?(xe._rfbInitState="ProtocolVersion",E.Debug("Starting VNC handshake")):xe._fail("Unexpected server connection while "+xe._rfbConnectionState)}),xe._sock.on("close",function(Qe){E.Debug("WebSocket on-close event");var ot="";Qe.code&&(ot="(code: "+Qe.code,Qe.reason&&(ot+=", reason: "+Qe.reason),ot+=")");switch(xe._rfbConnectionState){case"connecting":xe._fail("Connection closed "+ot);break;case"connected":xe._updateConnectionState("disconnecting"),xe._updateConnectionState("disconnected");break;case"disconnecting":xe._updateConnectionState("disconnected");break;case"disconnected":xe._fail("Unexpected server disconnect when already disconnected "+ot);break;default:xe._fail("Unexpected server disconnect before connecting "+ot);break}xe._sock.off("close")}),xe._sock.on("error",function(Qe){return E.Warn("WebSocket on-error event")}),setTimeout(xe._updateConnectionState.bind(U(xe),"connecting")),E.Debug("<< RFB.constructor"),xe.dragViewport=!1,xe.focusOnClick=!0,xe._viewOnly=!1,xe._clipViewport=!1,xe._scaleViewport=!1,xe._resizeSession=!1,xe._showDotCursor=!1,fe.showDotCursor!==void 0&&(E.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),xe._showDotCursor=fe.showDotCursor),xe._qualityLevel=6,xe._compressionLevel=2,xe}return N(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(le){this._rfbCredentials=le,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;E.Info("Sending Ctrl-Alt-Del"),this.sendKey(a.default.XK_Control_L,"ControlLeft",!0),this.sendKey(a.default.XK_Alt_L,"AltLeft",!0),this.sendKey(a.default.XK_Delete,"Delete",!0),this.sendKey(a.default.XK_Delete,"Delete",!1),this.sendKey(a.default.XK_Alt_L,"AltLeft",!1),this.sendKey(a.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(le,fe,xe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(xe===void 0){this.sendKey(le,fe,!0),this.sendKey(le,fe,!1);return}var Qe=l.default[fe];if(this._qemuExtKeyEventSupported&&Qe)le=le||0,E.Info("Sending key ("+(xe?"down":"up")+"): keysym "+le+", scancode "+Qe),Ce.messages.QEMUExtendedKeyEvent(this._sock,le,xe,Qe);else{if(!le)return;E.Info("Sending keysym ("+(xe?"down":"up")+"): "+le),Ce.messages.keyEvent(this._sock,le,xe?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[De]&&this._clipboardServerCapabilitiesActions[Q])this._clipboardText=le,Ce.messages.extendedClipboardNotify(this._sock,[De]);else{for(var fe=new Uint8Array(le.length),xe=0;xe<le.length;xe++)fe[xe]=le.charCodeAt(xe);Ce.messages.clientCutText(this._sock,fe)}}},{key:"_connect",value:function(){E.Debug(">> RFB.connect"),E.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(le){le.name==="SyntaxError"?this._fail("Invalid host or port ("+le+")"):this._fail("Error when opening socket ("+le+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),E.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){E.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(le){if(!(le.name==="NotFoundError"))throw le}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),E.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(le){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(le){this._fbName=le,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(le){var 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 xe=this._screenSize();this._display.viewportChangeSize(xe.w,xe.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();Ce.messages.setDesktopSize(this._sock,Math.floor(le.w),Math.floor(le.h),this._screenID,this._screenFlags),E.Debug("Requested new desktop size: "+le.w+"x"+le.h)}},{key:"_screenSize",value:function(){var le=this._screen.getBoundingClientRect();return{w:le.width,h:le.height}}},{key:"_fixScrollbars",value:function(){var le=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=le}},{key:"_updateConnectionState",value:function(le){var fe=this,xe=this._rfbConnectionState;if(le===xe){E.Debug("Already in state '"+le+"', ignoring");return}if(xe==="disconnected"){E.Error("Tried changing state of a disconnected RFB object");return}switch(le){case"connected":if(xe!=="connecting"){E.Error("Bad transition to connected state, previous connection state: "+xe);return}break;case"disconnected":if(xe!=="disconnecting"){E.Error("Bad transition to disconnected state, previous connection state: "+xe);return}break;case"connecting":if(xe!==""){E.Error("Bad transition to connecting state, previous connection state: "+xe);return}break;case"disconnecting":if(xe!=="connected"&&xe!=="connecting"){E.Error("Bad transition to disconnecting state, previous connection state: "+xe);return}break;default:E.Error("Unknown connection state: "+le);return}this._rfbConnectionState=le,E.Debug("New state '"+le+"', was '"+xe+"'."),this._disconnTimer&&le!=="disconnecting"&&(E.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(le){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){E.Error("Disconnection timed out."),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":E.Error("Failed when disconnecting: "+le);break;case"connected":E.Error("Failed while connected: "+le);break;case"connecting":E.Error("Failed when connecting: "+le);break;default:E.Error("RFB failure: "+le);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(le,fe){this._capabilities[le]=fe,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){E.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":E.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(le,fe,xe){this.sendKey(le,fe,xe)}},{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,w.clientToElement)(le.clientX,le.clientY,this._canvas);switch(le.type){case"mousedown":(0,m.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,xe,Qe){if(this.dragViewport)if(xe&&!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,Qe)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(le,fe,this._mouseButtonMask)),xe?this._mouseButtonMask|=Qe:this._mouseButtonMask&=~Qe,this._sendMouse(le,fe,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(le,fe){var xe=this;if(this._viewportDragging){var Qe=this._viewportDragPos.x-le,ot=this._viewportDragPos.y-fe;(this._viewportHasMoved||Math.abs(Qe)>A.dragThreshold||Math.abs(ot)>A.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:le,y:fe},this._display.viewportChangePos(Qe,ot));return}if(this._mousePos={x:le,y:fe},this._mouseMoveTimer==null){var Je=Date.now()-this._mouseLastMoveTime;Je>z?(this._sendMouse(le,fe,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){xe._handleDelayedMouseMove()},z-Je)}}},{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,xe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(le),this._display.absY(fe),xe)}},{key:"_handleWheel",value:function(le){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;le.stopPropagation(),le.preventDefault();var fe=(0,w.clientToElement)(le.clientX,le.clientY,this._canvas),xe=le.deltaX,Qe=le.deltaY;le.deltaMode!==0&&(xe*=$,Qe*=$),this._accumulatedWheelDeltaX+=xe,this._accumulatedWheelDeltaY+=Qe,Math.abs(this._accumulatedWheelDeltaX)>=Y&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(fe.x,fe.y,!0,1<<5),this._handleMouseButton(fe.x,fe.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(fe.x,fe.y,!0,1<<6),this._handleMouseButton(fe.x,fe.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=Y&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(fe.x,fe.y,!0,1<<3),this._handleMouseButton(fe.x,fe.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(fe.x,fe.y,!0,1<<4),this._handleMouseButton(fe.x,fe.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(le,fe,xe){this._handleMouseMove(fe,xe),this._cursor.move(le.detail.clientX,le.detail.clientY)}},{key:"_handleTapEvent",value:function(le,fe){var xe=(0,w.clientToElement)(le.detail.clientX,le.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<ge&&this._gestureFirstDoubleTapEv.detail.type===le.detail.type){var Qe=this._gestureFirstDoubleTapEv.detail.clientX-le.detail.clientX,ot=this._gestureFirstDoubleTapEv.detail.clientY-le.detail.clientY,Je=Math.hypot(Qe,ot);Je<Oe?xe=(0,w.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=le}else this._gestureFirstDoubleTapEv=le;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,xe.x,xe.y),this._handleMouseButton(xe.x,xe.y,!0,fe),this._handleMouseButton(xe.x,xe.y,!1,fe)}},{key:"_handleGesture",value:function(le){var fe,xe=(0,w.clientToElement)(le.detail.clientX,le.detail.clientY,this._canvas);switch(le.type){case"gesturestart":switch(le.detail.type){case"onetap":this._handleTapEvent(le,1);break;case"twotap":this._handleTapEvent(le,4);break;case"threetap":this._handleTapEvent(le,2);break;case"drag":this._fakeMouseMove(le,xe.x,xe.y),this._handleMouseButton(xe.x,xe.y,!0,1);break;case"longpress":this._fakeMouseMove(le,xe.x,xe.y),this._handleMouseButton(xe.x,xe.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=le.detail.magnitudeX,this._gestureLastMagnitudeY=le.detail.magnitudeY,this._fakeMouseMove(le,xe.x,xe.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(le.detail.magnitudeX,le.detail.magnitudeY),this._fakeMouseMove(le,xe.x,xe.y);break}break;case"gesturemove":switch(le.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(le,xe.x,xe.y);break;case"twodrag":for(this._fakeMouseMove(le,xe.x,xe.y);le.detail.magnitudeY-this._gestureLastMagnitudeY>ne;)this._handleMouseButton(xe.x,xe.y,!0,8),this._handleMouseButton(xe.x,xe.y,!1,8),this._gestureLastMagnitudeY+=ne;for(;le.detail.magnitudeY-this._gestureLastMagnitudeY<-ne;)this._handleMouseButton(xe.x,xe.y,!0,16),this._handleMouseButton(xe.x,xe.y,!1,16),this._gestureLastMagnitudeY-=ne;for(;le.detail.magnitudeX-this._gestureLastMagnitudeX>ne;)this._handleMouseButton(xe.x,xe.y,!0,32),this._handleMouseButton(xe.x,xe.y,!1,32),this._gestureLastMagnitudeX+=ne;for(;le.detail.magnitudeX-this._gestureLastMagnitudeX<-ne;)this._handleMouseButton(xe.x,xe.y,!0,64),this._handleMouseButton(xe.x,xe.y,!1,64),this._gestureLastMagnitudeX-=ne;break;case"pinch":if(this._fakeMouseMove(le,xe.x,xe.y),fe=Math.hypot(le.detail.magnitudeX,le.detail.magnitudeY),Math.abs(fe-this._gestureLastMagnitudeX)>ue){for(this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!0);fe-this._gestureLastMagnitudeX>ue;)this._handleMouseButton(xe.x,xe.y,!0,8),this._handleMouseButton(xe.x,xe.y,!1,8),this._gestureLastMagnitudeX+=ue;for(;fe-this._gestureLastMagnitudeX<-ue;)this._handleMouseButton(xe.x,xe.y,!0,16),this._handleMouseButton(xe.x,xe.y,!1,16),this._gestureLastMagnitudeX-=ue}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,xe.x,xe.y),this._handleMouseButton(xe.x,xe.y,!1,1);break;case"longpress":this._fakeMouseMove(le,xe.x,xe.y),this._handleMouseButton(xe.x,xe.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var le=this._sock.rQshiftStr(12).substr(4,7);E.Info("Server ProtocolVersion: "+le);var 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 xe="ID:"+this._repeaterID;xe.length<250;)xe+="\0";return this._sock.sendString(xe),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Qe="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Qe+`
|
|
|
`),E.Debug("Sent ProtocolVersion: "+Qe),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function le(Qe,ot){for(var Je=0;Je<ot.length;Je++)if(ot[Je]===Qe)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 xe=this._sock.rQshiftBytes(fe);if(E.Debug("Server security types: "+xe),le(1,xe))this._rfbAuthScheme=1;else if(le(22,xe))this._rfbAuthScheme=22;else if(le(16,xe))this._rfbAuthScheme=16;else if(le(2,xe))this._rfbAuthScheme=2;else if(le(19,xe))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+xe+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",E.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var le=this._sock.rQshift32(),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 xe=this._sock.rQshift8();if(xe!=0)return this._fail("VeNCrypt failure "+xe);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Qe=this._sock.rQshift8();if(Qe<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Qe,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var ot=[],Je=0;Je<this._rfbVeNCryptSubtypesLength;Je++)ot.push(this._sock.rQshift32());if(ot.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 Te=(0,C.encodeUTF8)(this._rfbCredentials.username),et=(0,C.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Te.length]),this._sock.send([0,0,0,et.length]),this._sock.sendString(Te),this._sock.sendString(et),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=Ce.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"}},xe={},Qe=0;Qe<le;Qe++){var ot=this._sock.rQshift32(),Je=this._sock.rQshiftStr(4),Te=this._sock.rQshiftStr(8);xe[ot]={vendor:Je,signature:Te}}return E.Debug("Server Tight tunnel types: "+xe),xe[1]&&xe[1].vendor==="SICR"&&xe[1].signature==="SCHANNEL"&&(E.Debug("Detected Siemens server. Assuming NOTUNNEL support."),xe[0]={vendor:"TGHT",signature:"NOTUNNEL"}),xe[0]?xe[0].vendor!=fe[0].vendor||xe[0].signature!=fe[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(E.Debug("Selected tunnel type: "+fe[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var 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 xe={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Qe=[],ot=0;ot<fe;ot++){this._sock.rQshift32();var Je=this._sock.rQshiftStr(12);Qe.push(Je)}E.Debug("Server Tight authentication types: "+Qe);for(var Te in xe)if(Qe.indexOf(Te)!=-1){this._sock.send([0,0,0,xe[Te]]),E.Debug("Selected authentication type: "+Te);switch(Te){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: "+Te+")")}}return this._fail("No supported sub-auth types!")}},{key:"_negotiateAuthentication",value:function(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var le=this._sock.rQshift32();return le===0?(this._rfbInitState="ClientInitialisation",E.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=le,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:le}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var le=this._sock.rQshift16(),fe=this._sock.rQshift16(),xe=this._sock.rQshift8(),Qe=this._sock.rQshift8(),ot=this._sock.rQshift8(),Je=this._sock.rQshift8(),Te=this._sock.rQshift16(),et=this._sock.rQshift16(),ze=this._sock.rQshift16(),nt=this._sock.rQshift8(),Ot=this._sock.rQshift8(),Ct=this._sock.rQshift8();this._sock.rQskipBytes(3);var Tt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Tt,24))return!1;var Dt=this._sock.rQshiftStr(Tt);if(Dt=(0,C.decodeUTF8)(Dt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Tt))return!1;var Be=this._sock.rQshift16(),ie=this._sock.rQshift16(),X=this._sock.rQshift16();this._sock.rQskipBytes(2);var Fe=(Be+ie+X)*16;if(this._sock.rQwait("TightVNC extended server init header",Fe,32+Tt))return!1;this._sock.rQskipBytes(16*Be),this._sock.rQskipBytes(16*ie),this._sock.rQskipBytes(16*X)}return E.Info("Screen: "+le+"x"+fe+", bpp: "+xe+", depth: "+Qe+", bigEndian: "+ot+", trueColor: "+Je+", redMax: "+Te+", greenMax: "+et+", blueMax: "+ze+", redShift: "+nt+", greenShift: "+Ot+", blueShift: "+Ct),this._setDesktopName(Dt),this._resize(le,fe),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(E.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ce.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ce.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)),Ce.messages.clientEncodings(this._sock,le)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return E.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(E.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var le=this._sock.rQshift32();if(le=(0,O.toSigned32bit)(le),this._sock.rQwait("ServerCutText content",Math.abs(le),8))return!1;if(le>=0){var fe=this._sock.rQshiftStr(le);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:fe}}))}else{le=Math.abs(le);var xe=this._sock.rQshift32(),Qe=xe&65535,ot=xe&4278190080,Je=!!(ot&ee);if(Je){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Te=0;Te<=15;Te++){var et=1<<Te;Qe&et&&(this._clipboardServerCapabilitiesFormats[et]=!0,this._sock.rQshift32())}for(var ze=24;ze<=31;ze++){var nt=1<<ze;this._clipboardServerCapabilitiesActions[nt]=!!(ot&nt)}var Ot=[ee,Xe,se,Q,G];Ce.messages.extendedClipboardCaps(this._sock,Ot,{extendedClipboardFormatText:0})}else if(ot===Xe){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[G]&&(Qe&De&&Ce.messages.extendedClipboardProvide(this._sock,[De],[this._clipboardText]))}else if(ot===se){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Q]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[De]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(ot===Q){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Xe]&&(Qe&De&&Ce.messages.extendedClipboardRequest(this._sock,[De]))}else if(ot===G){if(this._viewOnly)return!0;if(!(Qe&De))return!0;this._clipboardText=null;var Ct=this._sock.rQshiftBytes(le-4),Tt=new o.default,Dt=null;Tt.setInput(Ct);for(var Be=0;Be<=15;Be++){var ie=1<<Be;if(Qe&ie){var X=0,Fe=Tt.inflate(4);X|=Fe[0]<<24,X|=Fe[1]<<16,X|=Fe[2]<<8,X|=Fe[3];var Ne=Tt.inflate(X);ie===De&&(Dt=Ne)}}if(Tt.setInput(null),Dt!==null){for(var q="",ht=0;ht<Dt.length;ht++)q+=String.fromCharCode(Dt[ht]);Dt=q,Dt=(0,C.decodeUTF8)(Dt),Dt.length>0&&Dt.charAt(Dt.length-1)==="\0"&&(Dt=Dt.slice(0,-1)),Dt=Dt.replace(`\r
|
|
|
`,`
|
|
|
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Dt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+ot)}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&&(E.Warn("Bad payload length ("+fe+") in fence response"),fe=64);var xe=this._sock.rQshiftStr(fe);return this._supportsFence=!0,le&1<<31?(le&=1<<0|1<<1,Ce.messages.clientFence(this._sock,le,xe),!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:E.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=le,E.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+fe+")");break}return!0}},{key:"_normalMsg",value:function(){var le;this._FBU.rects>0?le=0:le=this._sock.rQshift8();var fe,xe;switch(le){case 0:return xe=this._framebufferUpdate(),xe&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),xe;case 1:return this._handleSetColourMapMsg();case 2:return E.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return fe=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,fe&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),E.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+le+")"),E.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var le=this._sock.rQshiftBytes(12);this._FBU.x=(le[0]<<8)+le[1],this._FBU.y=(le[2]<<8)+le[3],this._FBU.width=(le[4]<<8)+le[5],this._FBU.height=(le[6]<<8)+le[7],this._FBU.encoding=parseInt((le[8]<<24)+(le[9]<<16)+(le[10]<<8)+le[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case u.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case u.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case u.encodings.pseudoEncodingCursor:return this._handleCursor();case u.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var le=document.createEvent("keyboardEvent");le.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(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,xe=this._FBU.width,Qe=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var ot=this._sock.rQshift8();this._sock.rQshift8();var Je,Te=4;if(ot==0){var et=4294967040|0;if(Je=new Array(xe*Qe*Te),this._sock.rQwait("VMware cursor classic encoding",xe*Qe*Te*2,2))return!1;for(var ze=new Array(xe*Qe),nt=0;nt<xe*Qe;nt++)ze[nt]=this._sock.rQshift32();for(var Ot=new Array(xe*Qe),Ct=0;Ct<xe*Qe;Ct++)Ot[Ct]=this._sock.rQshift32();for(var Tt=0;Tt<xe*Qe;Tt++)if(ze[Tt]==0){var Dt=Ot[Tt],Be=Dt>>8&255,ie=Dt>>16&255,X=Dt>>24&255;Je[Tt*Te]=Be,Je[Tt*Te+1]=ie,Je[Tt*Te+2]=X,Je[Tt*Te+3]=255}else(ze[Tt]&et)==et?Ot[Tt]==0?(Je[Tt*Te]=0,Je[Tt*Te+1]=0,Je[Tt*Te+2]=0,Je[Tt*Te+3]=0):((Ot[Tt]&et)==et,Je[Tt*Te]=0,Je[Tt*Te+1]=0,Je[Tt*Te+2]=0,Je[Tt*Te+3]=255):(Je[Tt*Te]=0,Je[Tt*Te+1]=0,Je[Tt*Te+2]=0,Je[Tt*Te+3]=255)}else if(ot==1){if(this._sock.rQwait("VMware cursor alpha encoding",xe*Qe*4,2))return!1;Je=new Array(xe*Qe*Te);for(var Fe=0;Fe<xe*Qe;Fe++){var Ne=this._sock.rQshift32();Je[Fe*4]=Ne>>24&255,Je[Fe*4+1]=Ne>>16&255,Je[Fe*4+2]=Ne>>8&255,Je[Fe*4+3]=Ne&255}}else return E.Warn("The given cursor type is not supported: "+ot+" given."),!1;return this._updateCursor(Je,le,fe,xe,Qe),!0}},{key:"_handleCursor",value:function(){var le=this._FBU.x,fe=this._FBU.y,xe=this._FBU.width,Qe=this._FBU.height,ot=xe*Qe*4,Je=Math.ceil(xe/8)*Qe,Te=ot+Je;if(this._sock.rQwait("cursor encoding",Te))return!1;for(var et=this._sock.rQshiftBytes(ot),ze=this._sock.rQshiftBytes(Je),nt=new Uint8Array(xe*Qe*4),Ot=0,Ct=0;Ct<Qe;Ct++)for(var Tt=0;Tt<xe;Tt++){var Dt=Ct*Math.ceil(xe/8)+Math.floor(Tt/8),Be=ze[Dt]<<Tt%8&128?255:0;nt[Ot]=et[Ot+2],nt[Ot+1]=et[Ot+1],nt[Ot+2]=et[Ot],nt[Ot+3]=Be,Ot+=4}return this._updateCursor(nt,le,fe,xe,Qe),!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 xe=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,xe&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Qe=0;Qe<le;Qe+=1)Qe===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 ot="";switch(this._FBU.y){case 1:ot="Resize is administratively prohibited";break;case 2:ot="Out of resources";break;case 3:ot="Invalid screen layout";break;default:ot="Unknown reason";break}E.Warn("Server did not accept the resize request: "+ot)}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;Ce.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;E.Info("Sending XVP operation "+fe+" (version "+le+")"),Ce.messages.xvpOp(this._sock,le,fe)}},{key:"_updateCursor",value:function(le,fe,xe,Qe,ot){this._cursorImage={rgbaPixels:le,hotx:fe,hoty:xe,w:Qe,h:ot},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()?Ce.cursors.dot:this._cursorImage;this._cursor.change(le.rgbaPixels,le.hotx,le.hoty,le.w,le.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(le){this._viewOnly=le,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(le?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(le){E.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(le){this._clipViewport=le,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(le){this._scaleViewport=le,le&&this._clipViewport&&this._updateClip(),this._updateScale(),!le&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(le){this._resizeSession=le,le&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(le){this._showDotCursor=le,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(le){this._screen.style.background=le}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(le){if(!Number.isInteger(le)||le<0||le>9){E.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===le)return;this._qualityLevel=le,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(le){if(!Number.isInteger(le)||le<0||le>9){E.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===le)return;this._compressionLevel=le,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(le,fe){var xe=le.split("").map(function(Qe){return Qe.charCodeAt(0)});return new t.default(xe).encrypt(fe)}}]),Ce}(f.default);B.default=J,J.messages={keyEvent:function(de,Ce,Ee){var le=de._sQ,fe=de._sQlen;le[fe]=4,le[fe+1]=Ee,le[fe+2]=0,le[fe+3]=0,le[fe+4]=Ce>>24,le[fe+5]=Ce>>16,le[fe+6]=Ce>>8,le[fe+7]=Ce,de._sQlen+=8,de.flush()},QEMUExtendedKeyEvent:function(de,Ce,Ee,le){function fe(Je){var Te=le>>8,et=le&255;return Te===224&&et<127?et|128:Je}var xe=de._sQ,Qe=de._sQlen;xe[Qe]=255,xe[Qe+1]=0,xe[Qe+2]=Ee>>8,xe[Qe+3]=Ee,xe[Qe+4]=Ce>>24,xe[Qe+5]=Ce>>16,xe[Qe+6]=Ce>>8,xe[Qe+7]=Ce;var ot=fe(le);xe[Qe+8]=ot>>24,xe[Qe+9]=ot>>16,xe[Qe+10]=ot>>8,xe[Qe+11]=ot,de._sQlen+=12,de.flush()},pointerEvent:function(de,Ce,Ee,le){var fe=de._sQ,xe=de._sQlen;fe[xe]=5,fe[xe+1]=le,fe[xe+2]=Ce>>8,fe[xe+3]=Ce,fe[xe+4]=Ee>>8,fe[xe+5]=Ee,de._sQlen+=6,de.flush()},_buildExtendedClipboardFlags:function(de,Ce){for(var Ee=new Uint8Array(4),le=0,fe=0,xe=0;xe<de.length;xe++)fe|=de[xe];for(var Qe=0;Qe<Ce.length;Qe++)le|=Ce[Qe];return Ee[0]=fe>>24,Ee[1]=0,Ee[2]=0,Ee[3]=le,Ee},extendedClipboardProvide:function(de,Ce,Ee){for(var le=new r.default,fe=[],xe=0;xe<Ce.length;xe++){if(Ce[xe]!=De)throw new Error("Unsupported extended clipboard format for Provide message.");Ee[xe]=Ee[xe].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var Qe=(0,C.encodeUTF8)(Ee[xe]+"\0");fe.push(Qe.length>>24&255,Qe.length>>16&255,Qe.length>>8&255,Qe.length&255);for(var ot=0;ot<Qe.length;ot++)fe.push(Qe.charCodeAt(ot))}var Je=le.deflate(new Uint8Array(fe)),Te=new Uint8Array(4+Je.length);Te.set(J.messages._buildExtendedClipboardFlags([G],Ce)),Te.set(Je,4),J.messages.clientCutText(de,Te,!0)},extendedClipboardNotify:function(de,Ce){var Ee=J.messages._buildExtendedClipboardFlags([Q],Ce);J.messages.clientCutText(de,Ee,!0)},extendedClipboardRequest:function(de,Ce){var Ee=J.messages._buildExtendedClipboardFlags([Xe],Ce);J.messages.clientCutText(de,Ee,!0)},extendedClipboardCaps:function(de,Ce,Ee){var le=Object.keys(Ee),fe=new Uint8Array(4+4*le.length);le.map(function(ot){return parseInt(ot)}),le.sort(function(ot,Je){return ot-Je}),fe.set(J.messages._buildExtendedClipboardFlags(Ce,[]));for(var xe=4,Qe=0;Qe<le.length;Qe++)fe[xe]=Ee[le[Qe]]>>24,fe[xe+1]=Ee[le[Qe]]>>16,fe[xe+2]=Ee[le[Qe]]>>8,fe[xe+3]=Ee[le[Qe]]>>0,xe+=4,fe[3]|=1<<le[Qe];J.messages.clientCutText(de,fe,!0)},clientCutText:function(de,Ce){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,le=de._sQ,fe=de._sQlen;le[fe]=6,le[fe+1]=0,le[fe+2]=0,le[fe+3]=0;var xe;Ee?xe=(0,O.toUnsigned32bit)(-Ce.length):xe=Ce.length,le[fe+4]=xe>>24,le[fe+5]=xe>>16,le[fe+6]=xe>>8,le[fe+7]=xe,de._sQlen+=8;for(var Qe=0,ot=Ce.length;ot>0;){for(var Je=Math.min(ot,de._sQbufferSize-de._sQlen),Te=0;Te<Je;Te++)le[de._sQlen+Te]=Ce[Qe+Te];de._sQlen+=Je,de.flush(),ot-=Je,Qe+=Je}},setDesktopSize:function(de,Ce,Ee,le,fe){var xe=de._sQ,Qe=de._sQlen;xe[Qe]=251,xe[Qe+1]=0,xe[Qe+2]=Ce>>8,xe[Qe+3]=Ce,xe[Qe+4]=Ee>>8,xe[Qe+5]=Ee,xe[Qe+6]=1,xe[Qe+7]=0,xe[Qe+8]=le>>24,xe[Qe+9]=le>>16,xe[Qe+10]=le>>8,xe[Qe+11]=le,xe[Qe+12]=0,xe[Qe+13]=0,xe[Qe+14]=0,xe[Qe+15]=0,xe[Qe+16]=Ce>>8,xe[Qe+17]=Ce,xe[Qe+18]=Ee>>8,xe[Qe+19]=Ee,xe[Qe+20]=fe>>24,xe[Qe+21]=fe>>16,xe[Qe+22]=fe>>8,xe[Qe+23]=fe,de._sQlen+=24,de.flush()},clientFence:function(de,Ce,Ee){var le=de._sQ,fe=de._sQlen;le[fe]=248,le[fe+1]=0,le[fe+2]=0,le[fe+3]=0,le[fe+4]=Ce>>24,le[fe+5]=Ce>>16,le[fe+6]=Ce>>8,le[fe+7]=Ce;var xe=Ee.length;le[fe+8]=xe;for(var Qe=0;Qe<xe;Qe++)le[fe+9+Qe]=Ee.charCodeAt(Qe);de._sQlen+=9+xe,de.flush()},enableContinuousUpdates:function(de,Ce,Ee,le,fe,xe){var Qe=de._sQ,ot=de._sQlen;Qe[ot]=150,Qe[ot+1]=Ce,Qe[ot+2]=Ee>>8,Qe[ot+3]=Ee,Qe[ot+4]=le>>8,Qe[ot+5]=le,Qe[ot+6]=fe>>8,Qe[ot+7]=fe,Qe[ot+8]=xe>>8,Qe[ot+9]=xe,de._sQlen+=10,de.flush()},pixelFormat:function(de,Ce,Ee){var le=de._sQ,fe=de._sQlen,xe;Ce>16?xe=32:Ce>8?xe=16:xe=8;var Qe=Math.floor(Ce/3);le[fe]=0,le[fe+1]=0,le[fe+2]=0,le[fe+3]=0,le[fe+4]=xe,le[fe+5]=Ce,le[fe+6]=0,le[fe+7]=Ee?1:0,le[fe+8]=0,le[fe+9]=(1<<Qe)-1,le[fe+10]=0,le[fe+11]=(1<<Qe)-1,le[fe+12]=0,le[fe+13]=(1<<Qe)-1,le[fe+14]=Qe*2,le[fe+15]=Qe*1,le[fe+16]=Qe*0,le[fe+17]=0,le[fe+18]=0,le[fe+19]=0,de._sQlen+=20,de.flush()},clientEncodings:function(de,Ce){var Ee=de._sQ,le=de._sQlen;Ee[le]=2,Ee[le+1]=0,Ee[le+2]=Ce.length>>8,Ee[le+3]=Ce.length;for(var fe=le+4,xe=0;xe<Ce.length;xe++){var Qe=Ce[xe];Ee[fe]=Qe>>24,Ee[fe+1]=Qe>>16,Ee[fe+2]=Qe>>8,Ee[fe+3]=Qe,fe+=4}de._sQlen+=fe-le,de.flush()},fbUpdateRequest:function(de,Ce,Ee,le,fe,xe){var Qe=de._sQ,ot=de._sQlen;typeof Ee=="undefined"&&(Ee=0),typeof le=="undefined"&&(le=0),Qe[ot]=3,Qe[ot+1]=Ce?1:0,Qe[ot+2]=Ee>>8&255,Qe[ot+3]=Ee&255,Qe[ot+4]=le>>8&255,Qe[ot+5]=le&255,Qe[ot+6]=fe>>8&255,Qe[ot+7]=fe&255,Qe[ot+8]=xe>>8&255,Qe[ot+9]=xe&255,de._sQlen+=10,de.flush()},xvpOp:function(de,Ce,Ee){var le=de._sQ,fe=de._sQlen;le[fe]=250,le[fe+1]=0,le[fe+2]=Ce,le[fe+3]=Ee,de._sQlen+=4,de.flush()}},J.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,B,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var E={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},C={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};O.defineMode("xml",function(A,w){var m=A.indentUnit,f={},c=w.htmlMode?E:C;for(var o in c)f[o]=c[o];for(var o in w)f[o]=w[o];var r,i;function n(I,L){function N(P){return L.tokenize=P,P(I,L)}var D=I.next();if(D=="<")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(D=="&"){var R;return I.eat("#")?I.eat("x")?R=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):R=I.eatWhile(/[\d]/)&&I.eat(";"):R=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),R?"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 D=L.tokenize(I,L);return D?D+" tag error":"tag error"}else return/[\'\"]/.test(N)?(L.tokenize=s(N),L.stringStartCol=I.column(),L.tokenize(I,L)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(I){var L=function(D,R){for(;!D.eol();)if(D.next()==I){R.tokenize=e;break}return"string"};return L.isInAttribute=!0,L}function t(I,L){return function(N,D){for(;!N.eol();){if(N.match(L)){D.tokenize=n;break}N.next()}return I}}function a(I){return function(L,N){for(var D;(D=L.next())!=null;){if(D=="<")return N.tokenize=a(I+1),N.tokenize(L,N);if(D==">")if(I==1){N.tokenize=n;break}else return N.tokenize=a(I-1),N.tokenize(L,N)}return"meta"}}function l(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(),g):I=="closeTag"?v:p}function g(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",g)}function v(I,L,N){if(I=="word"){var D=L.current();return N.context&&N.context.tagName!=D&&f.implicitlyClosed.hasOwnProperty(N.context.tagName)&&u(N),N.context&&N.context.tagName==D||f.matchClosing===!1?(i="tag",y):(i="tag error",x)}else return f.allowMissingTagName&&I=="endTag"?(i="tag bracket",y(I,L,N)):(i="error",x)}function y(I,L,N){return I!="endTag"?(i="error",y):(u(N),p)}function x(I,L,N){return i="error",y(I,L,N)}function T(I,L,N){if(I=="word")return i="attribute",S;if(I=="endTag"||I=="selfcloseTag"){var D=N.tagName,R=N.tagStart;return N.tagName=N.tagStart=null,I=="selfcloseTag"||f.autoSelfClosers.hasOwnProperty(D)?h(N,D):(h(N,D),N.context=new l(N,D,R==N.indented)),p}return i="error",T}function S(I,L,N){return I=="equals"?b:(f.allowMissing||(i="error"),T(I,L,N))}function b(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 D=N.tokenize(L,N);return(D||r)&&D!="comment"&&(i=null,N.state=N.state(r||D,L,N),i&&(D=i=="error"?D+" error":i)),D},indent:function(L,N,D){var R=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+m;if(R&&R.noIndent)return O.Pass;if(L.tokenize!=e&&L.tokenize!=n)return D?D.match(/^(\s*)/)[0].length:0;if(L.tagName)return f.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+m*(f.multilineTagIndentFactor||1);if(f.alignCDATA&&/<!\[CDATA\[/.test(N))return 0;var P=N&&/^<(\/)?([\w_:\.-]*)/.exec(N);if(P&&P[1])for(;R;)if(R.tagName==P[2]){R=R.prev;break}else if(f.implicitlyClosed.hasOwnProperty(R.tagName))R=R.prev;else break;else if(P)for(;R;){var M=f.contextGrabbers[R.tagName];if(M&&M.hasOwnProperty(P[2]))R=R.prev;else break}for(;R&&R.prev&&!R.startOfLine;)R=R.prev;return R?R.indent+m:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:f.htmlMode?"html":"xml",helperType:f.htmlMode?"html":"xml",skipAttribute:function(L){L.state==b&&(L.state=T)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var N=[],D=L.context;D;D=D.prev)D.tagName&&N.push(D.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,B,d){(function(O,E){/*!
|
|
|
* html2pdf.js v0.10.1
|
|
|
* Copyright (c) 2021 Erik Koopmans
|
|
|
* Released under the MIT License.
|
|
|
*/(function(A,w){H.exports=w(d("dtIV"),d("wOnQ"))})(self,function(C,A){return function(){var w={"./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"),s=n.n(e),t=n("./node_modules/core-js/modules/es.string.link.js"),a=n.n(t),l=n("./src/worker.js"),u=n("./src/utils.js"),h=[],p={toContainer:l.default.prototype.toContainer,toPdf:l.default.prototype.toPdf};l.default.prototype.toContainer=function(){return p.toContainer.call(this).then(function(){if(this.opt.enableLinks){var y=this.prop.container,x=y.querySelectorAll("a"),T=(0,u.unitConvert)(y.getBoundingClientRect(),this.prop.pageSize.k);h=[],Array.prototype.forEach.call(x,function(S){for(var b=S.getClientRects(),_=0;_<b.length;_++){var I=(0,u.unitConvert)(b[_],this.prop.pageSize.k);I.left-=T.left,I.top-=T.top;var L=Math.floor(I.top/this.prop.pageSize.inner.height)+1,N=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,D=this.opt.margin[1]+I.left;h.push({page:L,top:N,left:D,clientRect:I,link:S})}},this)}})},l.default.prototype.toPdf=function(){return p.toPdf.call(this).then(function(){if(this.opt.enableLinks){h.forEach(function(x){this.prop.pdf.setPage(x.page),this.prop.pdf.link(x.left,x.top,x.clientRect.width,x.clientRect.height,{url:x.link.href})},this);var y=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(y)}})}},"./src/plugin/jspdf-plugin.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/es.symbol.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.description.js"),a=n.n(t),l=n("./node_modules/core-js/modules/es.object.to-string.js"),u=n.n(l),h=n("./node_modules/core-js/modules/es.symbol.iterator.js"),p=n.n(h),g=n("./node_modules/core-js/modules/es.array.iterator.js"),v=n.n(g),y=n("./node_modules/core-js/modules/es.string.iterator.js"),x=n.n(y),T=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),S=n.n(T),b=n("jspdf"),_=n.n(b);function I(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(D){return typeof D}:I=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},I(L)}b.jsPDF.getPageSize=function(L,N,D){if(I(L)==="object"){var R=L;L=R.orientation,N=R.unit||N,D=R.format||D}N=N||"mm",D=D||"a4",L=(""+(L||"P")).toLowerCase();var P=(""+D).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(P))var F=M[P][1]/U,j=M[P][0]/U;else try{var F=D[1],j=D[0]}catch(z){throw new Error("Invalid format: "+D)}if(L==="p"||L==="portrait"){if(L="p",j>F){var W=j;j=F,F=W}}else if(L==="l"||L==="landscape"){if(L="l",F>j){var W=j;j=F,F=W}}else throw"Invalid orientation: "+L;var V={width:j,height:F,unit:N,k:U};return V},i.default=b.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"),s=n.n(e),t=n("./node_modules/core-js/modules/es.array.slice.js"),a=n.n(t),l=n("./node_modules/core-js/modules/es.array.join.js"),u=n.n(l),h=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=n.n(h),g=n("./node_modules/core-js/modules/es.object.keys.js"),v=n.n(g),y=n("./src/worker.js"),x=n("./src/utils.js"),T={toContainer:y.default.prototype.toContainer};y.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},y.default.prototype.toContainer=function(){return T.toContainer.call(this).then(function(){var _=this.prop.container,I=this.prop.pageSize.inner.px.height,L=[].concat(this.opt.pagebreak.mode),N={avoidAll:L.indexOf("avoid-all")!==-1,css:L.indexOf("css")!==-1,legacy:L.indexOf("legacy")!==-1},D={},R=this;["before","after","avoid"].forEach(function(U){var F=N.avoidAll&&U==="avoid";D[U]=F?[]:[].concat(R.opt.pagebreak[U]||[]),D[U].length>0&&(D[U]=Array.prototype.slice.call(_.querySelectorAll(D[U].join(", "))))});var P=_.querySelectorAll(".html2pdf__page-break");P=Array.prototype.slice.call(P);var M=_.querySelectorAll("*");Array.prototype.forEach.call(M,function(F){var j={before:!1,after:N.legacy&&P.indexOf(F)!==-1,avoid:N.avoidAll};if(N.css){var W=window.getComputedStyle(F),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(Oe){j[Oe]=j[Oe]||D[Oe].indexOf(F)!==-1});var Y=F.getBoundingClientRect();if(j.avoid&&!j.before){var $=Math.floor(Y.top/I),ue=Math.floor(Y.bottom/I),ne=Math.abs(Y.bottom-Y.top)/I;ue!==$&&ne<=1&&(j.before=!0)}if(j.before){var ge=(0,x.createElement)("div",{style:{display:"block",height:I-Y.top%I+"px"}});F.parentNode.insertBefore(ge,F)}if(j.after){var ge=(0,x.createElement)("div",{style:{display:"block",height:I-Y.bottom%I+"px"}});F.parentNode.insertBefore(ge,F.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 D},unitConvert:function(){return R},toPx:function(){return P}});var e=n("./node_modules/core-js/modules/es.number.constructor.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.js"),a=n.n(t),l=n("./node_modules/core-js/modules/es.symbol.description.js"),u=n.n(l),h=n("./node_modules/core-js/modules/es.object.to-string.js"),p=n.n(h),g=n("./node_modules/core-js/modules/es.symbol.iterator.js"),v=n.n(g),y=n("./node_modules/core-js/modules/es.array.iterator.js"),x=n.n(y),T=n("./node_modules/core-js/modules/es.string.iterator.js"),S=n.n(T),b=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),_=n.n(b);function I(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(F){return typeof F}:I=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},I(M)}var L=function(U){var F=I(U);return F==="undefined"?"undefined":F==="string"||U instanceof String?"string":F==="number"||U instanceof Number?"number":F==="function"||U instanceof Function?"function":!!U&&U.constructor===Array?"array":U&&U.nodeType===1?"element":F==="object"?"object":"unknown"},N=function(U,F){var j=document.createElement(U);if(F.className&&(j.className=F.className),F.innerHTML){j.innerHTML=F.innerHTML;for(var W=j.getElementsByTagName("script"),V=W.length;V-- >0;null)W[V].parentNode.removeChild(W[V])}for(var z in F.style)j.style[z]=F.style[z];return j},D=function M(U,F){for(var j=U.nodeType===3?document.createTextNode(U.nodeValue):U.cloneNode(!1),W=U.firstChild;W;W=W.nextSibling)(F===!0||W.nodeType!==1||W.nodeName!=="SCRIPT")&&j.appendChild(M(W,F));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},R=function(U,F){if(L(U)==="number")return U*72/96/F;var j={};for(var W in U)j[W]=U[W]*72/96/F;return j},P=function(U,F){return Math.floor(U*F/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"),s=n.n(e),t=n("./node_modules/core-js/modules/es.array.map.js"),a=n.n(t),l=n("./node_modules/core-js/modules/es.object.keys.js"),u=n.n(l),h=n("./node_modules/core-js/modules/es.array.concat.js"),p=n.n(h),g=n("./node_modules/core-js/modules/es.object.to-string.js"),v=n.n(g),y=n("./node_modules/core-js/modules/es.regexp.to-string.js"),x=n.n(y),T=n("./node_modules/core-js/modules/es.function.name.js"),S=n.n(T),b=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=n.n(b),I=n("jspdf"),L=n.n(I),N=n("html2canvas"),D=n.n(N),R=n("./src/utils.js"),P=n("./node_modules/es6-promise/dist/es6-promise.js"),M=n.n(P),U=M().Promise,F=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};F.prototype=Object.create(U.prototype),F.prototype.constructor=F,F.convert=function(W,V){return W.__proto__=V||F.prototype,W},F.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},F.prototype.from=function(W,V){function z(Y){switch((0,R.objType)(Y)){case"string":return"string";case"element":return Y.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){V=V||z(W);switch(V){case"string":return this.set({src:(0,R.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.")}})},F.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.")}},F.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)"},Y={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};z.opacity=0;var $=(0,R.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,R.createElement)("div",{className:"html2pdf__overlay",style:z}),this.prop.container=(0,R.createElement)("div",{className:"html2pdf__container",style:Y}),this.prop.container.appendChild($),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},F.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 Y=this.opt.html2canvas.onrendered||function(){};Y(z),this.prop.canvas=z,document.body.removeChild(this.prop.overlay)})},F.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})},F.prototype.toPdf=function(){var W=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(W).then(function(){var z=this.prop.canvas,Y=this.opt,$=z.height,ue=Math.floor(z.width*this.prop.pageSize.inner.ratio),ne=Math.ceil($/ue),ge=this.prop.pageSize.inner.height,Oe=document.createElement("canvas"),De=Oe.getContext("2d");Oe.width=z.width,Oe.height=ue,this.prop.pdf=this.prop.pdf||new I.jsPDF(Y.jsPDF);for(var He=0;He<ne;He++){He===ne-1&&$%ue!==0&&(Oe.height=$%ue,ge=Oe.height*this.prop.pageSize.inner.width/Oe.width);var pe=Oe.width,Ue=Oe.height;De.fillStyle="white",De.fillRect(0,0,pe,Ue),De.drawImage(z,0,He*ue,pe,Ue,0,0,pe,Ue),He&&this.prop.pdf.addPage();var oe=Oe.toDataURL("image/"+Y.image.type,Y.image.quality);this.prop.pdf.addImage(oe,Y.image.type,Y.margin[1],Y.margin[0],this.prop.pageSize.inner.width,ge)}})},F.prototype.output=function(W,V,z){return z=z||"pdf",z.toLowerCase()==="img"||z.toLowerCase()==="image"?this.outputImg(W,V):this.outputPdf(W,V)},F.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)})},F.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.'}})},F.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)})},F.prototype.set=function(W){if((0,R.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 F.template.prop?function(){this.prop[z]=W[z]}:function(){this.opt[z]=W[z]}}},this);return this.then(function(){return this.thenList(V)})},F.prototype.get=function(W,V){return this.then(function(){var Y=W in F.template.prop?this.prop[W]:this.opt[W];return V?V(Y):Y})},F.prototype.setMargin=function(W){return this.then(function(){switch((0,R.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)},F.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,R.toPx)(W.inner.width,W.k),height:(0,R.toPx)(W.inner.height,W.k)},W.inner.ratio=W.inner.height/W.inner.width),this.prop.pageSize=W})},F.prototype.setProgress=function(W,V,z,Y){return W!=null&&(this.progress.val=W),V!=null&&(this.progress.state=V),z!=null&&(this.progress.n=z),Y!=null&&(this.progress.stack=Y),this.progress.ratio=this.progress.val/this.progress.state,this},F.prototype.updateProgress=function(W,V,z,Y){return this.setProgress(W?this.progress.val+W:null,V||null,z?this.progress.n+z:null,Y?this.progress.stack.concat(Y):null)},F.prototype.then=function(W,V){var z=this;return this.thenCore(W,V,function($,ue){return z.updateProgress(null,null,1,[$]),U.prototype.then.call(this,function(ge){return z.updateProgress(null,$),ge}).then($,ue).then(function(ge){return z.updateProgress(1),ge})})},F.prototype.thenCore=function(W,V,z){z=z||U.prototype.then;var Y=this;W&&(W=W.bind(Y)),V&&(V=V.bind(Y));var $=U.toString().indexOf("[native code]")!==-1&&U.name==="Promise",ue=$?Y:F.convert(Object.assign({},Y),U.prototype),ne=z.call(ue,W,V);return F.convert(ne,Y.__proto__)},F.prototype.thenExternal=function(W,V){return U.prototype.then.call(this,W,V)},F.prototype.thenList=function(W){var V=this;return W.forEach(function(Y){V=V.thenCore(Y)}),V},F.prototype.catch=function(j){j&&(j=j.bind(this));var W=U.prototype.catch.call(this,j);return F.convert(W,this)},F.prototype.catchExternal=function(W){return U.prototype.catch.call(this,W)},F.prototype.error=function(W){return this.then(function(){throw new Error(W)})},F.prototype.using=F.prototype.set,F.prototype.saveAs=F.prototype.save,F.prototype.export=F.prototype.output,F.prototype.run=F.prototype.then,i.default=F},"./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(s){if(!e(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype");return s}},"./node_modules/core-js/internals/add-to-unscopables.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),s=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/object-define-property.js"),a=e("unscopables"),l=Array.prototype;l[a]==null&&t.f(l,a,{configurable:!0,value:s(null)}),r.exports=function(u){l[a][u]=!0}},"./node_modules/core-js/internals/an-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s){if(!e(s))throw TypeError(String(s)+" is not an object");return s}},"./node_modules/core-js/internals/array-for-each.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/array-iteration.js").forEach,s=n("./node_modules/core-js/internals/array-method-is-strict.js"),t=s("forEach");r.exports=t?[].forEach:function(l){return e(this,l,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-length.js"),t=n("./node_modules/core-js/internals/to-absolute-index.js"),a=function(u){return function(h,p,g){var v=e(h),y=s(v.length),x=t(g,y),T;if(u&&p!=p){for(;y>x;)if(T=v[x++],T!=T)return!0}else for(;y>x;x++)if((u||x in v)&&v[x]===p)return u||x||0;return!u&&-1}};r.exports={includes:a(!0),indexOf:a(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(r,i,n){var e=n("./node_modules/core-js/internals/function-bind-context.js"),s=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-object.js"),a=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/array-species-create.js"),u=[].push,h=function(g){var v=g==1,y=g==2,x=g==3,T=g==4,S=g==6,b=g==7,_=g==5||S;return function(I,L,N,D){for(var R=t(I),P=s(R),M=e(L,N,3),U=a(P.length),F=0,j=D||l,W=v?j(I,U):y||b?j(I,0):void 0,V,z;U>F;F++)if((_||F in P)&&(V=P[F],z=M(V,F,R),g))if(v)W[F]=z;else if(z)switch(g){case 3:return!0;case 5:return V;case 6:return F;case 2:u.call(W,V)}else switch(g){case 4:return!1;case 7:u.call(W,V)}return S?-1:x||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"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),t=n("./node_modules/core-js/internals/engine-v8-version.js"),a=s("species");r.exports=function(l){return t>=51||!e(function(){var u=[],h=u.constructor={};return h[a]=function(){return{foo:1}},u[l](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(s,t){var a=[][s];return!!a&&e(function(){a.call(null,t||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/is-array.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("species");r.exports=function(l){var u;return s(l)&&(u=l.constructor,typeof u=="function"&&(u===Array||s(u.prototype))?u=void 0:e(u)&&(u=u[a],u===null&&(u=void 0))),u===void 0?Array:u}},"./node_modules/core-js/internals/array-species-create.js":function(r,i,n){var e=n("./node_modules/core-js/internals/array-species-constructor.js");r.exports=function(s,t){return new(e(s))(t===0?0:t)}},"./node_modules/core-js/internals/classof-raw.js":function(r){var 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"),s=n("./node_modules/core-js/internals/classof-raw.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag"),l=s(function(){return arguments}())=="Arguments",u=function(p,g){try{return p[g]}catch(v){}};r.exports=e?s:function(h){var p,g,v;return h===void 0?"Undefined":h===null?"Null":typeof(g=u(p=Object(h),a))=="string"?g:l?s(p):(v=s(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"),s=n("./node_modules/core-js/internals/own-keys.js"),t=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=n("./node_modules/core-js/internals/object-define-property.js");r.exports=function(l,u){for(var h=s(u),p=a.f,g=t.f,v=0;v<h.length;v++){var y=h[v];e(l,y)||p(l,y,g(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 s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},"./node_modules/core-js/internals/create-html.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=/"/g;r.exports=function(a,l,u,h){var p=s(e(a)),g="<"+l;return u!==""&&(g+=" "+u+'="'+s(h).replace(t,""")+'"'),g+">"+p+"</"+l+">"}},"./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,s=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/set-to-string-tag.js"),l=n("./node_modules/core-js/internals/iterators.js"),u=function(){return this};r.exports=function(h,p,g){var v=p+" Iterator";return h.prototype=s(e,{next:t(1,g)}),a(h,v,!1,!0),l[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"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=e?function(a,l,u){return s.f(a,l,t(1,u))}:function(a,l,u){return a[l]=u,a}},"./node_modules/core-js/internals/create-property-descriptor.js":function(r){r.exports=function(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"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=function(a,l,u){var h=e(l);h in a?s.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"),s=n("./node_modules/core-js/internals/create-iterator-constructor.js"),t=n("./node_modules/core-js/internals/object-get-prototype-of.js"),a=n("./node_modules/core-js/internals/object-set-prototype-of.js"),l=n("./node_modules/core-js/internals/set-to-string-tag.js"),u=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),h=n("./node_modules/core-js/internals/redefine.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),g=n("./node_modules/core-js/internals/is-pure.js"),v=n("./node_modules/core-js/internals/iterators.js"),y=n("./node_modules/core-js/internals/iterators-core.js"),x=y.IteratorPrototype,T=y.BUGGY_SAFARI_ITERATORS,S=p("iterator"),b="keys",_="values",I="entries",L=function(){return this};r.exports=function(N,D,R,P,M,U,F){s(R,D,P);var j=function(He){if(He===M&&$)return $;if(!T&&He in z)return z[He];switch(He){case b:return function(){return new R(this,He)};case _:return function(){return new R(this,He)};case I:return function(){return new R(this,He)}}return function(){return new R(this)}},W=D+" Iterator",V=!1,z=N.prototype,Y=z[S]||z["@@iterator"]||M&&z[M],$=!T&&Y||j(M),ue=D=="Array"&&z.entries||Y,ne,ge,Oe;if(ue&&(ne=t(ue.call(new N)),x!==Object.prototype&&ne.next&&(!g&&t(ne)!==x&&(a?a(ne,x):typeof ne[S]!="function"&&u(ne,S,L)),l(ne,W,!0,!0),g&&(v[W]=L))),M==_&&Y&&Y.name!==_&&(V=!0,$=function(){return Y.call(this)}),(!g||F)&&z[S]!==$&&u(z,S,$),v[D]=$,M)if(ge={values:j(_),keys:U?$:j(b),entries:j(I)},F)for(Oe in ge)(T||V||!(Oe in z))&&h(z,Oe,ge[Oe]);else e({target:D,proto:!0,forced:T||V},ge);return ge}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/path.js"),s=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),a=n("./node_modules/core-js/internals/object-define-property.js").f;r.exports=function(l){var u=e.Symbol||(e.Symbol={});s(u,l)||a(u,l,{value:t.f(l)})}},"./node_modules/core-js/internals/descriptors.js":function(r,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"),s=n("./node_modules/core-js/internals/is-object.js"),t=e.document,a=s(t)&&s(t.createElement);r.exports=function(l){return a?t.createElement(l):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(r){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(r,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"),s=n("./node_modules/core-js/internals/engine-user-agent.js"),t=e.process,a=e.Deno,l=t&&t.versions||a&&a.version,u=l&&l.v8,h,p;u?(h=u.split("."),p=h[0]<4?1:h[0]+h[1]):s&&(h=s.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=s.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"),s=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=n("./node_modules/core-js/internals/redefine.js"),l=n("./node_modules/core-js/internals/set-global.js"),u=n("./node_modules/core-js/internals/copy-constructor-properties.js"),h=n("./node_modules/core-js/internals/is-forced.js");r.exports=function(p,g){var v=p.target,y=p.global,x=p.stat,T,S,b,_,I,L;if(y?S=e:x?S=e[v]||l(v,{}):S=(e[v]||{}).prototype,S)for(b in g){if(I=g[b],p.noTargetGet?(L=s(S,b),_=L&&L.value):_=S[b],T=h(y?b:v+(x?".":"#")+b,p.forced),!T&&_!==void 0){if(typeof I===typeof _)continue;u(I,_)}(p.sham||_&&_.sham)&&t(I,"sham",!0),a(S,b,I,p)}}},"./node_modules/core-js/internals/fails.js":function(r){r.exports=function(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(s,t,a){if(e(s),t===void 0)return s;switch(a){case 0:return function(){return s.call(t)};case 1:return function(l){return s.call(t,l)};case 2:return function(l,u){return s.call(t,l,u)};case 3:return function(l,u,h){return s.call(t,l,u,h)}}return function(){return s.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"),s=function(a){return typeof a=="function"?a:void 0};r.exports=function(t,a){return arguments.length<2?s(e[t]):e[t]&&e[t][a]}},"./node_modules/core-js/internals/global.js":function(r){var 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"),s={}.hasOwnProperty;r.exports=Object.hasOwn||function(a,l){return s.call(e(a),l)}},"./node_modules/core-js/internals/hidden-keys.js":function(r){r.exports={}},"./node_modules/core-js/internals/html.js":function(r,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"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/document-create-element.js");r.exports=!e&&!s(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/classof-raw.js"),t="".split;r.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return s(a)=="String"?t.call(a,""):Object(a)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/object-set-prototype-of.js");r.exports=function(t,a,l){var u,h;return s&&typeof(u=a.constructor)=="function"&&u!==l&&e(h=u.prototype)&&h!==l.prototype&&s(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"),s=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(t){return s.call(t)}),r.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(r,i,n){var e=n("./node_modules/core-js/internals/native-weak-map.js"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-object.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/shared-store.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=n("./node_modules/core-js/internals/hidden-keys.js"),g="Object already initialized",v=s.WeakMap,y,x,T,S=function(P){return T(P)?x(P):y(P,{})},b=function(P){return function(M){var U;if(!t(M)||(U=x(M)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return U}};if(e||u.state){var _=u.state||(u.state=new v),I=_.get,L=_.has,N=_.set;y=function(P,M){if(L.call(_,P))throw new TypeError(g);return M.facade=P,N.call(_,P,M),M},x=function(P){return I.call(_,P)||{}},T=function(P){return L.call(_,P)}}else{var D=h("state");p[D]=!0,y=function(P,M){if(l(P,D))throw new TypeError(g);return M.facade=P,a(P,D,M),M},x=function(P){return l(P,D)?P[D]:{}},T=function(P){return l(P,D)}}r.exports={set:y,get:x,has:T,enforce:S,getterFor:b}},"./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"),s=/#|\.prototype\./,t=function(g,v){var y=l[a(g)];return y==h?!0:y==u?!1:typeof v=="function"?e(v):!!v},a=t.normalize=function(p){return String(p).replace(s,".").toLowerCase()},l=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"),s=n("./node_modules/core-js/internals/use-symbol-as-uid.js");r.exports=s?function(t){return typeof t=="symbol"}:function(t){var a=e("Symbol");return typeof a=="function"&&Object(t)instanceof a}},"./node_modules/core-js/internals/iterators-core.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/object-get-prototype-of.js"),t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),u=n("./node_modules/core-js/internals/is-pure.js"),h=l("iterator"),p=!1,g=function(){return this},v,y,x;[].keys&&(x=[].keys(),"next"in x?(y=s(s(x)),y!==Object.prototype&&(v=y)):p=!0);var T=v==null||e(function(){var S={};return v[h].call(S)!==S});T&&(v={}),(!u||T)&&!a(v,h)&&t(v,h,g),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"),s=n("./node_modules/core-js/internals/fails.js");r.exports=!!Object.getOwnPropertySymbols&&!s(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/inspect-source.js"),t=e.WeakMap;r.exports=typeof t=="function"&&/native code/.test(s(t))},"./node_modules/core-js/internals/object-assign.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),u=n("./node_modules/core-js/internals/to-object.js"),h=n("./node_modules/core-js/internals/indexed-object.js"),p=Object.assign,g=Object.defineProperty;r.exports=!p||s(function(){if(e&&p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},y={},x=Symbol(),T="abcdefghijklmnopqrst";return v[x]=7,T.split("").forEach(function(S){y[S]=S}),p({},v)[x]!=7||t(p({},y)).join("")!=T})?function(y,x){for(var T=u(y),S=arguments.length,b=1,_=a.f,I=l.f;S>b;)for(var L=h(arguments[b++]),N=_?t(L).concat(_(L)):t(L),D=N.length,R=0,P;D>R;)P=N[R++],(!e||I.call(L,P))&&(T[P]=L[P]);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"),s=n("./node_modules/core-js/internals/object-define-properties.js"),t=n("./node_modules/core-js/internals/enum-bug-keys.js"),a=n("./node_modules/core-js/internals/hidden-keys.js"),l=n("./node_modules/core-js/internals/html.js"),u=n("./node_modules/core-js/internals/document-create-element.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=">",g="<",v="prototype",y="script",x=h("IE_PROTO"),T=function(){},S=function(D){return g+y+p+D+g+"/"+y+p},b=function(D){D.write(S("")),D.close();var R=D.parentWindow.Object;return D=null,R},_=function(){var D=u("iframe"),R="java"+y+":",P;if(D.style)return D.style.display="none",l.appendChild(D),D.src=String(R),P=D.contentWindow.document,P.open(),P.write(S("document.F=Object")),P.close(),P.F},I,L=function(){try{I=new ActiveXObject("htmlfile")}catch(R){}L=document.domain&&I?b(I):_()||b(I);for(var D=t.length;D--;)delete L[v][t[D]];return L()};a[x]=!0,r.exports=Object.create||function(D,R){var P;return D!==null?(T[v]=e(D),P=new T,T[v]=null,P[x]=D):P=L(),R===void 0?P:s(P,R)}},"./node_modules/core-js/internals/object-define-properties.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/object-keys.js");r.exports=e?Object.defineProperties:function(u,h){t(u);for(var p=a(h),g=p.length,v=0,y;g>v;)s.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"),s=n("./node_modules/core-js/internals/ie8-dom-define.js"),t=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-property-key.js"),l=Object.defineProperty;i.f=e?l:function(h,p,g){if(t(h),p=a(p),t(g),s)try{return l(h,p,g)}catch(v){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[p]=g.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"),s=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/to-property-key.js"),u=n("./node_modules/core-js/internals/has.js"),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=l(y),h)try{return p(v,y)}catch(x){}if(u(v,y))return t(!s.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"),s=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,t={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(h){try{return s(h)}catch(p){return a.slice()}};r.exports.f=function(h){return a&&t.call(h)=="[object Window]"?l(h):s(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"),s=n("./node_modules/core-js/internals/enum-bug-keys.js"),t=s.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(l){return e(l,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"),s=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/shared-key.js"),a=n("./node_modules/core-js/internals/correct-prototype-getter.js"),l=t("IE_PROTO"),u=Object.prototype;r.exports=a?Object.getPrototypeOf:function(h){return h=s(h),e(h,l)?h[l]: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"),s=n("./node_modules/core-js/internals/to-indexed-object.js"),t=n("./node_modules/core-js/internals/array-includes.js").indexOf,a=n("./node_modules/core-js/internals/hidden-keys.js");r.exports=function(l,u){var h=s(l),p=0,g=[],v;for(v in h)!e(a,v)&&e(h,v)&&g.push(v);for(;u.length>p;)e(h,v=u[p++])&&(~t(g,v)||g.push(v));return g}},"./node_modules/core-js/internals/object-keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),s=n("./node_modules/core-js/internals/enum-bug-keys.js");r.exports=Object.keys||function(a){return e(a,s)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(r,i){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,s=e&&!n.call({1:2},1);i.f=s?function(a){var l=e(this,a);return!!l&&l.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(r,i,n){var e=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/a-possible-prototype.js");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),t=a instanceof Array}catch(u){}return function(h,p){return e(h),s(p),t?l.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"),s=n("./node_modules/core-js/internals/classof.js");r.exports=e?{}.toString:function(){return"[object "+s(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s,t){var a,l;if(t==="string"&&typeof(a=s.toString)=="function"&&!e(l=a.call(s)))return l;if(typeof(a=s.valueOf)=="function"&&!e(l=a.call(s)))return l;if(t!=="string"&&typeof(a=s.toString)=="function"&&!e(l=a.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/object-get-own-property-names.js"),t=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/an-object.js");r.exports=e("Reflect","ownKeys")||function(u){var h=s.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"),s=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),t=n("./node_modules/core-js/internals/has.js"),a=n("./node_modules/core-js/internals/set-global.js"),l=n("./node_modules/core-js/internals/inspect-source.js"),u=n("./node_modules/core-js/internals/internal-state.js"),h=u.get,p=u.enforce,g=String(String).split("String");(r.exports=function(v,y,x,T){var S=T?!!T.unsafe:!1,b=T?!!T.enumerable:!1,_=T?!!T.noTargetGet:!1,I;if(typeof x=="function"&&(typeof y=="string"&&!t(x,"name")&&s(x,"name",y),I=p(x),I.source||(I.source=g.join(typeof y=="string"?y:""))),v===e){b?v[y]=x:a(y,x);return}else S?!_&&v[y]&&(b=!0):delete v[y];b?v[y]=x:s(v,y,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||l(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 s=e(this),t="";return s.global&&(t+="g"),s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.dotAll&&(t+="s"),s.unicode&&(t+="u"),s.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":function(r){r.exports=function(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(s,t){try{Object.defineProperty(e,s,{value:t,configurable:!0,writable:!0})}catch(a){e[s]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-define-property.js").f,s=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag");r.exports=function(l,u,h){l&&!s(l=h?l:l.prototype,a)&&e(l,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"),s=n("./node_modules/core-js/internals/uid.js"),t=e("keys");r.exports=function(a){return t[a]||(t[a]=s(a))}},"./node_modules/core-js/internals/shared-store.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/set-global.js"),t="__core-js_shared__",a=e[t]||s(t,{});r.exports=a},"./node_modules/core-js/internals/shared.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-pure.js"),s=n("./node_modules/core-js/internals/shared-store.js");(r.exports=function(t,a){return s[t]||(s[t]=a!==void 0?a:{})})("versions",[]).push({version:"3.16.0",mode:e?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(s){return e(function(){var t=""[s]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/require-object-coercible.js"),a=function(u){return function(h,p){var g=s(t(h)),v=e(p),y=g.length,x,T;return v<0||v>=y?u?"":void 0:(x=g.charCodeAt(v),x<55296||x>56319||v+1===y||(T=g.charCodeAt(v+1))<56320||T>57343?u?g.charAt(v):x:u?g.slice(v,v+2):(x-55296<<10)+(T-56320)+65536)}};r.exports={codeAt:a(!1),charAt:a(!0)}},"./node_modules/core-js/internals/string-trim.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/whitespaces.js"),a="["+t+"]",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),h=function(g){return function(v){var y=s(e(v));return g&1&&(y=y.replace(l,"")),g&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"),s=Math.max,t=Math.min;r.exports=function(a,l){var u=e(a);return u<0?s(u+l,0):t(u,l)}},"./node_modules/core-js/internals/to-indexed-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/indexed-object.js"),s=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(t){return e(s(t))}},"./node_modules/core-js/internals/to-integer.js":function(r){var 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"),s=Math.min;r.exports=function(t){return t>0?s(e(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(s){return Object(e(s))}},"./node_modules/core-js/internals/to-primitive.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/is-symbol.js"),t=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toPrimitive");r.exports=function(u,h){if(!e(u)||s(u))return u;var p=u[l],g;if(p!==void 0){if(h===void 0&&(h="default"),g=p.call(u,h),!e(g)||s(g))return g;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"),s=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(t){var a=e(t,"string");return s(a)?a:String(a)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),s=e("toStringTag"),t={};t[s]="z",r.exports=String(t)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(s){if(e(s))throw TypeError("Cannot convert a Symbol value to a string");return String(s)}},"./node_modules/core-js/internals/uid.js":function(r){var 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"),s=n("./node_modules/core-js/internals/shared.js"),t=n("./node_modules/core-js/internals/has.js"),a=n("./node_modules/core-js/internals/uid.js"),l=n("./node_modules/core-js/internals/native-symbol.js"),u=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),h=s("wks"),p=e.Symbol,g=u?p:p&&p.withoutSetter||a;r.exports=function(v){return(!t(h,v)||!(l||typeof h[v]=="string"))&&(l&&t(p,v)?h[v]=p[v]:h[v]=g("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"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/to-object.js"),u=n("./node_modules/core-js/internals/to-length.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/array-species-create.js"),g=n("./node_modules/core-js/internals/array-method-has-species-support.js"),v=n("./node_modules/core-js/internals/well-known-symbol.js"),y=n("./node_modules/core-js/internals/engine-v8-version.js"),x=v("isConcatSpreadable"),T=9007199254740991,S="Maximum allowed index exceeded",b=y>=51||!s(function(){var N=[];return N[x]=!1,N.concat()[0]!==N}),_=g("concat"),I=function(D){if(!a(D))return!1;var R=D[x];return R!==void 0?!!R:t(D)},L=!b||!_;e({target:"Array",proto:!0,forced:L},{concat:function(D){var R=l(this),P=p(R,0),M=0,U,F,j,W,V;for(U=-1,j=arguments.length;U<j;U++)if(V=U===-1?R:arguments[U],I(V)){if(W=u(V.length),M+W>T)throw TypeError(S);for(F=0;F<W;F++,M++)F in V&&h(P,M,V[F])}else{if(M>=T)throw TypeError(S);h(P,M++,V)}return P.length=M,P}})},"./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"),s=n("./node_modules/core-js/internals/add-to-unscopables.js"),t=n("./node_modules/core-js/internals/iterators.js"),a=n("./node_modules/core-js/internals/internal-state.js"),l=n("./node_modules/core-js/internals/define-iterator.js"),u="Array Iterator",h=a.set,p=a.getterFor(u);r.exports=l(Array,"Array",function(g,v){h(this,{type:u,target:e(g),index:0,kind:v})},function(){var g=p(this),v=g.target,y=g.kind,x=g.index++;return!v||x>=v.length?(g.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:x,done:!1}:y=="values"?{value:v[x],done:!1}:{value:[x,v[x]],done:!1}},"values"),t.Arguments=t.Array,s("keys"),s("values"),s("entries")},"./node_modules/core-js/modules/es.array.join.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-indexed-object.js"),a=n("./node_modules/core-js/internals/array-method-is-strict.js"),l=[].join,u=s!=Object,h=a("join",",");e({target:"Array",proto:!0,forced:u||!h},{join:function(g){return l.call(t(this),g===void 0?",":g)}})},"./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"),s=n("./node_modules/core-js/internals/array-iteration.js").map,t=n("./node_modules/core-js/internals/array-method-has-species-support.js"),a=t("map");e({target:"Array",proto:!0,forced:!a},{map:function(u){return s(this,u,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/is-object.js"),t=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/to-absolute-index.js"),l=n("./node_modules/core-js/internals/to-length.js"),u=n("./node_modules/core-js/internals/to-indexed-object.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),g=n("./node_modules/core-js/internals/array-method-has-species-support.js"),v=g("slice"),y=p("species"),x=[].slice,T=Math.max;e({target:"Array",proto:!0,forced:!v},{slice:function(b,_){var I=u(this),L=l(I.length),N=a(b,L),D=a(_===void 0?L:_,L),R,P,M;if(t(I)&&(R=I.constructor,typeof R=="function"&&(R===Array||t(R.prototype))?R=void 0:s(R)&&(R=R[y],R===null&&(R=void 0)),R===Array||R===void 0))return x.call(I,N,D);for(P=new(R===void 0?Array:R)(T(D-N,0)),M=0;N<D;N++,M++)N in I&&h(P,M,I[N]);return P.length=M,P}})},"./node_modules/core-js/modules/es.function.name.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js").f,t=Function.prototype,a=t.toString,l=/^\s*function ([^ (]*)/,u="name";e&&!(u in t)&&s(t,u,{configurable:!0,get:function(){try{return a.call(this).match(l)[1]}catch(p){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-forced.js"),a=n("./node_modules/core-js/internals/redefine.js"),l=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/classof-raw.js"),h=n("./node_modules/core-js/internals/inherit-if-required.js"),p=n("./node_modules/core-js/internals/is-symbol.js"),g=n("./node_modules/core-js/internals/to-primitive.js"),v=n("./node_modules/core-js/internals/fails.js"),y=n("./node_modules/core-js/internals/object-create.js"),x=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,T=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,S=n("./node_modules/core-js/internals/object-define-property.js").f,b=n("./node_modules/core-js/internals/string-trim.js").trim,_="Number",I=s[_],L=I.prototype,N=u(y(L))==_,D=function(j){if(p(j))throw TypeError("Cannot convert a Symbol value to a number");var W=g(j,"number"),V,z,Y,$,ue,ne,ge,Oe;if(typeof W=="string"&&W.length>2){if(W=b(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:Y=2,$=49;break;case 79:case 111:Y=8,$=55;break;default:return+W}for(ue=W.slice(2),ne=ue.length,ge=0;ge<ne;ge++)if(Oe=ue.charCodeAt(ge),Oe<48||Oe>$)return NaN;return parseInt(ue,Y)}}return+W};if(t(_,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var R=function(j){var W=arguments.length<1?0:j,V=this;return V instanceof R&&(N?v(function(){L.valueOf.call(V)}):u(V)!=_)?h(new I(D(W)),V,R):D(W)},P=e?x(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0,U;P.length>M;M++)l(I,U=P[M])&&!l(R,U)&&S(R,U,T(I,U));R.prototype=L,L.constructor=R,a(s,_,R)}},"./node_modules/core-js/modules/es.object.assign.js":function(r,i,n){var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==s},{assign:s})},"./node_modules/core-js/modules/es.object.keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/fails.js"),l=a(function(){t(1)});e({target:"Object",stat:!0,forced:l},{keys:function(h){return t(s(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"),s=n("./node_modules/core-js/internals/redefine.js"),t=n("./node_modules/core-js/internals/object-to-string.js");e||s(Object.prototype,"toString",t,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/an-object.js"),t=n("./node_modules/core-js/internals/to-string.js"),a=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/regexp-flags.js"),u="toString",h=RegExp.prototype,p=h[u],g=a(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),v=p.name!=u;(g||v)&&e(RegExp.prototype,u,function(){var x=s(this),T=t(x.source),S=x.flags,b=t(S===void 0&&x instanceof RegExp&&!("flags"in h)?l.call(x):S);return"/"+T+"/"+b},{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,s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/internal-state.js"),a=n("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=t.set,h=t.getterFor(l);a(String,"String",function(p){u(this,{type:l,string:s(p),index:0})},function(){var g=h(this),v=g.string,y=g.index,x;return y>=v.length?{value:void 0,done:!0}:(x=e(v,y),g.index+=x.length,{value:x,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"),s=n("./node_modules/core-js/internals/create-html.js"),t=n("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:t("link")},{link:function(l){return s(this,"a","href",l)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/descriptors.js"),t=n("./node_modules/core-js/internals/global.js"),a=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/object-define-property.js").f,h=n("./node_modules/core-js/internals/copy-constructor-properties.js"),p=t.Symbol;if(s&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var g={},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 _===""&&(g[I]=!0),I};h(v,p);var y=v.prototype=p.prototype;y.constructor=v;var x=y.toString,T=String(p("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;u(y,"description",{configurable:!0,get:function(){var _=l(this)?this.valueOf():this,I=x.call(_);if(a(g,_))return"";var L=T?I.slice(7,-1):I.replace(S,"$1");return L===""?void 0:L}}),e({global:!0,forced:!0},{Symbol: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"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/get-built-in.js"),a=n("./node_modules/core-js/internals/is-pure.js"),l=n("./node_modules/core-js/internals/descriptors.js"),u=n("./node_modules/core-js/internals/native-symbol.js"),h=n("./node_modules/core-js/internals/fails.js"),p=n("./node_modules/core-js/internals/has.js"),g=n("./node_modules/core-js/internals/is-array.js"),v=n("./node_modules/core-js/internals/is-object.js"),y=n("./node_modules/core-js/internals/is-symbol.js"),x=n("./node_modules/core-js/internals/an-object.js"),T=n("./node_modules/core-js/internals/to-object.js"),S=n("./node_modules/core-js/internals/to-indexed-object.js"),b=n("./node_modules/core-js/internals/to-property-key.js"),_=n("./node_modules/core-js/internals/to-string.js"),I=n("./node_modules/core-js/internals/create-property-descriptor.js"),L=n("./node_modules/core-js/internals/object-create.js"),N=n("./node_modules/core-js/internals/object-keys.js"),D=n("./node_modules/core-js/internals/object-get-own-property-names.js"),R=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),P=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"),F=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"),Y=n("./node_modules/core-js/internals/hidden-keys.js"),$=n("./node_modules/core-js/internals/uid.js"),ue=n("./node_modules/core-js/internals/well-known-symbol.js"),ne=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),ge=n("./node_modules/core-js/internals/define-well-known-symbol.js"),Oe=n("./node_modules/core-js/internals/set-to-string-tag.js"),De=n("./node_modules/core-js/internals/internal-state.js"),He=n("./node_modules/core-js/internals/array-iteration.js").forEach,pe=z("hidden"),Ue="Symbol",oe="prototype",ee=ue("toPrimitive"),Xe=De.set,se=De.getterFor(Ue),Q=Object[oe],G=s.Symbol,J=t("JSON","stringify"),ve=M.f,de=U.f,Ce=R.f,Ee=F.f,le=V("symbols"),fe=V("op-symbols"),xe=V("string-to-symbol-registry"),Qe=V("symbol-to-string-registry"),ot=V("wks"),Je=s.QObject,Te=!Je||!Je[oe]||!Je[oe].findChild,et=l&&h(function(){return L(de({},"a",{get:function(){return de(this,"a",{value:7}).a}})).a!=7})?function(Fe,Ne,q){var ht=ve(Q,Ne);ht&&delete Q[Ne],de(Fe,Ne,q),ht&&Fe!==Q&&de(Q,Ne,ht)}:de,ze=function(Ne,q){var ht=le[Ne]=L(G[oe]);return Xe(ht,{type:Ue,tag:Ne,description:q}),l||(ht.description=q),ht},nt=function(Ne,q,ht){Ne===Q&&nt(fe,q,ht),x(Ne);var Rt=b(q);return x(ht),p(le,Rt)?(ht.enumerable?(p(Ne,pe)&&Ne[pe][Rt]&&(Ne[pe][Rt]=!1),ht=L(ht,{enumerable:I(0,!1)})):(p(Ne,pe)||de(Ne,pe,I(1,{})),Ne[pe][Rt]=!0),et(Ne,Rt,ht)):de(Ne,Rt,ht)},Ot=function(Ne,q){x(Ne);var ht=S(q),Rt=N(ht).concat(ie(ht));return He(Rt,function(ut){(!l||Tt.call(ht,ut))&&nt(Ne,ut,ht[ut])}),Ne},Ct=function(Ne,q){return q===void 0?L(Ne):Ot(L(Ne),q)},Tt=function(Ne){var q=b(Ne),ht=Ee.call(this,q);return this===Q&&p(le,q)&&!p(fe,q)?!1:ht||!p(this,q)||!p(le,q)||p(this,pe)&&this[pe][q]?ht:!0},Dt=function(Ne,q){var ht=S(Ne),Rt=b(q);if(ht===Q&&p(le,Rt)&&!p(fe,Rt))return;var ut=ve(ht,Rt);return ut&&p(le,Rt)&&!(p(ht,pe)&&ht[pe][Rt])&&(ut.enumerable=!0),ut},Be=function(Ne){var q=Ce(S(Ne)),ht=[];return He(q,function(Rt){!p(le,Rt)&&!p(Y,Rt)&&ht.push(Rt)}),ht},ie=function(Ne){var q=Ne===Q,ht=Ce(q?fe:S(Ne)),Rt=[];return He(ht,function(ut){p(le,ut)&&(!q||p(Q,ut))&&Rt.push(le[ut])}),Rt};if(u||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var Ne=!arguments.length||arguments[0]===void 0?void 0:_(arguments[0]),q=$(Ne),ht=function Rt(ut){this===Q&&Rt.call(fe,ut),p(this,pe)&&p(this[pe],q)&&(this[pe][q]=!1),et(this,q,I(1,ut))};return l&&Te&&et(Q,q,{configurable:!0,set:ht}),ze(q,Ne)},W(G[oe],"toString",function(){return se(this).tag}),W(G,"withoutSetter",function(Fe){return ze($(Fe),Fe)}),F.f=Tt,U.f=nt,M.f=Dt,D.f=R.f=Be,P.f=ie,ne.f=function(Fe){return ze(ue(Fe),Fe)},l&&(de(G[oe],"description",{configurable:!0,get:function(){return se(this).description}}),a||W(Q,"propertyIsEnumerable",Tt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),He(N(ot),function(Fe){ge(Fe)}),e({target:Ue,stat:!0,forced:!u},{for:function(Ne){var q=_(Ne);if(p(xe,q))return xe[q];var ht=G(q);return xe[q]=ht,Qe[ht]=q,ht},keyFor:function(Ne){if(!y(Ne))throw TypeError(Ne+" is not a symbol");if(p(Qe,Ne))return Qe[Ne]},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),e({target:"Object",stat:!0,forced:!u,sham:!l},{create:Ct,defineProperty:nt,defineProperties:Ot,getOwnPropertyDescriptor:Dt}),e({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:Be,getOwnPropertySymbols:ie}),e({target:"Object",stat:!0,forced:h(function(){P.f(1)})},{getOwnPropertySymbols:function(Ne){return P.f(T(Ne))}}),J){var X=!u||h(function(){var Fe=G();return J([Fe])!="[null]"||J({a:Fe})!="{}"||J(Object(Fe))!="{}"});e({target:"JSON",stat:!0,forced:X},{stringify:function(Ne,q,ht){for(var Rt=[Ne],ut=1,Xt;arguments.length>ut;)Rt.push(arguments[ut++]);return Xt=q,!v(q)&&Ne===void 0||y(Ne)?void 0:(g(q)||(q=function(Zr,ar){if(typeof Xt=="function"&&(ar=Xt.call(this,Zr,ar)),!y(ar))return ar}),Rt[1]=q,J.apply(null,Rt))}})}G[oe][ee]||j(G[oe],ee,G[oe].valueOf),Oe(G,Ue),Y[pe]=!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"),s=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/internals/array-for-each.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var l in s){var u=e[l],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"),s=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/modules/es.array.iterator.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),u=l("iterator"),h=l("toStringTag"),p=t.values;for(var g in s){var v=e[g],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,g),s[g]){for(var x in t)if(y[x]!==t[x])try{a(y,x,t[x])}catch(T){y[x]=t[x]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(r){/*!
|
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
|
* @license Licensed under MIT license
|
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
|
* @version v4.2.8+1e68dce6
|
|
|
*/(function(i,n){r.exports=n()})(this,function(){"use strict";function i(Je){var Te=typeof Je;return Je!==null&&(Te==="object"||Te==="function")}function n(Je){return typeof Je=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Te){return Object.prototype.toString.call(Te)==="[object Array]"};var s=e,t=0,a=void 0,l=void 0,u=function(Te,et){N[t]=Te,N[t+1]=et,t+=2,t===2&&(l?l(D):P())};function h(Je){l=Je}function p(Je){u=Je}var g=typeof window!="undefined"?window:void 0,v=g||{},y=v.MutationObserver||v.WebKitMutationObserver,x=typeof self=="undefined"&&typeof E!="undefined"&&{}.toString.call(E)==="[object process]",T=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function S(){return function(){return E.nextTick(D)}}function b(){return typeof a!="undefined"?function(){a(D)}:L()}function _(){var Je=0,Te=new y(D),et=document.createTextNode("");return Te.observe(et,{characterData:!0}),function(){et.data=Je=++Je%2}}function I(){var Je=new MessageChannel;return Je.port1.onmessage=D,function(){return Je.port2.postMessage(0)}}function L(){var Je=setTimeout;return function(){return Je(D,1)}}var N=new Array(1e3);function D(){for(var Je=0;Je<t;Je+=2){var Te=N[Je],et=N[Je+1];Te(et),N[Je]=void 0,N[Je+1]=void 0}t=0}function R(){try{var Je=Function("return this")().require("vertx");return a=Je.runOnLoop||Je.runOnContext,b()}catch(Te){return L()}}var P=void 0;x?P=S():y?P=_():T?P=I():g===void 0&&!0?P=R():P=L();function M(Je,Te){var et=this,ze=new this.constructor(j);ze[F]===void 0&&J(ze);var nt=et._state;if(nt){var Ot=arguments[nt-1];u(function(){return Xe(nt,ze,Ot,et._result)})}else oe(et,ze,Je,Te);return ze}function U(Je){var Te=this;if(Je&&typeof Je=="object"&&Je.constructor===Te)return Je;var et=new Te(j);return De(et,Je),et}var F=Math.random().toString(36).substring(2);function j(){}var W=void 0,V=1,z=2;function Y(){return new TypeError("You cannot resolve a promise with itself")}function $(){return new TypeError("A promises callback cannot return that same promise.")}function ue(Je,Te,et,ze){try{Je.call(Te,et,ze)}catch(nt){return nt}}function ne(Je,Te,et){u(function(ze){var nt=!1,Ot=ue(et,Te,function(Ct){if(nt)return;nt=!0,Te!==Ct?De(ze,Ct):pe(ze,Ct)},function(Ct){if(nt)return;nt=!0,Ue(ze,Ct)},"Settle: "+(ze._label||" unknown promise"));!nt&&Ot&&(nt=!0,Ue(ze,Ot))},Je)}function ge(Je,Te){Te._state===V?pe(Je,Te._result):Te._state===z?Ue(Je,Te._result):oe(Te,void 0,function(et){return De(Je,et)},function(et){return Ue(Je,et)})}function Oe(Je,Te,et){Te.constructor===Je.constructor&&et===M&&Te.constructor.resolve===U?ge(Je,Te):et===void 0?pe(Je,Te):n(et)?ne(Je,Te,et):pe(Je,Te)}function De(Je,Te){if(Je===Te)Ue(Je,Y());else if(i(Te)){var et=void 0;try{et=Te.then}catch(ze){Ue(Je,ze);return}Oe(Je,Te,et)}else pe(Je,Te)}function He(Je){Je._onerror&&Je._onerror(Je._result),ee(Je)}function pe(Je,Te){if(Je._state!==W)return;Je._result=Te,Je._state=V,Je._subscribers.length!==0&&u(ee,Je)}function Ue(Je,Te){if(Je._state!==W)return;Je._state=z,Je._result=Te,u(He,Je)}function oe(Je,Te,et,ze){var nt=Je._subscribers,Ot=nt.length;Je._onerror=null,nt[Ot]=Te,nt[Ot+V]=et,nt[Ot+z]=ze,Ot===0&&Je._state&&u(ee,Je)}function ee(Je){var Te=Je._subscribers,et=Je._state;if(Te.length===0)return;for(var ze=void 0,nt=void 0,Ot=Je._result,Ct=0;Ct<Te.length;Ct+=3)ze=Te[Ct],nt=Te[Ct+et],ze?Xe(et,ze,nt,Ot):nt(Ot);Je._subscribers.length=0}function Xe(Je,Te,et,ze){var nt=n(et),Ot=void 0,Ct=void 0,Tt=!0;if(nt){try{Ot=et(ze)}catch(Dt){Tt=!1,Ct=Dt}if(Te===Ot){Ue(Te,$());return}}else Ot=ze;Te._state!==W||(nt&&Tt?De(Te,Ot):Tt===!1?Ue(Te,Ct):Je===V?pe(Te,Ot):Je===z&&Ue(Te,Ot))}function se(Je,Te){try{Te(function(ze){De(Je,ze)},function(ze){Ue(Je,ze)})}catch(et){Ue(Je,et)}}var Q=0;function G(){return Q++}function J(Je){Je[F]=Q++,Je._state=void 0,Je._result=void 0,Je._subscribers=[]}function ve(){return new Error("Array Methods must be provided an Array")}var de=function(){function Je(Te,et){this._instanceConstructor=Te,this.promise=new Te(j),this.promise[F]||J(this.promise),s(et)?(this.length=et.length,this._remaining=et.length,this._result=new Array(this.length),this.length===0?pe(this.promise,this._result):(this.length=this.length||0,this._enumerate(et),this._remaining===0&&pe(this.promise,this._result))):Ue(this.promise,ve())}return Je.prototype._enumerate=function(et){for(var ze=0;this._state===W&&ze<et.length;ze++)this._eachEntry(et[ze],ze)},Je.prototype._eachEntry=function(et,ze){var nt=this._instanceConstructor,Ot=nt.resolve;if(Ot===U){var Ct=void 0,Tt=void 0,Dt=!1;try{Ct=et.then}catch(ie){Dt=!0,Tt=ie}if(Ct===M&&et._state!==W)this._settledAt(et._state,ze,et._result);else if(typeof Ct!="function")this._remaining--,this._result[ze]=et;else if(nt===Qe){var Be=new nt(j);Dt?Ue(Be,Tt):Oe(Be,et,Ct),this._willSettleAt(Be,ze)}else this._willSettleAt(new nt(function(ie){return ie(et)}),ze)}else this._willSettleAt(Ot(et),ze)},Je.prototype._settledAt=function(et,ze,nt){var Ot=this.promise;Ot._state===W&&(this._remaining--,et===z?Ue(Ot,nt):this._result[ze]=nt),this._remaining===0&&pe(Ot,this._result)},Je.prototype._willSettleAt=function(et,ze){var nt=this;oe(et,void 0,function(Ot){return nt._settledAt(V,ze,Ot)},function(Ot){return nt._settledAt(z,ze,Ot)})},Je}();function Ce(Je){return new de(this,Je).promise}function Ee(Je){var Te=this;return s(Je)?new Te(function(et,ze){for(var nt=Je.length,Ot=0;Ot<nt;Ot++)Te.resolve(Je[Ot]).then(et,ze)}):new Te(function(et,ze){return ze(new TypeError("You must pass an array to race."))})}function le(Je){var Te=this,et=new Te(j);return Ue(et,Je),et}function fe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function xe(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Qe=function(){function Je(Te){this[F]=G(),this._result=this._state=void 0,this._subscribers=[],j!==Te&&(typeof Te!="function"&&fe(),this instanceof Je?se(this,Te):xe())}return Je.prototype.catch=function(et){return this.then(null,et)},Je.prototype.finally=function(et){var ze=this,nt=ze.constructor;return n(et)?ze.then(function(Ot){return nt.resolve(et()).then(function(){return Ot})},function(Ot){return nt.resolve(et()).then(function(){throw Ot})}):ze.then(et,et)},Je}();Qe.prototype.then=M,Qe.all=Ce,Qe.race=Ee,Qe.resolve=U,Qe.reject=le,Qe._setScheduler=h,Qe._setAsap=p,Qe._asap=u;function ot(){var Je=void 0;if(typeof O!="undefined")Je=O;else if(typeof self!="undefined")Je=self;else try{Je=Function("return this")()}catch(ze){throw new Error("polyfill failed because global object is unavailable in this environment")}var Te=Je.Promise;if(Te){var et=null;try{et=Object.prototype.toString.call(Te.resolve())}catch(ze){}if(et==="[object Promise]"&&!Te.cast)return}Je.Promise=Qe}return Qe.polyfill=ot,Qe.Promise=Qe,Qe})},html2canvas:function(r){"use strict";r.exports=A},jspdf:function(r){"use strict";r.exports=C}},m={};function f(o){var r=m[o];if(r!==void 0)return r.exports;var i=m[o]={exports:{}};return w[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 s(t,a){var l=new s.Worker(a);return t?l.from(t).save():l};e.Worker=o.default,c.default=e}(),c=c.default,c}()})}).call(this,d("yLpj"),d("Q2Ig"))},"1q3G":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.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,B,d){var O=d("MBQ8"),E=O.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(A){return A.stack=null,E.superApply(this,"getInitialData",arguments)}}),C=E;H.exports=C},"1u/T":function(H,B,d){var O=d("ProS"),E={type:"selectDataRange",event:"dataRangeSelected",update:"update"};O.registerAction(E,function(C,A){A.eachComponent({mainType:"visualMap",query:C},function(w){w.setSelected(C.selected)})})},"1uat":function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("MlIO"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.Hasher,w=E.x64,m=w.Word,f=w.WordArray,c=E.algo;function o(){return m.create.apply(m,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 m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(s,t){for(var a=this._hash.words,l=a[0],u=a[1],h=a[2],p=a[3],g=a[4],v=a[5],y=a[6],x=a[7],T=l.high,S=l.low,b=u.high,_=u.low,I=h.high,L=h.low,N=p.high,D=p.low,R=g.high,P=g.low,M=v.high,U=v.low,F=y.high,j=y.low,W=x.high,V=x.low,z=T,Y=S,$=b,ue=_,ne=I,ge=L,Oe=N,De=D,He=R,pe=P,Ue=M,oe=U,ee=F,Xe=j,se=W,Q=V,G=0;G<80;G++){var J,ve,de=i[G];if(G<16)ve=de.high=s[t+G*2]|0,J=de.low=s[t+G*2+1]|0;else{var Ce=i[G-15],Ee=Ce.high,le=Ce.low,fe=(Ee>>>1|le<<31)^(Ee>>>8|le<<24)^Ee>>>7,xe=(le>>>1|Ee<<31)^(le>>>8|Ee<<24)^(le>>>7|Ee<<25),Qe=i[G-2],ot=Qe.high,Je=Qe.low,Te=(ot>>>19|Je<<13)^(ot<<3|Je>>>29)^ot>>>6,et=(Je>>>19|ot<<13)^(Je<<3|ot>>>29)^(Je>>>6|ot<<26),ze=i[G-7],nt=ze.high,Ot=ze.low,Ct=i[G-16],Tt=Ct.high,Dt=Ct.low;J=xe+Ot,ve=fe+nt+(J>>>0<xe>>>0?1:0),J=J+et,ve=ve+Te+(J>>>0<et>>>0?1:0),J=J+Dt,ve=ve+Tt+(J>>>0<Dt>>>0?1:0),de.high=ve,de.low=J}var Be=He&Ue^~He&ee,ie=pe&oe^~pe&Xe,X=z&$^z&ne^$&ne,Fe=Y&ue^Y&ge^ue&ge,Ne=(z>>>28|Y<<4)^(z<<30|Y>>>2)^(z<<25|Y>>>7),q=(Y>>>28|z<<4)^(Y<<30|z>>>2)^(Y<<25|z>>>7),ht=(He>>>14|pe<<18)^(He>>>18|pe<<14)^(He<<23|pe>>>9),Rt=(pe>>>14|He<<18)^(pe>>>18|He<<14)^(pe<<23|He>>>9),ut=r[G],Xt=ut.high,or=ut.low,Zr=Q+Rt,ar=se+ht+(Zr>>>0<Q>>>0?1:0),Zr=Zr+ie,ar=ar+Be+(Zr>>>0<ie>>>0?1:0),Zr=Zr+or,ar=ar+Xt+(Zr>>>0<or>>>0?1:0),Zr=Zr+J,ar=ar+ve+(Zr>>>0<J>>>0?1:0),dr=q+Fe,er=Ne+X+(dr>>>0<q>>>0?1:0);se=ee,Q=Xe,ee=Ue,Xe=oe,Ue=He,oe=pe,pe=De+Zr|0,He=Oe+ar+(pe>>>0<De>>>0?1:0)|0,Oe=ne,De=ge,ne=$,ge=ue,$=z,ue=Y,Y=Zr+dr|0,z=ar+er+(Y>>>0<Zr>>>0?1:0)|0}S=l.low=S+Y,l.high=T+z+(S>>>0<Y>>>0?1:0),_=u.low=_+ue,u.high=b+$+(_>>>0<ue>>>0?1:0),L=h.low=L+ge,h.high=I+ne+(L>>>0<ge>>>0?1:0),D=p.low=D+De,p.high=N+Oe+(D>>>0<De>>>0?1:0),P=g.low=P+pe,g.high=R+He+(P>>>0<pe>>>0?1:0),U=v.low=U+oe,v.high=M+Ue+(U>>>0<oe>>>0?1:0),j=y.low=j+Xe,y.high=F+ee+(j>>>0<Xe>>>0?1:0),V=x.low=V+Q,x.high=W+se+(V>>>0<Q>>>0?1:0)},_doFinalize:function(){var s=this._data,t=s.words,a=this._nDataBytes*8,l=s.sigBytes*8;t[l>>>5]|=128<<24-l%32,t[(l+128>>>10<<5)+30]=Math.floor(a/4294967296),t[(l+128>>>10<<5)+31]=a,s.sigBytes=t.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var s=A.clone.call(this);return s._hash=this._hash.clone(),s},blockSize:1024/32});E.SHA512=A._createHelper(n),E.HmacSHA512=A._createHmacHelper(n)}(),O.SHA512})},"1vzs":function(H,B,d){"use strict";d.d(B,"a",function(){return t});var O=d("q1tI"),E=d.n(O),C=d("HQEm"),A=d.n(C),w=d("gZBC"),m=d.n(w),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"),s=d.n(e);function t(a){var l=a.suffixIcon,u=a.clearIcon,h=a.menuItemSelectedIcon,p=a.removeIcon,g=a.loading,v=a.multiple,y=a.prefixCls,x=u;u||(x=O.createElement(n.a,null));var T=null;if(l!==void 0)T=l;else if(g)T=O.createElement(m.a,{spin:!0});else{var S="".concat(y,"-suffix");T=function(L){var N=L.open,D=L.showSearch;return N&&D?O.createElement(s.a,{className:S}):O.createElement(A.a,{className:S})}}var b=null;h!==void 0?b=h:v?b=O.createElement(c.a,null):b=null;var _=null;return p!==void 0?_=p:_=O.createElement(r.a,null),{clearIcon:x,suffixIcon:T,itemIcon:b,removeIcon:_}}},"1xaR":function(H,B,d){var O=d("ProS"),E=d("bYtY");d("qgGe"),d("NA0q"),d("RPvy");var C=d("mOdp"),A=d("y3NT"),w=d("0/Rx");O.registerVisual(E.curry(C,"sunburst")),O.registerLayout(E.curry(A,"sunburst")),O.registerProcessor(E.curry(w,"sunburst"))},"24YM":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.SensorTabIndex=B.SensorClassName=B.SizeSensorId=void 0;var O="size-sensor-id";B.SizeSensorId=O;var E="size-sensor-object";B.SensorClassName=E;var C="-1";B.SensorTabIndex=C},"2548":function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("6GrX"),A=d("IUWy"),w=d("IwbS"),m=d("Qxkt"),f=d("gPAo"),c=d("eRkO"),o=O.extendComponentView({type:"toolbox",render:function(i,n,e,s){var t=this.group;if(t.removeAll(),!i.get("show"))return;var a=+i.get("itemSize"),l=i.get("feature")||{},u=this._features||(this._features={}),h=[];E.each(l,function(v,y){h.push(y)}),new f(this._featureNames||[],h).add(p).update(p).remove(E.curry(p,null)).execute(),this._featureNames=h;function p(v,y){var x=h[v],T=h[y],S=l[x],b=new m(S,i,i.ecModel),_;if(s&&s.newTitle!=null&&s.featureName===x&&(S.title=s.newTitle),x&&!T){if(r(x))_={model:b,onclick:b.option.onclick,featureName:x};else{var I=A.get(x);if(!I)return;_=new I(b,n,e)}u[x]=_}else{if(_=u[T],!_)return;_.model=b,_.ecModel=n,_.api=e}if(!x&&T){_.dispose&&_.dispose(n,e);return}if(!b.get("show")||_.unusable){_.remove&&_.remove(n,e);return}g(b,_,x),b.setIconStatus=function(L,N){var D=this.option,R=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[L]=N,R[L]&&R[L].trigger(N)},_.render&&_.render(b,n,e,s)}function g(v,y,x){var T=v.getModel("iconStyle"),S=v.getModel("emphasis.iconStyle"),b=y.getIcons?y.getIcons():v.get("icon"),_=v.get("title")||{};if(typeof b=="string"){var I=b,L=_;b={},_={},b[x]=I,_[x]=L}var N=v.iconPaths={};E.each(b,function(D,R){var P=w.createIcon(D,{},{x:-a/2,y:-a/2,width:a,height:a});P.setStyle(T.getItemStyle()),P.hoverStyle=S.getItemStyle(),P.setStyle({text:_[R],textAlign:S.get("textAlign"),textBorderRadius:S.get("textBorderRadius"),textPadding:S.get("textPadding"),textFill:null});var M=i.getModel("tooltip");M&&M.get("show")&&P.attr("tooltip",E.extend({content:_[R],formatter:M.get("formatter",!0)||function(){return _[R]},formatterParams:{componentType:"toolbox",name:R,title:_[R],$vars:["name","title"]},position:M.get("position",!0)||"bottom"},M.option)),w.setHoverStyle(P),i.get("showTitle")&&(P.__title=_[R],P.on("mouseover",function(){var U=S.getItemStyle(),F=i.get("orient")==="vertical"?i.get("right")==null?"right":"left":i.get("bottom")==null?"bottom":"top";P.setStyle({textFill:S.get("textFill")||U.fill||U.stroke||"#000",textBackgroundColor:S.get("textBackgroundColor"),textPosition:S.get("textPosition")||F})}).on("mouseout",function(){P.setStyle({textFill:null,textBackgroundColor:null})})),P.trigger(v.get("iconStatus."+R)||"normal"),t.add(P),P.on("click",E.bind(y.onclick,y,n,e,R)),N[R]=P})}c.layout(t,i,e),t.add(c.makeBackground(t.getBoundingRect(),i)),t.eachChild(function(v){var y=v.__title,x=v.hoverStyle;if(x&&y){var T=C.getBoundingRect(y,C.makeFont(x)),S=v.position[0]+t.position[0],b=v.position[1]+t.position[1]+a,_=!1;b+T.height>e.getHeight()&&(x.textPosition="top",_=!0);var I=_?-5-T.height:a+8;S+T.width/2>e.getWidth()?(x.textPosition=["100%",I],x.textAlign="right"):S-T.width/2<0&&(x.textPosition=[0,I],x.textAlign="left")}})},updateView:function(i,n,e,s){E.each(this._features,function(t){t.updateView&&t.updateView(t.model,n,e,s)})},remove:function(i,n){E.each(this._features,function(e){e.remove&&e.remove(i,n)}),this.group.removeAll()},dispose:function(i,n){E.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,B){function d(O,E,C){var A=O.getZoom(),w=O.getCenter(),m=E.zoom,f=O.dataToPoint(w);if(E.dx!=null&&E.dy!=null){f[0]-=E.dx,f[1]-=E.dy;var w=O.pointToData(f);O.setCenter(w)}if(m!=null){if(C){var c=C.min||0,o=C.max||Infinity;m=Math.max(Math.min(A*m,o),c)/A}O.scale[0]*=m,O.scale[1]*=m;var r=O.position,i=(E.originX-r[0])*(m-1),n=(E.originY-r[1])*(m-1);r[0]-=i,r[1]-=n,O.updateTransform();var w=O.pointToData(f);O.setCenter(w),O.setZoom(m*A)}return{center:O.getCenter(),zoom:O.getZoom()}}B.updateCenterAndZoom=d},"2BaD":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="CloseCircleOutlined";var f=B.a=E.forwardRef(m)},"2DNl":function(H,B,d){var O=d("IMiH"),E=d("loD1"),C=d("59Ip"),A=d("aKvl"),w=d("n1HI"),m=d("hX1E"),f=m.normalizeRadian,c=d("Sj9i"),o=d("hyiK"),r=O.CMD,i=Math.PI*2,n=1e-4;function e(y,x){return Math.abs(y-x)<n}var s=[-1,-1,-1],t=[-1,-1];function a(){var y=t[0];t[0]=t[1],t[1]=y}function l(y,x,T,S,b,_,I,L,N,D){if(D>x&&D>S&&D>_&&D>L||D<x&&D<S&&D<_&&D<L)return 0;var R=c.cubicRootAt(x,S,_,L,D,s);if(R===0)return 0;for(var P=0,M=-1,U,F,j=0;j<R;j++){var W=s[j],V=W===0||W===1?.5:1,z=c.cubicAt(y,T,b,I,W);if(z<N)continue;M<0&&(M=c.cubicExtrema(x,S,_,L,t),t[1]<t[0]&&M>1&&a(),U=c.cubicAt(x,S,_,L,t[0]),M>1&&(F=c.cubicAt(x,S,_,L,t[1]))),M===2?W<t[0]?P+=U<x?V:-V:W<t[1]?P+=F<U?V:-V:P+=L<F?V:-V:W<t[0]?P+=U<x?V:-V:P+=L<U?V:-V}return P}function u(y,x,T,S,b,_,I,L){if(L>x&&L>S&&L>_||L<x&&L<S&&L<_)return 0;var N=c.quadraticRootAt(x,S,_,L,s);if(N===0)return 0;var D=c.quadraticExtremum(x,S,_);if(D>=0&&D<=1){for(var R=0,P=c.quadraticAt(x,S,_,D),M=0;M<N;M++){var U=s[M]===0||s[M]===1?.5:1,F=c.quadraticAt(y,T,b,s[M]);if(F<I)continue;s[M]<D?R+=P<x?U:-U:R+=_<P?U:-U}return R}else{var U=s[0]===0||s[0]===1?.5:1,F=c.quadraticAt(y,T,b,s[0]);return F<I?0:_<x?U:-U}}function h(y,x,T,S,b,_,I,L){if(L-=x,L>T||L<-T)return 0;var N=Math.sqrt(T*T-L*L);s[0]=-N,s[1]=N;var D=Math.abs(S-b);if(D<1e-4)return 0;if(D%i<1e-4){S=0,b=i;var R=_?1:-1;return I>=s[0]+y&&I<=s[1]+y?R:0}if(_){var N=S;S=f(b),b=f(N)}else S=f(S),b=f(b);S>b&&(b+=i);for(var P=0,M=0;M<2;M++){var U=s[M];if(U+y>I){var F=Math.atan2(L,U),R=_?1:-1;F<0&&(F=i+F),(F>=S&&F<=b||F+i>=S&&F+i<=b)&&(F>Math.PI/2&&F<Math.PI*1.5&&(R=-R),P+=R)}}return P}function p(y,x,T,S,b){for(var _=0,I=0,L=0,N=0,D=0,R=0;R<y.length;){var P=y[R++];P===r.M&&R>1&&(T||(_+=o(I,L,N,D,S,b))),R===1&&(I=y[R],L=y[R+1],N=I,D=L);switch(P){case r.M:N=y[R++],D=y[R++],I=N,L=D;break;case r.L:if(T){if(E.containStroke(I,L,y[R],y[R+1],x,S,b))return!0}else _+=o(I,L,y[R],y[R+1],S,b)||0;I=y[R++],L=y[R++];break;case r.C:if(T){if(C.containStroke(I,L,y[R++],y[R++],y[R++],y[R++],y[R],y[R+1],x,S,b))return!0}else _+=l(I,L,y[R++],y[R++],y[R++],y[R++],y[R],y[R+1],S,b)||0;I=y[R++],L=y[R++];break;case r.Q:if(T){if(A.containStroke(I,L,y[R++],y[R++],y[R],y[R+1],x,S,b))return!0}else _+=u(I,L,y[R++],y[R++],y[R],y[R+1],S,b)||0;I=y[R++],L=y[R++];break;case r.A:var M=y[R++],U=y[R++],F=y[R++],j=y[R++],W=y[R++],V=y[R++];R+=1;var z=1-y[R++],Y=Math.cos(W)*F+M,$=Math.sin(W)*j+U;R>1?_+=o(I,L,Y,$,S,b):(N=Y,D=$);var ue=(S-M)*j/F+M;if(T){if(w.containStroke(M,U,j,W,W+V,z,x,ue,b))return!0}else _+=h(M,U,j,W,W+V,z,ue,b);I=Math.cos(W+V)*F+M,L=Math.sin(W+V)*j+U;break;case r.R:N=I=y[R++],D=L=y[R++];var ne=y[R++],ge=y[R++],Y=N+ne,$=D+ge;if(T){if(E.containStroke(N,D,Y,D,x,S,b)||E.containStroke(Y,D,Y,$,x,S,b)||E.containStroke(Y,$,N,$,x,S,b)||E.containStroke(N,$,N,D,x,S,b))return!0}else _+=o(Y,D,Y,$,S,b),_+=o(N,$,N,D,S,b);break;case r.Z:if(T){if(E.containStroke(I,L,N,D,x,S,b))return!0}else _+=o(I,L,N,D,S,b);I=N,L=D;break}}return!T&&!e(L,D)&&(_+=o(I,L,N,D,S,b)||0),_!==0}function g(y,x,T){return p(y,0,!1,x,T)}function v(y,x,T,S){return p(y,x,!0,T,S)}B.contain=g,B.containStroke=v},"2dDv":function(H,B,d){var O=d("bYtY"),E=d("Fofx"),C=d("+TT/"),A=d("aX7z"),w=d("D1WM"),m=d("IwbS"),f=d("OELB"),c=d("72pK"),o=O.each,r=Math.min,i=Math.max,n=Math.floor,e=Math.ceil,s=f.round,t=Math.PI;function a(g,v,y){this._axesMap=O.createHashMap(),this._axesLayout={},this.dimensions=g.dimensions,this._rect,this._model=g,this._init(g,v,y)}a.prototype={type:"parallel",constructor:a,_init:function(g,v,y){var x=g.dimensions,T=g.parallelAxisIndex;o(x,function(S,b){var _=T[b],I=v.getComponent("parallelAxis",_),L=this._axesMap.set(S,new w(S,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(g,v){this._updateAxesFromSeries(this._model,g)},containPoint:function(g){var v=this._makeLayoutInfo(),y=v.axisBase,x=v.layoutBase,T=v.pixelDimIndex,S=g[1-T],b=g[T];return S>=y&&S<=y+v.axisLength&&b>=x&&b<=x+v.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(g,v){v.eachSeries(function(y){if(!g.contains(y,v))return;var x=y.getData();o(this.dimensions,function(T){var S=this._axesMap.get(T);S.scale.unionExtentFromData(x,x.mapDimension(T)),A.niceScaleExtent(S.scale,S.model)},this)},this)},resize:function(g,v){this._rect=C.getLayoutRect(g.getBoxLayoutParams(),{width:v.getWidth(),height:v.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var g=this._model,v=this._rect,y=["x","y"],x=["width","height"],T=g.get("layout"),S=T==="horizontal"?0:1,b=v[x[S]],_=[0,b],I=this.dimensions.length,L=l(g.get("axisExpandWidth"),_),N=l(g.get("axisExpandCount")||0,[0,I]),D=g.get("axisExpandable")&&I>3&&I>N&&N>1&&L>0&&b>0,R=g.get("axisExpandWindow"),P;if(R)P=l(R[1]-R[0],_),R[1]=R[0]+P;else{P=l(L*(N-1),_);var M=g.get("axisExpandCenter")||n(I/2);R=[L*M-P/2],R[1]=R[0]+P}var U=(b-P)/(I-N);U<3&&(U=0);var F=[n(s(R[0]/L,1))+1,e(s(R[1]/L,1))-1],j=U/L*R[0];return{layout:T,pixelDimIndex:S,layoutBase:v[y[S]],layoutLength:b,axisBase:v[y[1-S]],axisLength:v[x[1-S]],axisExpandable:D,axisExpandWidth:L,axisCollapseWidth:U,axisExpandWindow:R,axisCount:I,winInnerIndices:F,axisExpandWindow0Pos:j}},_layoutAxes:function(){var g=this._rect,v=this._axesMap,y=this.dimensions,x=this._makeLayoutInfo(),T=x.layout;v.each(function(S){var b=[0,x.axisLength],_=S.inverse?1:0;S.setExtent(b[_],b[1-_])}),o(y,function(S,b){var _=(x.axisExpandable?h:u)(b,x),I={horizontal:{x:_.position,y:x.axisLength},vertical:{x:0,y:_.position}},L={horizontal:t/2,vertical:0},N=[I[T].x+g.x,I[T].y+g.y],D=L[T],R=E.create();E.rotate(R,R,D),E.translate(R,R,N),this._axesLayout[S]={position:N,rotation:D,transform:R,axisNameAvailableWidth:_.axisNameAvailableWidth,axisLabelShow:_.axisLabelShow,nameTruncateMaxWidth:_.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(g){return this._axesMap.get(g)},dataToPoint:function(g,v){return this.axisCoordToPoint(this._axesMap.get(v).dataToCoord(g),v)},eachActiveState:function(g,v,y,x){y==null&&(y=0),x==null&&(x=g.count());var T=this._axesMap,S=this.dimensions,b=[],_=[];O.each(S,function(U){b.push(g.mapDimension(U)),_.push(T.get(U).model)});for(var I=this.hasAxisBrushed(),L=y;L<x;L++){var N;if(!I)N="normal";else{N="active";for(var D=g.getValues(b,L),R=0,P=S.length;R<P;R++){var M=_[R].getActiveState(D[R]);if(M==="inactive"){N="inactive";break}}}v(N,L)}},hasAxisBrushed:function(){for(var g=this.dimensions,v=this._axesMap,y=!1,x=0,T=g.length;x<T;x++)v.get(g[x]).model.getActiveState()!=="normal"&&(y=!0);return y},axisCoordToPoint:function(g,v){var y=this._axesLayout[v];return m.applyTransform([g,0],y.transform)},getAxisLayout:function(g){return O.clone(this._axesLayout[g])},getSlidedAxisExpandWindow:function(g){var v=this._makeLayoutInfo(),y=v.pixelDimIndex,x=v.axisExpandWindow.slice(),T=x[1]-x[0],S=[0,v.axisExpandWidth*(v.axisCount-1)];if(!this.containPoint(g))return{behavior:"none",axisExpandWindow:x};var b=g[y]-v.layoutBase-v.axisExpandWindow0Pos,_,I="slide",L=v.axisCollapseWidth,N=this._model.get("axisExpandSlideTriggerArea"),D=N[0]!=null;if(L)D&&L&&b<T*N[0]?(I="jump",_=b-T*N[2]):D&&L&&b>T*(1-N[0])?(I="jump",_=b-T*(1-N[2])):(_=b-T*N[1])>=0&&(_=b-T*(1-N[1]))<=0&&(_=0),_*=v.axisExpandWidth/L,_?c(_,x,S,"all"):I="none";else{var T=x[1]-x[0],R=S[1]*b/T;x=[i(0,R-T/2)],x[1]=r(S[1],x[0]+T),x[0]=x[1]-T}return{axisExpandWindow:x,behavior:I}}};function l(g,v){return r(i(g,v[0]),v[1])}function u(g,v){var y=v.layoutLength/(v.axisCount-1);return{position:y*g,axisNameAvailableWidth:y,axisLabelShow:!0}}function h(g,v){var y=v.layoutLength,x=v.axisExpandWidth,T=v.axisCount,S=v.axisCollapseWidth,b=v.winInnerIndices,_,I=S,L=!1,N;return g<b[0]?(_=g*S,N=S):g<=b[1]?(_=v.axisExpandWindow0Pos+g*x-v.axisExpandWindow[0],I=x,L=!0):(_=y-(T-1-g)*S,N=S),{position:_,axisNameAvailableWidth:I,axisLabelShow:L,nameTruncateMaxWidth:N}}var p=a;H.exports=p},"2fGM":function(H,B,d){var O=d("bYtY"),E=d("bLfw"),C=d("nkfE"),A=d("ICMv"),w=E.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});O.merge(w.prototype,A);var m={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",w,f,m.angle),C("radius",w,f,m.radius)},"2fM7":function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),s=d("BGR+"),t=d("TSYQ"),a=d.n(t),l=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("LK+K"),g=d("rePB"),v=d("Ff2n"),y=d("ODXe"),x=d("4IlW"),T=d("bX4T"),S=d("YrtM"),b=d("+nKL"),_=function(_e){var Le=_e.className,Ze=_e.customizeIcon,it=_e.customizeIconProps,ft=_e.onMouseDown,Nt=_e.onClick,Ar=_e.children,Mr;return typeof Ze=="function"?Mr=Ze(it):Mr=Ze,e.createElement("span",{className:Le,onMouseDown:function(Mt){Mt.preventDefault(),ft&&ft(Mt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Nt,"aria-hidden":!0},Mr!==void 0?Mr:e.createElement("span",{className:a()(Le.split(/\s+/).map(function(un){return"".concat(un,"-icon")}))},Ar))},I=_,L=function(_e,Le){var Ze=_e.prefixCls,it=_e.id,ft=_e.flattenOptions,Nt=_e.childrenAsData,Ar=_e.values,Mr=_e.searchValue,un=_e.multiple,Mt=_e.defaultActiveFirstOption,at=_e.height,lt=_e.itemHeight,rr=_e.notFoundContent,Bt=_e.open,_t=_e.menuItemSelectedIcon,Kt=_e.virtual,wt=_e.onSelect,Ut=_e.onToggleOpen,Sr=_e.onActiveValue,hr=_e.onScroll,gr=_e.onMouseEnter,Jr="".concat(Ze,"-item"),$r=Object(S.a)(function(){return ft},[Bt,ft],function(Ve,qe){return qe[0]&&Ve[1]!==qe[1]}),Pn=e.useRef(null),Dn=function(qe){qe.preventDefault()},Zn=function(qe){Pn.current&&Pn.current.scrollTo({index:qe})},li=function(qe){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ct=$r.length,Jt=0;Jt<ct;Jt+=1){var Rr=(qe+Jt*xt+ct)%ct,Ir=$r[Rr],Xr=Ir.group,qt=Ir.data;if(!Xr&&!qt.disabled)return Rr}return-1},Ai=e.useState(function(){return li(0)}),Ii=Object(y.a)(Ai,2),$e=Ii[0],Se=Ii[1],Re=function(qe){Se(qe);var xt=$r[qe];if(!xt){Sr(null,-1);return}Sr(xt.data.value,qe)};e.useEffect(function(){Re(Mt!==!1?li(0):-1)},[$r.length,Mr]),e.useEffect(function(){var Ve=setTimeout(function(){if(!un&&Bt&&Ar.size===1){var qe=Array.from(Ar)[0],xt=$r.findIndex(function(ct){var Jt=ct.data;return Jt.value===qe});Re(xt),Zn(xt)}});return function(){return clearTimeout(Ve)}},[Bt]);var je=function(qe){qe!==void 0&&wt(qe,{selected:!Ar.has(qe)}),un||Ut(!1)};if(e.useImperativeHandle(Le,function(){return{onKeyDown:function(qe){var xt=qe.which;switch(xt){case x.a.UP:case x.a.DOWN:{var ct=0;if(xt===x.a.UP?ct=-1:xt===x.a.DOWN&&(ct=1),ct!==0){var Jt=li($e+ct,ct);Zn(Jt),Re(Jt)}break}case x.a.ENTER:{var Rr=$r[$e];Rr&&!Rr.data.disabled?je(Rr.data.value):je(void 0),Bt&&qe.preventDefault();break}case x.a.ESC:Ut(!1)}},onKeyUp:function(){},scrollTo:function(qe){Zn(qe)}}}),$r.length===0)return e.createElement("div",{role:"listbox",id:"".concat(it,"_list"),className:"".concat(Jr,"-empty"),onMouseDown:Dn},rr);function Ye(Ve){var qe=$r[Ve];if(!qe)return null;var xt=qe.data||{},ct=xt.value,Jt=xt.label,Rr=xt.children,Ir=Object(T.a)(xt,!0),Xr=Nt?Rr:Jt;return qe?e.createElement("div",Object.assign({"aria-label":typeof Xr=="string"?Xr:null},Ir,{key:Ve,role:"option",id:"".concat(it,"_list_").concat(Ve),"aria-selected":Ar.has(ct)}),ct):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(it,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ye($e-1),Ye($e),Ye($e+1)),e.createElement(b.a,{itemKey:"key",ref:Pn,data:$r,height:at,itemHeight:lt,fullHeight:!1,onMouseDown:Dn,onScroll:hr,virtual:Kt,onMouseEnter:gr},function(Ve,qe){var xt,ct=Ve.group,Jt=Ve.groupOption,Rr=Ve.data,Ir=Rr.label,Xr=Rr.key;if(ct)return e.createElement("div",{className:a()(Jr,"".concat(Jr,"-group"))},Ir!==void 0?Ir:Xr);var qt=Rr.disabled,pn=Rr.value,fr=Rr.title,mn=Rr.children,en=Rr.style,kr=Rr.className,Gn=Object(v.a)(Rr,["disabled","value","title","children","style","className"]),di=Ar.has(pn),_i="".concat(Jr,"-option"),Br=a()(Jr,_i,kr,(xt={},Object(g.a)(xt,"".concat(_i,"-grouped"),Jt),Object(g.a)(xt,"".concat(_i,"-active"),$e===qe&&!qt),Object(g.a)(xt,"".concat(_i,"-disabled"),qt),Object(g.a)(xt,"".concat(_i,"-selected"),di),xt)),sn=Nt?mn:Ir,Sn=!_t||typeof _t=="function"||di;return e.createElement("div",Object.assign({},Gn,{"aria-selected":di,className:Br,title:fr,onMouseMove:function(){if($e===qe||qt)return;Re(qe)},onClick:function(){qt||je(pn)},style:en}),e.createElement("div",{className:"".concat(_i,"-content")},sn||pn),e.isValidElement(_t)||di,Sn&&e.createElement(I,{className:"".concat(Jr,"-option-state"),customizeIcon:_t,customizeIconProps:{isSelected:di}},di?"\u2713":null))}))},N=e.forwardRef(L);N.displayName="OptionList";var D=N,R=function(){return null};R.isSelectOption=!0;var P=R,M=function(){return null};M.isSelectOptGroup=!0;var U=M,F=d("VTBJ"),j=d("Zm9Q");function W(Ie){var _e=Ie.key,Le=Ie.props,Ze=Le.children,it=Le.value,ft=Object(v.a)(Le,["children","value"]);return Object(F.a)({key:_e,value:it!==void 0?it:_e,children:Ze},ft)}function V(Ie){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(j.a)(Ie).map(function(Le,Ze){if(!e.isValidElement(Le)||!Le.type)return null;var it=Le.type.isSelectOptGroup,ft=Le.key,Nt=Le.props,Ar=Nt.children,Mr=Object(v.a)(Nt,["children"]);return _e||!it?W(Le):Object(F.a)(Object(F.a)({key:"__RC_SELECT_GRP__".concat(ft===null?Ze:ft,"__"),label:ft},Mr),{},{options:V(Ar)})}).filter(function(Le){return Le})}var z=d("KQm4"),Y=d("T5bk"),$=d("U8pU"),ue=d("Kwbf");function ne(Ie){return Array.isArray(Ie)?Ie:Ie!==void 0?[Ie]:[]}function ge(Ie,_e){var Le=_e.labelInValue,Ze=_e.combobox;if(Ie===void 0||Ie===""&&Ze)return[];var it=Array.isArray(Ie)?Ie:[Ie];return Le?it.map(function(ft){var Nt=ft.key,Ar=ft.value;return Ar!==void 0?Ar:Nt}):it}function Oe(Ie,_e){var Le=_e.optionLabelProp,Ze=_e.labelInValue,it=_e.prevValue,ft=_e.options,Nt=_e.getLabeledValue,Ar=Ie;return Ze&&(Ar=Ar.map(function(Mr){return Nt(Mr,{options:ft,prevValue:it,labelInValue:Ze,optionLabelProp:Le})})),Ar}function De(Ie,_e){var Le=Object(z.a)(_e),Ze;for(Ze=Ie.length-1;Ze>=0&&Ie[Ze].disabled;Ze-=1);var it=null;return Ze!==-1&&(it=Le[Ze],Le.splice(Ze,1)),{values:Le,removedValue:it}}var He=typeof window!="undefined"&&window.document&&window.document.documentElement,pe=He,Ue=0;function oe(){var Ie;return pe?(Ie=Ue,Ue+=1):Ie="TEST_OR_SSR",Ie}function ee(Ie,_e){var Le=Ie.key,Ze;return"value"in Ie&&(Ze=Ie.value),Le!=null?Le:Ze!==void 0?Ze:"rc-index-key-".concat(_e)}function Xe(Ie){var _e=[];function Le(Ze,it){Ze.forEach(function(ft){it||!("options"in ft)?_e.push({key:ee(ft,_e.length),groupOption:it,data:ft}):(_e.push({key:ee(ft,_e.length),group:!0,data:ft}),Le(ft.options,!0))})}return Le(Ie,!1),_e}function se(Ie){var _e=Object(F.a)({},Ie);return"props"in _e||Object.defineProperty(_e,"props",{get:function(){return Object(ue.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),_e}}),_e}function Q(Ie,_e){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ze=Le.prevValueOptions,it=Ze===void 0?[]:Ze,ft=new Map;return _e.forEach(function(Nt){if(!Nt.group){var Ar=Nt.data;ft.set(Ar.value,Ar)}}),Ie.map(function(Nt){var Ar=ft.get(Nt);return Ar||(Ar=Object(F.a)({},it.find(function(Mr){return Mr._INTERNAL_OPTION_VALUE_===Nt}))),se(Ar)})}var G=function(_e,Le){var Ze=Le.options,it=Le.prevValue,ft=Le.labelInValue,Nt=Le.optionLabelProp,Ar=Q([_e],Ze)[0],Mr={value:_e},un,Mt=ne(it);return ft&&(un=Mt.find(function(at){return Object($.a)(at)==="object"&&"value"in at?at.value===_e:at.key===_e})),un&&Object($.a)(un)==="object"&&"label"in un?(Mr.label=un.label,Ar&&typeof un.label=="string"&&typeof Ar[Nt]=="string"&&un.label.trim()!==Ar[Nt].trim()&&Object(ue.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Ar&&Nt in Ar?Mr.label=Ar[Nt]:Mr.label=_e,Mr.key=Mr.value,Mr};function J(Ie){return ne(Ie).join("")}function ve(Ie){return function(_e,Le){var Ze=_e.toLowerCase();if("options"in Le)return J(Le.label).toLowerCase().includes(Ze);var it=Le[Ie],ft=J(it).toLowerCase();return ft.includes(Ze)}}function de(Ie,_e,Le){var Ze=Le.optionFilterProp,it=Le.filterOption,ft=[],Nt;return it===!1?_e:(typeof it=="function"?Nt=it:Nt=ve(Ze),_e.forEach(function(Ar){if("options"in Ar){var Mr=Nt(Ie,Ar);if(Mr)ft.push(Ar);else{var un=Ar.options.filter(function(Mt){return Nt(Ie,Mt)});un.length&&ft.push(Object(F.a)(Object(F.a)({},Ar),{},{options:un}))}return}Nt(Ie,se(Ar))&&ft.push(Ar)}),ft)}function Ce(Ie,_e){if(!_e||!_e.length)return null;var Le=!1;function Ze(ft,Nt){var Ar=Object(Y.a)(Nt),Mr=Ar[0],un=Ar.slice(1);if(!Mr)return[ft];var Mt=ft.split(Mr);return Le=Le||Mt.length>1,Mt.reduce(function(at,lt){return[].concat(Object(z.a)(at),Object(z.a)(Ze(lt,un)))},[]).filter(function(at){return at})}var it=Ze(Ie,_e);return Le?it:null}function Ee(Ie,_e){var Le=Q([Ie],_e)[0];return Le.disabled}function le(Ie,_e,Le,Ze){var it=ne(_e).slice().sort(),ft=Object(z.a)(Ie),Nt=new Set;return Ie.forEach(function(Ar){Ar.options?Ar.options.forEach(function(Mr){Nt.add(Mr.value)}):Nt.add(Ar.value)}),it.forEach(function(Ar){var Mr=Ze?Ar.value:Ar;if(!Nt.has(Mr)){var un;ft.push(Ze?(un={},Object(g.a)(un,Le,Ar.label),Object(g.a)(un,"value",Mr),un):{value:Mr})}}),ft}var fe=d("6cGi"),xe=d("HTfv"),Qe=d("c+Xe"),ot=function(_e,Le){var Ze=_e.prefixCls,it=_e.id,ft=_e.inputElement,Nt=_e.disabled,Ar=_e.tabIndex,Mr=_e.autoFocus,un=_e.autoComplete,Mt=_e.editable,at=_e.accessibilityIndex,lt=_e.value,rr=_e.onKeyDown,Bt=_e.onMouseDown,_t=_e.onChange,Kt=_e.onPaste,wt=_e.onCompositionStart,Ut=_e.onCompositionEnd,Sr=_e.open,hr=_e.attrs,gr=ft||e.createElement("input",null),Jr=gr,$r=Jr.ref,Pn=Jr.props,Dn=Pn.onKeyDown,Zn=Pn.onChange,li=Pn.onMouseDown,Ai=Pn.onCompositionStart,Ii=Pn.onCompositionEnd,$e=Pn.style;return gr=e.cloneElement(gr,Object(F.a)(Object(F.a)({id:it,ref:Object(Qe.a)(Le,$r),disabled:Nt,tabIndex:Ar,autoComplete:un||"off",autoFocus:Mr,className:"".concat(Ze,"-selection-search-input"),style:Object(F.a)(Object(F.a)({},$e),{},{opacity:Mt?null:0}),role:"combobox","aria-expanded":Sr,"aria-haspopup":"listbox","aria-owns":"".concat(it,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(it,"_list"),"aria-activedescendant":"".concat(it,"_list_").concat(at)},hr),{},{value:Mt?lt:"",readOnly:!Mt,unselectable:Mt?null:"on",onKeyDown:function(Re){rr(Re),Dn&&Dn(Re)},onMouseDown:function(Re){Bt(Re),li&&li(Re)},onChange:function(Re){_t(Re),Zn&&Zn(Re)},onCompositionStart:function(Re){wt(Re),Ai&&Ai(Re)},onCompositionEnd:function(Re){Ut(Re),Ii&&Ii(Re)},onPaste:Kt})),gr},Je=e.forwardRef(ot);Je.displayName="Input";var Te=Je;function et(Ie,_e){pe?e.useLayoutEffect(Ie,_e):e.useEffect(Ie,_e)}var ze="__RC_SELECT_MAX_REST_COUNT__",nt=function(_e){var Le=_e.id,Ze=_e.prefixCls,it=_e.values,ft=_e.open,Nt=_e.searchValue,Ar=_e.inputRef,Mr=_e.placeholder,un=_e.disabled,Mt=_e.mode,at=_e.showSearch,lt=_e.autoFocus,rr=_e.autoComplete,Bt=_e.accessibilityIndex,_t=_e.tabIndex,Kt=_e.removeIcon,wt=_e.choiceTransitionName,Ut=_e.maxTagCount,Sr=_e.maxTagTextLength,hr=_e.maxTagPlaceholder,gr=hr===void 0?function(pn){return"+ ".concat(pn.length," ...")}:hr,Jr=_e.tagRender,$r=_e.onSelect,Pn=_e.onInputChange,Dn=_e.onInputPaste,Zn=_e.onInputKeyDown,li=_e.onInputMouseDown,Ai=_e.onInputCompositionStart,Ii=_e.onInputCompositionEnd,$e=e.useState(!1),Se=Object(y.a)($e,2),Re=Se[0],je=Se[1],Ye=e.useRef(null),Ve=e.useState(0),qe=Object(y.a)(Ve,2),xt=qe[0],ct=qe[1];e.useEffect(function(){je(!0)},[]);var Jt=ft||Mt==="tags"?Nt:"",Rr=Mt==="tags"||ft&&at;et(function(){ct(Ye.current.scrollWidth)},[Jt]);var Ir=it,Xr;typeof Ut=="number"&&(Xr=it.length-Ut,Ir=it.slice(0,Ut)),typeof Sr=="number"&&(Ir=Ir.map(function(pn){var fr=pn.label,mn=Object(v.a)(pn,["label"]),en=fr;if(typeof fr=="string"||typeof fr=="number"){var kr=String(en);kr.length>Sr&&(en="".concat(kr.slice(0,Sr),"..."))}return Object(F.a)(Object(F.a)({},mn),{},{label:en})})),Xr>0&&Ir.push({key:ze,label:typeof gr=="function"?gr(it.slice(Ut)):gr});var qt=e.createElement(xe.CSSMotionList,{component:!1,keys:Ir,motionName:wt,motionAppear:Re},function(pn){var fr=pn.key,mn=pn.label,en=pn.value,kr=pn.disabled,Gn=pn.className,di=pn.style,_i=fr||en,Br=fr!==ze&&!kr,sn=function(gt){gt.preventDefault(),gt.stopPropagation()},Sn=function(gt){gt&>.stopPropagation(),$r(en,{selected:!1})};return typeof Jr=="function"?e.createElement("span",{key:_i,onMouseDown:sn,className:Gn,style:di},Jr({label:mn,value:en,disabled:kr,closable:Br,onClose:Sn})):e.createElement("span",{key:_i,className:a()(Gn,"".concat(Ze,"-selection-item"),Object(g.a)({},"".concat(Ze,"-selection-item-disabled"),kr)),style:di},e.createElement("span",{className:"".concat(Ze,"-selection-item-content")},mn),Br&&e.createElement(I,{className:"".concat(Ze,"-selection-item-remove"),onMouseDown:sn,onClick:Sn,customizeIcon:Kt},"\xD7"))});return e.createElement(e.Fragment,null,qt,e.createElement("span",{className:"".concat(Ze,"-selection-search"),style:{width:xt}},e.createElement(Te,{ref:Ar,open:ft,prefixCls:Ze,id:Le,inputElement:null,disabled:un,autoFocus:lt,autoComplete:rr,editable:Rr,accessibilityIndex:Bt,value:Jt,onKeyDown:Zn,onMouseDown:li,onChange:Pn,onPaste:Dn,onCompositionStart:Ai,onCompositionEnd:Ii,tabIndex:_t,attrs:Object(T.a)(_e,!0)}),e.createElement("span",{ref:Ye,className:"".concat(Ze,"-selection-search-mirror"),"aria-hidden":!0},Jt,"\xA0")),!it.length&&!Jt&&e.createElement("span",{className:"".concat(Ze,"-selection-placeholder")},Mr))},Ot=nt,Ct=function(_e){var Le=_e.inputElement,Ze=_e.prefixCls,it=_e.id,ft=_e.inputRef,Nt=_e.disabled,Ar=_e.autoFocus,Mr=_e.autoComplete,un=_e.accessibilityIndex,Mt=_e.mode,at=_e.open,lt=_e.values,rr=_e.placeholder,Bt=_e.tabIndex,_t=_e.showSearch,Kt=_e.searchValue,wt=_e.activeValue,Ut=_e.onInputKeyDown,Sr=_e.onInputMouseDown,hr=_e.onInputChange,gr=_e.onInputPaste,Jr=_e.onInputCompositionStart,$r=_e.onInputCompositionEnd,Pn=e.useState(!1),Dn=Object(y.a)(Pn,2),Zn=Dn[0],li=Dn[1],Ai=Mt==="combobox",Ii=Ai||_t&&at,$e=lt[0],Se=Kt||"";Ai&&wt&&!Zn&&(Se=wt),e.useEffect(function(){Ai&&li(!1)},[Ai,wt]);var Re=Mt!=="combobox"&&!at?!1:!!Se,je=$e&&(typeof $e.label=="string"||typeof $e.label=="number")?$e.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(Ze,"-selection-search")},e.createElement(Te,{ref:ft,prefixCls:Ze,id:it,open:at,inputElement:Le,disabled:Nt,autoFocus:Ar,autoComplete:Mr,editable:Ii,accessibilityIndex:un,value:Se,onKeyDown:Ut,onMouseDown:Sr,onChange:function(Ve){li(!0),hr(Ve)},onPaste:gr,onCompositionStart:Jr,onCompositionEnd:$r,tabIndex:Bt,attrs:Object(T.a)(_e,!0)})),!Ai&&$e&&!Re&&e.createElement("span",{className:"".concat(Ze,"-selection-item"),title:je},$e.label),!$e&&!Re&&e.createElement("span",{className:"".concat(Ze,"-selection-placeholder")},rr))},Tt=Ct;function Dt(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,_e=e.useRef(null),Le=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Le.current)}},[]);function Ze(it){(it||_e.current===null)&&(_e.current=it),window.clearTimeout(Le.current),Le.current=window.setTimeout(function(){_e.current=null},Ie)}return[function(){return _e.current},Ze]}var Be=function(_e,Le){var Ze=Object(e.useRef)(null),it=Object(e.useRef)(!1),ft=_e.prefixCls,Nt=_e.multiple,Ar=_e.open,Mr=_e.mode,un=_e.showSearch,Mt=_e.tokenWithEnter,at=_e.onSearch,lt=_e.onSearchSubmit,rr=_e.onToggleOpen,Bt=_e.onInputKeyDown,_t=_e.domRef;e.useImperativeHandle(Le,function(){return{focus:function(){Ze.current.focus()},blur:function(){Ze.current.blur()}}});var Kt=Dt(0),wt=Object(y.a)(Kt,2),Ut=wt[0],Sr=wt[1],hr=function(Re){var je=Re.which;(je===x.a.UP||je===x.a.DOWN)&&Re.preventDefault(),Bt&&Bt(Re),je===x.a.ENTER&&Mr==="tags"&&!it.current&&!Ar&<(Re.target.value),[x.a.SHIFT,x.a.TAB,x.a.BACKSPACE,x.a.ESC].includes(je)||rr(!0)},gr=function(){Sr(!0)},Jr=Object(e.useRef)(null),$r=function(Re){at(Re,!0,it.current)!==!1&&rr(!0)},Pn=function(){it.current=!0},Dn=function(){it.current=!1},Zn=function(Re){var je=Re.target.value;if(Mt&&Jr.current&&/[\r\n]/.test(Jr.current)){var Ye=Jr.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");je=je.replace(Ye,Jr.current)}Jr.current=null,$r(je)},li=function(Re){var je=Re.clipboardData,Ye=je.getData("text");Jr.current=Ye},Ai=function(Re){var je=Ut();if(Re.target!==Ze.current){je||Re.preventDefault();var Ye=document.body.style.msTouchAction!==void 0;Ye?setTimeout(function(){Ze.current.focus()}):Ze.current.focus()}(Mr!=="combobox"&&(!un||!je)||!Ar)&&(Ar&&at("",!0,!1),rr())},Ii={inputRef:Ze,onInputKeyDown:hr,onInputMouseDown:gr,onInputChange:Zn,onInputPaste:li,onInputCompositionStart:Pn,onInputCompositionEnd:Dn},$e=Nt?e.createElement(Ot,Object.assign({},_e,Ii)):e.createElement(Tt,Object.assign({},_e,Ii));return e.createElement("div",{ref:_t,className:"".concat(ft,"-selector"),onMouseDown:Ai},$e)},ie=e.forwardRef(Be);ie.displayName="Selector";var X=ie,Fe=d("Uaa1"),Ne=function(_e){var Le=typeof _e!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Le,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Le,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Le,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Le,adjustY:1}}}},q=function(_e,Le){var Ze=_e.prefixCls,it=_e.disabled,ft=_e.visible,Nt=_e.children,Ar=_e.popupElement,Mr=_e.containerWidth,un=_e.animation,Mt=_e.transitionName,at=_e.dropdownStyle,lt=_e.dropdownClassName,rr=_e.direction,Bt=rr===void 0?"ltr":rr,_t=_e.dropdownMatchSelectWidth,Kt=_t===void 0?!0:_t,wt=_e.dropdownRender,Ut=_e.dropdownAlign,Sr=_e.getPopupContainer,hr=_e.empty,gr=_e.getTriggerDOMNode,Jr=Object(v.a)(_e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),$r="".concat(Ze,"-dropdown"),Pn=Ar;wt&&(Pn=wt(Ar));var Dn=e.useMemo(function(){return Ne(Kt)},[Kt]),Zn=un?"".concat($r,"-").concat(un):Mt,li=e.useRef(null);e.useImperativeHandle(Le,function(){return{getPopupElement:function(){return li.current}}});var Ai=Object(F.a)({minWidth:Mr},at);return typeof Kt=="number"?Ai.width=Kt:Kt&&(Ai.width=Mr),e.createElement(Fe.a,Object.assign({},Jr,{showAction:[],hideAction:[],popupPlacement:Bt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Dn,prefixCls:$r,popupTransitionName:Zn,popup:e.createElement("div",{ref:li},Pn),popupAlign:Ut,popupVisible:ft,getPopupContainer:Sr,popupClassName:a()(lt,Object(g.a)({},"".concat($r,"-empty"),hr)),popupStyle:Ai,getTriggerDOMNode:gr}),Nt)},ht=e.forwardRef(q);ht.displayName="SelectTrigger";var Rt=ht,ut="RC_SELECT_INTERNAL_PROPS_MARK";function Xt(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,_e=e.useState(!1),Le=Object(y.a)(_e,2),Ze=Le[0],it=Le[1],ft=e.useRef(null),Nt=function(){window.clearTimeout(ft.current)};e.useEffect(function(){return Nt},[]);var Ar=function(un,Mt){Nt(),ft.current=window.setTimeout(function(){it(un),Mt&&Mt()},Ie)};return[Ze,Ar,Nt]}function or(Ie,_e,Le){var Ze=e.useRef(null);Ze.current={elements:Ie.filter(function(it){return it}),open:_e,triggerOpen:Le},e.useEffect(function(){function it(ft){var Nt=ft.target;Ze.current.open&&Ze.current.elements.every(function(Ar){return!Ar.contains(Nt)&&Ar!==Nt})&&Ze.current.triggerOpen(!1)}return window.addEventListener("mousedown",it),function(){return window.removeEventListener("mousedown",it)}},[])}function Zr(Ie){var _e=e.useRef(Ie),Le=e.useMemo(function(){var Ze=new Map;_e.current.forEach(function(ft){var Nt=ft.value,Ar=ft.label;Nt!==Ar&&Ze.set(Nt,Ar)});var it=Ie.map(function(ft){var Nt=Ze.get(ft.value);return ft.value===ft.label&&Nt?Object(F.a)(Object(F.a)({},ft),{},{label:Nt}):ft});return _e.current=it,it},[Ie]);return Le}function ar(Ie,_e){var Le=e.useRef(null),Ze=e.useMemo(function(){var ft=new Map;return _e.forEach(function(Nt){var Ar=Nt.data.value;ft.set(Ar,Nt)}),ft},[Ie,_e]);Le.current=Ze;var it=function(Nt){return Nt.map(function(Ar){return Le.current.get(Ar)}).filter(Boolean)};return it}var dr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function er(Ie){var _e=Ie.prefixCls,Le=Ie.components.optionList,Ze=Ie.convertChildrenToData,it=Ie.flattenOptions,ft=Ie.getLabeledValue,Nt=Ie.filterOptions,Ar=Ie.isValueDisabled,Mr=Ie.findValueOption,un=Ie.warningProps,Mt=Ie.fillOptionsWithMissingValue,at=Ie.omitDOMProps;function lt(Bt,_t){var Kt,wt=Bt.prefixCls,Ut=wt===void 0?_e:wt,Sr=Bt.className,hr=Bt.id,gr=Bt.open,Jr=Bt.defaultOpen,$r=Bt.options,Pn=Bt.children,Dn=Bt.mode,Zn=Bt.value,li=Bt.defaultValue,Ai=Bt.labelInValue,Ii=Bt.showSearch,$e=Bt.inputValue,Se=Bt.searchValue,Re=Bt.filterOption,je=Bt.optionFilterProp,Ye=je===void 0?"value":je,Ve=Bt.autoClearSearchValue,qe=Ve===void 0?!0:Ve,xt=Bt.onSearch,ct=Bt.allowClear,Jt=Bt.clearIcon,Rr=Bt.showArrow,Ir=Bt.inputIcon,Xr=Bt.menuItemSelectedIcon,qt=Bt.disabled,pn=Bt.loading,fr=Bt.defaultActiveFirstOption,mn=Bt.notFoundContent,en=mn===void 0?"Not Found":mn,kr=Bt.optionLabelProp,Gn=Bt.backfill,di=Bt.getInputElement,_i=Bt.getPopupContainer,Br=Bt.listHeight,sn=Br===void 0?200:Br,Sn=Bt.listItemHeight,Pt=Sn===void 0?20:Sn,gt=Bt.animation,Et=Bt.transitionName,Lt=Bt.virtual,kt=Bt.dropdownStyle,yt=Bt.dropdownClassName,Qt=Bt.dropdownMatchSelectWidth,tr=Bt.dropdownRender,ir=Bt.dropdownAlign,yr=Bt.showAction,xn=yr===void 0?[]:yr,vn=Bt.direction,Wn=Bt.tokenSeparators,Yr=Bt.tagRender,xr=Bt.onPopupScroll,ln=Bt.onDropdownVisibleChange,On=Bt.onFocus,In=Bt.onBlur,Un=Bt.onKeyUp,ti=Bt.onKeyDown,ui=Bt.onMouseDown,si=Bt.onChange,Pi=Bt.onSelect,zi=Bt.onDeselect,Ri=Bt.onClear,Yi=Bt.internalProps,$n=Yi===void 0?{}:Yi,gn=Object(v.a)(Bt,["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"]),mi=$n.mark===ut,Hi=at?at(gn):gn;dr.forEach(function(Wi){delete Hi[Wi]});var Li=Object(e.useRef)(null),Bi=Object(e.useRef)(null),wr=Object(e.useRef)(null),lr=Object(e.useRef)(null),on=Object(e.useMemo)(function(){return(Wn||[]).some(function(Wi){return[`
|
|
|
`,`\r
|
|
|
`].includes(Wi)})},[Wn]),Zt=Xt(),br=Object(y.a)(Zt,3),Or=br[0],Wr=br[1],An=br[2],bt=Object(e.useState)(),mr=Object(y.a)(bt,2),vr=mr[0],Fr=mr[1];Object(e.useEffect)(function(){Fr("rc_select_".concat(oe()))},[]);var nn=hr||vr,cn=kr;cn===void 0&&(cn=$r?"label":"children");var tn=Dn==="combobox"?!1:Ai,Ln=Dn==="tags"||Dn==="multiple",Tn=Ii!==void 0?Ii:Ln||Dn==="combobox",Xn=Object(e.useRef)(null);e.useImperativeHandle(_t,function(){return{focus:wr.current.focus,blur:wr.current.blur}});var ci=Object(fe.a)(li,{value:Zn}),Jn=Object(y.a)(ci,2),pi=Jn[0],Si=Jn[1],Ni=Object(e.useMemo)(function(){return ge(pi,{labelInValue:tn,combobox:Dn==="combobox"})},[pi,tn]),xi=Object(e.useMemo)(function(){return new Set(Ni)},[Ni]),yi=Object(e.useState)(null),vi=Object(y.a)(yi,2),Ti=vi[0],Ui=vi[1],$i=Object(e.useState)(""),Di=Object(y.a)($i,2),ua=Di[0],aa=Di[1],Gi=ua;Dn==="combobox"&&pi!==void 0?Gi=pi:Se!==void 0?Gi=Se:$e&&(Gi=$e);var Vi=Object(e.useMemo)(function(){var Wi=$r;return Wi===void 0&&(Wi=Ze(Pn)),Dn==="tags"&&Mt&&(Wi=Mt(Wi,pi,cn,Ai)),Wi||[]},[$r,Pn,Dn,pi]),ta=Object(e.useMemo)(function(){return it(Vi,Bt)},[Vi]),Xi=ar(Ni,ta),ga=Object(e.useMemo)(function(){if(!Gi||!Tn)return Object(z.a)(Vi);var Wi=Nt(Gi,Vi,{optionFilterProp:Ye,filterOption:Dn==="combobox"&&Re===void 0?function(){return!0}:Re});return Dn==="tags"&&Wi.every(function(qi){return qi[Ye]!==Gi})&&Wi.unshift({value:Gi,label:Gi,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Wi},[Vi,Gi,Dn,Tn]),ra=Object(e.useMemo)(function(){return it(ga,Bt)},[ga]);Object(e.useEffect)(function(){lr.current&&lr.current.scrollTo&&lr.current.scrollTo(0)},[Gi]);var pa=Object(e.useMemo)(function(){var Wi=Ni.map(function(qi){var ca=Xi([qi]),ma=ft(qi,{options:ca,prevValue:pi,labelInValue:tn,optionLabelProp:cn});return Object(F.a)(Object(F.a)({},ma),{},{disabled:Ar(qi,ca)})});return!Dn&&Wi.length===1&&Wi[0].value===null&&Wi[0].label===null?[]:Wi},[pi,Vi,Dn]);pa=Zr(pa);var _a=function(qi,ca,ma){var ka=Xi([qi]),La=Mr([qi],ka)[0];if(!$n.skipTriggerSelect){var Za=tn?ft(qi,{options:ka,prevValue:pi,labelInValue:tn,optionLabelProp:cn}):qi;ca&&Pi?Pi(Za,La):!ca&&zi&&zi(Za,La)}mi&&(ca&&$n.onRawSelect?$n.onRawSelect(qi,La,ma):!ca&&$n.onRawDeselect&&$n.onRawDeselect(qi,La,ma))},Da=Object(e.useState)([]),Ra=Object(y.a)(Da,2),Ao=Ra[0],ja=Ra[1],Ya=function(qi){if(mi&&$n.skipTriggerChange)return;var ca=Xi(qi),ma=Oe(Array.from(qi),{labelInValue:tn,options:ca,getLabeledValue:ft,prevValue:pi,optionLabelProp:cn}),ka=Ln?ma:ma[0];if(si&&(Ni.length!==0||ma.length!==0)){var La=Mr(qi,ca,{prevValueOptions:Ao});ja(La.map(function(Za,eo){var Po=Object(F.a)({},Za);return Object.defineProperty(Po,"_INTERNAL_OPTION_VALUE_",{get:function(){return qi[eo]}}),Po})),si(ka,Ln?La:La[0])}Si(ka)},Ia=function(qi,ca){var ma=ca.selected,ka=ca.source;if(qt)return;var La;Ln?(La=new Set(Ni),ma?La.add(qi):La.delete(qi)):(La=new Set,La.add(qi)),(Ln||!Ln&&Array.from(Ni)[0]!==qi)&&Ya(Array.from(La)),_a(qi,!Ln||ma,ka),Dn==="combobox"?(aa(String(qi)),Ui("")):(!Ln||qe)&&(aa(""),Ui(""))},Va=function(qi,ca){Ia(qi,Object(F.a)(Object(F.a)({},ca),{},{source:"option"}))},co=function(qi,ca){Ia(qi,Object(F.a)(Object(F.a)({},ca),{},{source:"selection"}))},Ca=Dn==="combobox"&&di&&di()||null,yo=Object(fe.a)(void 0,{defaultValue:Jr,value:gr}),uo=Object(y.a)(yo,2),Ga=uo[0],Oo=uo[1],oa=Ga,qa=!en&&!ga.length;(qt||qa&&oa&&Dn==="combobox")&&(oa=!1);var oo=qa?!1:oa,Ro=function(qi){var ca=qi!==void 0?qi:!oa;Ga!==ca&&!qt&&(Oo(ca),ln&&ln(ca))};or([Li.current,Bi.current&&Bi.current.getPopupElement()],oo,Ro);var Xa=function(qi,ca,ma){var ka=!0,La=qi;Ui(null);var Za=ma?null:Ce(qi,Wn),eo=Za;if(Dn==="combobox")ca&&Ya([La]);else if(Za){La="",Dn!=="tags"&&(eo=Za.map(function(jo){var cs=ta.find(function(Mo){var Lo=Mo.data;return Lo[cn]===jo});return cs?cs.data.value:null}).filter(function(jo){return jo!==null}));var Po=Array.from(new Set([].concat(Object(z.a)(Ni),Object(z.a)(eo))));Ya(Po),Po.forEach(function(jo){_a(jo,!0,"input")}),Ro(!1),ka=!1}return aa(La),xt&&Gi!==La&&xt(La),ka},_o=function(qi){var ca=Array.from(new Set([].concat(Object(z.a)(Ni),[qi])));Ya(ca),ca.forEach(function(ma){_a(ma,!0,"input")}),aa("")};Object(e.useEffect)(function(){Ga&&!!qt&&Oo(!1)},[qt]),Object(e.useEffect)(function(){!oa&&!Ln&&Dn!=="combobox"&&Xa("",!1,!1)},[oa]);var go=Dt(),Ja=Object(y.a)(go,2),Fa=Ja[0],ha=Ja[1],rt=function(qi){var ca=Fa(),ma=qi.which;if(!oa&&ma===x.a.ENTER&&Ro(!0),ha(!!Gi),ma===x.a.BACKSPACE&&!ca&&Ln&&!Gi&&Ni.length){var ka=De(pa,Ni);ka.removedValue!==null&&(Ya(ka.values),_a(ka.removedValue,!1,"input"))}for(var La=arguments.length,Za=new Array(La>1?La-1:0),eo=1;eo<La;eo++)Za[eo-1]=arguments[eo];if(oa&&lr.current){var Po;(Po=lr.current).onKeyDown.apply(Po,[qi].concat(Za))}ti&&ti.apply(void 0,[qi].concat(Za))},cr=function(qi){for(var ca=arguments.length,ma=new Array(ca>1?ca-1:0),ka=1;ka<ca;ka++)ma[ka-1]=arguments[ka];if(oa&&lr.current){var La;(La=lr.current).onKeyUp.apply(La,[qi].concat(ma))}Un&&Un.apply(void 0,[qi].concat(ma))},Pr=Object(e.useRef)(!1),Lr=function(){Wr(!0),qt||(On&&!Pr.current&&On.apply(void 0,arguments),xn.includes("focus")&&Ro(!0)),Pr.current=!0},_n=function(){if(Wr(!1,function(){Pr.current=!1,Ro(!1)}),qt)return;Gi&&(Dn==="tags"?(Xa("",!1,!1),Ya(Array.from(new Set([].concat(Object(z.a)(Ni),[Gi]))))):Dn==="multiple"&&aa("")),In&&In.apply(void 0,arguments)},Vr=[];Object(e.useEffect)(function(){return function(){Vr.forEach(function(Wi){return clearTimeout(Wi)}),Vr.splice(0,Vr.length)}},[]);var _r=function(qi){var ca=qi.target,ma=Bi.current&&Bi.current.getPopupElement();if(ma&&ma.contains(ca)){var ka=setTimeout(function(){var Po=Vr.indexOf(ka);Po!==-1&&Vr.splice(Po,1),An(),ma.contains(document.activeElement)||wr.current.focus()});Vr.push(ka)}if(ui){for(var La=arguments.length,Za=new Array(La>1?La-1:0),eo=1;eo<La;eo++)Za[eo-1]=arguments[eo];ui.apply(void 0,[qi].concat(Za))}},kn=Object(e.useState)(0),Ur=Object(y.a)(kn,2),En=Ur[0],jn=Ur[1],Hn=fr!==void 0?fr:Dn!=="combobox",Bn=function(qi,ca){jn(ca),Gn&&Dn==="combobox"&&qi!==null&&Ui(String(qi))},ri=Object(e.useState)(null),Yn=Object(y.a)(ri,2),ii=Yn[0],ai=Yn[1],ki=Object(e.useState)({}),bi=Object(y.a)(ki,2),Ki=bi[1];function Aa(){Ki({})}et(function(){if(oo){var Wi=Math.ceil(Li.current.offsetWidth);ii!==Wi&&ai(Wi)}},[oo]);var ea=e.createElement(Le,{ref:lr,prefixCls:Ut,id:nn,open:oa,childrenAsData:!$r,options:ga,flattenOptions:ra,multiple:Ln,values:xi,height:sn,itemHeight:Pt,onSelect:Va,onToggleOpen:Ro,onActiveValue:Bn,defaultActiveFirstOption:Hn,notFoundContent:en,onScroll:xr,searchValue:Gi,menuItemSelectedIcon:Xr,virtual:Lt!==!1&&Qt!==!1,onMouseEnter:Aa}),Ji,sa=function(){mi&&$n.onClear&&$n.onClear(),Ri&&Ri(),Ya([]),Xa("",!1,!1)};!qt&&ct&&(Ni.length||Gi)&&(Ji=e.createElement(I,{className:"".concat(Ut,"-clear"),onMouseDown:sa,customizeIcon:Jt},"\xD7"));var fa=Rr!==void 0?Rr:pn||!Ln&&Dn!=="combobox",xo;fa&&(xo=e.createElement(I,{className:a()("".concat(Ut,"-arrow"),Object(g.a)({},"".concat(Ut,"-arrow-loading"),pn)),customizeIcon:Ir,customizeIconProps:{loading:pn,searchValue:Gi,open:oa,focused:Or,showSearch:Tn}}));var Qa=a()(Ut,Sr,(Kt={},Object(g.a)(Kt,"".concat(Ut,"-focused"),Or),Object(g.a)(Kt,"".concat(Ut,"-multiple"),Ln),Object(g.a)(Kt,"".concat(Ut,"-single"),!Ln),Object(g.a)(Kt,"".concat(Ut,"-allow-clear"),ct),Object(g.a)(Kt,"".concat(Ut,"-show-arrow"),fa),Object(g.a)(Kt,"".concat(Ut,"-disabled"),qt),Object(g.a)(Kt,"".concat(Ut,"-loading"),pn),Object(g.a)(Kt,"".concat(Ut,"-open"),oa),Object(g.a)(Kt,"".concat(Ut,"-customize-input"),Ca),Object(g.a)(Kt,"".concat(Ut,"-show-search"),Tn),Kt));return e.createElement("div",Object.assign({className:Qa},Hi,{ref:Li,onMouseDown:_r,onKeyDown:rt,onKeyUp:cr,onFocus:Lr,onBlur:_n}),Or&&!oa&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Ni.join(", "))),e.createElement(Rt,{ref:Bi,disabled:qt,prefixCls:Ut,visible:oo,popupElement:ea,containerWidth:ii,animation:gt,transitionName:Et,dropdownStyle:kt,dropdownClassName:yt,direction:vn,dropdownMatchSelectWidth:Qt,dropdownRender:tr,dropdownAlign:ir,getPopupContainer:_i,empty:!Vi.length,getTriggerDOMNode:function(){return Xn.current}},e.createElement(X,Object.assign({},Bt,{domRef:Xn,prefixCls:Ut,inputElement:Ca,ref:wr,id:nn,showSearch:Tn,mode:Dn,accessibilityIndex:En,multiple:Ln,tagRender:Yr,values:pa,open:oa,onToggleOpen:Ro,searchValue:Gi,activeValue:Ti,onSearch:Xa,onSearchSubmit:_o,onSelect:co,tokenWithEnter:on}))),xo,Ji)}var rr=e.forwardRef(lt);return rr}function Ht(Ie){var _e=Ie.mode,Le=Ie.options,Ze=Ie.children,it=Ie.backfill,ft=Ie.allowClear,Nt=Ie.placeholder,Ar=Ie.getInputElement,Mr=Ie.showSearch,un=Ie.onSearch,Mt=Ie.defaultOpen,at=Ie.autoFocus,lt=Ie.labelInValue,rr=Ie.value,Bt=Ie.inputValue,_t=Ie.optionLabelProp,Kt=_e==="multiple"||_e==="tags",wt=Mr!==void 0?Mr:Kt||_e==="combobox",Ut=Le||V(Ze);if(Object(ue.a)(_e!=="tags"||Ut.every(function(Jr){return!Jr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_e==="tags"||_e==="combobox"){var Sr=Ut.some(function(Jr){return Jr.options?Jr.options.some(function($r){return typeof("value"in $r?$r.value:$r.key)=="number"}):typeof("value"in Jr?Jr.value:Jr.key)=="number"});Object(ue.a)(!Sr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ue.a)(_e!=="combobox"||!_t,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ue.a)(_e==="combobox"||!it,"`backfill` only works with `combobox` mode."),Object(ue.a)(_e==="combobox"||!Ar,"`getInputElement` only work with `combobox` mode."),Object(ue.b)(_e!=="combobox"||!Ar||!ft||!Nt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),un&&!wt&&_e!=="combobox"&&_e!=="tags"&&Object(ue.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ue.b)(!Mt||at,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),rr!=null){var hr=ne(rr);Object(ue.a)(!lt||hr.every(function(Jr){return Object($.a)(Jr)==="object"&&("key"in Jr||"value"in Jr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ue.a)(!Kt||Array.isArray(rr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ze){var gr=null;Object(j.a)(Ze).some(function(Jr){if(!e.isValidElement(Jr)||!Jr.type)return!1;var $r=Jr.type;if($r.isSelectOption)return!1;if($r.isSelectOptGroup){var Pn=Object(j.a)(Jr.props.children).every(function(Dn){return!e.isValidElement(Dn)||!Jr.type||Dn.type.isSelectOption?!0:(gr=Dn.type,!1)});return!Pn}return gr=$r,!0}),gr&&Object(ue.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gr.displayName||gr.name||gr,"`.")),Object(ue.a)(Bt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var dt=Ht,Hr=er({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:V,flattenOptions:Xe,getLabeledValue:G,filterOptions:de,isValueDisabled:Ee,findValueOption:Q,warningProps:dt,fillOptionsWithMissingValue:le}),dn=function(Ie){Object(h.a)(Le,Ie);var _e=Object(p.a)(Le);function Le(){var Ze;return Object(l.a)(this,Le),Ze=_e.apply(this,arguments),Ze.selectRef=e.createRef(),Ze.focus=function(){Ze.selectRef.current.focus()},Ze.blur=function(){Ze.selectRef.current.blur()},Ze}return Object(u.a)(Le,[{key:"render",value:function(){return e.createElement(Hr,Object.assign({ref:this.selectRef},this.props))}}]),Le}(e.Component);dn.Option=P,dn.OptGroup=U;var Nn=dn,Vn=Nn,gi=d("H84U"),bn=d("1vzs"),Mn=d("3Nzz"),jt=function(Ie){r()(Le,Ie);var _e=n()(Le);function Le(){var Ze;return m()(this,Le),Ze=_e.apply(this,arguments),Ze.selectRef=e.createRef(),Ze.focus=function(){Ze.selectRef.current&&Ze.selectRef.current.focus()},Ze.blur=function(){Ze.selectRef.current&&Ze.selectRef.current.blur()},Ze.getMode=function(){var it=Ze.props.mode;return it==="combobox"?void 0:it===Le.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":it},Ze.renderSelect=function(it){var ft=it.getPopupContainer,Nt=it.getPrefixCls,Ar=it.renderEmpty,Mr=it.direction,un=it.virtual,Mt=it.dropdownMatchSelectWidth,at=Ze.props,lt=at.prefixCls,rr=at.notFoundContent,Bt=at.className,_t=at.size,Kt=at.listHeight,wt=Kt===void 0?256:Kt,Ut=at.listItemHeight,Sr=Ut===void 0?24:Ut,hr=at.getPopupContainer,gr=at.dropdownClassName,Jr=at.bordered,$r=Nt("select",lt),Pn=Ze.getMode(),Dn=Pn==="multiple"||Pn==="tags",Zn;rr!==void 0?Zn=rr:Pn==="combobox"?Zn=null:Zn=Ar("Select");var li=Object(bn.a)(A()(A()({},Ze.props),{multiple:Dn,prefixCls:$r})),Ai=li.suffixIcon,Ii=li.itemIcon,$e=li.removeIcon,Se=li.clearIcon,Re=Object(s.default)(Ze.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),je=a()(gr,E()({},"".concat($r,"-dropdown-").concat(Mr),Mr==="rtl"));return e.createElement(Mn.b.Consumer,null,function(Ye){var Ve,qe=_t||Ye,xt=a()(Bt,(Ve={},E()(Ve,"".concat($r,"-lg"),qe==="large"),E()(Ve,"".concat($r,"-sm"),qe==="small"),E()(Ve,"".concat($r,"-rtl"),Mr==="rtl"),E()(Ve,"".concat($r,"-borderless"),!Jr),Ve));return e.createElement(Vn,A()({ref:Ze.selectRef,virtual:un,dropdownMatchSelectWidth:Mt},Re,{listHeight:wt,listItemHeight:Sr,mode:Pn,prefixCls:$r,direction:Mr,inputIcon:Ai,menuItemSelectedIcon:Ii,removeIcon:$e,clearIcon:Se,notFoundContent:Zn,className:xt,getPopupContainer:hr||ft,dropdownClassName:je}))})},Ze}return c()(Le,[{key:"render",value:function(){return e.createElement(gi.a,null,this.renderSelect)}}]),Le}(e.Component);jt.Option=P,jt.OptGroup=U,jt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",jt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var St=B.a=jt},"2fw6":function(H,B,d){var O=d("y+Vt"),E=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(A,w,m){m&&A.moveTo(w.cx+w.r,w.cy),A.arc(w.cx,w.cy,w.r,0,Math.PI*2,!0)}});H.exports=E},"2jpz":function(H,B,d){"use strict";d.d(B,"a",function(){return u});var O=d("cDf5"),E=d.n(O),C=d("q1tI"),A=d.n(C),w=d("TSYQ"),m=d.n(w),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"),s=d.n(e),t=d("e5VY"),a=d.n(t),l=d("0n0R");function u(h,p,g,v){var y=v.isLeaf,x=v.expanded,T=v.loading;if(T)return C.createElement(c.a,{className:"".concat(h,"-switcher-loading-icon")});var S;if(g&&E()(g)==="object"&&(S=g.showLeafIcon),y)return g?E()(g)==="object"&&!S?C.createElement("span",{className:"".concat(h,"-switcher-leaf-line")}):C.createElement(r.a,{className:"".concat(h,"-switcher-line-icon")}):null;var b="".concat(h,"-switcher-icon");return Object(l.b)(p)?Object(l.a)(p,{className:m()(p.props.className||"",b)}):p||(g?x?C.createElement(n.a,{className:"".concat(h,"-switcher-line-icon")}):C.createElement(s.a,{className:"".concat(h,"-switcher-line-icon")}):C.createElement(a.a,{className:b}))}},"2oIt":function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},"2uGb":function(H,B,d){var O=d("ProS");d("ko1b"),d("s2lz"),d("RBEP");var E=d("kMLO"),C=d("nKiI");O.registerVisual(E),O.registerLayout(C)},"2w7y":function(H,B,d){var O=d("ProS");d("qMZE"),d("g0SD"),O.registerPreprocessor(function(E){E.markPoint=E.markPoint||{}})},"33Ds":function(H,B,d){var O=d("ProS"),E=d("b9oc"),C=d("Kagy"),A=d("IUWy"),w=C.toolbox.restore;function m(o){this.model=o}m.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:w.title};var f=m.prototype;f.onclick=function(o,r,i){E.clear(o),r.dispatchAction({type:"restore",from:this.uid})},A.register("restore",m),O.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,r){r.resetOption("recreate")});var c=m;H.exports=c},"34/K":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function E(w,m){for(var f=0;f<m.length;f++){var c=m[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(w,c.key,c)}}function C(w,m,f){return m&&E(w.prototype,m),f&&E(w,f),w}var A=function(){function w(){O(this,w),this._lines=0}return C(w,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){this._lines===0&&(this._lines=r);var s=e==8?1:4,t=o*s;if(i.rQwait("RAW",t))return!1;var a=c+(r-this._lines),l=Math.min(this._lines,Math.floor(i.rQlen/t)),u=i.rQ,h=i.rQi;if(e==8){for(var p=o*l,g=new Uint8Array(p*4),v=0;v<p;v++)g[v*4+0]=(u[h+v]>>0&3)*255/3,g[v*4+1]=(u[h+v]>>2&3)*255/3,g[v*4+2]=(u[h+v]>>4&3)*255/3,g[v*4+4]=0;u=g,h=0}return n.blitImage(f,a,o,l,u,h),i.rQskipBytes(l*t),this._lines-=l,!(this._lines>0)}}]),w}();B.default=A},"3690":function(H,B,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(B,"__esModule",{value:!0}),B.default=void 0;var E=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 s=n?Object.getOwnPropertyDescriptor(o,e):null;s&&(s.get||s.set)?Object.defineProperty(i,e,s):i[e]=o[e]}return i.default=o,r&&r.set(o,i),i}function w(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(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&&m(o.prototype,r),i&&m(o,i),o}var c=function(){function o(){w(this,o),this._tiles=0,this._lastsubencoding=0}return f(o,[{key:"decodeRect",value:function(i,n,e,s,t,a,l){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(s/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var u=1;if(t.rQwait("HEXTILE",u))return!1;var h=t.rQ,p=t.rQi,g=h[p];if(g>30)throw new Error("Illegal hextile subencoding (subencoding: "+g+")");var v=this._totalTiles-this._tiles,y=v%this._tilesX,x=Math.floor(v/this._tilesX),T=i+y*16,S=n+x*16,b=Math.min(16,i+e-T),_=Math.min(16,n+s-S);if(g&1)u+=b*_*4;else if(g&2&&(u+=4),g&4&&(u+=4),g&8){if(u++,t.rQwait("HEXTILE",u))return!1;var I=h[p+u-1];g&16?u+=I*(4+2):u+=I*2}if(t.rQwait("HEXTILE",u))return!1;if(p++,g===0)this._lastsubencoding&1?E.Debug(" Ignoring blank after RAW"):a.fillRect(T,S,b,_,this._background);else if(g&1)a.blitImage(T,S,b,_,h,p),p+=u-1;else{if(g&2&&(this._background=[h[p],h[p+1],h[p+2],h[p+3]],p+=4),g&4&&(this._foreground=[h[p],h[p+1],h[p+2],h[p+3]],p+=4),a.startTile(T,S,b,_,this._background),g&8){var L=h[p];p++;for(var N=0;N<L;N++){var D=void 0;g&16?(D=[h[p],h[p+1],h[p+2],h[p+3]],p+=4):D=this._foreground;var R=h[p];p++;var P=R>>4,M=R&15,U=h[p];p++;var F=(U>>4)+1,j=(U&15)+1;a.subTile(P,M,F,j,D)}}a.finishTile()}t.rQi=p,this._lastsubencoding=g,this._tiles--}return!0}}]),o}();B.default=c},"3C/r":function(H,B){var d=function(C,A){this.image=C,this.repeat=A,this.type="pattern"};d.prototype.getCanvasPattern=function(E){return E.createPattern(this.image,this.repeat||"repeat")};var O=d;H.exports=O},"3CBa":function(H,B,d){var O=d("hydK"),E=O.createElement,C=d("bYtY"),A=d("SUKs"),w=d("y+Vt"),m=d("Dagg"),f=d("dqUG"),c=d("DBLp"),o=d("sW+o"),r=d("n6Mw"),i=d("vKoX"),n=d("P47w"),e=n.path,s=n.image,t=n.text;function a(b){return parseInt(b,10)}function l(b){return b instanceof w?e:b instanceof m?s:b instanceof f?t:e}function u(b,_){return _&&b&&_.parentNode!==b}function h(b,_,I){if(u(b,_)&&I){var L=I.nextSibling;L?b.insertBefore(_,L):b.appendChild(_)}}function p(b,_){if(u(b,_)){var I=b.firstChild;I?b.insertBefore(_,I):b.appendChild(_)}}function g(b,_){_&&b&&_.parentNode===b&&b.removeChild(_)}function v(b){return b.__textSvgEl}function y(b){return b.__svgEl}var x=function(_,I,L,N){this.root=_,this.storage=I,this._opts=L=C.extend({},L||{});var D=E("svg");D.setAttribute("xmlns","http://www.w3.org/2000/svg"),D.setAttribute("version","1.1"),D.setAttribute("baseProfile","full"),D.style.cssText="user-select:none;position:absolute;left:0;top:0;";var R=E("g");D.appendChild(R);var P=E("g");D.appendChild(P),this.gradientManager=new o(N,P),this.clipPathManager=new r(N,P),this.shadowManager=new i(N,P);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=D,this._svgRoot=P,this._backgroundRoot=R,this._viewport=M,_.appendChild(M),M.appendChild(D),this.resize(L.width,L.height),this._visibleList=[]};x.prototype={constructor:x,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var _=this.getViewportRoot();if(_)return{offsetLeft:_.offsetLeft||0,offsetTop:_.offsetTop||0}},refresh:function(){var _=this.storage.getDisplayList(!0);this._paintList(_)},setBackgroundColor:function(_){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var I=E("rect");I.setAttribute("width",this.getWidth()),I.setAttribute("height",this.getHeight()),I.setAttribute("x",0),I.setAttribute("y",0),I.setAttribute("id",0),I.style.fill=_,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(_){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,L=this._visibleList,N=_.length,D=[],R;for(R=0;R<N;R++){var P=_[R],M=l(P),U=y(P)||v(P);P.invisible||(P.__dirty&&(M&&M.brush(P),this.clipPathManager.update(P),P.style&&(this.gradientManager.update(P.style.fill),this.gradientManager.update(P.style.stroke),this.shadowManager.update(U,P)),P.__dirty=!1),D.push(P))}var F=c(L,D),j;for(R=0;R<F.length;R++){var W=F[R];if(W.removed)for(var V=0;V<W.count;V++){var P=L[W.indices[V]],U=y(P),z=v(P);g(I,U),g(I,z)}}for(R=0;R<F.length;R++){var W=F[R];if(W.added)for(var V=0;V<W.count;V++){var P=D[W.indices[V]],U=y(P),z=v(P);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,P),this.shadowManager.addWithoutUpdate(U||z,P),this.clipPathManager.markUsed(P)}else if(!W.removed)for(var V=0;V<W.count;V++){var P=D[W.indices[V]],U=y(P),z=v(P),U=y(P),z=v(P);this.gradientManager.markUsed(P),this.gradientManager.addWithoutUpdate(U||z,P),this.shadowManager.markUsed(P),this.shadowManager.addWithoutUpdate(U||z,P),this.clipPathManager.markUsed(P),z&&h(I,z,U),j=U||z||j}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=D},_getDefs:function(_){var I=this._svgDom,L=I.getElementsByTagName("defs");if(L.length===0)if(_){var L=I.insertBefore(E("defs"),I.firstChild);return L.contains||(L.contains=function(D){var R=L.children;if(!R)return!1;for(var P=R.length-1;P>=0;--P)if(R[P]===D)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 D=L.style;D.width=_+"px",D.height=I+"px";var R=this._svgDom;R.setAttribute("width",_),R.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"][_],D=["paddingLeft","paddingTop"][_],R=["paddingRight","paddingBottom"][_];if(I[L]!=null&&I[L]!=="auto")return parseFloat(I[L]);var P=this.root,M=document.defaultView.getComputedStyle(P);return(P[N]||a(M[L])||a(P.style[L]))-(a(M[D])||0)-(a(M[R])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var _=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+_}};function T(b){return function(){A('In SVG mode painter not support method "'+b+'"')}}C.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(b){x.prototype[b]=T(b)});var S=x;H.exports=S},"3LNs":function(H,B,d){var O=d("bYtY"),E=d("Yl7c"),C=d("IwbS"),A=d("zTMp"),w=d("YH21"),m=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,g,v){var y=p.get("value"),x=p.get("status");if(this._axisModel=h,this._axisPointerModel=p,this._api=g,!v&&this._lastValue===y&&this._lastStatus===x)return;this._lastValue=y,this._lastStatus=x;var T=this._group,S=this._handle;if(!x||x==="hide"){T&&T.hide(),S&&S.hide();return}T&&T.show(),S&&S.show();var b={};this.makeElOption(b,y,h,p,g);var _=b.graphicKey;_!==this._lastGraphicKey&&this.clear(g),this._lastGraphicKey=_;var I=this._moveAnimation=this.determineAnimation(h,p);if(!T)T=this._group=new C.Group,this.createPointerEl(T,b,h,p),this.createLabelEl(T,b,h,p),g.getZr().add(T);else{var L=O.curry(e,p,I);this.updatePointerEl(T,b,L,p),this.updateLabelEl(T,b,L,p)}l(T,p,!0),this._renderHandle(y)},remove:function(h){this.clear(h)},dispose:function(h){this.clear(h)},determineAnimation:function(h,p){var g=p.get("animation"),v=h.axis,y=v.type==="category",x=p.get("snap");if(!x&&!y)return!1;if(g==="auto"||g==null){var T=this.animationThreshold;if(y&&v.getBandWidth()>T)return!0;if(x){var S=A.getAxisInfo(h).seriesDataCount,b=v.getExtent();return Math.abs(b[0]-b[1])/S>T}return!1}return g===!0},makeElOption:function(h,p,g,v,y){},createPointerEl:function(h,p,g,v){var y=p.pointer;if(y){var x=o(h).pointerEl=new C[y.type](r(p.pointer));h.add(x)}},createLabelEl:function(h,p,g,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,g){var v=o(h).pointerEl;v&&p.pointer&&(v.setStyle(p.pointer.style),g(v,{shape:p.pointer.shape}))},updateLabelEl:function(h,p,g,v){var y=o(h).labelEl;y&&(y.setStyle(p.label.style),g(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,g=this._api.getZr(),v=this._handle,y=p.getModel("handle"),x=p.get("status");if(!y.get("show")||!x||x==="hide"){v&&g.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(_){w.stop(_.event)},onmousedown:i(this._onHandleDragMove,this,0,0),drift:i(this._onHandleDragMove,this),ondragend:i(this._onHandleDragEnd,this)}),g.add(v)),l(v,p,!1);var S=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];v.setStyle(y.getItemStyle(null,S));var b=y.get("size");O.isArray(b)||(b=[b,b]),v.attr("scale",[b[0]/2,b[1]/2]),m.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 g=this._handle;if(!g)return;this._dragging=!0;var v=this.updateHandleTransform(a(g),[h,p],this._axisModel,this._axisPointerModel);this._payloadInfo=v,g.stopAnimation(),g.attr(a(v)),o(g).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var h=this._handle;if(!h)return;var p=this._payloadInfo,g=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:p.cursorPoint[0],y:p.cursorPoint[1],tooltipOption:p.tooltipOption,axesInfo:[{axisDim:g.axis.dim,axisIndex:g.componentIndex}]})},_onHandleDragEnd:function(h){this._dragging=!1;var p=this._handle;if(!p)return;var g=this._axisPointerModel.get("value");this._moveHandleToValue(g),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(h){this._lastValue=null,this._lastStatus=null;var p=h.getZr(),g=this._group,v=this._handle;p&&g&&(this._lastGraphicKey=null,g&&p.remove(g),v&&p.remove(v),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(h,p,g){return g=g||0,{x:h[g],y:h[1-g],width:p[g],height:p[1-g]}}},n.prototype.constructor=n;function e(h,p,g,v){s(o(g).lastProp,v)||(o(g).lastProp=v,p?C.updateProps(g,v,h):(g.stopAnimation(),g.attr(v)))}function s(h,p){if(O.isObject(h)&&O.isObject(p)){var g=!0;return O.each(p,function(v,y){g=g&&s(h[y],v)}),!!g}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 l(h,p,g){var v=p.get("z"),y=p.get("zlevel");h&&h.traverse(function(x){x.type!=="group"&&(v!=null&&(x.z=v),y!=null&&(x.zlevel=y),x.silent=g)})}E.enableClassExtend(n);var u=n;H.exports=u},"3OrL":function(H,B,d){var O=d("bYtY"),E=d("6Ic6"),C=d("IwbS"),A=d("y+Vt"),w=["itemStyle"],m=["emphasis","itemStyle"],f=E.extend({type:"boxplot",render:function(e,s,t){var a=e.getData(),l=this.group,u=this._data;this._data||l.removeAll();var h=e.get("layout")==="horizontal"?1:0;a.diff(u).add(function(p){if(a.hasValue(p)){var g=a.getItemLayout(p),v=o(g,a,p,h,!0);a.setItemGraphicEl(p,v),l.add(v)}}).update(function(p,g){var v=u.getItemGraphicEl(g);if(!a.hasValue(p)){l.remove(v);return}var y=a.getItemLayout(p);v?r(y,v,a,p):v=o(y,a,p,h),l.add(v),a.setItemGraphicEl(p,v)}).remove(function(p){var g=u.getItemGraphicEl(p);g&&l.remove(g)}).execute(),this._data=a},remove:function(e){var s=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(a){a&&s.remove(a)})},dispose:O.noop}),c=A.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,s){var t=s.points,a=0;for(e.moveTo(t[a][0],t[a][1]),a++;a<4;a++)e.lineTo(t[a][0],t[a][1]);for(e.closePath();a<t.length;a++)e.moveTo(t[a][0],t[a][1]),a++,e.lineTo(t[a][0],t[a][1])}});function o(e,s,t,a,l){var u=e.ends,h=new c({shape:{points:l?i(u,a,e):u}});return r(e,h,s,t,l),h}function r(e,s,t,a,l){var u=t.hostModel,h=C[l?"initProps":"updateProps"];h(s,{shape:{points:e.ends}},u,a);var p=t.getItemModel(a),g=p.getModel(w),v=t.getItemVisual(a,"color"),y=g.getItemStyle(["borderColor"]);y.stroke=v,y.strokeNoScale=!0,s.useStyle(y),s.z2=100;var x=p.getModel(m).getItemStyle();C.setHoverStyle(s,x)}function i(e,s,t){return O.map(e,function(a){return a=a.slice(),a[s]=t.initBaseline,a})}var n=f;H.exports=n},"3S7+":function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("J4zp"),A=d.n(C),w=d("pVnL"),m=d.n(w),f=d("q1tI"),c=d.n(f),o=d("U8pU"),r=d("VTBJ"),i=d("Ff2n"),n=d("1OyB"),e=d("vuIU"),s=d("JX7q"),t=d("Ji7U"),a=d("LK+K"),l=d("i8i4"),u=d.n(l),h=d("l4aY"),p=d("m+aA"),g=d("c+Xe"),v=d("zT1h"),y=d("QC+M"),x=d("TSYQ"),T=d.n(x);function S(bn,Mn,jt){return jt?bn[0]===Mn[0]:bn[0]===Mn[0]&&bn[1]===Mn[1]}function b(bn,Mn,jt){var St=bn[Mn]||{};return Object(r.a)(Object(r.a)({},St),jt)}function _(bn,Mn,jt,St){for(var Ie=jt.points,_e=Object.keys(bn),Le=0;Le<_e.length;Le+=1){var Ze=_e[Le];if(S(bn[Ze].points,Ie,St))return"".concat(Mn,"-placement-").concat(Ze)}return""}var I=d("xEkU"),L=d.n(I),N=d("9mu1"),D=d("rePB"),R=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function P(bn,Mn){var jt={};return jt[bn.toLowerCase()]=Mn.toLowerCase(),jt["Webkit".concat(bn)]="webkit".concat(Mn),jt["Moz".concat(bn)]="moz".concat(Mn),jt["ms".concat(bn)]="MS".concat(Mn),jt["O".concat(bn)]="o".concat(Mn.toLowerCase()),jt}function M(bn,Mn){var jt={animationend:P("Animation","AnimationEnd"),transitionend:P("Transition","TransitionEnd")};return bn&&("AnimationEvent"in Mn||delete jt.animationend.animation,"TransitionEvent"in Mn||delete jt.transitionend.transition),jt}var U=M(R,typeof window!="undefined"?window:{}),F={};if(R){var j=document.createElement("div");F=j.style}var W={};function V(bn){if(W[bn])return W[bn];var Mn=U[bn];if(Mn)for(var jt=Object.keys(Mn),St=jt.length,Ie=0;Ie<St;Ie+=1){var _e=jt[Ie];if(Object.prototype.hasOwnProperty.call(Mn,_e)&&_e in F)return W[bn]=Mn[_e],W[bn]}return""}var z=V("animationend"),Y=V("transitionend"),$=!!(z&&Y);function ue(bn,Mn){if(!bn)return null;if(Object(o.a)(bn)==="object"){var jt=Mn.replace(/-\w/g,function(St){return St[1].toUpperCase()});return bn[jt]}return"".concat(bn,"-").concat(Mn)}var ne="none",ge="appear",Oe="enter",De="leave";function He(bn){var Mn=bn,jt=!!f.forwardRef;Object(o.a)(bn)==="object"&&(Mn=bn.transitionSupport,jt="forwardRef"in bn?bn.forwardRef:jt);function St(_e){return!!(_e.motionName&&Mn)}var Ie=function(_e){Object(t.a)(Ze,_e);var Le=Object(a.a)(Ze);function Ze(){var it;return Object(n.a)(this,Ze),it=Le.apply(this,arguments),it.$cacheEle=null,it.node=null,it.raf=null,it.destroyed=!1,it.deadlineId=null,it.state={status:ne,statusActive:!1,newStatus:!1,statusStyle:null},it.onDomUpdate=function(){var ft=it.state,Nt=ft.status,Ar=ft.newStatus,Mr=it.props,un=Mr.onAppearStart,Mt=Mr.onEnterStart,at=Mr.onLeaveStart,lt=Mr.onAppearActive,rr=Mr.onEnterActive,Bt=Mr.onLeaveActive,_t=Mr.motionAppear,Kt=Mr.motionEnter,wt=Mr.motionLeave;if(!St(it.props))return;var Ut=it.getElement();it.$cacheEle!==Ut&&(it.removeEventListener(it.$cacheEle),it.addEventListener(Ut),it.$cacheEle=Ut),Ar&&Nt===ge&&_t?it.updateStatus(un,null,null,function(){it.updateActiveStatus(lt,ge)}):Ar&&Nt===Oe&&Kt?it.updateStatus(Mt,null,null,function(){it.updateActiveStatus(rr,Oe)}):Ar&&Nt===De&&wt&&it.updateStatus(at,null,null,function(){it.updateActiveStatus(Bt,De)})},it.onMotionEnd=function(ft){if(ft&&!ft.deadline&&ft.target!==it.getElement())return;var Nt=it.state,Ar=Nt.status,Mr=Nt.statusActive,un=it.props,Mt=un.onAppearEnd,at=un.onEnterEnd,lt=un.onLeaveEnd;Ar===ge&&Mr?it.updateStatus(Mt,{status:ne},ft):Ar===Oe&&Mr?it.updateStatus(at,{status:ne},ft):Ar===De&&Mr&&it.updateStatus(lt,{status:ne},ft)},it.setNodeRef=function(ft){var Nt=it.props.internalRef;it.node=ft,Object(g.b)(Nt,ft)},it.getElement=function(){try{return Object(p.a)(it.node||Object(s.a)(it))}catch(ft){return it.$cacheEle}},it.addEventListener=function(ft){if(!ft)return;ft.addEventListener(Y,it.onMotionEnd),ft.addEventListener(z,it.onMotionEnd)},it.removeEventListener=function(ft){if(!ft)return;ft.removeEventListener(Y,it.onMotionEnd),ft.removeEventListener(z,it.onMotionEnd)},it.updateStatus=function(ft,Nt,Ar,Mr){var un=ft?ft(it.getElement(),Ar):null;if(un===!1||it.destroyed)return;var Mt;Mr&&(Mt=function(){it.nextFrame(Mr)}),it.setState(Object(r.a)({statusStyle:Object(o.a)(un)==="object"?un:null,newStatus:!1},Nt),Mt)},it.updateActiveStatus=function(ft,Nt){it.nextFrame(function(){var Ar=it.state.status;if(Ar!==Nt)return;var Mr=it.props.motionDeadline;it.updateStatus(ft,{statusActive:!0}),Mr>0&&(it.deadlineId=setTimeout(function(){it.onMotionEnd({deadline:!0})},Mr))})},it.nextFrame=function(ft){it.cancelNextFrame(),it.raf=L()(ft)},it.cancelNextFrame=function(){it.raf&&(L.a.cancel(it.raf),it.raf=null)},it}return Object(e.a)(Ze,[{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 ft,Nt=this.state,Ar=Nt.status,Mr=Nt.statusActive,un=Nt.statusStyle,Mt=this.props,at=Mt.children,lt=Mt.motionName,rr=Mt.visible,Bt=Mt.removeOnLeave,_t=Mt.leavedClassName,Kt=Mt.eventProps;return at?Ar===ne||!St(this.props)?rr?at(Object(r.a)({},Kt),this.setNodeRef):Bt?null:at(Object(r.a)(Object(r.a)({},Kt),{},{className:_t}),this.setNodeRef):at(Object(r.a)(Object(r.a)({},Kt),{},{className:T()(ue(lt,Ar),(ft={},Object(D.a)(ft,ue(lt,"".concat(Ar,"-active")),Mr),Object(D.a)(ft,lt,typeof lt=="string"),ft)),style:un}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(ft,Nt){var Ar=Nt.prevProps,Mr=Nt.status;if(!St(ft))return{};var un=ft.visible,Mt=ft.motionAppear,at=ft.motionEnter,lt=ft.motionLeave,rr=ft.motionLeaveImmediately,Bt={prevProps:ft};return(Mr===ge&&!Mt||Mr===Oe&&!at||Mr===De&&!lt)&&(Bt.status=ne,Bt.statusActive=!1,Bt.newStatus=!1),!Ar&&un&&Mt&&(Bt.status=ge,Bt.statusActive=!1,Bt.newStatus=!0),Ar&&!Ar.visible&&un&&at&&(Bt.status=Oe,Bt.statusActive=!1,Bt.newStatus=!0),(Ar&&Ar.visible&&!un&<||!Ar&&rr&&!un&<)&&(Bt.status=De,Bt.statusActive=!1,Bt.newStatus=!0),Bt}}]),Ze}(f.Component);return Ie.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},jt?f.forwardRef(function(_e,Le){return f.createElement(Ie,Object.assign({internalRef:Le},_e))}):Ie}var pe=He($),Ue="add",oe="keep",ee="remove",Xe="removed";function se(bn){var Mn;return bn&&Object(o.a)(bn)==="object"&&"key"in bn?Mn=bn:Mn={key:bn},Object(r.a)(Object(r.a)({},Mn),{},{key:String(Mn.key)})}function Q(){var bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return bn.map(se)}function G(){var bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=[],St=0,Ie=Mn.length,_e=Q(bn),Le=Q(Mn);_e.forEach(function(ft){for(var Nt=!1,Ar=St;Ar<Ie;Ar+=1){var Mr=Le[Ar];if(Mr.key===ft.key){St<Ar&&(jt=jt.concat(Le.slice(St,Ar).map(function(un){return Object(r.a)(Object(r.a)({},un),{},{status:Ue})})),St=Ar),jt.push(Object(r.a)(Object(r.a)({},Mr),{},{status:oe})),St+=1,Nt=!0;break}}Nt||jt.push(Object(r.a)(Object(r.a)({},ft),{},{status:ee}))}),St<Ie&&(jt=jt.concat(Le.slice(St).map(function(ft){return Object(r.a)(Object(r.a)({},ft),{},{status:Ue})})));var Ze={};jt.forEach(function(ft){var Nt=ft.key;Ze[Nt]=(Ze[Nt]||0)+1});var it=Object.keys(Ze).filter(function(ft){return Ze[ft]>1});return it.forEach(function(ft){jt=jt.filter(function(Nt){var Ar=Nt.key,Mr=Nt.status;return Ar!==ft||Mr!==ee}),jt.forEach(function(Nt){Nt.key===ft&&(Nt.status=oe)})}),jt}var J=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ve(bn){var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pe,jt=function(St){Object(t.a)(_e,St);var Ie=Object(a.a)(_e);function _e(){var Le;return Object(n.a)(this,_e),Le=Ie.apply(this,arguments),Le.state={keyEntities:[]},Le.removeKey=function(Ze){Le.setState(function(it){var ft=it.keyEntities;return{keyEntities:ft.map(function(Nt){return Nt.key!==Ze?Nt:Object(r.a)(Object(r.a)({},Nt),{},{status:Xe})})}})},Le}return Object(e.a)(_e,[{key:"render",value:function(){var Ze=this,it=this.state.keyEntities,ft=this.props,Nt=ft.component,Ar=ft.children,Mr=Object(i.a)(ft,["component","children"]),un=Nt||f.Fragment,Mt={};return J.forEach(function(at){Mt[at]=Mr[at],delete Mr[at]}),delete Mr.keys,f.createElement(un,Object.assign({},Mr),it.map(function(at){var lt=at.status,rr=Object(i.a)(at,["status"]),Bt=lt===Ue||lt===oe;return f.createElement(Mn,Object.assign({},Mt,{key:rr.key,visible:Bt,eventProps:rr,onLeaveEnd:function(){Mt.onLeaveEnd&&Mt.onLeaveEnd.apply(Mt,arguments),Ze.removeKey(rr.key)}}),Ar)}))}}],[{key:"getDerivedStateFromProps",value:function(Ze,it){var ft=Ze.keys,Nt=it.keyEntities,Ar=Q(ft);if(!bn)return{keyEntities:Ar.map(function(Mt){return Object(r.a)(Object(r.a)({},Mt),{},{status:oe})})};var Mr=G(Nt,Ar),un=Nt.length;return{keyEntities:Mr.filter(function(Mt){for(var at=null,lt=0;lt<un;lt+=1){var rr=Nt[lt];if(rr.key===Mt.key){at=rr;break}}return!(at&&at.status===Xe&&Mt.status===ee)})}}}]),_e}(f.Component);return jt.defaultProps={component:"div"},jt}var de=ve($),Ce=pe,Ee=function(Mn,jt){var St=Mn.prefixCls,Ie=Mn.className,_e=Mn.style,Le=Mn.children,Ze=Mn.onMouseEnter,it=Mn.onMouseLeave,ft=Mn.onMouseDown,Nt=Mn.onTouchStart,Ar=Le;return f.Children.count(Le)>1&&(Ar=f.createElement("div",{className:"".concat(St,"-content")},Le)),f.createElement("div",{ref:jt,className:Ie,onMouseEnter:Ze,onMouseLeave:it,onMouseDown:ft,onTouchStart:Nt,style:_e},Ar)},le=f.forwardRef(Ee);le.displayName="PopupInner";var fe=le;function xe(bn){var Mn=bn.prefixCls,jt=bn.motion,St=bn.animation,Ie=bn.transitionName;return jt||(St?{motionName:"".concat(Mn,"-").concat(St)}:Ie?{motionName:Ie}:null)}function Qe(bn){return bn&&bn.motionName}var ot=function(bn){Object(t.a)(jt,bn);var Mn=Object(a.a)(jt);function jt(){var St;return Object(n.a)(this,jt),St=Mn.apply(this,arguments),St.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},St.popupRef=c.a.createRef(),St.alignRef=c.a.createRef(),St.nextFrameState=null,St.nextFrameId=null,St.onAlign=function(Ie,_e){var Le=St.state.status,Ze=St.props,it=Ze.getClassNameFromAlign,ft=Ze.onAlign,Nt=it(_e);Le==="align"?St.setState({alignClassName:Nt,status:"aligned"},function(){St.alignRef.current.forceAlign()}):Le==="aligned"?(St.setState({alignClassName:Nt,status:"afterAlign"}),ft(Ie,_e)):St.setState({alignClassName:Nt})},St.onMotionEnd=function(){var Ie=St.props.visible;St.setState({status:Ie?"AfterMotion":"stable",inMotion:!1})},St.setStateOnNextFrame=function(Ie){St.cancelFrameState(),St.nextFrameState=Object(r.a)(Object(r.a)({},St.nextFrameState),Ie),St.nextFrameId=L()(function(){var _e=Object(r.a)({},St.nextFrameState);St.nextFrameState=null,St.setState(_e)})},St.getMotion=function(){return Object(r.a)({},xe(St.props))},St.getAlignTarget=function(){var Ie=St.props,_e=Ie.point,Le=Ie.getRootDomNode;return _e||Le},St.cancelFrameState=function(){L.a.cancel(St.nextFrameId)},St.renderPopupElement=function(){var Ie=St.state,_e=Ie.status,Le=Ie.targetHeight,Ze=Ie.targetWidth,it=Ie.alignClassName,ft=St.props,Nt=ft.prefixCls,Ar=ft.className,Mr=ft.style,un=ft.stretch,Mt=ft.visible,at=ft.align,lt=ft.destroyPopupOnHide,rr=ft.onMouseEnter,Bt=ft.onMouseLeave,_t=ft.onMouseDown,Kt=ft.onTouchStart,wt=ft.children,Ut=T()(Nt,Ar,it),Sr="".concat(Nt,"-hidden"),hr={};un&&(un.indexOf("height")!==-1?hr.height=Le:un.indexOf("minHeight")!==-1&&(hr.minHeight=Le),un.indexOf("width")!==-1?hr.width=Ze:un.indexOf("minWidth")!==-1&&(hr.minWidth=Ze));var gr=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},hr),St.getZIndexStyle()),Mr),{},{opacity:_e==="stable"||!Mt?void 0:0,pointerEvents:_e==="stable"||!Mt?void 0:"none"}),Jr=St.getMotion(),$r=Mt;Mt&&_e!=="beforeMotion"&&_e!=="motion"&&_e!=="stable"&&(Jr.motionAppear=!1,Jr.motionEnter=!1,Jr.motionLeave=!1),(_e==="afterAlign"||_e==="beforeMotion")&&($r=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Zn){var li=Jr==null?void 0:Jr[Zn];Jr[Zn]=function(){for(var Ai=arguments.length,Ii=new Array(Ai),$e=0;$e<Ai;$e++)Ii[$e]=arguments[$e];li==null||li.apply(void 0,Ii),St.setState({inMotion:!0})}});var Pn=!Mt||_e!=="align"&&_e!=="aligned"&&_e!=="stable",Dn=!0;return _e==="stable"&&(Dn=Mt),lt&&!Dn?null:c.a.createElement(Ce,Object.assign({visible:$r},Jr,{removeOnLeave:!1,onEnterEnd:St.onMotionEnd,onLeaveEnd:St.onMotionEnd,leavedClassName:Sr}),function(Zn,li){var Ai=Zn.style,Ii=Zn.className;return c.a.createElement(N.a,{target:St.getAlignTarget(),key:"popup",ref:St.alignRef,monitorWindowResize:!0,disabled:Pn,align:at,onAlign:St.onAlign},c.a.createElement(fe,{prefixCls:Nt,className:T()(Ut,Ii),ref:Object(g.a)(li,St.popupRef),onMouseEnter:rr,onMouseLeave:Bt,onMouseDown:_t,onTouchStart:Kt,style:Object(r.a)(Object(r.a)({},gr),Ai)},wt))})},St.renderMaskElement=function(){var Ie=St.props,_e=Ie.mask,Le=Ie.maskMotion,Ze=Ie.maskTransitionName,it=Ie.maskAnimation,ft=Ie.prefixCls,Nt=Ie.visible;if(!_e)return null;var Ar={};return Le&&Le.motionName&&(Ar=Object(r.a)({motionAppear:!0},xe({motion:Le,prefixCls:ft,transitionName:Ze,animation:it}))),c.a.createElement(Ce,Object.assign({},Ar,{visible:Nt,removeOnLeave:!0}),function(Mr){var un=Mr.className;return c.a.createElement("div",{style:St.getZIndexStyle(),key:"mask",className:T()("".concat(ft,"-mask"),un)})})},St}return Object(e.a)(jt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.state.status,_e=this.props,Le=_e.getRootDomNode,Ze=_e.visible,it=_e.stretch;if(this.cancelFrameState(),Ze&&Ie!=="stable")switch(Ie){case null:{this.setStateOnNextFrame({status:it?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Qe(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var ft=["measure","align",null,"beforeMotion","motion"],Nt=ft.indexOf(Ie),Ar=ft[Nt+1];Nt!==-1&&Ar&&this.setStateOnNextFrame({status:Ar})}}if(Ie==="measure"){var Mr=Le();Mr&&this.setStateOnNextFrame({targetHeight:Mr.offsetHeight,targetWidth:Mr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Ie=this.props.zIndex;return{zIndex:Ie}}},{key:"render",value:function(){return c.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Ie,_e){var Le=Ie.visible,Ze=Object(i.a)(Ie,["visible"]),it=_e.prevVisible,ft=_e.status,Nt=_e.inMotion,Ar={prevVisible:Le,status:ft},Mr=xe(Ze);return it===null&&Le===!1?(Ar.status="stable",Ar.inMotion=!1):Le!==it&&(Ar.inMotion=!1,Le||Qe(Mr)&&Nt?Ar.status=null:Ar.status="stable",Le&&(Ar.alignClassName=null)),Ar}}]),jt}(f.Component),Je=ot,Te=f.createContext(null),et=Te;function ze(){}function nt(){return""}function Ot(){return window.document}var Ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Tt(bn){var Mn=function(jt){Object(t.a)(Ie,jt);var St=Object(a.a)(Ie);function Ie(_e){var Le;Object(n.a)(this,Ie),Le=St.call(this,_e),Le.popupRef=c.a.createRef(),Le.triggerRef=c.a.createRef(),Le.onMouseEnter=function(it){var ft=Le.props.mouseEnterDelay;Le.fireEvents("onMouseEnter",it),Le.delaySetPopupVisible(!0,ft,ft?null:it)},Le.onMouseMove=function(it){Le.fireEvents("onMouseMove",it),Le.setPoint(it)},Le.onMouseLeave=function(it){Le.fireEvents("onMouseLeave",it),Le.delaySetPopupVisible(!1,Le.props.mouseLeaveDelay)},Le.onPopupMouseEnter=function(){Le.clearDelayTimer()},Le.onPopupMouseLeave=function(it){if(it.relatedTarget&&!it.relatedTarget.setTimeout&&Le.popupRef.current&&Le.popupRef.current.popupRef.current&&Object(h.a)(Le.popupRef.current.popupRef.current,it.relatedTarget))return;Le.delaySetPopupVisible(!1,Le.props.mouseLeaveDelay)},Le.onFocus=function(it){Le.fireEvents("onFocus",it),Le.clearDelayTimer(),Le.isFocusToShow()&&(Le.focusTime=Date.now(),Le.delaySetPopupVisible(!0,Le.props.focusDelay))},Le.onMouseDown=function(it){Le.fireEvents("onMouseDown",it),Le.preClickTime=Date.now()},Le.onTouchStart=function(it){Le.fireEvents("onTouchStart",it),Le.preTouchTime=Date.now()},Le.onBlur=function(it){Le.fireEvents("onBlur",it),Le.clearDelayTimer(),Le.isBlurToHide()&&Le.delaySetPopupVisible(!1,Le.props.blurDelay)},Le.onContextMenu=function(it){it.preventDefault(),Le.fireEvents("onContextMenu",it),Le.setPopupVisible(!0,it)},Le.onContextMenuClose=function(){Le.isContextMenuToShow()&&Le.close()},Le.onClick=function(it){if(Le.fireEvents("onClick",it),Le.focusTime){var ft;if(Le.preClickTime&&Le.preTouchTime?ft=Math.min(Le.preClickTime,Le.preTouchTime):Le.preClickTime?ft=Le.preClickTime:Le.preTouchTime&&(ft=Le.preTouchTime),Math.abs(ft-Le.focusTime)<20)return;Le.focusTime=0}Le.preClickTime=0,Le.preTouchTime=0,Le.isClickToShow()&&(Le.isClickToHide()||Le.isBlurToHide())&&it&&it.preventDefault&&it.preventDefault();var Nt=!Le.state.popupVisible;(Le.isClickToHide()&&!Nt||Nt&&Le.isClickToShow())&&Le.setPopupVisible(!Le.state.popupVisible,it)},Le.onPopupMouseDown=function(){if(Le.hasPopupMouseDown=!0,clearTimeout(Le.mouseDownTimeout),Le.mouseDownTimeout=window.setTimeout(function(){Le.hasPopupMouseDown=!1},0),Le.context){var it;(it=Le.context).onPopupMouseDown.apply(it,arguments)}},Le.onDocumentClick=function(it){if(Le.props.mask&&!Le.props.maskClosable)return;var ft=it.target,Nt=Le.getRootDomNode(),Ar=Le.getPopupDomNode();!Object(h.a)(Nt,ft)&&!Object(h.a)(Ar,ft)&&!Le.hasPopupMouseDown&&Le.close()},Le.getRootDomNode=function(){var it=Le.props.getTriggerDOMNode;if(it)return it(Le.triggerRef.current);try{var ft=Object(p.a)(Le.triggerRef.current);if(ft)return ft}catch(Nt){}return u.a.findDOMNode(Object(s.a)(Le))},Le.getPopupClassNameFromAlign=function(it){var ft=[],Nt=Le.props,Ar=Nt.popupPlacement,Mr=Nt.builtinPlacements,un=Nt.prefixCls,Mt=Nt.alignPoint,at=Nt.getPopupClassNameFromAlign;return Ar&&Mr&&ft.push(_(Mr,un,it,Mt)),at&&ft.push(at(it)),ft.join(" ")},Le.getComponent=function(){var it=Le.props,ft=it.prefixCls,Nt=it.destroyPopupOnHide,Ar=it.popupClassName,Mr=it.onPopupAlign,un=it.popupMotion,Mt=it.popupAnimation,at=it.popupTransitionName,lt=it.popupStyle,rr=it.mask,Bt=it.maskAnimation,_t=it.maskTransitionName,Kt=it.maskMotion,wt=it.zIndex,Ut=it.popup,Sr=it.stretch,hr=it.alignPoint,gr=Le.state,Jr=gr.popupVisible,$r=gr.point,Pn=Le.getPopupAlign(),Dn={};return Le.isMouseEnterToShow()&&(Dn.onMouseEnter=Le.onPopupMouseEnter),Le.isMouseLeaveToHide()&&(Dn.onMouseLeave=Le.onPopupMouseLeave),Dn.onMouseDown=Le.onPopupMouseDown,Dn.onTouchStart=Le.onPopupMouseDown,c.a.createElement(Je,Object.assign({prefixCls:ft,destroyPopupOnHide:Nt,visible:Jr,point:hr&&$r,className:Ar,align:Pn,onAlign:Mr,animation:Mt,getClassNameFromAlign:Le.getPopupClassNameFromAlign},Dn,{stretch:Sr,getRootDomNode:Le.getRootDomNode,style:lt,mask:rr,zIndex:wt,transitionName:at,maskAnimation:Bt,maskTransitionName:_t,maskMotion:Kt,ref:Le.popupRef,motion:un}),typeof Ut=="function"?Ut():Ut)},Le.getContainer=function(){var it=Object(s.a)(Le),ft=it.props,Nt=document.createElement("div");Nt.style.position="absolute",Nt.style.top="0",Nt.style.left="0",Nt.style.width="100%";var Ar=ft.getPopupContainer?ft.getPopupContainer(Le.getRootDomNode()):ft.getDocument().body;return Ar.appendChild(Nt),Nt},Le.setPoint=function(it){var ft=Le.props.alignPoint;if(!ft||!it)return;Le.setState({point:{pageX:it.pageX,pageY:it.pageY}})},Le.handlePortalUpdate=function(){Le.state.prevPopupVisible!==Le.state.popupVisible&&Le.props.afterPopupVisibleChange(Le.state.popupVisible)};var Ze;return"popupVisible"in _e?Ze=!!_e.popupVisible:Ze=!!_e.defaultPopupVisible,Le.state={prevPopupVisible:Ze,popupVisible:Ze},Ct.forEach(function(it){Le["fire".concat(it)]=function(ft){Le.fireEvents(it,ft)}}),Le}return Object(e.a)(Ie,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Le=this.props,Ze=this.state;if(Ze.popupVisible){var it;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(it=Le.getDocument(),this.clickOutsideHandler=Object(v.a)(it,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(it=it||Le.getDocument(),this.touchOutsideHandler=Object(v.a)(it,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(it=it||Le.getDocument(),this.contextMenuOutsideHandler1=Object(v.a)(it,"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 Le=this.props,Ze=Le.popupPlacement,it=Le.popupAlign,ft=Le.builtinPlacements;return Ze&&ft?b(ft,Ze,it):it}},{key:"setPopupVisible",value:function(Le,Ze){var it=this.props.alignPoint,ft=this.state.popupVisible;this.clearDelayTimer(),ft!==Le&&("popupVisible"in this.props||this.setState({popupVisible:Le,prevPopupVisible:ft}),this.props.onPopupVisibleChange(Le)),it&&Ze&&this.setPoint(Ze)}},{key:"delaySetPopupVisible",value:function(Le,Ze,it){var ft=this,Nt=Ze*1e3;if(this.clearDelayTimer(),Nt){var Ar=it?{pageX:it.pageX,pageY:it.pageY}:null;this.delayTimer=window.setTimeout(function(){ft.setPopupVisible(Le,Ar),ft.clearDelayTimer()},Nt)}else this.setPopupVisible(Le,it)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Le){var Ze=this.props.children.props,it=this.props;return Ze[Le]&&it[Le]?this["fire".concat(Le)]:Ze[Le]||it[Le]}},{key:"isClickToShow",value:function(){var Le=this.props,Ze=Le.action,it=Le.showAction;return Ze.indexOf("click")!==-1||it.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Le=this.props,Ze=Le.action,it=Le.showAction;return Ze.indexOf("contextMenu")!==-1||it.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Le=this.props,Ze=Le.action,it=Le.hideAction;return Ze.indexOf("click")!==-1||it.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Le=this.props,Ze=Le.action,it=Le.showAction;return Ze.indexOf("hover")!==-1||it.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Le=this.props,Ze=Le.action,it=Le.hideAction;return Ze.indexOf("hover")!==-1||it.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Le=this.props,Ze=Le.action,it=Le.showAction;return Ze.indexOf("focus")!==-1||it.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Le=this.props,Ze=Le.action,it=Le.hideAction;return Ze.indexOf("focus")!==-1||it.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Le,Ze){var it=this.props.children.props[Le];it&&it(Ze);var ft=this.props[Le];ft&&ft(Ze)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Le=this.state.popupVisible,Ze=this.props,it=Ze.children,ft=Ze.forceRender,Nt=Ze.alignPoint,Ar=Ze.className,Mr=Ze.autoDestroy,un=c.a.Children.only(it),Mt={key:"trigger"};this.isContextMenuToShow()?Mt.onContextMenu=this.onContextMenu:Mt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Mt.onClick=this.onClick,Mt.onMouseDown=this.onMouseDown,Mt.onTouchStart=this.onTouchStart):(Mt.onClick=this.createTwoChains("onClick"),Mt.onMouseDown=this.createTwoChains("onMouseDown"),Mt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Mt.onMouseEnter=this.onMouseEnter,Nt&&(Mt.onMouseMove=this.onMouseMove)):Mt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Mt.onMouseLeave=this.onMouseLeave:Mt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Mt.onFocus=this.onFocus,Mt.onBlur=this.onBlur):(Mt.onFocus=this.createTwoChains("onFocus"),Mt.onBlur=this.createTwoChains("onBlur"));var at=T()(un&&un.props&&un.props.className,Ar);at&&(Mt.className=at);var lt=Object(r.a)({},Mt);Object(g.c)(un)&&(lt.ref=Object(g.a)(this.triggerRef,un.ref));var rr=c.a.cloneElement(un,lt),Bt;return(Le||this.popupRef.current||ft)&&(Bt=c.a.createElement(bn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Le&&Mr&&(Bt=null),c.a.createElement(et.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},rr,Bt)}}],[{key:"getDerivedStateFromProps",value:function(Le,Ze){var it=Le.popupVisible,ft={};return it!==void 0&&Ze.popupVisible!==it&&(ft.popupVisible=it,ft.prevPopupVisible=Ze.popupVisible),ft}}]),Ie}(c.a.Component);return Mn.contextType=et,Mn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:nt,getDocument:Ot,onPopupVisibleChange:ze,afterPopupVisibleChange:ze,onPopupAlign:ze,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Mn}var Dt=Tt(y.a),Be={adjustX:1,adjustY:1},ie=[0,0],X={left:{points:["cr","cl"],overflow:Be,offset:[-4,0],targetOffset:ie},right:{points:["cl","cr"],overflow:Be,offset:[4,0],targetOffset:ie},top:{points:["bc","tc"],overflow:Be,offset:[0,-4],targetOffset:ie},bottom:{points:["tc","bc"],overflow:Be,offset:[0,4],targetOffset:ie},topLeft:{points:["bl","tl"],overflow:Be,offset:[0,-4],targetOffset:ie},leftTop:{points:["tr","tl"],overflow:Be,offset:[-4,0],targetOffset:ie},topRight:{points:["br","tr"],overflow:Be,offset:[0,-4],targetOffset:ie},rightTop:{points:["tl","tr"],overflow:Be,offset:[4,0],targetOffset:ie},bottomRight:{points:["tr","br"],overflow:Be,offset:[0,4],targetOffset:ie},rightBottom:{points:["bl","br"],overflow:Be,offset:[4,0],targetOffset:ie},bottomLeft:{points:["tl","bl"],overflow:Be,offset:[0,4],targetOffset:ie},leftBottom:{points:["br","bl"],overflow:Be,offset:[-4,0],targetOffset:ie}},Fe=X,Ne=function(Mn){var jt=Mn.overlay,St=Mn.prefixCls,Ie=Mn.id,_e=Mn.overlayInnerStyle;return f.createElement("div",{className:"".concat(St,"-inner"),id:Ie,role:"tooltip",style:_e},typeof jt=="function"?jt():jt)},q=Ne,ht=function(Mn,jt){var St=Mn.overlayClassName,Ie=Mn.trigger,_e=Ie===void 0?["hover"]:Ie,Le=Mn.mouseEnterDelay,Ze=Le===void 0?0:Le,it=Mn.mouseLeaveDelay,ft=it===void 0?.1:it,Nt=Mn.overlayStyle,Ar=Mn.prefixCls,Mr=Ar===void 0?"rc-tooltip":Ar,un=Mn.children,Mt=Mn.onVisibleChange,at=Mn.afterVisibleChange,lt=Mn.transitionName,rr=Mn.animation,Bt=Mn.placement,_t=Bt===void 0?"right":Bt,Kt=Mn.align,wt=Kt===void 0?{}:Kt,Ut=Mn.destroyTooltipOnHide,Sr=Ut===void 0?!1:Ut,hr=Mn.defaultVisible,gr=Mn.getTooltipContainer,Jr=Mn.overlayInnerStyle,$r=Object(i.a)(Mn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Pn=Object(f.useRef)(null);Object(f.useImperativeHandle)(jt,function(){return Pn.current});var Dn=Object(r.a)({},$r);"visible"in Mn&&(Dn.popupVisible=Mn.visible);var Zn=function(){var Se=Mn.arrowContent,Re=Se===void 0?null:Se,je=Mn.overlay,Ye=Mn.id;return[f.createElement("div",{className:"".concat(Mr,"-arrow"),key:"arrow"},Re),f.createElement(q,{key:"content",prefixCls:Mr,id:Ye,overlay:je,overlayInnerStyle:Jr})]},li=!1,Ai=!1;if(typeof Sr=="boolean")li=Sr;else if(Sr&&Object(o.a)(Sr)==="object"){var Ii=Sr.keepParent;li=Ii===!0,Ai=Ii===!1}return f.createElement(Dt,Object.assign({popupClassName:St,prefixCls:Mr,popup:Zn,action:_e,builtinPlacements:X,popupPlacement:_t,ref:Pn,popupAlign:wt,getPopupContainer:gr,onPopupVisibleChange:Mt,afterPopupVisibleChange:at,popupTransitionName:lt,popupAnimation:rr,defaultPopupVisible:hr,destroyPopupOnHide:li,autoDestroy:Ai,mouseLeaveDelay:ft,popupStyle:Nt,mouseEnterDelay:Ze},Dn),un)},Rt=Object(f.forwardRef)(ht),ut=Rt,Xt={adjustX:1,adjustY:1},or={adjustX:0,adjustY:0},Zr=[0,0];function ar(bn){return typeof bn=="boolean"?bn?Xt:or:m()(m()({},or),bn)}function dr(bn){var Mn=bn.arrowWidth,jt=Mn===void 0?5:Mn,St=bn.horizontalArrowShift,Ie=St===void 0?16:St,_e=bn.verticalArrowShift,Le=_e===void 0?8:_e,Ze=bn.autoAdjustOverflow,it={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(Ie+jt),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Le+jt)]},topRight:{points:["br","tc"],offset:[Ie+jt,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Le+jt)]},bottomRight:{points:["tr","bc"],offset:[Ie+jt,4]},rightBottom:{points:["bl","cr"],offset:[4,Le+jt]},bottomLeft:{points:["tl","bc"],offset:[-(Ie+jt),4]},leftBottom:{points:["br","cl"],offset:[-4,Le+jt]}};return Object.keys(it).forEach(function(ft){it[ft]=bn.arrowPointAtCenter?m()(m()({},it[ft]),{overflow:ar(Ze),targetOffset:Zr}):m()(m()({},X[ft]),{overflow:ar(Ze)}),it[ft].ignoreShake=!0}),it}var er=d("0n0R"),Ht=d("H84U"),dt=d("09Wf"),Hr=function(Mn,jt){var St={},Ie=m()({},Mn);return jt.forEach(function(_e){Mn&&_e in Mn&&(St[_e]=Mn[_e],delete Ie[_e])}),{picked:St,omitted:Ie}},dn=new RegExp("^(".concat(dt.a.join("|"),")(-inverse)?$"));function Nn(bn,Mn){var jt=bn.type;if((jt.__ANT_BUTTON===!0||jt.__ANT_SWITCH===!0||jt.__ANT_CHECKBOX===!0||bn.type==="button")&&bn.props.disabled){var St=Hr(bn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Ie=St.picked,_e=St.omitted,Le=m()(m()({display:"inline-block"},Ie),{cursor:"not-allowed",width:bn.props.block?"100%":null}),Ze=m()(m()({},_e),{pointerEvents:"none"}),it=Object(er.a)(bn,{style:Ze,className:null});return f.createElement("span",{style:Le,className:T()(bn.props.className,"".concat(Mn,"-disabled-compatible-wrapper"))},it)}return bn}var Vn=f.forwardRef(function(bn,Mn){var jt,St=f.useContext(Ht.b),Ie=St.getPopupContainer,_e=St.getPrefixCls,Le=St.direction,Ze=f.useState(!!bn.visible||!!bn.defaultVisible),it=A()(Ze,2),ft=it[0],Nt=it[1];f.useEffect(function(){"visible"in bn&&Nt(bn.visible)},[bn.visible]);var Ar=function(){var Ii=bn.title,$e=bn.overlay;return!Ii&&!$e&&Ii!==0},Mr=function(Ii){"visible"in bn||Nt(Ar()?!1:Ii),bn.onVisibleChange&&!Ar()&&bn.onVisibleChange(Ii)},un=function(){var Ii=bn.builtinPlacements,$e=bn.arrowPointAtCenter,Se=bn.autoAdjustOverflow;return Ii||dr({arrowPointAtCenter:$e,autoAdjustOverflow:Se})},Mt=function(Ii,$e){var Se=un(),Re=Object.keys(Se).filter(function(Ve){return Se[Ve].points[0]===$e.points[0]&&Se[Ve].points[1]===$e.points[1]})[0];if(!Re)return;var je=Ii.getBoundingClientRect(),Ye={top:"50%",left:"50%"};Re.indexOf("top")>=0||Re.indexOf("Bottom")>=0?Ye.top="".concat(je.height-$e.offset[1],"px"):(Re.indexOf("Top")>=0||Re.indexOf("bottom")>=0)&&(Ye.top="".concat(-$e.offset[1],"px")),Re.indexOf("left")>=0||Re.indexOf("Right")>=0?Ye.left="".concat(je.width-$e.offset[0],"px"):(Re.indexOf("right")>=0||Re.indexOf("Left")>=0)&&(Ye.left="".concat(-$e.offset[0],"px")),Ii.style.transformOrigin="".concat(Ye.left," ").concat(Ye.top)},at=function(){var Ii=bn.title,$e=bn.overlay;return Ii===0?Ii:$e||Ii||""},lt=bn.prefixCls,rr=bn.openClassName,Bt=bn.getPopupContainer,_t=bn.getTooltipContainer,Kt=bn.overlayClassName,wt=bn.color,Ut=bn.overlayInnerStyle,Sr=bn.children,hr=_e("tooltip",lt),gr=ft;!("visible"in bn)&&Ar()&&(gr=!1);var Jr=Nn(Object(er.b)(Sr)?Sr:f.createElement("span",null,Sr),hr),$r=Jr.props,Pn=T()($r.className,E()({},rr||"".concat(hr,"-open"),!0)),Dn=T()(Kt,(jt={},E()(jt,"".concat(hr,"-rtl"),Le==="rtl"),E()(jt,"".concat(hr,"-").concat(wt),wt&&dn.test(wt)),jt)),Zn,li;return wt&&!dn.test(wt)&&(Zn=m()(m()({},Ut),{background:wt}),li={background:wt}),f.createElement(ut,m()({},bn,{prefixCls:hr,overlayClassName:Dn,getTooltipContainer:Bt||_t||Ie,ref:Mn,builtinPlacements:un(),overlay:at(),visible:gr,onVisibleChange:Mr,onPopupAlign:Mt,overlayInnerStyle:Zn,arrowContent:f.createElement("span",{className:"".concat(hr,"-arrow-content"),style:li})}),gr?Object(er.a)(Jr,{className:Pn}):Jr)});Vn.displayName="Tooltip",Vn.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var gi=B.a=Vn},"3TkU":function(H,B,d){d("aTJb"),d("OlYY"),d("fc+c"),d("QUw5"),d("Swgg"),d("LBfv"),d("noeP")},"3X6L":function(H,B,d){var O=d("bYtY"),E=d("7a+S"),C=d("OKJ2"),A=E.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});O.mixin(A,C);var w=A;H.exports=w},"3e3G":function(H,B,d){var O=d("bYtY"),E=d("QuXc"),C=function(m,f,c,o,r){this.x=m==null?.5:m,this.y=f==null?.5:f,this.r=c==null?.5:c,this.type="radial",this.global=r||!1,E.call(this,o)};C.prototype={constructor:C},O.inherits(C,E);var A=C;H.exports=A},"3gBT":function(H,B){var d=2311;function O(){return d++}H.exports=O},"3hzK":function(H,B){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,B){function d(E){return E instanceof Array||(E=[E,E]),E}function O(E){E.eachSeriesByType("graph",function(C){var A=C.getGraph(),w=C.getEdgeData(),m=d(C.get("edgeSymbol")),f=d(C.get("edgeSymbolSize")),c="lineStyle.color".split("."),o="lineStyle.opacity".split(".");w.setVisual("fromSymbol",m&&m[0]),w.setVisual("toSymbol",m&&m[1]),w.setVisual("fromSymbolSize",f&&f[0]),w.setVisual("toSymbolSize",f&&f[1]),w.setVisual("color",C.get(c)),w.setVisual("opacity",C.get(o)),w.each(function(r){var i=w.getItemModel(r),n=A.getEdgeByIndex(r),e=d(i.getShallow("symbol",!0)),s=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]),s[0]&&n.setVisual("fromSymbolSize",s[0]),s[1]&&n.setVisual("toSymbolSize",s[1]),n.setVisual("color",t),n.setVisual("opacity",a)})})}H.exports=O},"3ouR":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 00354 671z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"close-square",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="CloseSquareOutlined";var f=B.a=E.forwardRef(m)},"3y9D":function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.WordArray,w=C.Hasher,m=E.algo,f=[],c=m.SHA1=w.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],s=n[1],t=n[2],a=n[3],l=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)+l+f[u];u<20?p+=(s&t|~s&a)+1518500249:u<40?p+=(s^t^a)+1859775393:u<60?p+=(s&t|s&a|t&a)-1894007588:p+=(s^t^a)-899497514,l=a,a=t,t=s<<30|s>>>2,s=e,e=p}n[0]=n[0]+e|0,n[1]=n[1]+s|0,n[2]=n[2]+t|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0},_doFinalize:function(){var r=this._data,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=w.clone.call(this);return r._hash=this._hash.clone(),r}});E.SHA1=w._createHelper(c),E.HmacSHA1=w._createHmacHelper(c)}(),O.SHA1})},"3zoK":function(H,B,d){var O=d("bYtY"),E=d("bLfw"),C=d("KCsZ"),A=d("nkfE"),w=d("OELB"),m=d("ICMv"),f=E.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return C([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(i){var n=this.activeIntervals=O.clone(i);if(n)for(var e=n.length-1;e>=0;e--)w.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 s=0,t=n.length;s<t;s++)if(n[s][0]<=i&&i<=n[s][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};O.merge(f.prototype,m);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,B){var d={}.toString;H.exports=Array.isArray||function(O){return d.call(O)=="[object Array]"}},"4Feb":function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("IwbS"),w=d("x3X8"),m=w.getDefaultLabel,f=d("MwEJ"),c=d("nVfU"),o=c.getLayoutOnAxis,r=d("gPAo"),i=d("T4UG"),n=d("Qxkt"),e=d("6Ic6"),s=d("sK/D"),t=s.createClipPath,a=d("qj72"),l=d("ANjR"),u=d("MHtr"),h=d("6usn"),p=d("Rx6q"),g=A.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],y=["emphasis","itemStyle"],x=["label"],T=["emphasis","label"],S="e\0\0",b={cartesian2d:a,geo:l,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(ne,ge){return f(this.getSource(),this)},getDataParams:function(ne,ge,Oe){var De=i.prototype.getDataParams.apply(this,arguments);return Oe&&(De.info=Oe.info),De}}),e.extend({type:"custom",_data:null,render:function(ne,ge,Oe,De){var He=this._data,pe=ne.getData(),Ue=this.group,oe=N(ne,pe,ge,Oe);pe.diff(He).add(function(Xe){R(null,Xe,oe(Xe,De),ne,Ue,pe)}).update(function(Xe,se){var Q=He.getItemGraphicEl(se);R(Q,Xe,oe(Xe,De),ne,Ue,pe)}).remove(function(Xe){var se=He.getItemGraphicEl(Xe);se&&Ue.remove(se)}).execute();var ee=ne.get("clip",!0)?t(ne.coordinateSystem,!1,ne):null;ee?Ue.setClipPath(ee):Ue.removeClipPath(),this._data=pe},incrementalPrepareRender:function(ne,ge,Oe){this.group.removeAll(),this._data=null},incrementalRender:function(ne,ge,Oe,De,He){var pe=ge.getData(),Ue=N(ge,pe,Oe,De);function oe(se){se.isGroup||(se.incremental=!0,se.useHoverLayer=!0)}for(var ee=ne.start;ee<ne.end;ee++){var Xe=R(null,ee,Ue(ee,He),ge,this.group,pe);Xe.traverse(oe)}},dispose:C.noop,filterForExposedEvent:function(ne,ge,Oe,De){var He=ge.element;if(He==null||Oe.name===He)return!0;for(;(Oe=Oe.parent)&&Oe!==this.group;)if(Oe.name===He)return!0;return!1}});function _(ne){var ge=ne.type,Oe;if(ge==="path"){var De=ne.shape,He=De.width!=null&&De.height!=null?{x:De.x||0,y:De.y||0,width:De.width,height:De.height}:null,pe=Y(De);Oe=A.makePath(pe,null,He,De.layout||"center"),Oe.__customPathData=pe}else if(ge==="image")Oe=new A.Image({}),Oe.__customImagePath=ne.style.image;else if(ge==="text")Oe=new A.Text({}),Oe.__customText=ne.style.text;else if(ge==="group")Oe=new A.Group;else{if(ge==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var Ue=A.getShapeClass(ge);Oe=new Ue}return Oe.__customGraphicType=ge,Oe.name=ne.name,Oe}function I(ne,ge,Oe,De,He,pe,Ue){var oe={},ee=Oe.style||{};if(Oe.shape&&(oe.shape=C.clone(Oe.shape)),Oe.position&&(oe.position=Oe.position.slice()),Oe.scale&&(oe.scale=Oe.scale.slice()),Oe.origin&&(oe.origin=Oe.origin.slice()),Oe.rotation&&(oe.rotation=Oe.rotation),ne.type==="image"&&Oe.style){var Xe=oe.style={};C.each(["x","y","width","height"],function(G){L(G,Xe,ee,ne.style,pe)})}if(ne.type==="text"&&Oe.style){var Xe=oe.style={};C.each(["x","y"],function(J){L(J,Xe,ee,ne.style,pe)}),!ee.hasOwnProperty("textFill")&&ee.fill&&(ee.textFill=ee.fill),!ee.hasOwnProperty("textStroke")&&ee.stroke&&(ee.textStroke=ee.stroke)}if(ne.type!=="group"&&(ne.useStyle(ee),pe)){ne.style.opacity=0;var se=ee.opacity;se==null&&(se=1),A.initProps(ne,{style:{opacity:se}},De,ge)}pe?ne.attr(oe):A.updateProps(ne,oe,De,ge),Oe.hasOwnProperty("z2")&&ne.attr("z2",Oe.z2||0),Oe.hasOwnProperty("silent")&&ne.attr("silent",Oe.silent),Oe.hasOwnProperty("invisible")&&ne.attr("invisible",Oe.invisible),Oe.hasOwnProperty("ignore")&&ne.attr("ignore",Oe.ignore),Oe.hasOwnProperty("info")&&ne.attr("info",Oe.info);var Q=Oe.styleEmphasis;A.setElementHoverStyle(ne,Q),Ue&&A.setAsHighDownDispatcher(ne,Q!==!1)}function L(ne,ge,Oe,De,He){Oe[ne]!=null&&!He&&(ge[ne]=Oe[ne],Oe[ne]=De[ne])}function N(ne,ge,Oe,De){var He=ne.get("renderItem"),pe=ne.coordinateSystem,Ue={};pe&&(Ue=pe.prepareCustoms?pe.prepareCustoms():b[pe.type](pe));var oe=C.defaults({getWidth:De.getWidth,getHeight:De.getHeight,getZr:De.getZr,getDevicePixelRatio:De.getDevicePixelRatio,value:Ce,style:Ee,styleEmphasis:le,visual:fe,barLayout:xe,currentSeriesIndices:Qe,font:ot},Ue.api||{}),ee={context:{},seriesId:ne.id,seriesName:ne.name,seriesIndex:ne.seriesIndex,coordSys:Ue.coordSys,dataInsideLength:ge.count(),encode:D(ne.getData())},Xe,se=!0,Q,G,J,ve;return function(Je,Te){return Xe=Je,se=!0,He&&He(C.defaults({dataIndexInside:Je,dataIndex:ge.getRawIndex(Je),actionType:Te?Te.type:null},ee),oe)};function de(Je){Je==null&&(Je=Xe),se&&(Q=ge.getItemModel(Je),G=Q.getModel(x),J=Q.getModel(T),ve=ge.getItemVisual(Je,"color"),se=!1)}function Ce(Je,Te){return Te==null&&(Te=Xe),ge.get(ge.getDimension(Je||0),Te)}function Ee(Je,Te){Te==null&&(Te=Xe),de(Te);var et=Q.getModel(v).getItemStyle();ve!=null&&(et.fill=ve);var ze=ge.getItemVisual(Te,"opacity");ze!=null&&(et.opacity=ze);var nt=Je?W(Je,G):G;return A.setTextStyle(et,nt,null,{autoColor:ve,isRectText:!0}),et.text=nt.getShallow("show")?C.retrieve2(ne.getFormattedLabel(Te,"normal"),m(ge,Te)):null,Je&&V(et,Je),et}function le(Je,Te){Te==null&&(Te=Xe),de(Te);var et=Q.getModel(y).getItemStyle(),ze=Je?W(Je,J):J;return A.setTextStyle(et,ze,null,{isRectText:!0},!0),et.text=ze.getShallow("show")?C.retrieve3(ne.getFormattedLabel(Te,"emphasis"),ne.getFormattedLabel(Te,"normal"),m(ge,Te)):null,Je&&V(et,Je),et}function fe(Je,Te){return Te==null&&(Te=Xe),ge.getItemVisual(Te,Je)}function xe(Je){if(pe.getBaseAxis){var Te=pe.getBaseAxis();return o(C.defaults({axis:Te},Je),De)}}function Qe(){return Oe.getCurrentSeriesIndices()}function ot(Je){return A.getFont(Je,Oe)}}function D(ne){var ge={};return C.each(ne.dimensions,function(Oe,De){var He=ne.getDimensionInfo(Oe);if(!He.isExtraCoord){var pe=He.coordDim,Ue=ge[pe]=ge[pe]||[];Ue[He.coordDimIndex]=De}}),ge}function R(ne,ge,Oe,De,He,pe){return ne=P(ne,ge,Oe,De,He,pe,!0),ne&&pe.setItemGraphicEl(ge,ne),ne}function P(ne,ge,Oe,De,He,pe,Ue){var oe=!Oe;Oe=Oe||{};var ee=Oe.type,Xe=Oe.shape,se=Oe.style;if(ne&&(oe||ee!=null&&ee!==ne.__customGraphicType||ee==="path"&&$(Xe)&&Y(Xe)!==ne.__customPathData||ee==="image"&&ue(se,"image")&&se.image!==ne.__customImagePath||ee==="text"&&ue(Xe,"text")&&se.text!==ne.__customText)&&(He.remove(ne),ne=null),oe)return;var Q=!ne;return!ne&&(ne=_(Oe)),I(ne,ge,Oe,De,pe,Q,Ue),ee==="group"&&M(ne,ge,Oe,De,pe),He.add(ne),ne}function M(ne,ge,Oe,De,He){var pe=Oe.children,Ue=pe?pe.length:0,oe=Oe.$mergeChildren,ee=oe==="byName"||Oe.diffChildrenByName,Xe=oe===!1;if(!Ue&&!ee&&!Xe)return;if(ee){U({oldChildren:ne.children()||[],newChildren:pe||[],dataIndex:ge,animatableModel:De,group:ne,data:He});return}Xe&&ne.removeAll();for(var se=0;se<Ue;se++)pe[se]&&P(ne.childAt(se),ge,pe[se],De,ne,He)}function U(ne){new r(ne.oldChildren,ne.newChildren,F,F,ne).add(j).update(j).remove(z).execute()}function F(ne,ge){var Oe=ne&&ne.name;return Oe!=null?Oe:S+ge}function j(ne,ge){var Oe=this.context,De=ne!=null?Oe.newChildren[ne]:null,He=ge!=null?Oe.oldChildren[ge]:null;P(He,Oe.dataIndex,De,Oe.animatableModel,Oe.group,Oe.data)}function W(ne,ge){var Oe=new n({},ge);return C.each(g,function(De,He){ne.hasOwnProperty(De)&&(Oe.option[He]=ne[De])}),Oe}function V(ne,ge){for(var Oe in ge)(ge.hasOwnProperty(Oe)||!g.hasOwnProperty(Oe))&&(ne[Oe]=ge[Oe])}function z(ne){var ge=this.context,Oe=ge.oldChildren[ne];Oe&&ge.group.remove(Oe)}function Y(ne){return ne&&(ne.pathData||ne.d)}function $(ne){return ne&&(ne.hasOwnProperty("pathData")||ne.hasOwnProperty("d"))}function ue(ne,ge){return ne&&ne.hasOwnProperty(ge)}},"4HMb":function(H,B,d){var O=d("bYtY"),E=d("6GrX"),C=d("4NO4"),A=C.makeInner,w=d("aX7z"),m=w.makeLabelFormatter,f=w.getOptionCategoryInterval,c=w.shouldShowAllLabels,o=A();function r(x){return x.type==="category"?n(x):t(x)}function i(x,T){return x.type==="category"?s(x,T):{ticks:x.scale.getTicks()}}function n(x){var T=x.getLabelModel(),S=e(x,T);return!T.get("show")||x.scale.isBlank()?{labels:[],labelCategoryInterval:S.labelCategoryInterval}:S}function e(x,T){var S=a(x,"labels"),b=f(T),_=l(S,b);if(_)return _;var I,L;return O.isFunction(b)?I=y(x,b):(L=b==="auto"?h(x):b,I=v(x,L)),u(S,b,{labels:I,labelCategoryInterval:L})}function s(x,T){var S=a(x,"ticks"),b=f(T),_=l(S,b);if(_)return _;var I,L;if((!T.get("show")||x.scale.isBlank())&&(I=[]),O.isFunction(b))I=y(x,b,!0);else if(b==="auto"){var N=e(x,x.getLabelModel());L=N.labelCategoryInterval,I=O.map(N.labels,function(D){return D.tickValue})}else L=b,I=v(x,L,!0);return u(S,b,{ticks:I,tickCategoryInterval:L})}function t(x){var T=x.scale.getTicks(),S=m(x);return{labels:O.map(T,function(b,_){return{formattedLabel:S(b,_),rawLabel:x.scale.getLabel(b),tickValue:b}})}}function a(x,T){return o(x)[T]||(o(x)[T]=[])}function l(x,T){for(var S=0;S<x.length;S++)if(x[S].key===T)return x[S].value}function u(x,T,S){return x.push({key:T,value:S}),S}function h(x){var T=o(x).autoInterval;return T!=null?T:o(x).autoInterval=x.calculateCategoryInterval()}function p(x){var T=g(x),S=m(x),b=(T.axisRotate-T.labelRotate)/180*Math.PI,_=x.scale,I=_.getExtent(),L=_.count();if(I[1]-I[0]<1)return 0;var N=1;L>40&&(N=Math.max(1,Math.floor(L/40)));for(var D=I[0],R=x.dataToCoord(D+1)-x.dataToCoord(D),P=Math.abs(R*Math.cos(b)),M=Math.abs(R*Math.sin(b)),U=0,F=0;D<=I[1];D+=N){var j=0,W=0,V=E.getBoundingRect(S(D),T.font,"center","top");j=V.width*1.3,W=V.height*1.3,U=Math.max(U,j,7),F=Math.max(F,W,7)}var z=U/P,Y=F/M;isNaN(z)&&(z=Infinity),isNaN(Y)&&(Y=Infinity);var $=Math.max(0,Math.floor(Math.min(z,Y))),ue=o(x.model),ne=x.getExtent(),ge=ue.lastAutoInterval,Oe=ue.lastTickCount;return ge!=null&&Oe!=null&&Math.abs(ge-$)<=1&&Math.abs(Oe-L)<=1&&ge>$&&ue.axisExtend0===ne[0]&&ue.axisExtend1===ne[1]?$=ge:(ue.lastTickCount=L,ue.lastAutoInterval=$,ue.axisExtend0=ne[0],ue.axisExtend1=ne[1]),$}function g(x){var T=x.getLabelModel();return{axisRotate:x.getRotate?x.getRotate():x.isHorizontal&&!x.isHorizontal()?90:0,labelRotate:T.get("rotate")||0,font:T.getFont()}}function v(x,T,S){var b=m(x),_=x.scale,I=_.getExtent(),L=x.getLabelModel(),N=[],D=Math.max((T||0)+1,1),R=I[0],P=_.count();R!==0&&D>1&&P/D>2&&(R=Math.round(Math.ceil(R/D)*D));var M=c(x),U=L.get("showMinLabel")||M,F=L.get("showMaxLabel")||M;U&&R!==I[0]&&W(I[0]);for(var j=R;j<=I[1];j+=D)W(j);F&&j-D!==I[1]&&W(I[1]);function W(V){N.push(S?V:{formattedLabel:b(V),rawLabel:_.getLabel(V),tickValue:V})}return N}function y(x,T,S){var b=x.scale,_=m(x),I=[];return O.each(b.getTicks(),function(L){var N=b.getLabel(L);T(L,N)&&I.push(S?L:{formattedLabel:_(L),rawLabel:N,tickValue:L})}),I}B.createAxisLabels=r,B.createAxisTicks=i,B.calculateCategoryInterval=p},"4NO4":function(H,B,d){var O=d("bYtY"),E=d("ItGF"),C=O.each,A=O.isObject,w=O.isArray,m="series\0";function f(S){return S instanceof Array?S:S==null?[]:[S]}function c(S,b,_){if(S){S[b]=S[b]||{},S.emphasis=S.emphasis||{},S.emphasis[b]=S.emphasis[b]||{};for(var I=0,L=_.length;I<L;I++){var N=_[I];!S.emphasis[b].hasOwnProperty(N)&&S[b].hasOwnProperty(N)&&(S.emphasis[b][N]=S[b][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(S){return A(S)&&!w(S)&&!(S instanceof Date)?S.value:S}function i(S){return A(S)&&!(S instanceof Array)}function n(S,b){b=(b||[]).slice();var _=O.map(S||[],function(I,L){return{exist:I}});return C(b,function(I,L){if(!A(I))return;for(var N=0;N<_.length;N++)if(!_[N].option&&I.id!=null&&_[N].exist.id===I.id+""){_[N].option=I,b[L]=null;return}for(var N=0;N<_.length;N++){var D=_[N].exist;if(!_[N].option&&(D.id==null||I.id==null)&&I.name!=null&&!t(I)&&!t(D)&&D.name===I.name+""){_[N].option=I,b[L]=null;return}}}),C(b,function(I,L){if(!A(I))return;for(var N=0;N<_.length;N++){var D=_[N].exist;if(!_[N].option&&!t(D)&&I.id==null){_[N].option=I;break}}N>=_.length&&_.push({option:I})}),_}function e(S){var b=O.createHashMap();C(S,function(_,I){var L=_.exist;L&&b.set(L.id,_)}),C(S,function(_,I){var L=_.option;O.assert(!L||L.id==null||!b.get(L.id)||b.get(L.id)===_,"id duplicates: "+(L&&L.id)),L&&L.id!=null&&b.set(L.id,_),!_.keyInfo&&(_.keyInfo={})}),C(S,function(_,I){var L=_.exist,N=_.option,D=_.keyInfo;if(!A(N))return;if(D.name=N.name!=null?N.name+"":L?L.name:m+I,L)D.id=L.id;else if(N.id!=null)D.id=N.id+"";else{var R=0;do D.id="\0"+D.name+"\0"+R++;while(b.get(D.id))}b.set(D.id,_)})}function s(S){var b=S.name;return!!(b&&b.indexOf(m))}function t(S){return A(S)&&S.id&&(S.id+"").indexOf("\0_ec_\0")===0}function a(S,b){var _={},I={};return L(S||[],_),L(b||[],I,_),[N(_),N(I)];function L(D,R,P){for(var M=0,U=D.length;M<U;M++)for(var F=D[M].seriesId,j=f(D[M].dataIndex),W=P&&P[F],V=0,z=j.length;V<z;V++){var Y=j[V];W&&W[Y]?W[Y]=null:(R[F]||(R[F]={}))[Y]=1}}function N(D,R){var P=[];for(var M in D)if(D.hasOwnProperty(M)&&D[M]!=null)if(R)P.push(+M);else{var U=N(D[M],!0);U.length&&P.push({seriesId:M,dataIndex:U})}return P}}function l(S,b){if(b.dataIndexInside!=null)return b.dataIndexInside;if(b.dataIndex!=null)return O.isArray(b.dataIndex)?O.map(b.dataIndex,function(_){return S.indexOfRawIndex(_)}):S.indexOfRawIndex(b.dataIndex);if(b.name!=null)return O.isArray(b.name)?O.map(b.name,function(_){return S.indexOfName(_)}):S.indexOfName(b.name)}function u(){var S="__\0ec_inner_"+h+++"_"+Math.random().toFixed(5);return function(b){return b[S]||(b[S]={})}}var h=0;function p(S,b,_){if(O.isString(b)){var I={};I[b+"Index"]=0,b=I}var L=_&&_.defaultMainType;L&&!g(b,L+"Index")&&!g(b,L+"Id")&&!g(b,L+"Name")&&(b[L+"Index"]=0);var N={};return C(b,function(D,R){var D=b[R];if(R==="dataIndex"||R==="dataIndexInside"){N[R]=D;return}var P=R.match(/^(\w+)(Index|Id|Name)$/)||[],M=P[1],U=(P[2]||"").toLowerCase();if(!M||!U||D==null||U==="index"&&D==="none"||_&&_.includeMainTypes&&O.indexOf(_.includeMainTypes,M)<0)return;var F={mainType:M};(U!=="index"||D!=="all")&&(F[U]=D);var j=S.queryComponents(F);N[M+"Models"]=j,N[M+"Model"]=j[0]}),N}function g(S,b){return S&&S.hasOwnProperty(b)}function v(S,b,_){S.setAttribute?S.setAttribute(b,_):S[b]=_}function y(S,b){return S.getAttribute?S.getAttribute(b):S[b]}function x(S){return S==="auto"?E.domSupported?"html":"richText":S||"html"}function T(S,b){var _=O.createHashMap(),I=[];return O.each(S,function(L){var N=b(L);(_.get(N)||(I.push(N),_.set(N,[]))).push(L)}),{keys:I,buckets:_}}B.normalizeToArray=f,B.defaultEmphasis=c,B.TEXT_STYLE_OPTIONS=o,B.getDataItemValue=r,B.isDataItemOption=i,B.mappingToExists=n,B.makeIdAndName=e,B.isNameSpecified=s,B.isIdInner=t,B.compressBatches=a,B.queryDataIndex=l,B.makeInner=u,B.parseFinder=p,B.setAttribute=v,B.getAttribute=y,B.getTooltipRenderMode=x,B.groupData=T},"4NgU":function(H,B,d){var O=d("Yl7c");function E(A){this._setting=A||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}E.prototype.parse=function(A){return A},E.prototype.getSetting=function(A){return this._setting[A]},E.prototype.contain=function(A){var w=this._extent;return A>=w[0]&&A<=w[1]},E.prototype.normalize=function(A){var w=this._extent;return w[1]===w[0]?.5:(A-w[0])/(w[1]-w[0])},E.prototype.scale=function(A){var w=this._extent;return A*(w[1]-w[0])+w[0]},E.prototype.unionExtent=function(A){var w=this._extent;A[0]<w[0]&&(w[0]=A[0]),A[1]>w[1]&&(w[1]=A[1])},E.prototype.unionExtentFromData=function(A,w){this.unionExtent(A.getApproximateExtent(w))},E.prototype.getExtent=function(){return this._extent.slice()},E.prototype.setExtent=function(A,w){var m=this._extent;isNaN(A)||(m[0]=A),isNaN(w)||(m[1]=w)},E.prototype.isBlank=function(){return this._isBlank},E.prototype.setBlank=function(A){this._isBlank=A},E.prototype.getLabel=null,O.enableClassExtend(E),O.enableClassManagement(E,{registerWhenExtend:!0});var C=E;H.exports=C},"4fz+":function(H,B,d){var O=d("bYtY"),E=d("1bdT"),C=d("mFDi"),A=function(f){f=f||{},E.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 s=e.getBoundingRect(),t=e.getLocalTransform(i);t?(o.copy(s),o.applyTransform(t),c=c||o.clone(),c.union(o)):(c=c||s.clone(),c.union(s))}return c||o}},O.inherits(A,E);var w=A;H.exports=w},"4i/N":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="CloseOutlined";var f=B.a=E.forwardRef(m)},"4mN7":function(H,B,d){var O=d("QBsz"),E=d("Sj9i"),C=Math.min,A=Math.max,w=Math.sin,m=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 g=u[0],v=g[0],y=g[0],x=g[1],T=g[1],S;for(S=1;S<u.length;S++)g=u[S],v=C(v,g[0]),y=A(y,g[0]),x=C(x,g[1]),T=A(T,g[1]);h[0]=v,h[1]=x,p[0]=y,p[1]=T}function n(u,h,p,g,v,y){v[0]=C(u,p),v[1]=C(h,g),y[0]=A(u,p),y[1]=A(h,g)}var e=[],s=[];function t(u,h,p,g,v,y,x,T,S,b){var _=E.cubicExtrema,I=E.cubicAt,L,N=_(u,p,v,x,e);for(S[0]=Infinity,S[1]=Infinity,b[0]=-Infinity,b[1]=-Infinity,L=0;L<N;L++){var D=I(u,p,v,x,e[L]);S[0]=C(D,S[0]),b[0]=A(D,b[0])}for(N=_(h,g,y,T,s),L=0;L<N;L++){var R=I(h,g,y,T,s[L]);S[1]=C(R,S[1]),b[1]=A(R,b[1])}S[0]=C(u,S[0]),b[0]=A(u,b[0]),S[0]=C(x,S[0]),b[0]=A(x,b[0]),S[1]=C(h,S[1]),b[1]=A(h,b[1]),S[1]=C(T,S[1]),b[1]=A(T,b[1])}function a(u,h,p,g,v,y,x,T){var S=E.quadraticExtremum,b=E.quadraticAt,_=A(C(S(u,p,v),1),0),I=A(C(S(h,g,y),1),0),L=b(u,p,v,_),N=b(h,g,y,I);x[0]=C(u,v,L),x[1]=C(h,y,N),T[0]=A(u,v,L),T[1]=A(h,y,N)}function l(u,h,p,g,v,y,x,T,S){var b=O.min,_=O.max,I=Math.abs(v-y);if(I%f<1e-4&&I>1e-4){T[0]=u-p,T[1]=h-g,S[0]=u+p,S[1]=h+g;return}if(c[0]=m(v)*p+u,c[1]=w(v)*g+h,o[0]=m(y)*p+u,o[1]=w(y)*g+h,b(T,c,o),_(S,c,o),v=v%f,v<0&&(v=v+f),y=y%f,y<0&&(y=y+f),v>y&&!x?y+=f:v<y&&x&&(v+=f),x){var L=y;y=v,v=L}for(var N=0;N<y;N+=Math.PI/2)N>v&&(r[0]=m(N)*p+u,r[1]=w(N)*g+h,b(T,r,T),_(S,r,S))}B.fromPoints=i,B.fromLine=n,B.fromCubic=t,B.fromQuadratic=a,B.fromArc=l},"4vCz":function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("X2/X")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="PlusSquareOutlined";var c=A.forwardRef(f);B.default=c},"4xFK":function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},"56rv":function(H,B,d){var O=d("IwbS"),E=d("x3X8"),C=E.getDefaultLabel;function A(m,f,c,o,r,i,n){var e=c.getModel("label"),s=c.getModel("emphasis.label");O.setLabelStyle(m,f,e,s,{labelFetcher:r,labelDataIndex:i,defaultText:C(r.getData(),i),isRectText:!0,autoColor:o}),w(m),w(f)}function w(m,f){m.textPosition==="outside"&&(m.textPosition=f)}B.setLabel=A},"59Ip":function(H,B,d){var O=d("Sj9i");function E(C,A,w,m,f,c,o,r,i,n,e){if(i===0)return!1;var s=i;if(e>A+s&&e>m+s&&e>c+s&&e>r+s||e<A-s&&e<m-s&&e<c-s&&e<r-s||n>C+s&&n>w+s&&n>f+s&&n>o+s||n<C-s&&n<w-s&&n<f-s&&n<o-s)return!1;var t=O.cubicProjectPoint(C,A,w,m,f,c,o,r,n,e,null);return t<=s/2}B.containStroke=E},"5Dmo":function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("5YgA"),A=d.n(C)},"5GOC":function(H,B,d){"use strict";var O=d("cIOH"),E=d("b56q"),C=d("15/o")},"5GhG":function(H,B,d){var O=d("5GtS"),E=d("bYtY"),C=d("L0Ub"),A=C.getDimensionTypeByAxis,w=d("D5nY"),m=w.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"),s=n.get("type"),t;e==="category"?(c.layout="horizontal",r=i.getOrdinalMeta(),t=!0):s==="category"?(c.layout="vertical",r=n.getOrdinalMeta(),t=!0):c.layout=c.layout||"horizontal";var a=["x","y"],l=c.layout==="horizontal"?0:1,u=this._baseAxisDim=a[l],h=a[1-l],p=[i,n],g=p[l].get("type"),v=p[1-l].get("type"),y=c.data;if(y&&t){var x=[];E.each(y,function(b,_){var I;b.value&&E.isArray(b.value)?(I=b.value.slice(),b.value.unshift(_)):E.isArray(b)?(I=b.slice(),b.unshift(_)):I=b,x.push(I)}),c.data=x}var T=this.defaultValueDimensions,S=[{name:u,type:A(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:A(v),dimsDef:T.slice()}];return O(this,{coordDimensions:S,dimensionsCount:T.length+1,encodeDefaulter:E.curry(m,S,this)})},getBaseAxis:function(){var c=this._baseAxisDim;return this.ecModel.getComponent(c+"Axis",this.get(c+"AxisIndex")).axis}};B.seriesModelMixin=f},"5GtS":function(H,B,d){var O=d("sdST"),E=d("YXkt"),C=d("bYtY"),A=C.extend,w=C.isArray;function m(f,c,o){c=w(c)&&{coordDimensions:c}||A({},c);var r=f.getSource(),i=O(r,c),n=new E(i,f);return n.initData(r,o),n}H.exports=m},"5Hur":function(H,B,d){var O=d("4NO4"),E=O.makeInner,C=O.normalizeToArray,A=E();function w(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 m={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)),s=this.get("colorLayer",!0),t=o==null||!s?e:w(s,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=m},"5NDa":function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("OnYD"),A=d.n(C),w=d("+L6B")},"5NHt":function(H,B,d){d("aTJb"),d("OlYY"),d("fc+c"),d("N5BQ"),d("IyUQ"),d("LBfv"),d("noeP")},"5OYt":function(H,B,d){"use strict";var O=d("J4zp"),E=d.n(O),C=d("q1tI"),A=d.n(C),w=d("ACnJ");function m(){var f=Object(C.useState)({}),c=E()(f,2),o=c[0],r=c[1];return Object(C.useEffect)(function(){var i=w.a.subscribe(function(n){r(n)});return function(){return w.a.unsubscribe(i)}},[]),o}B.a=m},"5RzL":function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),s=d.n(e),t=d("1OyB"),a=d("vuIU"),l=d("Ji7U"),u=d("LK+K"),h=d("KQm4"),p=d("U8pU"),g=d("ODXe"),v=d("VTBJ"),y=d("rePB"),x=d("Ff2n"),T=d("4IlW"),S=d("TSYQ"),b=d.n(S),_=d("6cGi"),I=d("bX4T"),L=d("8XRh"),N=function(lr){var on=lr.className,Zt=lr.customizeIcon,br=lr.customizeIconProps,Or=lr.onMouseDown,Wr=lr.onClick,An=lr.children,bt;return typeof Zt=="function"?bt=Zt(br):bt=Zt,e.createElement("span",{className:on,onMouseDown:function(vr){vr.preventDefault(),Or&&Or(vr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Wr,"aria-hidden":!0},bt!==void 0?bt:e.createElement("span",{className:b()(on.split(/\s+/).map(function(mr){return"".concat(mr,"-icon")}))},An))},D=N,R=d("c+Xe"),P=function(lr,on){var Zt=lr.prefixCls,br=lr.id,Or=lr.inputElement,Wr=lr.disabled,An=lr.tabIndex,bt=lr.autoFocus,mr=lr.autoComplete,vr=lr.editable,Fr=lr.accessibilityIndex,nn=lr.value,cn=lr.maxLength,tn=lr.onKeyDown,Ln=lr.onMouseDown,Tn=lr.onChange,Xn=lr.onPaste,ci=lr.onCompositionStart,Jn=lr.onCompositionEnd,pi=lr.open,Si=lr.attrs,Ni=Or||e.createElement("input",null),xi=Ni,yi=xi.ref,vi=xi.props,Ti=vi.onKeyDown,Ui=vi.onChange,$i=vi.onMouseDown,Di=vi.onCompositionStart,ua=vi.onCompositionEnd,aa=vi.style;return Ni=e.cloneElement(Ni,Object(v.a)(Object(v.a)({id:br,ref:Object(R.a)(on,yi),disabled:Wr,tabIndex:An,autoComplete:mr||"off",type:"search",autoFocus:bt,className:"".concat(Zt,"-selection-search-input"),style:Object(v.a)(Object(v.a)({},aa),{},{opacity:vr?null:0}),role:"combobox","aria-expanded":pi,"aria-haspopup":"listbox","aria-owns":"".concat(br,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(br,"_list"),"aria-activedescendant":"".concat(br,"_list_").concat(Fr)},Si),{},{value:vr?nn:"",maxLength:cn,readOnly:!vr,unselectable:vr?null:"on",onKeyDown:function(Vi){tn(Vi),Ti&&Ti(Vi)},onMouseDown:function(Vi){Ln(Vi),$i&&$i(Vi)},onChange:function(Vi){Tn(Vi),Ui&&Ui(Vi)},onCompositionStart:function(Vi){ci(Vi),Di&&Di(Vi)},onCompositionEnd:function(Vi){Jn(Vi),ua&&ua(Vi)},onPaste:Xn})),Ni},M=e.forwardRef(P);M.displayName="Input";var U=M;function F(wr){return Array.isArray(wr)?wr:wr!==void 0?[wr]:[]}function j(wr,lr){var on=lr.labelInValue,Zt=lr.combobox;if(wr===void 0||wr===""&&Zt)return[];var br=Array.isArray(wr)?wr:[wr];return on?br.map(function(Or){var Wr=Or.key,An=Or.value;return An!==void 0?An:Wr}):br}function W(wr,lr){var on=lr.optionLabelProp,Zt=lr.labelInValue,br=lr.prevValue,Or=lr.options,Wr=lr.getLabeledValue,An=wr;return Zt&&(An=An.map(function(bt){return Wr(bt,{options:Or,prevValue:br,labelInValue:Zt,optionLabelProp:on})})),An}function V(wr,lr){var on=Object(h.a)(lr),Zt;for(Zt=wr.length-1;Zt>=0&&wr[Zt].disabled;Zt-=1);var br=null;return Zt!==-1&&(br=on[Zt],on.splice(Zt,1)),{values:on,removedValue:br}}var z=typeof window!="undefined"&&window.document&&window.document.documentElement,Y=z,$=0;function ue(){var wr;return Y?(wr=$,$+=1):wr="TEST_OR_SSR",wr}function ne(wr,lr){Y?e.useLayoutEffect(wr,lr):e.useEffect(wr,lr)}var ge="__RC_SELECT_MAX_REST_COUNT__",Oe=function(lr){var on=lr.id,Zt=lr.prefixCls,br=lr.values,Or=lr.open,Wr=lr.searchValue,An=lr.inputRef,bt=lr.placeholder,mr=lr.disabled,vr=lr.mode,Fr=lr.showSearch,nn=lr.autoFocus,cn=lr.autoComplete,tn=lr.accessibilityIndex,Ln=lr.tabIndex,Tn=lr.removeIcon,Xn=lr.choiceTransitionName,ci=lr.maxTagCount,Jn=lr.maxTagTextLength,pi=lr.maxTagPlaceholder,Si=pi===void 0?function(Ca){return"+ ".concat(Ca.length," ...")}:pi,Ni=lr.tagRender,xi=lr.onSelect,yi=lr.onInputChange,vi=lr.onInputPaste,Ti=lr.onInputKeyDown,Ui=lr.onInputMouseDown,$i=lr.onInputCompositionStart,Di=lr.onInputCompositionEnd,ua=Object(e.useState)(!1),aa=Object(g.a)(ua,2),Gi=aa[0],Vi=aa[1],ta=e.useRef(null),Xi=Object(e.useState)(0),ga=Object(g.a)(Xi,2),ra=ga[0],pa=ga[1],_a=Object(e.useState)(!1),Da=Object(g.a)(_a,2),Ra=Da[0],Ao=Da[1];e.useEffect(function(){Vi(!0)},[]);var ja=Or||vr==="tags"?Wr:"",Ya=vr==="tags"||Fr&&(Or||Ra);ne(function(){pa(ta.current.scrollWidth)},[ja]);var Ia=br,Va;typeof ci=="number"&&(Va=br.length-ci,Ia=br.slice(0,ci)),typeof Jn=="number"&&(Ia=Ia.map(function(Ca){var yo=Ca.label,uo=Object(x.a)(Ca,["label"]),Ga=yo;if(typeof yo=="string"||typeof yo=="number"){var Oo=String(Ga);Oo.length>Jn&&(Ga="".concat(Oo.slice(0,Jn),"..."))}return Object(v.a)(Object(v.a)({},uo),{},{label:Ga})})),Va>0&&Ia.push({key:ge,label:typeof Si=="function"?Si(br.slice(ci)):Si});var co=e.createElement(L.a,{component:!1,keys:Ia,motionName:Xn,motionAppear:Gi},function(Ca){var yo=Ca.key,uo=Ca.label,Ga=Ca.value,Oo=Ca.disabled,oa=Ca.className,qa=Ca.style,oo=yo||Ga,Ro=!mr&&yo!==ge&&!Oo,Xa=function(Ja){Ja.preventDefault(),Ja.stopPropagation()},_o=function(Ja){Ja&&Ja.stopPropagation(),xi(Ga,{selected:!1})};return typeof Ni=="function"?e.createElement("span",{key:oo,onMouseDown:Xa,className:oa,style:qa},Ni({label:uo,value:Ga,disabled:Oo,closable:Ro,onClose:_o})):e.createElement("span",{key:oo,className:b()(oa,"".concat(Zt,"-selection-item"),Object(y.a)({},"".concat(Zt,"-selection-item-disabled"),Oo)),style:qa},e.createElement("span",{className:"".concat(Zt,"-selection-item-content")},uo),Ro&&e.createElement(D,{className:"".concat(Zt,"-selection-item-remove"),onMouseDown:Xa,onClick:_o,customizeIcon:Tn},"\xD7"))});return e.createElement(e.Fragment,null,co,e.createElement("span",{className:"".concat(Zt,"-selection-search"),style:{width:ra},onFocus:function(){Ao(!0)},onBlur:function(){Ao(!1)}},e.createElement(U,{ref:An,open:Or,prefixCls:Zt,id:on,inputElement:null,disabled:mr,autoFocus:nn,autoComplete:cn,editable:Ya,accessibilityIndex:tn,value:ja,onKeyDown:Ti,onMouseDown:Ui,onChange:yi,onPaste:vi,onCompositionStart:$i,onCompositionEnd:Di,tabIndex:Ln,attrs:Object(I.a)(lr,!0)}),e.createElement("span",{ref:ta,className:"".concat(Zt,"-selection-search-mirror"),"aria-hidden":!0},ja,"\xA0")),!br.length&&!ja&&e.createElement("span",{className:"".concat(Zt,"-selection-placeholder")},bt))},De=Oe,He=function(lr){var on=lr.inputElement,Zt=lr.prefixCls,br=lr.id,Or=lr.inputRef,Wr=lr.disabled,An=lr.autoFocus,bt=lr.autoComplete,mr=lr.accessibilityIndex,vr=lr.mode,Fr=lr.open,nn=lr.values,cn=lr.placeholder,tn=lr.tabIndex,Ln=lr.showSearch,Tn=lr.searchValue,Xn=lr.activeValue,ci=lr.maxLength,Jn=lr.onInputKeyDown,pi=lr.onInputMouseDown,Si=lr.onInputChange,Ni=lr.onInputPaste,xi=lr.onInputCompositionStart,yi=lr.onInputCompositionEnd,vi=e.useState(!1),Ti=Object(g.a)(vi,2),Ui=Ti[0],$i=Ti[1],Di=vr==="combobox",ua=Di||Ln,aa=nn[0],Gi=Tn||"";Di&&Xn&&!Ui&&(Gi=Xn),e.useEffect(function(){Di&&$i(!1)},[Di,Xn]);var Vi=vr!=="combobox"&&!Fr?!1:!!Gi,ta=aa&&(typeof aa.label=="string"||typeof aa.label=="number")?aa.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(Zt,"-selection-search")},e.createElement(U,{ref:Or,prefixCls:Zt,id:br,open:Fr,inputElement:on,disabled:Wr,autoFocus:An,autoComplete:bt,editable:ua,accessibilityIndex:mr,value:Gi,onKeyDown:Jn,onMouseDown:pi,onChange:function(ga){$i(!0),Si(ga)},onPaste:Ni,onCompositionStart:xi,onCompositionEnd:yi,tabIndex:tn,attrs:Object(I.a)(lr,!0),maxLength:Di?ci:void 0})),!Di&&aa&&!Vi&&e.createElement("span",{className:"".concat(Zt,"-selection-item"),title:ta},aa.label),!aa&&!Vi&&e.createElement("span",{className:"".concat(Zt,"-selection-placeholder")},cn))},pe=He;function Ue(){var wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,lr=e.useRef(null),on=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(on.current)}},[]);function Zt(br){(br||lr.current===null)&&(lr.current=br),window.clearTimeout(on.current),on.current=window.setTimeout(function(){lr.current=null},wr)}return[function(){return lr.current},Zt]}var oe=function(lr,on){var Zt=Object(e.useRef)(null),br=Object(e.useRef)(!1),Or=lr.prefixCls,Wr=lr.multiple,An=lr.open,bt=lr.mode,mr=lr.showSearch,vr=lr.tokenWithEnter,Fr=lr.onSearch,nn=lr.onSearchSubmit,cn=lr.onToggleOpen,tn=lr.onInputKeyDown,Ln=lr.domRef;e.useImperativeHandle(on,function(){return{focus:function(){Zt.current.focus()},blur:function(){Zt.current.blur()}}});var Tn=Ue(0),Xn=Object(g.a)(Tn,2),ci=Xn[0],Jn=Xn[1],pi=function(Vi){var ta=Vi.which;(ta===T.a.UP||ta===T.a.DOWN)&&Vi.preventDefault(),tn&&tn(Vi),ta===T.a.ENTER&&bt==="tags"&&!br.current&&!An&&nn(Vi.target.value),[T.a.SHIFT,T.a.TAB,T.a.BACKSPACE,T.a.ESC].includes(ta)||cn(!0)},Si=function(){Jn(!0)},Ni=Object(e.useRef)(null),xi=function(Vi){Fr(Vi,!0,br.current)!==!1&&cn(!0)},yi=function(){br.current=!0},vi=function(){br.current=!1},Ti=function(Vi){var ta=Vi.target.value;if(vr&&Ni.current&&/[\r\n]/.test(Ni.current)){var Xi=Ni.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");ta=ta.replace(Xi,Ni.current)}Ni.current=null,xi(ta)},Ui=function(Vi){var ta=Vi.clipboardData,Xi=ta.getData("text");Ni.current=Xi},$i=function(Vi){var ta=Vi.target;if(ta!==Zt.current){var Xi=document.body.style.msTouchAction!==void 0;Xi?setTimeout(function(){Zt.current.focus()}):Zt.current.focus()}},Di=function(Vi){var ta=ci();Vi.target!==Zt.current&&!ta&&Vi.preventDefault(),(bt!=="combobox"&&(!mr||!ta)||!An)&&(An&&Fr("",!0,!1),cn())},ua={inputRef:Zt,onInputKeyDown:pi,onInputMouseDown:Si,onInputChange:Ti,onInputPaste:Ui,onInputCompositionStart:yi,onInputCompositionEnd:vi},aa=Wr?e.createElement(De,Object.assign({},lr,ua)):e.createElement(pe,Object.assign({},lr,ua));return e.createElement("div",{ref:Ln,className:"".concat(Or,"-selector"),onClick:$i,onMouseDown:Di},aa)},ee=e.forwardRef(oe);ee.displayName="Selector";var Xe=ee,se=d("uciX"),Q=function(lr){var on=typeof lr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:on,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:on,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:on,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:on,adjustY:1}}}},G=function(lr,on){var Zt=lr.prefixCls,br=lr.disabled,Or=lr.visible,Wr=lr.children,An=lr.popupElement,bt=lr.containerWidth,mr=lr.animation,vr=lr.transitionName,Fr=lr.dropdownStyle,nn=lr.dropdownClassName,cn=lr.direction,tn=cn===void 0?"ltr":cn,Ln=lr.dropdownMatchSelectWidth,Tn=Ln===void 0?!0:Ln,Xn=lr.dropdownRender,ci=lr.dropdownAlign,Jn=lr.getPopupContainer,pi=lr.empty,Si=lr.getTriggerDOMNode,Ni=Object(x.a)(lr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),xi="".concat(Zt,"-dropdown"),yi=An;Xn&&(yi=Xn(An));var vi=e.useMemo(function(){return Q(Tn)},[Tn]),Ti=mr?"".concat(xi,"-").concat(mr):vr,Ui=e.useRef(null);e.useImperativeHandle(on,function(){return{getPopupElement:function(){return Ui.current}}});var $i=Object(v.a)({minWidth:bt},Fr);return typeof Tn=="number"?$i.width=Tn:Tn&&($i.width=bt),e.createElement(se.a,Object.assign({},Ni,{showAction:[],hideAction:[],popupPlacement:tn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:vi,prefixCls:xi,popupTransitionName:Ti,popup:e.createElement("div",{ref:Ui},yi),popupAlign:ci,popupVisible:Or,getPopupContainer:Jn,popupClassName:b()(nn,Object(y.a)({},"".concat(xi,"-empty"),pi)),popupStyle:$i,getTriggerDOMNode:Si}),Wr)},J=e.forwardRef(G);J.displayName="SelectTrigger";var ve=J,de="RC_SELECT_INTERNAL_PROPS_MARK";function Ce(){var wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,lr=e.useState(!1),on=Object(g.a)(lr,2),Zt=on[0],br=on[1],Or=e.useRef(null),Wr=function(){window.clearTimeout(Or.current)};e.useEffect(function(){return Wr},[]);var An=function(mr,vr){Wr(),Or.current=window.setTimeout(function(){br(mr),vr&&vr()},wr)};return[Zt,An,Wr]}var Ee=d("T5bk"),le=d("Kwbf");function fe(wr,lr){var on=wr.key,Zt;return"value"in wr&&(Zt=wr.value),on!=null?on:Zt!==void 0?Zt:"rc-index-key-".concat(lr)}function xe(wr){var lr=[];function on(Zt,br){Zt.forEach(function(Or){br||!("options"in Or)?lr.push({key:fe(Or,lr.length),groupOption:br,data:Or}):(lr.push({key:fe(Or,lr.length),group:!0,data:Or}),on(Or.options,!0))})}return on(wr,!1),lr}function Qe(wr){var lr=Object(v.a)({},wr);return"props"in lr||Object.defineProperty(lr,"props",{get:function(){return Object(le.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),lr}}),lr}function ot(wr,lr){var on=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Zt=on.prevValueOptions,br=Zt===void 0?[]:Zt,Or=new Map;return lr.forEach(function(Wr){if(!Wr.group){var An=Wr.data;Or.set(An.value,An)}}),wr.map(function(Wr){var An=Or.get(Wr);return An||(An=Object(v.a)({},br.find(function(bt){return bt._INTERNAL_OPTION_VALUE_===Wr}))),Qe(An)})}var Je=function(lr,on){var Zt=on.options,br=on.prevValue,Or=on.labelInValue,Wr=on.optionLabelProp,An=ot([lr],Zt)[0],bt={value:lr},mr,vr=F(br);return Or&&(mr=vr.find(function(Fr){return Object(p.a)(Fr)==="object"&&"value"in Fr?Fr.value===lr:Fr.key===lr})),mr&&Object(p.a)(mr)==="object"&&"label"in mr?(bt.label=mr.label,An&&typeof mr.label=="string"&&typeof An[Wr]=="string"&&mr.label.trim()!==An[Wr].trim()&&Object(le.a)(!1,"`label` of `value` is not same as `label` in Select options.")):An&&Wr in An?bt.label=An[Wr]:bt.label=lr,bt.key=bt.value,bt};function Te(wr){return F(wr).join("")}function et(wr){return function(lr,on){var Zt=lr.toLowerCase();if("options"in on)return Te(on.label).toLowerCase().includes(Zt);var br=on[wr],Or=Te(br).toLowerCase();return Or.includes(Zt)}}function ze(wr,lr,on){var Zt=on.optionFilterProp,br=on.filterOption,Or=[],Wr;return br===!1?Object(h.a)(lr):(typeof br=="function"?Wr=br:Wr=et(Zt),lr.forEach(function(An){if("options"in An){var bt=Wr(wr,An);if(bt)Or.push(An);else{var mr=An.options.filter(function(vr){return Wr(wr,vr)});mr.length&&Or.push(Object(v.a)(Object(v.a)({},An),{},{options:mr}))}return}Wr(wr,Qe(An))&&Or.push(An)}),Or)}function nt(wr,lr){if(!lr||!lr.length)return null;var on=!1;function Zt(Or,Wr){var An=Object(Ee.a)(Wr),bt=An[0],mr=An.slice(1);if(!bt)return[Or];var vr=Or.split(bt);return on=on||vr.length>1,vr.reduce(function(Fr,nn){return[].concat(Object(h.a)(Fr),Object(h.a)(Zt(nn,mr)))},[]).filter(function(Fr){return Fr})}var br=Zt(wr,lr);return on?br:null}function Ot(wr,lr){var on=ot([wr],lr)[0];return on.disabled}function Ct(wr,lr,on,Zt){var br=F(lr).slice().sort(),Or=Object(h.a)(wr),Wr=new Set;return wr.forEach(function(An){An.options?An.options.forEach(function(bt){Wr.add(bt.value)}):Wr.add(An.value)}),br.forEach(function(An){var bt=Zt?An.value:An;if(!Wr.has(bt)){var mr;Or.push(Zt?(mr={},Object(y.a)(mr,on,An.label),Object(y.a)(mr,"value",bt),mr):{value:bt})}}),Or}function Tt(wr,lr,on){var Zt=e.useRef(null);Zt.current={elements:wr.filter(function(br){return br}),open:lr,triggerOpen:on},e.useEffect(function(){function br(Or){var Wr=Or.target;Zt.current.open&&Zt.current.elements.every(function(An){return!An.contains(Wr)&&An!==Wr})&&Zt.current.triggerOpen(!1)}return window.addEventListener("mousedown",br),function(){return window.removeEventListener("mousedown",br)}},[])}function Dt(wr){var lr=e.useRef(wr),on=e.useMemo(function(){var Zt=new Map;lr.current.forEach(function(Or){var Wr=Or.value,An=Or.label;Wr!==An&&Zt.set(Wr,An)});var br=wr.map(function(Or){var Wr=Zt.get(Or.value);return Or.value===Or.label&&Wr?Object(v.a)(Object(v.a)({},Or),{},{label:Wr}):Or});return lr.current=br,br},[wr]);return on}function Be(wr,lr){var on=e.useRef(null),Zt=e.useMemo(function(){var Or=new Map;return lr.forEach(function(Wr){var An=Wr.data.value;Or.set(An,Wr)}),Or},[wr,lr]);on.current=Zt;var br=function(Wr){return Wr.map(function(An){return on.current.get(An)}).filter(Boolean)};return br}var ie=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function X(wr){var lr=wr.prefixCls,on=wr.components.optionList,Zt=wr.convertChildrenToData,br=wr.flattenOptions,Or=wr.getLabeledValue,Wr=wr.filterOptions,An=wr.isValueDisabled,bt=wr.findValueOption,mr=wr.warningProps,vr=wr.fillOptionsWithMissingValue,Fr=wr.omitDOMProps;function nn(tn,Ln){var Tn,Xn=tn.prefixCls,ci=Xn===void 0?lr:Xn,Jn=tn.className,pi=tn.id,Si=tn.open,Ni=tn.defaultOpen,xi=tn.options,yi=tn.children,vi=tn.mode,Ti=tn.value,Ui=tn.defaultValue,$i=tn.labelInValue,Di=tn.showSearch,ua=tn.inputValue,aa=tn.searchValue,Gi=tn.filterOption,Vi=tn.filterSort,ta=tn.optionFilterProp,Xi=ta===void 0?"value":ta,ga=tn.autoClearSearchValue,ra=ga===void 0?!0:ga,pa=tn.onSearch,_a=tn.allowClear,Da=tn.clearIcon,Ra=tn.showArrow,Ao=tn.inputIcon,ja=tn.menuItemSelectedIcon,Ya=tn.disabled,Ia=tn.loading,Va=tn.defaultActiveFirstOption,co=tn.notFoundContent,Ca=co===void 0?"Not Found":co,yo=tn.optionLabelProp,uo=tn.backfill,Ga=tn.getInputElement,Oo=tn.getPopupContainer,oa=tn.listHeight,qa=oa===void 0?200:oa,oo=tn.listItemHeight,Ro=oo===void 0?20:oo,Xa=tn.animation,_o=tn.transitionName,go=tn.virtual,Ja=tn.dropdownStyle,Fa=tn.dropdownClassName,ha=tn.dropdownMatchSelectWidth,rt=tn.dropdownRender,cr=tn.dropdownAlign,Pr=tn.showAction,Lr=Pr===void 0?[]:Pr,_n=tn.direction,Vr=tn.tokenSeparators,_r=tn.tagRender,kn=tn.onPopupScroll,Ur=tn.onDropdownVisibleChange,En=tn.onFocus,jn=tn.onBlur,Hn=tn.onKeyUp,Bn=tn.onKeyDown,ri=tn.onMouseDown,Yn=tn.onChange,ii=tn.onSelect,ai=tn.onDeselect,ki=tn.onClear,bi=tn.internalProps,Ki=bi===void 0?{}:bi,Aa=Object(x.a)(tn,["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"]),ea=Ki.mark===de,Ji=Fr?Fr(Aa):Aa;ie.forEach(function(po){delete Ji[po]});var sa=Object(e.useRef)(null),fa=Object(e.useRef)(null),xo=Object(e.useRef)(null),Qa=Object(e.useRef)(null),Wi=Object(e.useMemo)(function(){return(Vr||[]).some(function(po){return[`
|
|
|
`,`\r
|
|
|
`].includes(po)})},[Vr]),qi=Ce(),ca=Object(g.a)(qi,3),ma=ca[0],ka=ca[1],La=ca[2],Za=Object(e.useState)(),eo=Object(g.a)(Za,2),Po=eo[0],jo=eo[1];Object(e.useEffect)(function(){jo("rc_select_".concat(ue()))},[]);var cs=pi||Po,Mo=yo;Mo===void 0&&(Mo=xi?"label":"children");var Lo=vi==="combobox"?!1:$i,Ba=vi==="tags"||vi==="multiple",za=Di!==void 0?Di:Ba||vi==="combobox",Ta=Object(e.useRef)(null);e.useImperativeHandle(Ln,function(){return{focus:xo.current.focus,blur:xo.current.blur}});var ko=Object(_.a)(Ui,{value:Ti}),Qo=Object(g.a)(ko,2),so=Qo[0],Os=Qo[1],ho=Object(e.useMemo)(function(){return j(so,{labelInValue:Lo,combobox:vi==="combobox"})},[so,Lo]),bo=Object(e.useMemo)(function(){return new Set(ho)},[ho]),ds=Object(e.useState)(null),Ho=Object(g.a)(ds,2),zo=Ho[0],rn=Ho[1],es=Object(e.useState)(""),Js=Object(g.a)(es,2),Es=Js[0],gs=Js[1],Ko=Es;vi==="combobox"&&so!==void 0?Ko=so:aa!==void 0?Ko=aa:ua&&(Ko=ua);var hs=Object(e.useMemo)(function(){var po=xi;return po===void 0&&(po=Zt(yi)),vi==="tags"&&vr&&(po=vr(po,so,Mo,$i)),po||[]},[xi,yi,vi,so]),bs=Object(e.useMemo)(function(){return br(hs,tn)},[hs]),ws=Be(ho,bs),qo=Object(e.useMemo)(function(){if(!Ko||!za)return Object(h.a)(hs);var po=Wr(Ko,hs,{optionFilterProp:Xi,filterOption:vi==="combobox"&&Gi===void 0?function(){return!0}:Gi});return vi==="tags"&&po.every(function(Wa){return Wa[Xi]!==Ko})&&po.unshift({value:Ko,label:Ko,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Vi&&Array.isArray(po)?Object(h.a)(po).sort(Vi):po},[hs,Ko,vi,za,Vi]),us=Object(e.useMemo)(function(){return br(qo,tn)},[qo]);Object(e.useEffect)(function(){Qa.current&&Qa.current.scrollTo&&Qa.current.scrollTo(0)},[Ko]);var _s=Object(e.useMemo)(function(){var po=ho.map(function(Wa){var Eo=ws([Wa]),Xo=Or(Wa,{options:Eo,prevValue:so,labelInValue:Lo,optionLabelProp:Mo});return Object(v.a)(Object(v.a)({},Xo),{},{disabled:An(Wa,Eo)})});return!vi&&po.length===1&&po[0].value===null&&po[0].label===null?[]:po},[so,hs,vi]);_s=Dt(_s);var vs=function(Wa,Eo,Xo){var $o=ws([Wa]),Co=bt([Wa],$o)[0];if(!Ki.skipTriggerSelect){var rs=Lo?Or(Wa,{options:$o,prevValue:so,labelInValue:Lo,optionLabelProp:Mo}):Wa;Eo&&ii?ii(rs,Co):!Eo&&ai&&ai(rs,Co)}ea&&(Eo&&Ki.onRawSelect?Ki.onRawSelect(Wa,Co,Xo):!Eo&&Ki.onRawDeselect&&Ki.onRawDeselect(Wa,Co,Xo))},vo=Object(e.useState)([]),to=Object(g.a)(vo,2),Jo=to[0],ts=to[1],Ha=function(Wa){if(ea&&Ki.skipTriggerChange)return;var Eo=ws(Wa),Xo=W(Array.from(Wa),{labelInValue:Lo,options:Eo,getLabeledValue:Or,prevValue:so,optionLabelProp:Mo}),$o=Ba?Xo:Xo[0];if(Yn&&(ho.length!==0||Xo.length!==0)){var Co=bt(Wa,Eo,{prevValueOptions:Jo});ts(Co.map(function(rs,os){var Fs=Object(v.a)({},rs);return Object.defineProperty(Fs,"_INTERNAL_OPTION_VALUE_",{get:function(){return Wa[os]}}),Fs})),Yn($o,Ba?Co:Co[0])}Os($o)},It=function(Wa,Eo){var Xo=Eo.selected,$o=Eo.source;if(Ya)return;var Co;Ba?(Co=new Set(ho),Xo?Co.add(Wa):Co.delete(Wa)):(Co=new Set,Co.add(Wa)),(Ba||!Ba&&Array.from(ho)[0]!==Wa)&&Ha(Array.from(Co)),vs(Wa,!Ba||Xo,$o),vi==="combobox"?(gs(String(Wa)),rn("")):(!Ba||ra)&&(gs(""),rn(""))},Vt=function(Wa,Eo){It(Wa,Object(v.a)(Object(v.a)({},Eo),{},{source:"option"}))},hn=function(Wa,Eo){It(Wa,Object(v.a)(Object(v.a)({},Eo),{},{source:"selection"}))},zn=vi==="combobox"&&Ga&&Ga()||null,vt=Object(_.a)(void 0,{defaultValue:Ni,value:Si}),ae=Object(g.a)(vt,2),me=ae[0],be=ae[1],Ke=me,At=!Ca&&!qo.length;(Ya||At&&Ke&&vi==="combobox")&&(Ke=!1);var Gt=At?!1:Ke,Dr=function(Wa){var Eo=Wa!==void 0?Wa:!Ke;me!==Eo&&!Ya&&(be(Eo),Ur&&Ur(Eo))};Tt([sa.current,fa.current&&fa.current.getPopupElement()],Gt,Dr);var Gr=function(Wa,Eo,Xo){var $o=!0,Co=Wa;rn(null);var rs=Xo?null:nt(Wa,Vr),os=rs;if(vi==="combobox")Eo&&Ha([Co]);else if(rs){Co="",vi!=="tags"&&(os=rs.map(function(ol){var Zs=bs.find(function(dl){var hl=dl.data;return hl[Mo]===ol});return Zs?Zs.data.value:null}).filter(function(ol){return ol!==null}));var Fs=Array.from(new Set([].concat(Object(h.a)(ho),Object(h.a)(os))));Ha(Fs),Fs.forEach(function(ol){vs(ol,!0,"input")}),Dr(!1),$o=!1}return gs(Co),pa&&Ko!==Co&&pa(Co),$o},fn=function(Wa){var Eo=Array.from(new Set([].concat(Object(h.a)(ho),[Wa])));Ha(Eo),Eo.forEach(function(Xo){vs(Xo,!0,"input")}),gs("")};Object(e.useEffect)(function(){me&&!!Ya&&be(!1)},[Ya]),Object(e.useEffect)(function(){!Ke&&!Ba&&vi!=="combobox"&&Gr("",!1,!1)},[Ke]);var Kn=Ue(),qn=Object(g.a)(Kn,2),Qn=qn[0],Ei=qn[1],Fi=function(Wa){var Eo=Qn(),Xo=Wa.which;if(!Ke&&Xo===T.a.ENTER&&Dr(!0),Ei(!!Ko),Xo===T.a.BACKSPACE&&!Eo&&Ba&&!Ko&&ho.length){var $o=V(_s,ho);$o.removedValue!==null&&(Ha($o.values),vs($o.removedValue,!1,"input"))}for(var Co=arguments.length,rs=new Array(Co>1?Co-1:0),os=1;os<Co;os++)rs[os-1]=arguments[os];if(Ke&&Qa.current){var Fs;(Fs=Qa.current).onKeyDown.apply(Fs,[Wa].concat(rs))}Bn&&Bn.apply(void 0,[Wa].concat(rs))},va=function(Wa){for(var Eo=arguments.length,Xo=new Array(Eo>1?Eo-1:0),$o=1;$o<Eo;$o++)Xo[$o-1]=arguments[$o];if(Ke&&Qa.current){var Co;(Co=Qa.current).onKeyUp.apply(Co,[Wa].concat(Xo))}Hn&&Hn.apply(void 0,[Wa].concat(Xo))},Oa=Object(e.useRef)(!1),fo=function(){ka(!0),Ya||(En&&!Oa.current&&En.apply(void 0,arguments),Lr.includes("focus")&&Dr(!0)),Oa.current=!0},wo=function(){if(ka(!1,function(){Oa.current=!1,Dr(!1)}),Ya)return;Ko&&(vi==="tags"?(Gr("",!1,!1),Ha(Array.from(new Set([].concat(Object(h.a)(ho),[Ko]))))):vi==="multiple"&&gs("")),jn&&jn.apply(void 0,arguments)},lo=[];Object(e.useEffect)(function(){return function(){lo.forEach(function(po){return clearTimeout(po)}),lo.splice(0,lo.length)}},[]);var Yo=function(Wa){var Eo=Wa.target,Xo=fa.current&&fa.current.getPopupElement();if(Xo&&Xo.contains(Eo)){var $o=setTimeout(function(){var Fs=lo.indexOf($o);Fs!==-1&&lo.splice(Fs,1),La(),Xo.contains(document.activeElement)||xo.current.focus()});lo.push($o)}if(ri){for(var Co=arguments.length,rs=new Array(Co>1?Co-1:0),os=1;os<Co;os++)rs[os-1]=arguments[os];ri.apply(void 0,[Wa].concat(rs))}},Vo=Object(e.useState)(0),No=Object(g.a)(Vo,2),ao=No[0],Ka=No[1],is=Va!==void 0?Va:vi!=="combobox",Is=function(Wa,Eo){var Xo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$o=Xo.source,Co=$o===void 0?"keyboard":$o;Ka(Eo),uo&&vi==="combobox"&&Wa!==null&&Co==="keyboard"&&rn(String(Wa))},Go=Object(e.useState)(null),la=Object(g.a)(Go,2),Vs=la[0],Hs=la[1],fs=Object(e.useState)({}),as=Object(g.a)(fs,2),Ss=as[1];function xl(){Ss({})}ne(function(){if(Gt){var po=Math.ceil(sa.current.offsetWidth);Vs!==po&&Hs(po)}},[Gt]);var vl=e.createElement(on,{ref:Qa,prefixCls:ci,id:cs,open:Ke,childrenAsData:!xi,options:qo,flattenOptions:us,multiple:Ba,values:bo,height:qa,itemHeight:Ro,onSelect:Vt,onToggleOpen:Dr,onActiveValue:Is,defaultActiveFirstOption:is,notFoundContent:Ca,onScroll:kn,searchValue:Ko,menuItemSelectedIcon:ja,virtual:go!==!1&&ha!==!1,onMouseEnter:xl}),zs,Zo=function(){ea&&Ki.onClear&&Ki.onClear(),ki&&ki(),Ha([]),Gr("",!1,!1)};!Ya&&_a&&(ho.length||Ko)&&(zs=e.createElement(D,{className:"".concat(ci,"-clear"),onMouseDown:Zo,customizeIcon:Da},"\xD7"));var As=Ra!==void 0?Ra:Ia||!Ba&&vi!=="combobox",nl;As&&(nl=e.createElement(D,{className:b()("".concat(ci,"-arrow"),Object(y.a)({},"".concat(ci,"-arrow-loading"),Ia)),customizeIcon:Ao,customizeIconProps:{loading:Ia,searchValue:Ko,open:Ke,focused:ma,showSearch:za}}));var Ps=b()(ci,Jn,(Tn={},Object(y.a)(Tn,"".concat(ci,"-focused"),ma),Object(y.a)(Tn,"".concat(ci,"-multiple"),Ba),Object(y.a)(Tn,"".concat(ci,"-single"),!Ba),Object(y.a)(Tn,"".concat(ci,"-allow-clear"),_a),Object(y.a)(Tn,"".concat(ci,"-show-arrow"),As),Object(y.a)(Tn,"".concat(ci,"-disabled"),Ya),Object(y.a)(Tn,"".concat(ci,"-loading"),Ia),Object(y.a)(Tn,"".concat(ci,"-open"),Ke),Object(y.a)(Tn,"".concat(ci,"-customize-input"),zn),Object(y.a)(Tn,"".concat(ci,"-show-search"),za),Tn));return e.createElement("div",Object.assign({className:Ps},Ji,{ref:sa,onMouseDown:Yo,onKeyDown:Fi,onKeyUp:va,onFocus:fo,onBlur:wo}),ma&&!Ke&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ho.join(", "))),e.createElement(ve,{ref:fa,disabled:Ya,prefixCls:ci,visible:Gt,popupElement:vl,containerWidth:Vs,animation:Xa,transitionName:_o,dropdownStyle:Ja,dropdownClassName:Fa,direction:_n,dropdownMatchSelectWidth:ha,dropdownRender:rt,dropdownAlign:cr,getPopupContainer:Oo,empty:!hs.length,getTriggerDOMNode:function(){return Ta.current}},e.createElement(Xe,Object.assign({},tn,{domRef:Ta,prefixCls:ci,inputElement:zn,ref:xo,id:cs,showSearch:za,mode:vi,accessibilityIndex:ao,multiple:Ba,tagRender:_r,values:_s,open:Ke,onToggleOpen:Dr,searchValue:Ko,activeValue:zo,onSearch:Gr,onSearchSubmit:fn,onSelect:hn,tokenWithEnter:Wi}))),nl,zs)}var cn=e.forwardRef(nn);return cn}var Fe=d("Zm9Q"),Ne=d("JX7q"),q=e.createContext(null),ht=function(lr){var on=lr.prefixCls,Zt=lr.level,br=lr.isStart,Or=lr.isEnd;if(!Zt)return null;for(var Wr="".concat(on,"-indent-unit"),An=[],bt=0;bt<Zt;bt+=1){var mr;An.push(e.createElement("span",{key:bt,className:b()(Wr,(mr={},Object(y.a)(mr,"".concat(Wr,"-start"),br[bt]),Object(y.a)(mr,"".concat(Wr,"-end"),Or[bt]),mr))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(on,"-indent")},An)},Rt=ht,ut="open",Xt="close",or="---",Zr=function(wr){Object(l.a)(on,wr);var lr=Object(u.a)(on);function on(){var Zt;return Object(t.a)(this,on),Zt=lr.apply(this,arguments),Zt.state={dragNodeHighlight:!1},Zt.onSelectorClick=function(br){var Or=Zt.props.context.onNodeClick;Or(br,Mt(Zt.props)),Zt.isSelectable()?Zt.onSelect(br):Zt.onCheck(br)},Zt.onSelectorDoubleClick=function(br){var Or=Zt.props.context.onNodeDoubleClick;Or(br,Mt(Zt.props))},Zt.onSelect=function(br){if(Zt.isDisabled())return;var Or=Zt.props.context.onNodeSelect;br.preventDefault(),Or(br,Mt(Zt.props))},Zt.onCheck=function(br){if(Zt.isDisabled())return;var Or=Zt.props,Wr=Or.disableCheckbox,An=Or.checked,bt=Zt.props.context.onNodeCheck;if(!Zt.isCheckable()||Wr)return;br.preventDefault();var mr=!An;bt(br,Mt(Zt.props),mr)},Zt.onMouseEnter=function(br){var Or=Zt.props.context.onNodeMouseEnter;Or(br,Mt(Zt.props))},Zt.onMouseLeave=function(br){var Or=Zt.props.context.onNodeMouseLeave;Or(br,Mt(Zt.props))},Zt.onContextMenu=function(br){var Or=Zt.props.context.onNodeContextMenu;Or(br,Mt(Zt.props))},Zt.onDragStart=function(br){var Or=Zt.props.context.onNodeDragStart;br.stopPropagation(),Zt.setState({dragNodeHighlight:!0}),Or(br,Object(Ne.a)(Zt));try{br.dataTransfer.setData("text/plain","")}catch(Wr){}},Zt.onDragEnter=function(br){var Or=Zt.props.context.onNodeDragEnter;br.preventDefault(),br.stopPropagation(),Or(br,Object(Ne.a)(Zt))},Zt.onDragOver=function(br){var Or=Zt.props.context.onNodeDragOver;br.preventDefault(),br.stopPropagation(),Or(br,Object(Ne.a)(Zt))},Zt.onDragLeave=function(br){var Or=Zt.props.context.onNodeDragLeave;br.stopPropagation(),Or(br,Object(Ne.a)(Zt))},Zt.onDragEnd=function(br){var Or=Zt.props.context.onNodeDragEnd;br.stopPropagation(),Zt.setState({dragNodeHighlight:!1}),Or(br,Object(Ne.a)(Zt))},Zt.onDrop=function(br){var Or=Zt.props.context.onNodeDrop;br.preventDefault(),br.stopPropagation(),Zt.setState({dragNodeHighlight:!1}),Or(br,Object(Ne.a)(Zt))},Zt.onExpand=function(br){var Or=Zt.props.context.onNodeExpand;Or(br,Mt(Zt.props))},Zt.setSelectHandle=function(br){Zt.selectHandle=br},Zt.getNodeState=function(){var br=Zt.props.expanded;return Zt.isLeaf()?null:br?ut:Xt},Zt.hasChildren=function(){var br=Zt.props.eventKey,Or=Zt.props.context.keyEntities,Wr=Or[br]||{},An=Wr.children;return!!(An||[]).length},Zt.isLeaf=function(){var br=Zt.props,Or=br.isLeaf,Wr=br.loaded,An=Zt.props.context.loadData,bt=Zt.hasChildren();return Or===!1?!1:Or||!An&&!bt||An&&Wr&&!bt},Zt.isDisabled=function(){var br=Zt.props.disabled,Or=Zt.props.context.disabled;return!!(Or||br)},Zt.isCheckable=function(){var br=Zt.props.checkable,Or=Zt.props.context.checkable;return!Or||br===!1?!1:Or},Zt.syncLoadData=function(br){var Or=br.expanded,Wr=br.loading,An=br.loaded,bt=Zt.props.context,mr=bt.loadData,vr=bt.onNodeLoad;if(Wr)return;mr&&Or&&!Zt.isLeaf()&&(!Zt.hasChildren()&&!An&&vr(Mt(Zt.props)))},Zt.renderSwitcher=function(){var br=Zt.props,Or=br.expanded,Wr=br.switcherIcon,An=Zt.props.context,bt=An.prefixCls,mr=An.switcherIcon,vr=Wr||mr;if(Zt.isLeaf())return e.createElement("span",{className:b()("".concat(bt,"-switcher"),"".concat(bt,"-switcher-noop"))},typeof vr=="function"?vr(Object(v.a)(Object(v.a)({},Zt.props),{},{isLeaf:!0})):vr);var Fr=b()("".concat(bt,"-switcher"),"".concat(bt,"-switcher_").concat(Or?ut:Xt));return e.createElement("span",{onClick:Zt.onExpand,className:Fr},typeof vr=="function"?vr(Object(v.a)(Object(v.a)({},Zt.props),{},{isLeaf:!1})):vr)},Zt.renderCheckbox=function(){var br=Zt.props,Or=br.checked,Wr=br.halfChecked,An=br.disableCheckbox,bt=Zt.props.context.prefixCls,mr=Zt.isDisabled(),vr=Zt.isCheckable();if(!vr)return null;var Fr=typeof vr!="boolean"?vr:null;return e.createElement("span",{className:b()("".concat(bt,"-checkbox"),Or&&"".concat(bt,"-checkbox-checked"),!Or&&Wr&&"".concat(bt,"-checkbox-indeterminate"),(mr||An)&&"".concat(bt,"-checkbox-disabled")),onClick:Zt.onCheck},Fr)},Zt.renderIcon=function(){var br=Zt.props.loading,Or=Zt.props.context.prefixCls;return e.createElement("span",{className:b()("".concat(Or,"-iconEle"),"".concat(Or,"-icon__").concat(Zt.getNodeState()||"docu"),br&&"".concat(Or,"-icon_loading"))})},Zt.renderSelector=function(){var br=Zt.state.dragNodeHighlight,Or=Zt.props,Wr=Or.title,An=Or.selected,bt=Or.icon,mr=Or.loading,vr=Or.data,Fr=Zt.props.context,nn=Fr.prefixCls,cn=Fr.showIcon,tn=Fr.icon,Ln=Fr.draggable,Tn=Fr.loadData,Xn=Fr.titleRender,ci=Zt.isDisabled(),Jn="".concat(nn,"-node-content-wrapper"),pi;if(cn){var Si=bt||tn;pi=Si?e.createElement("span",{className:b()("".concat(nn,"-iconEle"),"".concat(nn,"-icon__customize"))},typeof Si=="function"?Si(Zt.props):Si):Zt.renderIcon()}else Tn&&mr&&(pi=Zt.renderIcon());var Ni;typeof Wr=="function"?Ni=Wr(vr):Xn?Ni=Xn(vr):Ni=Wr;var xi=e.createElement("span",{className:"".concat(nn,"-title")},Ni);return e.createElement("span",{ref:Zt.setSelectHandle,title:typeof Wr=="string"?Wr:"",className:b()("".concat(Jn),"".concat(Jn,"-").concat(Zt.getNodeState()||"normal"),!ci&&(An||br)&&"".concat(nn,"-node-selected"),!ci&&Ln&&"draggable"),draggable:!ci&&Ln||void 0,"aria-grabbed":!ci&&Ln||void 0,onMouseEnter:Zt.onMouseEnter,onMouseLeave:Zt.onMouseLeave,onContextMenu:Zt.onContextMenu,onClick:Zt.onSelectorClick,onDoubleClick:Zt.onSelectorDoubleClick,onDragStart:Ln?Zt.onDragStart:void 0},pi,xi)},Zt}return Object(a.a)(on,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var br=this.props.selectable,Or=this.props.context.selectable;return typeof br=="boolean"?br:Or}},{key:"render",value:function(){var br,Or=this.props,Wr=Or.eventKey,An=Or.className,bt=Or.style,mr=Or.dragOver,vr=Or.dragOverGapTop,Fr=Or.dragOverGapBottom,nn=Or.isLeaf,cn=Or.isStart,tn=Or.isEnd,Ln=Or.expanded,Tn=Or.selected,Xn=Or.checked,ci=Or.halfChecked,Jn=Or.loading,pi=Or.domRef,Si=Or.active,Ni=Or.onMouseMove,xi=Object(x.a)(Or,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),yi=this.props.context,vi=yi.prefixCls,Ti=yi.filterTreeNode,Ui=yi.draggable,$i=yi.keyEntities,Di=this.isDisabled(),ua=Le(xi),aa=$i[Wr]||{},Gi=aa.level,Vi=tn[tn.length-1];return e.createElement("div",Object.assign({ref:pi,className:b()(An,"".concat(vi,"-treenode"),(br={},Object(y.a)(br,"".concat(vi,"-treenode-disabled"),Di),Object(y.a)(br,"".concat(vi,"-treenode-switcher-").concat(Ln?"open":"close"),!nn),Object(y.a)(br,"".concat(vi,"-treenode-checkbox-checked"),Xn),Object(y.a)(br,"".concat(vi,"-treenode-checkbox-indeterminate"),ci),Object(y.a)(br,"".concat(vi,"-treenode-selected"),Tn),Object(y.a)(br,"".concat(vi,"-treenode-loading"),Jn),Object(y.a)(br,"".concat(vi,"-treenode-active"),Si),Object(y.a)(br,"".concat(vi,"-treenode-leaf-last"),Vi),Object(y.a)(br,"drag-over",!Di&&mr),Object(y.a)(br,"drag-over-gap-top",!Di&&vr),Object(y.a)(br,"drag-over-gap-bottom",!Di&&Fr),Object(y.a)(br,"filter-node",Ti&&Ti(Mt(this.props))),br)),style:bt,onDragEnter:Ui?this.onDragEnter:void 0,onDragOver:Ui?this.onDragOver:void 0,onDragLeave:Ui?this.onDragLeave:void 0,onDrop:Ui?this.onDrop:void 0,onDragEnd:Ui?this.onDragEnd:void 0,onMouseMove:Ni},ua),e.createElement(Rt,{prefixCls:vi,level:Gi,isStart:cn,isEnd:tn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),on}(e.Component),ar=function(lr){return e.createElement(q.Consumer,null,function(on){return e.createElement(Zr,Object.assign({},lr,{context:on}))})};ar.displayName="TreeNode",ar.defaultProps={title:or},ar.isTreeNode=1;var dr=ar,er=.25,Ht=2;function dt(wr,lr){var on=wr.slice(),Zt=on.indexOf(lr);return Zt>=0&&on.splice(Zt,1),on}function Hr(wr,lr){var on=wr.slice();return on.indexOf(lr)===-1&&on.push(lr),on}function dn(wr){return wr.split("-")}function Nn(wr,lr){return"".concat(wr,"-").concat(lr)}function Vn(wr){return wr&&wr.type&&wr.type.isTreeNode}function gi(wr,lr){var on=[wr],Zt=lr[wr];function br(){var Or=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Or.forEach(function(Wr){var An=Wr.key,bt=Wr.children;on.push(An),br(bt)})}return br(Zt.children),on}function bn(wr,lr){var on=wr.clientY,Zt=lr.selectHandle.getBoundingClientRect(),br=Zt.top,Or=Zt.bottom,Wr=Zt.height,An=Math.max(Wr*er,Ht);return on<=br+An?-1:on>=Or-An?1:0}function Mn(wr,lr){if(!wr)return;var on=lr.multiple;return on?wr.slice():wr.length?[wr[0]]:wr}var jt=function(lr){return lr};function St(wr,lr){if(!wr)return[];var on=lr||{},Zt=on.processProps,br=Zt===void 0?jt:Zt,Or=Array.isArray(wr)?wr:[wr];return Or.map(function(Wr){var An=Wr.children,bt=Object(x.a)(Wr,["children"]),mr=St(An,lr);return s.a.createElement(dr,Object.assign({},br(bt)),mr)})}function Ie(wr){if(!wr)return null;var lr;if(Array.isArray(wr))lr={checkedKeys:wr,halfCheckedKeys:void 0};else if(Object(p.a)(wr)==="object")lr={checkedKeys:wr.checked||void 0,halfCheckedKeys:wr.halfChecked||void 0};else return Object(le.a)(!1,"`checkedKeys` is not an array or an object"),null;return lr}function _e(wr,lr){var on=new Set;function Zt(br){if(on.has(br))return;var Or=lr[br];if(!Or)return;on.add(br);var Wr=Or.parent,An=Or.node;if(An.disabled)return;Wr&&Zt(Wr.key)}return(wr||[]).forEach(function(br){Zt(br)}),Object(h.a)(on)}function Le(wr){var lr={};return Object.keys(wr).forEach(function(on){(on.startsWith("data-")||on.startsWith("aria-"))&&(lr[on]=wr[on])}),lr}function Ze(wr,lr){return wr!=null?wr:lr}function it(){var wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],lr=new Map;function on(Zt){var br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Zt||[]).forEach(function(Or){var Wr=Or.key,An=Or.children;Object(le.a)(Wr!=null,"Tree node must have a certain key: [".concat(br).concat(Wr,"]"));var bt=String(Wr);Object(le.a)(!lr.has(bt)||Wr===null||Wr===void 0,"Same 'key' exist in the Tree: ".concat(bt)),lr.set(bt,!0),on(An,"".concat(br).concat(bt," > "))})}on(wr)}function ft(wr){function lr(on){var Zt=Object(Fe.a)(on);return Zt.map(function(br){if(!Vn(br))return Object(le.a)(!br,"Tree/TreeNode can only accept TreeNode as children."),null;var Or=br.key,Wr=br.props,An=Wr.children,bt=Object(x.a)(Wr,["children"]),mr=Object(v.a)({key:Or},bt),vr=lr(An);return vr.length&&(mr.children=vr),mr}).filter(function(br){return br})}return lr(wr)}function Nt(){var wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],on=new Set(lr===!0?[]:lr),Zt=[];function br(Or){var Wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Or.map(function(An,bt){var mr=Nn(Wr?Wr.pos:"0",bt),vr=Ze(An.key,mr),Fr=Object(v.a)(Object(v.a)({},An),{},{parent:Wr,pos:mr,children:null,data:An,isStart:[].concat(Object(h.a)(Wr?Wr.isStart:[]),[bt===0]),isEnd:[].concat(Object(h.a)(Wr?Wr.isEnd:[]),[bt===Or.length-1])});return Zt.push(Fr),lr===!0||on.has(vr)?Fr.children=br(An.children||[],Fr):Fr.children=[],Fr})}return br(wr),Zt}function Ar(wr,lr,on){var Zt;on?typeof on=="string"?Zt=function(Wr){return Wr[on]}:typeof on=="function"&&(Zt=function(Wr){return on(Wr)}):Zt=function(Wr,An){return Ze(Wr.key,An)};function br(Or,Wr,An){var bt=Or?Or.children:wr,mr=Or?Nn(An.pos,Wr):"0";if(Or){var vr=Zt(Or,mr),Fr={node:Or,index:Wr,pos:mr,key:vr,parentPos:An.node?An.pos:null,level:An.level+1};lr(Fr)}bt&&bt.forEach(function(nn,cn){br(nn,cn,{node:Or,pos:mr,level:An?An.level+1:-1})})}br(null)}function Mr(wr){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},on=lr.initWrapper,Zt=lr.processEntity,br=lr.onProcessFinished,Or=arguments.length>2?arguments[2]:void 0,Wr={},An={},bt={posEntities:Wr,keyEntities:An};return on&&(bt=on(bt)||bt),Ar(wr,function(mr){var vr=mr.node,Fr=mr.index,nn=mr.pos,cn=mr.key,tn=mr.parentPos,Ln=mr.level,Tn={node:vr,index:Fr,key:cn,pos:nn,level:Ln},Xn=Ze(cn,nn);Wr[nn]=Tn,An[Xn]=Tn,Tn.parent=Wr[tn],Tn.parent&&(Tn.parent.children=Tn.parent.children||[],Tn.parent.children.push(Tn)),Zt&&Zt(Tn,bt)},Or),br&&br(bt),bt}function un(wr,lr){var on=lr.expandedKeys,Zt=lr.selectedKeys,br=lr.loadedKeys,Or=lr.loadingKeys,Wr=lr.checkedKeys,An=lr.halfCheckedKeys,bt=lr.dragOverNodeKey,mr=lr.dropPosition,vr=lr.keyEntities,Fr=vr[wr],nn={eventKey:wr,expanded:on.indexOf(wr)!==-1,selected:Zt.indexOf(wr)!==-1,loaded:br.indexOf(wr)!==-1,loading:Or.indexOf(wr)!==-1,checked:Wr.indexOf(wr)!==-1,halfChecked:An.indexOf(wr)!==-1,pos:String(Fr?Fr.pos:""),dragOver:bt===wr&&mr===0,dragOverGapTop:bt===wr&&mr===-1,dragOverGapBottom:bt===wr&&mr===1};return nn}function Mt(wr){var lr=wr.data,on=wr.expanded,Zt=wr.selected,br=wr.checked,Or=wr.loaded,Wr=wr.loading,An=wr.halfChecked,bt=wr.dragOver,mr=wr.dragOverGapTop,vr=wr.dragOverGapBottom,Fr=wr.pos,nn=wr.active,cn=Object(v.a)(Object(v.a)({},lr),{},{expanded:on,selected:Zt,checked:br,loaded:Or,loading:Wr,halfChecked:An,dragOver:bt,dragOverGapTop:mr,dragOverGapBottom:vr,pos:Fr,active:nn});return"props"in cn||Object.defineProperty(cn,"props",{get:function(){return Object(le.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),wr}}),cn}function at(wr,lr){var on=new Set;return wr.forEach(function(Zt){lr.has(Zt)||on.add(Zt)}),on}function lt(wr){var lr=wr||{},on=lr.disabled,Zt=lr.disableCheckbox,br=lr.checkable;return!!(on||Zt)||br===!1}function rr(wr,lr,on,Zt){for(var br=new Set(wr),Or=new Set,Wr=0;Wr<=on;Wr+=1){var An=lr.get(Wr)||new Set;An.forEach(function(Fr){var nn=Fr.key,cn=Fr.node,tn=Fr.children,Ln=tn===void 0?[]:tn;br.has(nn)&&!Zt(cn)&&Ln.filter(function(Tn){return!Zt(Tn.node)}).forEach(function(Tn){br.add(Tn.key)})})}for(var bt=new Set,mr=on;mr>=0;mr-=1){var vr=lr.get(mr)||new Set;vr.forEach(function(Fr){var nn=Fr.parent,cn=Fr.node;if(Zt(cn)||!Fr.parent||bt.has(Fr.parent.key))return;if(Zt(Fr.parent.node)){bt.add(nn.key);return}var tn=!0,Ln=!1;(nn.children||[]).filter(function(Tn){return!Zt(Tn.node)}).forEach(function(Tn){var Xn=Tn.key,ci=br.has(Xn);tn&&!ci&&(tn=!1),!Ln&&(ci||Or.has(Xn))&&(Ln=!0)}),tn&&br.add(nn.key),Ln&&Or.add(nn.key),bt.add(nn.key)})}return{checkedKeys:Array.from(br),halfCheckedKeys:Array.from(at(Or,br))}}function Bt(wr,lr,on,Zt,br){for(var Or=new Set(wr),Wr=new Set(lr),An=0;An<=Zt;An+=1){var bt=on.get(An)||new Set;bt.forEach(function(nn){var cn=nn.key,tn=nn.node,Ln=nn.children,Tn=Ln===void 0?[]:Ln;!Or.has(cn)&&!Wr.has(cn)&&!br(tn)&&Tn.filter(function(Xn){return!br(Xn.node)}).forEach(function(Xn){Or.delete(Xn.key)})})}Wr=new Set;for(var mr=new Set,vr=Zt;vr>=0;vr-=1){var Fr=on.get(vr)||new Set;Fr.forEach(function(nn){var cn=nn.parent,tn=nn.node;if(br(tn)||!nn.parent||mr.has(nn.parent.key))return;if(br(nn.parent.node)){mr.add(cn.key);return}var Ln=!0,Tn=!1;(cn.children||[]).filter(function(Xn){return!br(Xn.node)}).forEach(function(Xn){var ci=Xn.key,Jn=Or.has(ci);Ln&&!Jn&&(Ln=!1),!Tn&&(Jn||Wr.has(ci))&&(Tn=!0)}),Ln||Or.delete(cn.key),Tn&&Wr.add(cn.key),mr.add(cn.key)})}return{checkedKeys:Array.from(Or),halfCheckedKeys:Array.from(at(Wr,Or))}}function _t(wr,lr,on,Zt){var br=[],Or;Zt?Or=Zt:Or=lt;var Wr=new Set(wr.filter(function(vr){var Fr=!!on[vr];return Fr||br.push(vr),Fr})),An=new Map,bt=0;Object.keys(on).forEach(function(vr){var Fr=on[vr],nn=Fr.level,cn=An.get(nn);cn||(cn=new Set,An.set(nn,cn)),cn.add(Fr),bt=Math.max(bt,nn)}),Object(le.a)(!br.length,"Tree missing follow keys: ".concat(br.slice(0,100).map(function(vr){return"'".concat(vr,"'")}).join(", ")));var mr;return lr===!0?mr=rr(Wr,An,bt,Or):mr=Bt(Wr,lr.halfCheckedKeys,An,bt,Or),mr}var Kt=d("YrtM"),wt=d("+nKL"),Ut=function(lr,on){var Zt=lr.className,br=lr.style,Or=lr.motion,Wr=lr.motionNodes,An=lr.motionType,bt=lr.onMotionStart,mr=lr.onMotionEnd,vr=lr.active,Fr=lr.treeNodeRequiredProps,nn=Object(x.a)(lr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),cn=e.useState(!0),tn=Object(g.a)(cn,2),Ln=tn[0],Tn=tn[1],Xn=e.useContext(q),ci=Xn.prefixCls,Jn=e.useRef(!1),pi=function(){Jn.current||mr(),Jn.current=!0};return Object(e.useEffect)(function(){Wr&&An==="hide"&&Ln&&Tn(!1)},[Wr]),Object(e.useEffect)(function(){return Wr&&bt(),function(){Wr&&pi()}},[]),Wr?e.createElement(L.b,Object.assign({ref:on,visible:Ln},Or,{motionAppear:An==="show",onAppearEnd:pi,onLeaveEnd:pi}),function(Si,Ni){var xi=Si.className,yi=Si.style;return e.createElement("div",{ref:Ni,className:b()("".concat(ci,"-treenode-motion"),xi),style:yi},Wr.map(function(vi){var Ti=vi.data,Ui=Ti.key,$i=Object(x.a)(Ti,["key"]),Di=vi.isStart,ua=vi.isEnd;delete $i.children;var aa=un(Ui,Fr);return e.createElement(dr,Object.assign({},$i,aa,{active:vr,data:vi.data,key:Ui,isStart:Di,isEnd:ua}))}))}):e.createElement(dr,Object.assign({domRef:on,className:Zt,style:br},nn,{active:vr}))};Ut.displayName="MotionTreeNode";var Sr=e.forwardRef(Ut),hr=Sr;function gr(){var wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],on=wr.length,Zt=lr.length;if(Math.abs(on-Zt)!==1)return{add:!1,key:null};function br(Or,Wr){var An=new Map;Or.forEach(function(mr){An.set(mr,!0)});var bt=Wr.filter(function(mr){return!An.has(mr)});return bt.length===1?bt[0]:null}return on<Zt?{add:!0,key:br(wr,lr)}:{add:!1,key:br(lr,wr)}}function Jr(wr,lr,on){var Zt=wr.findIndex(function(An){var bt=An.data;return bt.key===on}),br=wr[Zt+1],Or=lr.findIndex(function(An){var bt=An.data;return bt.key===on});if(br){var Wr=lr.findIndex(function(An){var bt=An.data;return bt.key===br.data.key});return lr.slice(Or+1,Wr)}return lr.slice(Or+1)}var $r={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Pn=function(){},Dn="RC_TREE_MOTION_".concat(Math.random()),Zn={key:Dn},li={key:Dn,level:0,index:0,pos:"0",node:Zn},Ai={parent:null,children:[],pos:li.pos,data:Zn,isStart:[],isEnd:[]};function Ii(wr,lr,on,Zt){return lr===!1||!on?wr:wr.slice(0,Math.ceil(on/Zt)+1)}function $e(wr){var lr=wr.data.key,on=wr.pos;return Ze(lr,on)}function Se(wr){for(var lr=String(wr.data.key),on=wr;on.parent;)on=on.parent,lr="".concat(on.data.key," > ").concat(lr);return lr}var Re=function(lr,on){var Zt=lr.prefixCls,br=lr.data,Or=lr.selectable,Wr=lr.checkable,An=lr.expandedKeys,bt=lr.selectedKeys,mr=lr.checkedKeys,vr=lr.loadedKeys,Fr=lr.loadingKeys,nn=lr.halfCheckedKeys,cn=lr.keyEntities,tn=lr.disabled,Ln=lr.dragging,Tn=lr.dragOverNodeKey,Xn=lr.dropPosition,ci=lr.motion,Jn=lr.height,pi=lr.itemHeight,Si=lr.virtual,Ni=lr.focusable,xi=lr.activeItem,yi=lr.focused,vi=lr.tabIndex,Ti=lr.onKeyDown,Ui=lr.onFocus,$i=lr.onBlur,Di=lr.onActiveChange,ua=lr.onListChangeStart,aa=lr.onListChangeEnd,Gi=Object(x.a)(lr,["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"]),Vi=e.useRef(null);e.useImperativeHandle(on,function(){return{scrollTo:function(_o){Vi.current.scrollTo(_o)}}});var ta=e.useState(An),Xi=Object(g.a)(ta,2),ga=Xi[0],ra=Xi[1],pa=e.useState(br),_a=Object(g.a)(pa,2),Da=_a[0],Ra=_a[1],Ao=e.useState(br),ja=Object(g.a)(Ao,2),Ya=ja[0],Ia=ja[1],Va=e.useState([]),co=Object(g.a)(Va,2),Ca=co[0],yo=co[1],uo=e.useState(null),Ga=Object(g.a)(uo,2),Oo=Ga[0],oa=Ga[1];function qa(){Ra(br),Ia(br),yo([]),oa(null),aa()}e.useEffect(function(){ra(An);var Xa=gr(ga,An);if(Xa.key!==null)if(Xa.add){var _o=Da.findIndex(function(cr){var Pr=cr.data.key;return Pr===Xa.key}),go=Ii(Jr(Da,br,Xa.key),Si,Jn,pi),Ja=Da.slice();Ja.splice(_o+1,0,Ai),Ia(Ja),yo(go),oa("show")}else{var Fa=br.findIndex(function(cr){var Pr=cr.data.key;return Pr===Xa.key}),ha=Ii(Jr(br,Da,Xa.key),Si,Jn,pi),rt=br.slice();rt.splice(Fa+1,0,Ai),Ia(rt),yo(ha),oa("hide")}else Da!==br&&(Ra(br),Ia(br))},[An,br]),e.useEffect(function(){Ln||qa()},[Ln]);var oo=ci?Ya:br,Ro={expandedKeys:An,selectedKeys:bt,loadedKeys:vr,loadingKeys:Fr,checkedKeys:mr,halfCheckedKeys:nn,dragOverNodeKey:Tn,dropPosition:Xn,keyEntities:cn};return e.createElement(e.Fragment,null,yi&&xi&&e.createElement("span",{style:$r,"aria-live":"assertive"},Se(xi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:$r,disabled:Ni===!1||tn,tabIndex:Ni!==!1?vi:null,onKeyDown:Ti,onFocus:Ui,onBlur:$i,value:"",onChange:Pn})),e.createElement(wt.a,Object.assign({},Gi,{data:oo,itemKey:$e,height:Jn,fullHeight:!1,virtual:Si,itemHeight:pi,prefixCls:"".concat(Zt,"-list"),ref:Vi}),function(Xa){var _o=Xa.pos,go=Xa.data,Ja=go.key,Fa=Object(x.a)(go,["key"]),ha=Xa.isStart,rt=Xa.isEnd,cr=Ze(Ja,_o);delete Fa.children;var Pr=un(cr,Ro);return e.createElement(hr,Object.assign({},Fa,Pr,{active:xi&&Ja===xi.data.key,pos:_o,data:Xa.data,isStart:ha,isEnd:rt,motion:ci,motionNodes:Ja===Dn?Ca:null,motionType:Oo,onMotionStart:ua,onMotionEnd:qa,treeNodeRequiredProps:Ro,onMouseMove:function(){Di(null)}}))}))},je=e.forwardRef(Re);je.displayName="NodeList";var Ye=je,Ve=function(wr){Object(l.a)(on,wr);var lr=Object(u.a)(on);function on(){var Zt;return Object(t.a)(this,on),Zt=lr.apply(this,arguments),Zt.destroyed=!1,Zt.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},Zt.listRef=e.createRef(),Zt.onNodeDragStart=function(br,Or){var Wr=Zt.state,An=Wr.expandedKeys,bt=Wr.keyEntities,mr=Zt.props.onDragStart,vr=Or.props.eventKey;Zt.dragNode=Or;var Fr=dt(An,vr);Zt.setState({dragging:!0,dragNodesKeys:gi(vr,bt)}),Zt.setExpandedKeys(Fr),mr&&mr({event:br,node:Mt(Or.props)})},Zt.onNodeDragEnter=function(br,Or){var Wr=Zt.state,An=Wr.expandedKeys,bt=Wr.keyEntities,mr=Wr.dragNodesKeys,vr=Zt.props.onDragEnter,Fr=Or.props,nn=Fr.pos,cn=Fr.eventKey;if(!Zt.dragNode||mr.indexOf(cn)!==-1)return;var tn=bn(br,Or);if(Zt.dragNode.props.eventKey===cn&&tn===0){Zt.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Zt.setState({dragOverNodeKey:cn,dropPosition:tn}),Zt.delayedDragEnterLogic||(Zt.delayedDragEnterLogic={}),Object.keys(Zt.delayedDragEnterLogic).forEach(function(Ln){clearTimeout(Zt.delayedDragEnterLogic[Ln])}),Zt.delayedDragEnterLogic[nn]=window.setTimeout(function(){if(!Zt.state.dragging)return;var Ln=Object(h.a)(An),Tn=bt[cn];Tn&&(Tn.children||[]).length&&(Ln=Hr(An,cn)),"expandedKeys"in Zt.props||Zt.setExpandedKeys(Ln),vr&&vr({event:br,node:Mt(Or.props),expandedKeys:Ln})},400)},0)},Zt.onNodeDragOver=function(br,Or){var Wr=Zt.state.dragNodesKeys,An=Zt.props.onDragOver,bt=Or.props.eventKey;if(Wr.indexOf(bt)!==-1)return;if(Zt.dragNode&&bt===Zt.state.dragOverNodeKey){var mr=bn(br,Or);if(mr===Zt.state.dropPosition)return;Zt.setState({dropPosition:mr})}An&&An({event:br,node:Mt(Or.props)})},Zt.onNodeDragLeave=function(br,Or){var Wr=Zt.props.onDragLeave;Zt.setState({dragOverNodeKey:""}),Wr&&Wr({event:br,node:Mt(Or.props)})},Zt.onNodeDragEnd=function(br,Or){var Wr=Zt.props.onDragEnd;Zt.setState({dragOverNodeKey:""}),Zt.cleanDragState(),Wr&&Wr({event:br,node:Mt(Or.props)}),Zt.dragNode=null},Zt.onNodeDrop=function(br,Or){var Wr=Zt.state,An=Wr.dragNodesKeys,bt=An===void 0?[]:An,mr=Wr.dropPosition,vr=Zt.props.onDrop,Fr=Or.props,nn=Fr.eventKey,cn=Fr.pos;if(Zt.setState({dragOverNodeKey:""}),Zt.cleanDragState(),bt.indexOf(nn)!==-1){Object(le.a)(!1,"Can not drop to dragNode(include it's children node)");return}var tn=dn(cn),Ln={event:br,node:Mt(Or.props),dragNode:Zt.dragNode?Mt(Zt.dragNode.props):null,dragNodesKeys:bt.slice(),dropPosition:mr+Number(tn[tn.length-1]),dropToGap:!1};mr!==0&&(Ln.dropToGap=!0),vr&&vr(Ln),Zt.dragNode=null},Zt.cleanDragState=function(){var br=Zt.state.dragging;br&&Zt.setState({dragging:!1})},Zt.onNodeClick=function(br,Or){var Wr=Zt.props.onClick;Wr&&Wr(br,Or)},Zt.onNodeDoubleClick=function(br,Or){var Wr=Zt.props.onDoubleClick;Wr&&Wr(br,Or)},Zt.onNodeSelect=function(br,Or){var Wr=Zt.state.selectedKeys,An=Zt.state.keyEntities,bt=Zt.props,mr=bt.onSelect,vr=bt.multiple,Fr=Or.selected,nn=Or.key,cn=!Fr;cn?vr?Wr=Hr(Wr,nn):Wr=[nn]:Wr=dt(Wr,nn);var tn=Wr.map(function(Ln){var Tn=An[Ln];return Tn?Tn.node:null}).filter(function(Ln){return Ln});Zt.setUncontrolledState({selectedKeys:Wr}),mr&&mr(Wr,{event:"select",selected:cn,node:Or,selectedNodes:tn,nativeEvent:br.nativeEvent})},Zt.onNodeCheck=function(br,Or,Wr){var An=Zt.state,bt=An.keyEntities,mr=An.checkedKeys,vr=An.halfCheckedKeys,Fr=Zt.props,nn=Fr.checkStrictly,cn=Fr.onCheck,tn=Or.key,Ln,Tn={event:"check",node:Or,checked:Wr,nativeEvent:br.nativeEvent};if(nn){var Xn=Wr?Hr(mr,tn):dt(mr,tn),ci=dt(vr,tn);Ln={checked:Xn,halfChecked:ci},Tn.checkedNodes=Xn.map(function(yi){return bt[yi]}).filter(function(yi){return yi}).map(function(yi){return yi.node}),Zt.setUncontrolledState({checkedKeys:Xn})}else{var Jn=_t([].concat(Object(h.a)(mr),[tn]),!0,bt),pi=Jn.checkedKeys,Si=Jn.halfCheckedKeys;if(!Wr){var Ni=new Set(pi);Ni.delete(tn);var xi=_t(Array.from(Ni),{checked:!1,halfCheckedKeys:Si},bt);pi=xi.checkedKeys,Si=xi.halfCheckedKeys}Ln=pi,Tn.checkedNodes=[],Tn.checkedNodesPositions=[],Tn.halfCheckedKeys=Si,pi.forEach(function(yi){var vi=bt[yi];if(!vi)return;var Ti=vi.node,Ui=vi.pos;Tn.checkedNodes.push(Ti),Tn.checkedNodesPositions.push({node:Ti,pos:Ui})}),Zt.setUncontrolledState({checkedKeys:pi},!1,{halfCheckedKeys:Si})}cn&&cn(Ln,Tn)},Zt.onNodeLoad=function(br){return new Promise(function(Or){Zt.setState(function(Wr){var An=Wr.loadedKeys,bt=An===void 0?[]:An,mr=Wr.loadingKeys,vr=mr===void 0?[]:mr,Fr=Zt.props,nn=Fr.loadData,cn=Fr.onLoad,tn=br.key;if(!nn||bt.indexOf(tn)!==-1||vr.indexOf(tn)!==-1)return{};var Ln=nn(br);return Ln.then(function(){var Tn=Zt.state,Xn=Tn.loadedKeys,ci=Tn.loadingKeys,Jn=Hr(Xn,tn),pi=dt(ci,tn);cn&&cn(Jn,{event:"load",node:br}),Zt.setUncontrolledState({loadedKeys:Jn}),Zt.setState({loadingKeys:pi}),Or()}),{loadingKeys:Hr(vr,tn)}})})},Zt.onNodeMouseEnter=function(br,Or){var Wr=Zt.props.onMouseEnter;Wr&&Wr({event:br,node:Or})},Zt.onNodeMouseLeave=function(br,Or){var Wr=Zt.props.onMouseLeave;Wr&&Wr({event:br,node:Or})},Zt.onNodeContextMenu=function(br,Or){var Wr=Zt.props.onRightClick;Wr&&(br.preventDefault(),Wr({event:br,node:Or}))},Zt.onFocus=function(){var br=Zt.props.onFocus;Zt.setState({focused:!0}),br&&br.apply(void 0,arguments)},Zt.onBlur=function(){var br=Zt.props.onBlur;Zt.setState({focused:!1}),Zt.onActiveChange(null),br&&br.apply(void 0,arguments)},Zt.getTreeNodeRequiredProps=function(){var br=Zt.state,Or=br.expandedKeys,Wr=br.selectedKeys,An=br.loadedKeys,bt=br.loadingKeys,mr=br.checkedKeys,vr=br.halfCheckedKeys,Fr=br.dragOverNodeKey,nn=br.dropPosition,cn=br.keyEntities;return{expandedKeys:Or||[],selectedKeys:Wr||[],loadedKeys:An||[],loadingKeys:bt||[],checkedKeys:mr||[],halfCheckedKeys:vr||[],dragOverNodeKey:Fr,dropPosition:nn,keyEntities:cn}},Zt.setExpandedKeys=function(br){var Or=Zt.state.treeData,Wr=Nt(Or,br);Zt.setUncontrolledState({expandedKeys:br,flattenNodes:Wr},!0)},Zt.onNodeExpand=function(br,Or){var Wr=Zt.state.expandedKeys,An=Zt.state.listChanging,bt=Zt.props,mr=bt.onExpand,vr=bt.loadData,Fr=Or.key,nn=Or.expanded;if(An)return;var cn=Wr.indexOf(Fr),tn=!nn;if(Object(le.a)(nn&&cn!==-1||!nn&&cn===-1,"Expand state not sync with index check"),tn?Wr=Hr(Wr,Fr):Wr=dt(Wr,Fr),Zt.setExpandedKeys(Wr),mr&&mr(Wr,{node:Or,expanded:tn,nativeEvent:br.nativeEvent}),tn&&vr){var Ln=Zt.onNodeLoad(Or);Ln&&Ln.then(function(){var Tn=Nt(Zt.state.treeData,Wr);Zt.setUncontrolledState({flattenNodes:Tn})})}},Zt.onListChangeStart=function(){Zt.setUncontrolledState({listChanging:!0})},Zt.onListChangeEnd=function(){setTimeout(function(){Zt.setUncontrolledState({listChanging:!1})})},Zt.onActiveChange=function(br){var Or=Zt.state.activeKey,Wr=Zt.props.onActiveChange;if(Or===br)return;Zt.setState({activeKey:br}),br!==null&&Zt.scrollTo({key:br}),Wr&&Wr(br)},Zt.getActiveItem=function(){var br=Zt.state,Or=br.activeKey,Wr=br.flattenNodes;return Or===null?null:Wr.find(function(An){var bt=An.data.key;return bt===Or})||null},Zt.offsetActiveKey=function(br){var Or=Zt.state,Wr=Or.flattenNodes,An=Or.activeKey,bt=Wr.findIndex(function(Fr){var nn=Fr.data.key;return nn===An});bt===-1&&br<0&&(bt=Wr.length),bt=(bt+br+Wr.length)%Wr.length;var mr=Wr[bt];if(mr){var vr=mr.data.key;Zt.onActiveChange(vr)}else Zt.onActiveChange(null)},Zt.onKeyDown=function(br){var Or=Zt.state,Wr=Or.activeKey,An=Or.expandedKeys,bt=Or.checkedKeys,mr=Zt.props,vr=mr.onKeyDown,Fr=mr.checkable,nn=mr.selectable;switch(br.which){case T.a.UP:{Zt.offsetActiveKey(-1),br.preventDefault();break}case T.a.DOWN:{Zt.offsetActiveKey(1),br.preventDefault();break}}var cn=Zt.getActiveItem();if(cn&&cn.data){var tn=Zt.getTreeNodeRequiredProps(),Ln=cn.data.isLeaf===!1||!!(cn.data.children||[]).length,Tn=Mt(Object(v.a)(Object(v.a)({},un(Wr,tn)),{},{data:cn.data,active:!0}));switch(br.which){case T.a.LEFT:{Ln&&An.includes(Wr)?Zt.onNodeExpand({},Tn):cn.parent&&Zt.onActiveChange(cn.parent.data.key),br.preventDefault();break}case T.a.RIGHT:{Ln&&!An.includes(Wr)?Zt.onNodeExpand({},Tn):cn.children&&cn.children.length&&Zt.onActiveChange(cn.children[0].data.key),br.preventDefault();break}case T.a.ENTER:case T.a.SPACE:{Fr&&!Tn.disabled&&Tn.checkable!==!1&&!Tn.disableCheckbox?Zt.onNodeCheck({},Tn,!bt.includes(Wr)):!Fr&&nn&&!Tn.disabled&&Tn.selectable!==!1&&Zt.onNodeSelect({},Tn);break}}}vr&&vr(br)},Zt.setUncontrolledState=function(br){var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Zt.destroyed)return;var An=!1,bt=!0,mr={};Object.keys(br).forEach(function(vr){if(vr in Zt.props){bt=!1;return}An=!0,mr[vr]=br[vr]}),An&&(!Or||bt)&&Zt.setState(Object(v.a)(Object(v.a)({},mr),Wr))},Zt.scrollTo=function(br){Zt.listRef.current.scrollTo(br)},Zt}return Object(a.a)(on,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var br,Or=this.state,Wr=Or.focused,An=Or.flattenNodes,bt=Or.keyEntities,mr=Or.dragging,vr=Or.activeKey,Fr=this.props,nn=Fr.prefixCls,cn=Fr.className,tn=Fr.style,Ln=Fr.showLine,Tn=Fr.focusable,Xn=Fr.tabIndex,ci=Xn===void 0?0:Xn,Jn=Fr.selectable,pi=Fr.showIcon,Si=Fr.icon,Ni=Fr.switcherIcon,xi=Fr.draggable,yi=Fr.checkable,vi=Fr.checkStrictly,Ti=Fr.disabled,Ui=Fr.motion,$i=Fr.loadData,Di=Fr.filterTreeNode,ua=Fr.height,aa=Fr.itemHeight,Gi=Fr.virtual,Vi=Fr.titleRender,ta=Fr.onContextMenu,Xi=Le(this.props);return e.createElement(q.Provider,{value:{prefixCls:nn,selectable:Jn,showIcon:pi,icon:Si,switcherIcon:Ni,draggable:xi,checkable:yi,checkStrictly:vi,disabled:Ti,keyEntities:bt,loadData:$i,filterTreeNode:Di,titleRender:Vi,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:b()(nn,cn,(br={},Object(y.a)(br,"".concat(nn,"-show-line"),Ln),Object(y.a)(br,"".concat(nn,"-focused"),Wr),Object(y.a)(br,"".concat(nn,"-active-focused"),vr!==null),br))},e.createElement(Ye,Object.assign({ref:this.listRef,prefixCls:nn,style:tn,data:An,disabled:Ti,selectable:Jn,checkable:!!yi,motion:Ui,dragging:mr,height:ua,itemHeight:aa,virtual:Gi,focusable:Tn,focused:Wr,tabIndex:ci,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ta},this.getTreeNodeRequiredProps(),Xi))))}}],[{key:"getDerivedStateFromProps",value:function(br,Or){var Wr=Or.prevProps,An={prevProps:br};function bt(Si){return!Wr&&Si in br||Wr&&Wr[Si]!==br[Si]}var mr;if(bt("treeData")?mr=br.treeData:bt("children")&&(Object(le.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),mr=ft(br.children)),mr){An.treeData=mr;var vr=Mr(mr);An.keyEntities=Object(v.a)(Object(y.a)({},Dn,li),vr.keyEntities)}var Fr=An.keyEntities||Or.keyEntities;if(bt("expandedKeys")||Wr&&bt("autoExpandParent"))An.expandedKeys=br.autoExpandParent||!Wr&&br.defaultExpandParent?_e(br.expandedKeys,Fr):br.expandedKeys;else if(!Wr&&br.defaultExpandAll){var nn=Object(v.a)({},Fr);delete nn[Dn],An.expandedKeys=Object.keys(nn).map(function(Si){return nn[Si].key})}else!Wr&&br.defaultExpandedKeys&&(An.expandedKeys=br.autoExpandParent||br.defaultExpandParent?_e(br.defaultExpandedKeys,Fr):br.defaultExpandedKeys);if(An.expandedKeys||delete An.expandedKeys,mr||An.expandedKeys){var cn=Nt(mr||Or.treeData,An.expandedKeys||Or.expandedKeys);An.flattenNodes=cn}if(br.selectable&&(bt("selectedKeys")?An.selectedKeys=Mn(br.selectedKeys,br):!Wr&&br.defaultSelectedKeys&&(An.selectedKeys=Mn(br.defaultSelectedKeys,br))),br.checkable){var tn;if(bt("checkedKeys")?tn=Ie(br.checkedKeys)||{}:!Wr&&br.defaultCheckedKeys?tn=Ie(br.defaultCheckedKeys)||{}:mr&&(tn=Ie(br.checkedKeys)||{checkedKeys:Or.checkedKeys,halfCheckedKeys:Or.halfCheckedKeys}),tn){var Ln=tn,Tn=Ln.checkedKeys,Xn=Tn===void 0?[]:Tn,ci=Ln.halfCheckedKeys,Jn=ci===void 0?[]:ci;if(!br.checkStrictly){var pi=_t(Xn,!0,Fr);Xn=pi.checkedKeys,Jn=pi.halfCheckedKeys}An.checkedKeys=Xn,An.halfCheckedKeys=Jn}}return bt("loadedKeys")&&(An.loadedKeys=br.loadedKeys),An}}]),on}(e.Component);Ve.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:[]},Ve.TreeNode=dr;var qe=Ve,xt=qe,ct=e.createContext(null);function Jt(wr,lr){if(!wr)return!0;var on=wr.data,Zt=on.disabled,br=on.disableCheckbox;switch(lr){case"select":return Zt;case"checkbox":return Zt||br}return!1}function Rr(wr,lr){var on=e.useCallback(function(br){var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Wr=arguments.length>2?arguments[2]:void 0,An=wr.get(br);return!Wr&&Jt(An,Or)?null:An},[wr]),Zt=e.useCallback(function(br){var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Wr=arguments.length>2?arguments[2]:void 0,An=lr.get(br);return!Wr&&Jt(An,Or)?null:An},[lr]);return[on,Zt]}function Ir(wr){return e.useMemo(function(){var lr=new Map,on=new Map;return wr.forEach(function(Zt){lr.set(Zt.key,Zt),on.set(Zt.data.value,Zt)}),[lr,on]},[wr])}var Xr={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qt=function(lr,on){var Zt=lr.prefixCls,br=lr.height,Or=lr.itemHeight,Wr=lr.virtual,An=lr.options,bt=lr.flattenOptions,mr=lr.multiple,vr=lr.searchValue,Fr=lr.onSelect,nn=lr.onToggleOpen,cn=lr.open,tn=lr.notFoundContent,Ln=lr.onMouseEnter,Tn=e.useContext(ct),Xn=Tn.checkable,ci=Tn.checkedKeys,Jn=Tn.halfCheckedKeys,pi=Tn.treeExpandedKeys,Si=Tn.treeDefaultExpandAll,Ni=Tn.treeDefaultExpandedKeys,xi=Tn.onTreeExpand,yi=Tn.treeIcon,vi=Tn.showTreeIcon,Ti=Tn.switcherIcon,Ui=Tn.treeLine,$i=Tn.treeNodeFilterProp,Di=Tn.loadData,ua=Tn.treeLoadedKeys,aa=Tn.treeMotion,Gi=Tn.onTreeLoad,Vi=e.useRef(),ta=Object(Kt.a)(function(){return An},[cn,An],function(Pr,Lr){return Lr[0]&&Pr[1]!==Lr[1]}),Xi=Ir(bt),ga=Object(g.a)(Xi,2),ra=ga[0],pa=ga[1],_a=Rr(ra,pa),Da=Object(g.a)(_a,2),Ra=Da[0],Ao=Da[1],ja=e.useMemo(function(){return ci.map(function(Pr){var Lr=Ao(Pr);return Lr?Lr.key:null})},[ci]),Ya=e.useMemo(function(){return Xn?{checked:ja,halfChecked:Jn}:null},[ja,Jn,Xn]);e.useEffect(function(){if(cn&&!mr&&ja.length){var Pr;(Pr=Vi.current)===null||Pr===void 0||Pr.scrollTo({key:ja[0]})}},[cn]);var Ia=String(vr).toLowerCase(),Va=function(Lr){return Ia?String(Lr[$i]).toLowerCase().includes(Ia):!1},co=e.useState(Ni),Ca=Object(g.a)(co,2),yo=Ca[0],uo=Ca[1],Ga=e.useState(null),Oo=Object(g.a)(Ga,2),oa=Oo[0],qa=Oo[1],oo=e.useMemo(function(){return pi?Object(h.a)(pi):vr?oa:yo},[yo,oa,Ia,pi]);e.useEffect(function(){vr&&qa(bt.map(function(Pr){return Pr.key}))},[vr]);var Ro=function(Lr){uo(Lr),qa(Lr),xi&&xi(Lr)},Xa=function(Lr){Lr.preventDefault()},_o=function(Lr,_n){var Vr=_n.node.key,_r=Ra(Vr,Xn?"checkbox":"select");_r!==null&&Fr(_r.data.value,{selected:!ci.includes(_r.data.value)}),mr||nn(!1)},go=e.useState(null),Ja=Object(g.a)(go,2),Fa=Ja[0],ha=Ja[1],rt=Ra(Fa);if(e.useImperativeHandle(on,function(){return{onKeyDown:function(Lr){var _n,Vr=Lr.which;switch(Vr){case T.a.UP:case T.a.DOWN:case T.a.LEFT:case T.a.RIGHT:(_n=Vi.current)===null||_n===void 0||_n.onKeyDown(Lr);break;case T.a.ENTER:{rt!==null&&_o(null,{node:{key:Fa},selected:!ci.includes(rt.data.value)});break}case T.a.ESC:nn(!1)}},onKeyUp:function(){}}}),ta.length===0)return e.createElement("div",{role:"listbox",className:"".concat(Zt,"-empty"),onMouseDown:Xa},tn);var cr={};return ua&&(cr.loadedKeys=ua),oo&&(cr.expandedKeys=oo),e.createElement("div",{onMouseDown:Xa,onMouseEnter:Ln},rt&&cn&&e.createElement("span",{style:Xr,"aria-live":"assertive"},rt.data.value),e.createElement(xt,Object.assign({ref:Vi,focusable:!1,prefixCls:"".concat(Zt,"-tree"),treeData:ta,height:br,itemHeight:Or,virtual:Wr,multiple:mr,icon:yi,showIcon:vi,switcherIcon:Ti,showLine:Ui,loadData:vr?null:Di,motion:aa,checkable:Xn,checkStrictly:!0,checkedKeys:Ya,selectedKeys:Xn?[]:ja,defaultExpandAll:Si},cr,{onActiveChange:ha,onSelect:_o,onCheck:_o,onExpand:Ro,onLoad:Gi,filterTreeNode:Va})))},pn=e.forwardRef(qt);pn.displayName="OptionList";var fr=pn,mn=function(){return null},en=mn;function kr(wr){return Object(Fe.a)(wr).map(function(lr){if(!e.isValidElement(lr)||!lr.type)return null;var on=lr.key,Zt=lr.props,br=Zt.children,Or=Zt.value,Wr=Object(x.a)(Zt,["children","value"]),An=Object(v.a)({key:on,value:Or},Wr),bt=kr(br);return bt.length&&(An.children=bt),An}).filter(function(lr){return lr})}function Gn(wr){if(!wr)return wr;var lr=Object(v.a)({},wr);return"props"in lr||Object.defineProperty(lr,"props",{get:function(){return Object(le.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),lr}}),lr}function di(wr,lr,on,Zt,br){var Or=null,Wr=null;function An(){function bt(mr){var vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Fr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return mr.map(function(nn,cn){var tn="".concat(vr,"-").concat(cn),Ln=on.includes(nn.value),Tn=bt(nn.children||[],tn,Ln),Xn=e.createElement(en,Object.assign({},nn),Tn.map(function(Jn){return Jn.node}));if(lr===nn.value&&(Or=Xn),Ln){var ci={pos:tn,node:Xn,children:Tn};return Fr||Wr.push(ci),ci}return null}).filter(function(nn){return nn})}Wr||(Wr=[],bt(Zt),Wr.sort(function(mr,vr){var Fr=mr.node.props.value,nn=vr.node.props.value,cn=on.indexOf(Fr),tn=on.indexOf(nn);return cn-tn}))}Object.defineProperty(wr,"triggerNode",{get:function(){return Object(le.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),An(),Or}}),Object.defineProperty(wr,"allCheckedNodes",{get:function(){return Object(le.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),An(),br?Wr:Wr.map(function(mr){var vr=mr.node;return vr})}})}function _i(wr){return Array.isArray(wr)?wr:wr!==void 0?[wr]:[]}function Br(wr,lr){var on=new Map;return lr.forEach(function(Zt){var br=Zt.data;on.set(br.value,br)}),wr.map(function(Zt){return Gn(on.get(Zt))})}function sn(wr,lr){var on=Br([wr],lr)[0];return on?on.disabled:!1}function Sn(wr){return wr.disabled||wr.disableCheckbox||wr.checkable===!1}function Pt(wr){for(var lr=wr.parent,on=0,Zt=lr;Zt;)Zt=Zt.parent,on+=1;return on}function gt(wr){function lr(Zt){return(Zt||[]).map(function(br){var Or=br.value,Wr=br.key,An=br.children,bt=Object(v.a)(Object(v.a)({},br),{},{key:"key"in br?Wr:Or});return An&&(bt.children=lr(An)),bt})}var on=Nt(lr(wr),!0);return on.map(function(Zt){return{key:Zt.data.key,data:Zt.data,level:Pt(Zt)}})}function Et(wr){return function(lr,on){var Zt=on[wr];return String(Zt).toLowerCase().includes(String(lr).toLowerCase())}}function Lt(wr,lr,on){var Zt=on.optionFilterProp,br=on.filterOption;if(br===!1)return lr;var Or;typeof br=="function"?Or=br:Or=Et(Zt);function Wr(An){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return An.map(function(mr){var vr=mr.children,Fr=bt||Or(wr,Gn(mr)),nn=Wr(vr||[],Fr);return Fr||nn.length?Object(v.a)(Object(v.a)({},mr),{},{children:nn}):null}).filter(function(mr){return mr})}return Wr(lr)}function kt(wr,lr,on,Zt){var br=new Map;return _i(lr).forEach(function(Or){Or&&Object(p.a)(Or)==="object"&&"value"in Or&&br.set(Or.value,Or)}),wr.map(function(Or){var Wr={value:Or},An=on(Or,"select",!0),bt=An?Zt(An.data):Or;if(br.has(Or)){var mr=br.get(Or);Wr.label="label"in mr?mr.label:bt,"halfChecked"in mr&&(Wr.halfChecked=mr.halfChecked)}else Wr.label=bt;return Wr})}function yt(wr,lr){var on=new Set(wr);return on.add(lr),Array.from(on)}function Qt(wr,lr){var on=new Set(wr);return on.delete(lr),Array.from(on)}function tr(wr){var lr=wr.searchPlaceholder,on=wr.treeCheckStrictly,Zt=wr.treeCheckable,br=wr.labelInValue,Or=wr.value,Wr=wr.multiple;Object(le.a)(!lr,"`searchPlaceholder` has been removed."),on&&br===!1&&Object(le.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(br||on)&&Object(le.a)(_i(Or).every(function(An){return An&&Object(p.a)(An)==="object"&&"value"in An}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),on||Wr||Zt?Object(le.a)(!Or||Array.isArray(Or),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(le.a)(!Array.isArray(Or),"`value` should not be array when `TreeSelect` is single mode.")}var ir=tr,yr=10;function xn(wr,lr){var on=lr.id,Zt=lr.pId,br=lr.rootPId,Or={},Wr=[],An=wr.map(function(bt){var mr=Object(v.a)({},bt),vr=mr[on];return Or[vr]=mr,mr.key=mr.key||vr,mr});return An.forEach(function(bt){var mr=bt[Zt],vr=Or[mr];vr&&(vr.children=vr.children||[],vr.children.push(bt)),(mr===br||!vr&&br===null)&&Wr.push(bt)}),Wr}function vn(wr,lr){var on=0,Zt=new Set;function br(Or){return(Or||[]).map(function(Wr){var An=Wr.key,bt=Wr.value,mr=Wr.children,vr=Object(x.a)(Wr,["key","value","children"]),Fr="value"in Wr?bt:An,nn=Object(v.a)(Object(v.a)({},vr),{},{key:An!=null?An:Fr,value:Fr,title:lr(Wr)});return"children"in Wr&&(nn.children=br(mr)),nn})}return br(wr)}function Wn(wr,lr,on){var Zt=on.getLabelProp,br=on.simpleMode,Or=e.useRef({});return wr?(Or.current.formatTreeData=Or.current.treeData===wr?Or.current.formatTreeData:vn(br?xn(wr,Object(v.a)({id:"id",pId:"pId",rootPId:null},br!==!0?br:{})):wr,Zt),Or.current.treeData=wr):Or.current.formatTreeData=Or.current.children===lr?Or.current.formatTreeData:vn(kr(lr),Zt),Or.current.formatTreeData}var Yr="SHOW_ALL",xr="SHOW_PARENT",ln="SHOW_CHILD";function On(wr,lr,on){var Zt=new Set(wr);return lr===ln?wr.filter(function(br){var Or=on[br];return!(Or&&Or.children&&Or.children.every(function(Wr){var An=Wr.node;return Sn(An)||Zt.has(An.key)}))}):lr===xr?wr.filter(function(br){var Or=on[br],Wr=Or?Or.parent:null;return!(Wr&&!Sn(Wr.node)&&Zt.has(Wr.node.key))}):wr}function In(wr,lr){var on=lr.value,Zt=lr.getEntityByValue,br=lr.getEntityByKey,Or=lr.treeConduction,Wr=lr.showCheckedStrategy,An=lr.conductKeyEntities,bt=lr.getLabelProp;return e.useMemo(function(){var mr=wr;if(Or){var vr=On(wr.map(function(Fr){var nn=Zt(Fr);return nn?nn.key:Fr}),Wr,An);mr=vr.map(function(Fr){var nn=br(Fr);return nn?nn.data.value:Fr})}return kt(mr,on,Zt,bt)},[wr,on,Or,Wr,Zt])}var Un=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],ti=X({prefixCls:"rc-tree-select",components:{optionList:fr},convertChildrenToData:function(){return null},flattenOptions:gt,getLabeledValue:Je,filterOptions:Lt,isValueDisabled:sn,findValueOption:Br,omitDOMProps:function(lr){var on=Object(v.a)({},lr);return Un.forEach(function(Zt){delete on[Zt]}),on}});ti.displayName="Select";var ui=e.forwardRef(function(wr,lr){var on=wr.multiple,Zt=wr.treeCheckable,br=wr.treeCheckStrictly,Or=wr.showCheckedStrategy,Wr=Or===void 0?"SHOW_CHILD":Or,An=wr.labelInValue,bt=wr.loadData,mr=wr.treeLoadedKeys,vr=wr.treeNodeFilterProp,Fr=vr===void 0?"value":vr,nn=wr.treeNodeLabelProp,cn=wr.treeDataSimpleMode,tn=wr.treeData,Ln=wr.treeExpandedKeys,Tn=wr.treeDefaultExpandedKeys,Xn=wr.treeDefaultExpandAll,ci=wr.children,Jn=wr.treeIcon,pi=wr.showTreeIcon,Si=wr.switcherIcon,Ni=wr.treeLine,xi=wr.treeMotion,yi=wr.filterTreeNode,vi=wr.dropdownPopupAlign,Ti=wr.onChange,Ui=wr.onTreeExpand,$i=wr.onTreeLoad,Di=wr.onDropdownVisibleChange,ua=wr.onSelect,aa=wr.onDeselect,Gi=Zt||br,Vi=on||Gi,ta=Zt&&!br,Xi=br||An,ga=e.useRef(null);e.useImperativeHandle(lr,function(){return{focus:ga.current.focus,blur:ga.current.blur}});var ra=function(Vr){return tn&&Vr.label||Vr.title},pa=function(Vr){return nn?Vr[nn]:ra(Vr)},_a=Wn(tn,ci,{getLabelProp:ra,simpleMode:cn}),Da=Object(e.useMemo)(function(){return gt(_a)},[_a]),Ra=Ir(Da),Ao=Object(g.a)(Ra,2),ja=Ao[0],Ya=Ao[1],Ia=Rr(ja,Ya),Va=Object(g.a)(Ia,2),co=Va[0],Ca=Va[1],yo=Object(e.useMemo)(function(){return ta?Mr(_a):{keyEntities:null}},[_a,Zt,br]),uo=yo.keyEntities,Ga=Object(_.a)(wr.defaultValue,{value:wr.value}),Oo=Object(g.a)(Ga,2),oa=Oo[0],qa=Oo[1],oo=function(Vr){var _r=[],kn=[];return Vr.forEach(function(Ur){Ca(Ur)?kn.push(Ur):_r.push(Ur)}),{missingRawValues:_r,existRawValues:kn}},Ro=Object(e.useMemo)(function(){var _n=[],Vr=[];if(_i(oa).forEach(function(ri){if(ri&&Object(p.a)(ri)==="object"&&"value"in ri)if(ri.halfChecked&&br){var Yn=Ca(ri.value);_n.push(Yn?Yn.key:ri.value)}else Vr.push(ri.value);else Vr.push(ri)}),ta){var _r=oo(Vr),kn=_r.missingRawValues,Ur=_r.existRawValues,En=Ur.map(function(ri){return Ca(ri).key}),jn=_t(En,!0,uo),Hn=jn.checkedKeys,Bn=jn.halfCheckedKeys;return[[].concat(Object(h.a)(kn),Object(h.a)(Hn.map(function(ri){return co(ri).data.value}))),Bn]}return[Vr,_n]},[oa,Vi,Xi,Zt,br]),Xa=Object(g.a)(Ro,2),_o=Xa[0],go=Xa[1],Ja=In(_o,{treeConduction:ta,value:oa,showCheckedStrategy:Wr,conductKeyEntities:uo,getEntityByValue:Ca,getEntityByKey:co,getLabelProp:pa}),Fa=function(Vr,_r,kn){if(qa(Vi?Vr:Vr[0]),Ti){var Ur=Vr;if(ta&&Wr!=="SHOW_ALL"){var En=Vr.map(function(bi){var Ki=Ca(bi);return Ki?Ki.key:bi}),jn=On(En,Wr,uo);Ur=jn.map(function(bi){var Ki=co(bi);return Ki?Ki.data.value:bi})}var Hn=_r||{triggerValue:void 0,selected:void 0},Bn=Hn.triggerValue,ri=Hn.selected,Yn=Xi?kt(Ur,oa,Ca,pa):Ur;if(br){var ii=go.map(function(bi){var Ki=co(bi);return Ki?Ki.data.value:bi}).filter(function(bi){return!Ur.includes(bi)});Yn=[].concat(Object(h.a)(Yn),Object(h.a)(kt(ii,oa,Ca,pa)))}var ai={preValue:Ja,triggerValue:Bn},ki=!0;(br||kn==="selection"&&!ri)&&(ki=!1),di(ai,Bn,Vr,_a,ki),Gi?ai.checked=ri:ai.selected=ri,Ti(Vi?Yn:Yn[0],Xi?null:Ur.map(function(bi){var Ki=Ca(bi);return Ki?pa(Ki.data):null}),ai)}},ha=function(Vr,_r,kn){var Ur=Vr;if(!Vi)Fa([Vr],{selected:!0,triggerValue:Vr},kn);else{var En=yt(_o,Vr);if(ta){var jn=oo(En),Hn=jn.missingRawValues,Bn=jn.existRawValues,ri=Bn.map(function(ai){return Ca(ai).key}),Yn=_t(ri,!0,uo),ii=Yn.checkedKeys;En=[].concat(Object(h.a)(Hn),Object(h.a)(ii.map(function(ai){return co(ai).data.value})))}Fa(En,{selected:!0,triggerValue:Vr},kn)}ua&&ua(Ur,_r)},rt=function(Vr,_r,kn){var Ur=Vr,En=Qt(_o,Vr);if(ta){var jn=oo(En),Hn=jn.missingRawValues,Bn=jn.existRawValues,ri=Bn.map(function(ai){return Ca(ai).key}),Yn=_t(ri,{checked:!1,halfCheckedKeys:go},uo),ii=Yn.checkedKeys;En=[].concat(Object(h.a)(Hn),Object(h.a)(ii.map(function(ai){return co(ai).data.value})))}Fa(En,{selected:!1,triggerValue:Vr},kn),aa&&aa(Ur,_r)},cr=function(){Fa([],null,"clear")},Pr=e.useCallback(function(_n){if(Di){var Vr={};Object.defineProperty(Vr,"documentClickClose",{get:function(){return Object(le.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Di(_n,Vr)}},[Di]),Lr={optionLabelProp:null,optionFilterProp:Fr,dropdownAlign:vi,internalProps:{mark:de,onClear:cr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:ha,onRawDeselect:rt}};return"filterTreeNode"in wr&&(Lr.filterOption=yi),e.createElement(ct.Provider,{value:{checkable:Gi,loadData:bt,treeLoadedKeys:mr,onTreeLoad:$i,checkedKeys:_o,halfCheckedKeys:go,treeDefaultExpandAll:Xn,treeExpandedKeys:Ln,treeDefaultExpandedKeys:Tn,onTreeExpand:Ui,treeIcon:Jn,treeMotion:xi,showTreeIcon:pi,switcherIcon:Si,treeLine:Ni,treeNodeFilterProp:Fr}},e.createElement(ti,Object.assign({ref:ga,mode:Vi?"multiple":null},wr,Lr,{value:Ja,labelInValue:!0,options:_a,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Pr})))}),si=function(wr){Object(l.a)(on,wr);var lr=Object(u.a)(on);function on(){var Zt;return Object(t.a)(this,on),Zt=lr.apply(this,arguments),Zt.selectRef=e.createRef(),Zt.focus=function(){Zt.selectRef.current.focus()},Zt.blur=function(){Zt.selectRef.current.blur()},Zt}return Object(a.a)(on,[{key:"render",value:function(){return e.createElement(ui,Object.assign({ref:this.selectRef},this.props))}}]),on}(e.Component);si.TreeNode=en,si.SHOW_ALL=Yr,si.SHOW_PARENT=xr,si.SHOW_CHILD=ln;var Pi=si,zi=Pi,Ri=d("BGR+"),Yi=d("H84U"),$n=d("uaoM"),gn=d("1vzs"),mi=d("2jpz"),Hi=d("3Nzz"),Li=function(wr){r()(on,wr);var lr=n()(on);function on(Zt){var br;return m()(this,on),br=lr.call(this,Zt),br.selectRef=e.createRef(),br.renderTreeSelect=function(Or){var Wr=Or.getPopupContainer,An=Or.getPrefixCls,bt=Or.renderEmpty,mr=Or.direction,vr=Or.virtual,Fr=Or.dropdownMatchSelectWidth,nn=br.props,cn=nn.prefixCls,tn=nn.size,Ln=nn.className,Tn=nn.treeCheckable,Xn=nn.multiple,ci=nn.listHeight,Jn=ci===void 0?256:ci,pi=nn.listItemHeight,Si=pi===void 0?26:pi,Ni=nn.notFoundContent,xi=nn.switcherIcon,yi=nn.treeLine,vi=nn.getPopupContainer,Ti=nn.dropdownClassName,Ui=nn.bordered,$i=nn.treeIcon,Di=$i===void 0?!1:$i,ua=An("select",cn),aa=An("select-tree",cn),Gi=An("tree-select",cn),Vi=b()(Ti,"".concat(Gi,"-dropdown"),A()({},"".concat(Gi,"-dropdown-rtl"),mr==="rtl")),ta=!!(Tn||Xn),Xi=Object(gn.a)(E()(E()({},br.props),{multiple:ta,prefixCls:ua})),ga=Xi.suffixIcon,ra=Xi.itemIcon,pa=Xi.removeIcon,_a=Xi.clearIcon,Da;Ni!==void 0?Da=Ni:Da=bt("Select");var Ra=Object(Ri.default)(br.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(Hi.b.Consumer,null,function(Ao){var ja,Ya=tn||Ao,Ia=b()(!cn&&Gi,(ja={},A()(ja,"".concat(ua,"-lg"),Ya==="large"),A()(ja,"".concat(ua,"-sm"),Ya==="small"),A()(ja,"".concat(ua,"-rtl"),mr==="rtl"),A()(ja,"".concat(ua,"-borderless"),!Ui),ja),Ln);return e.createElement(zi,E()({virtual:vr,dropdownMatchSelectWidth:Fr},Ra,{ref:br.selectRef,prefixCls:ua,className:Ia,listHeight:Jn,listItemHeight:Si,treeCheckable:Tn&&e.createElement("span",{className:"".concat(ua,"-tree-checkbox-inner")}),inputIcon:ga,menuItemSelectedIcon:ra,removeIcon:pa,clearIcon:_a,switcherIcon:function(co){return Object(mi.a)(aa,xi,yi,co)},showTreeIcon:Di,notFoundContent:Da,getPopupContainer:vi||Wr,treeMotion:null,dropdownClassName:Vi}))})},Object($n.a)(Zt.multiple!==!1||!Zt.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),br}return c()(on,[{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(Yi.a,null,this.renderTreeSelect)}}]),on}(e.Component);Li.TreeNode=en,Li.SHOW_ALL=Yr,Li.SHOW_PARENT=xr,Li.SHOW_CHILD=ln,Li.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Bi=B.a=Li},"5Uyt":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("KmBX"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},"5YOS":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("xb2K"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},"5YgA":function(H,B,d){},"5bA4":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="LeftOutlined";var f=B.a=E.forwardRef(m)},"5hvy":function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("MlIO"))})(this,function(O){return function(E){var C=O,A=C.lib,w=A.WordArray,m=A.Hasher,f=C.x64,c=f.Word,o=C.algo,r=[],i=[],n=[];(function(){for(var t=1,a=0,l=0;l<24;l++){r[t+5*a]=(l+1)*(l+2)/2%64;var u=a%5,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,g=0;g<24;g++){for(var v=0,y=0,x=0;x<7;x++){if(p&1){var T=(1<<x)-1;T<32?y^=1<<T:v^=1<<T-32}p&128?p=p<<1^113:p<<=1}n[g]=c.create(v,y)}})();var e=[];(function(){for(var t=0;t<25;t++)e[t]=c.create()})();var s=o.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],l=0;l<25;l++)a[l]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,l){for(var u=this._state,h=this.blockSize/2,p=0;p<h;p++){var g=a[l+2*p],v=a[l+2*p+1];g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;var y=u[p];y.high^=v,y.low^=g}for(var x=0;x<24;x++){for(var T=0;T<5;T++){for(var S=0,b=0,_=0;_<5;_++){var y=u[T+5*_];S^=y.high,b^=y.low}var I=e[T];I.high=S,I.low=b}for(var T=0;T<5;T++)for(var L=e[(T+4)%5],N=e[(T+1)%5],D=N.high,R=N.low,S=L.high^(D<<1|R>>>31),b=L.low^(R<<1|D>>>31),_=0;_<5;_++){var y=u[T+5*_];y.high^=S,y.low^=b}for(var P=1;P<25;P++){var S,b,y=u[P],M=y.high,U=y.low,F=r[P];F<32?(S=M<<F|U>>>32-F,b=U<<F|M>>>32-F):(S=U<<F-32|M>>>64-F,b=M<<F-32|U>>>64-F);var j=e[i[P]];j.high=S,j.low=b}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 P=T+5*_,y=u[P],z=e[P],Y=e[(T+1)%5+5*_],$=e[(T+2)%5+5*_];y.high=z.high^~Y.high&$.high,y.low=z.low^~Y.low&$.low}var y=u[0],ue=n[x];y.high^=ue.high,y.low^=ue.low}},_doFinalize:function(){var a=this._data,l=a.words,u=this._nDataBytes*8,h=a.sigBytes*8,p=this.blockSize*32;l[h>>>5]|=1<<24-h%32,l[(E.ceil((h+1)/p)*p>>>5)-1]|=128,a.sigBytes=l.length*4,this._process();for(var g=this._state,v=this.cfg.outputLength/8,y=v/8,x=[],T=0;T<y;T++){var S=g[T],b=S.high,_=S.low;b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,x.push(_),x.push(b)}return new w.init(x,v)},clone:function(){for(var a=m.clone.call(this),l=a._state=this._state.slice(0),u=0;u<25;u++)l[u]=l[u].clone();return a}});C.SHA3=m._createHelper(s),C.HmacSHA3=m._createHmacHelper(s)}(Math),O.SHA3})},"5nXd":function(H,B,d){var O=d("MFOe"),E=O.slice,C=O.pluck,A=O.each,w=O.bind,m=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(s,t){var a=this.storage.read(this._namespacePrefix+s);return this._deserialize(a,t)},set:function(s,t){return t===void 0?this.remove(s):(this.storage.write(this._namespacePrefix+s,this._serialize(t)),t)},remove:function(s){this.storage.remove(this._namespacePrefix+s)},each:function(s){var t=this;this.storage.each(function(a,l){s.call(t,t._deserialize(a),(l||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(s){return this._namespacePrefix=="__storejs_"+s+"_"},createStore:function(){return n.apply(this,arguments)},addPlugin:function(s){this._addPlugin(s)},namespace:function(s){return n(this.storage,this.plugins,s)}};function i(){var e=typeof console=="undefined"?null:console;if(!e)return;var s=e.warn?e.warn:e.log;s.apply(e,arguments)}function n(e,s,t){t||(t=""),e&&!f(e)&&(e=[e]),s&&!f(s)&&(s=[s]);var a=t?"__storejs_"+t+"_":"",l=t?new RegExp("^"+a):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(t))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h={_namespacePrefix:a,_namespaceRegexp:l,_testStorage:function(v){try{var y="__storejs__test__";v.write(y,y);var x=v.read(y)===y;return v.remove(y),x}catch(T){return!1}},_assignPluginFnProp:function(v,y){var x=this[y];this[y]=function(){var S=E(arguments,0),b=this;function _(){return x?(A(arguments,function(L,N){S[N]=L}),x.apply(b,S)):void 0}var I=[_].concat(S);return v.apply(b,I)}},_serialize:function(v){return JSON.stringify(v)},_deserialize:function(v,y){if(!v)return y;var x="";try{x=JSON.parse(v)}catch(T){x=v}return x!==void 0?x: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(S){y._addPlugin(S)});return}var x=C(this.plugins,function(S){return v===S});if(x)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(S,b){if(!c(S))throw new Error("Bad plugin property: "+b+" from plugin "+v.name+". Plugins should only return functions.");y._assignPluginFnProp(S,b)})},addStorage:function(v){i("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(v)}},p=m(h,r,{plugins:[]});return p.raw={},A(p,function(g,v){c(g)&&(p.raw[v]=w(p,g))}),A(e,function(g){p._addStorage(g)}),A(s,function(g){p._addPlugin(g)}),p}},"5rEg":function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lwsE"),A=d.n(C),w=d("W8MJ"),m=d.n(w),f=d("7W2i"),c=d.n(f),o=d("LQ03"),r=d.n(o),i=d("lSNA"),n=d.n(i),e=d("q1tI"),s=d("TSYQ"),t=d.n(s),a=d("BGR+"),l=d("kbBi"),u=d.n(l),h=d("CWQg"),p=d("0n0R"),g=Object(h.a)("text","input");function v(J){return!!(J.prefix||J.suffix||J.allowClear)}var y=function(J){c()(de,J);var ve=r()(de);function de(){var Ce;return A()(this,de),Ce=ve.apply(this,arguments),Ce.containerRef=e.createRef(),Ce.onInputMouseUp=function(Ee){var le;if((le=Ce.containerRef.current)===null||le===void 0?void 0:le.contains(Ee.target)){var fe=Ce.props.triggerFocus;fe()}},Ce}return m()(de,[{key:"renderClearIcon",value:function(Ee){var le=this.props,fe=le.allowClear,xe=le.value,Qe=le.disabled,ot=le.readOnly,Je=le.inputType,Te=le.handleReset;if(!fe)return null;var et=!Qe&&!ot&&xe,ze=Je===g[0]?"".concat(Ee,"-textarea-clear-icon"):"".concat(Ee,"-clear-icon");return e.createElement(u.a,{onClick:Te,className:t()(ze,n()({},"".concat(ze,"-hidden"),!et)),role:"button"})}},{key:"renderSuffix",value:function(Ee){var le=this.props,fe=le.suffix,xe=le.allowClear;return fe||xe?e.createElement("span",{className:"".concat(Ee,"-suffix")},this.renderClearIcon(Ee),fe):null}},{key:"renderLabeledIcon",value:function(Ee,le){var fe,xe=this.props,Qe=xe.focused,ot=xe.value,Je=xe.prefix,Te=xe.className,et=xe.size,ze=xe.suffix,nt=xe.disabled,Ot=xe.allowClear,Ct=xe.direction,Tt=xe.style,Dt=xe.readOnly,Be=xe.bordered,ie=this.renderSuffix(Ee);if(!v(this.props))return Object(p.a)(le,{value:ot});var X=Je?e.createElement("span",{className:"".concat(Ee,"-prefix")},Je):null,Fe=t()(Te,"".concat(Ee,"-affix-wrapper"),(fe={},n()(fe,"".concat(Ee,"-affix-wrapper-focused"),Qe),n()(fe,"".concat(Ee,"-affix-wrapper-disabled"),nt),n()(fe,"".concat(Ee,"-affix-wrapper-sm"),et==="small"),n()(fe,"".concat(Ee,"-affix-wrapper-lg"),et==="large"),n()(fe,"".concat(Ee,"-affix-wrapper-input-with-clear-btn"),ze&&Ot&&ot),n()(fe,"".concat(Ee,"-affix-wrapper-rtl"),Ct==="rtl"),n()(fe,"".concat(Ee,"-affix-wrapper-readonly"),Dt),n()(fe,"".concat(Ee,"-affix-wrapper-borderless"),!Be),fe));return e.createElement("span",{ref:this.containerRef,className:Fe,style:Tt,onMouseUp:this.onInputMouseUp},X,Object(p.a)(le,{style:null,value:ot,className:L(Ee,Be,et,nt)}),ie)}},{key:"renderInputWithLabel",value:function(Ee,le){var fe,xe,Qe=this.props,ot=Qe.addonBefore,Je=Qe.addonAfter,Te=Qe.style,et=Qe.size,ze=Qe.className,nt=Qe.direction;if(!ot&&!Je)return le;var Ot="".concat(Ee,"-group"),Ct="".concat(Ot,"-addon"),Tt=ot?e.createElement("span",{className:Ct},ot):null,Dt=Je?e.createElement("span",{className:Ct},Je):null,Be=t()("".concat(Ee,"-wrapper"),(fe={},n()(fe,Ot,ot||Je),n()(fe,"".concat(Ot,"-rtl"),nt==="rtl"),fe)),ie=t()(ze,"".concat(Ee,"-group-wrapper"),(xe={},n()(xe,"".concat(Ee,"-group-wrapper-sm"),et==="small"),n()(xe,"".concat(Ee,"-group-wrapper-lg"),et==="large"),n()(xe,"".concat(Ee,"-group-wrapper-rtl"),nt==="rtl"),xe));return e.createElement("span",{className:ie,style:Te},e.createElement("span",{className:Be},Tt,Object(p.a)(le,{style:null}),Dt))}},{key:"renderTextAreaWithClearIcon",value:function(Ee,le){var fe,xe=this.props,Qe=xe.value,ot=xe.allowClear,Je=xe.className,Te=xe.style,et=xe.direction,ze=xe.bordered;if(!ot)return Object(p.a)(le,{value:Qe});var nt=t()(Je,"".concat(Ee,"-affix-wrapper"),"".concat(Ee,"-affix-wrapper-textarea-with-clear-btn"),(fe={},n()(fe,"".concat(Ee,"-affix-wrapper-rtl"),et==="rtl"),n()(fe,"".concat(Ee,"-affix-wrapper-borderless"),!ze),fe));return e.createElement("span",{className:nt,style:Te},Object(p.a)(le,{style:null,value:Qe}),this.renderClearIcon(Ee))}},{key:"render",value:function(){var Ee=this.props,le=Ee.prefixCls,fe=Ee.inputType,xe=Ee.element;return fe===g[0]?this.renderTextAreaWithClearIcon(le,xe):this.renderInputWithLabel(le,this.renderLabeledIcon(le,xe))}}]),de}(e.Component),x=y,T=d("H84U"),S=d("3Nzz"),b=d("uaoM");function _(J){return typeof J=="undefined"||J===null?"":J}function I(J,ve,de){if(de){var Ce=ve;if(ve.type==="click"){Ce=Object.create(ve),Ce.target=J,Ce.currentTarget=J;var Ee=J.value;J.value="",de(Ce),J.value=Ee;return}de(Ce)}}function L(J,ve,de,Ce,Ee){var le;return t()(J,(le={},n()(le,"".concat(J,"-sm"),de==="small"),n()(le,"".concat(J,"-lg"),de==="large"),n()(le,"".concat(J,"-disabled"),Ce),n()(le,"".concat(J,"-rtl"),Ee==="rtl"),n()(le,"".concat(J,"-borderless"),!ve),le))}var N=function(J){c()(de,J);var ve=r()(de);function de(Ce){var Ee;A()(this,de),Ee=ve.call(this,Ce),Ee.direction="ltr",Ee.focus=function(){Ee.input.focus()},Ee.saveClearableInput=function(fe){Ee.clearableInput=fe},Ee.saveInput=function(fe){Ee.input=fe},Ee.onFocus=function(fe){var xe=Ee.props.onFocus;Ee.setState({focused:!0},Ee.clearPasswordValueAttribute),xe&&xe(fe)},Ee.onBlur=function(fe){var xe=Ee.props.onBlur;Ee.setState({focused:!1},Ee.clearPasswordValueAttribute),xe&&xe(fe)},Ee.handleReset=function(fe){Ee.setValue("",function(){Ee.focus()}),I(Ee.input,fe,Ee.props.onChange)},Ee.renderInput=function(fe,xe,Qe){var ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Je=Ee.props,Te=Je.className,et=Je.addonBefore,ze=Je.addonAfter,nt=Je.size,Ot=Je.disabled,Ct=Object(a.default)(Ee.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",E()({autoComplete:ot.autoComplete},Ct,{onChange:Ee.handleChange,onFocus:Ee.onFocus,onBlur:Ee.onBlur,onKeyDown:Ee.handleKeyDown,className:t()(L(fe,Qe,nt||xe,Ot,Ee.direction),n()({},Te,Te&&!et&&!ze)),ref:Ee.saveInput}))},Ee.clearPasswordValueAttribute=function(){Ee.removePasswordTimeout=setTimeout(function(){Ee.input&&Ee.input.getAttribute("type")==="password"&&Ee.input.hasAttribute("value")&&Ee.input.removeAttribute("value")})},Ee.handleChange=function(fe){Ee.setValue(fe.target.value,Ee.clearPasswordValueAttribute),I(Ee.input,fe,Ee.props.onChange)},Ee.handleKeyDown=function(fe){var xe=Ee.props,Qe=xe.onPressEnter,ot=xe.onKeyDown;fe.keyCode===13&&Qe&&Qe(fe),ot&&ot(fe)},Ee.renderComponent=function(fe){var xe=fe.getPrefixCls,Qe=fe.direction,ot=fe.input,Je=Ee.state,Te=Je.value,et=Je.focused,ze=Ee.props,nt=ze.prefixCls,Ot=ze.bordered,Ct=Ot===void 0?!0:Ot,Tt=xe("input",nt);return Ee.direction=Qe,e.createElement(S.b.Consumer,null,function(Dt){return e.createElement(x,E()({size:Dt},Ee.props,{prefixCls:Tt,inputType:"input",value:_(Te),element:Ee.renderInput(Tt,Dt,Ct,ot),handleReset:Ee.handleReset,ref:Ee.saveClearableInput,direction:Qe,focused:et,triggerFocus:Ee.focus,bordered:Ct}))})};var le=typeof Ce.value=="undefined"?Ce.defaultValue:Ce.value;return Ee.state={value:le,focused:!1,prevValue:Ce.value},Ee}return m()(de,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(Ee){return v(Ee)!==v(this.props)&&Object(b.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(Ee,le){this.props.value===void 0&&this.setState({value:Ee},le)}},{key:"render",value:function(){return e.createElement(T.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Ee,le){var fe=le.prevValue,xe={prevValue:Ee.value};return(Ee.value!==void 0||fe!==Ee.value)&&(xe.value=Ee.value),xe}}]),de}(e.Component);N.defaultProps={type:"text"};var D=N,R=function(ve){return e.createElement(T.a,null,function(de){var Ce,Ee=de.getPrefixCls,le=de.direction,fe=ve.prefixCls,xe=ve.className,Qe=xe===void 0?"":xe,ot=Ee("input-group",fe),Je=t()(ot,(Ce={},n()(Ce,"".concat(ot,"-lg"),ve.size==="large"),n()(Ce,"".concat(ot,"-sm"),ve.size==="small"),n()(Ce,"".concat(ot,"-compact"),ve.compact),n()(Ce,"".concat(ot,"-rtl"),le==="rtl"),Ce),Qe);return e.createElement("span",{className:Je,style:ve.style,onMouseEnter:ve.onMouseEnter,onMouseLeave:ve.onMouseLeave,onFocus:ve.onFocus,onBlur:ve.onBlur},ve.children)})},P=R,M=d("c+Xe"),U=d("w6Tc"),F=d.n(U),j=d("gZBC"),W=d.n(j),V=d("2/Rp"),z=function(J,ve){var de={};for(var Ce in J)Object.prototype.hasOwnProperty.call(J,Ce)&&ve.indexOf(Ce)<0&&(de[Ce]=J[Ce]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Ce=Object.getOwnPropertySymbols(J);Ee<Ce.length;Ee++)ve.indexOf(Ce[Ee])<0&&Object.prototype.propertyIsEnumerable.call(J,Ce[Ee])&&(de[Ce[Ee]]=J[Ce[Ee]]);return de},Y=e.forwardRef(function(J,ve){var de=e.useRef(null),Ce=function(Te){var et=J.onChange,ze=J.onSearch;Te&&Te.target&&Te.type==="click"&&ze&&ze(Te.target.value,Te),et&&et(Te)},Ee=function(Te){var et;document.activeElement===((et=de.current)===null||et===void 0?void 0:et.input)&&Te.preventDefault()},le=function(Te){var et,ze=J.onSearch,nt=J.loading,Ot=J.disabled;if(nt||Ot)return;ze&&ze((et=de.current)===null||et===void 0?void 0:et.input.value,Te)},fe=function(Te){var et=J.enterButton,ze=J.size;return et?e.createElement(S.b.Consumer,{key:"enterButton"},function(nt){return e.createElement(V.a,{className:"".concat(Te,"-button"),type:"primary",size:ze||nt},e.createElement(W.a,null))}):e.createElement(W.a,{className:"".concat(Te,"-icon"),key:"loadingIcon"})},xe=function(Te){var et=J.suffix,ze=J.enterButton,nt=J.loading;if(nt&&!ze)return[et,fe(Te)];if(ze)return et;var Ot=e.createElement(F.a,{className:"".concat(Te,"-icon"),key:"searchIcon",onClick:le});return et?[Object(p.c)(et,null,{key:"suffix"}),Ot]:Ot},Qe=function(Te,et){var ze=J.enterButton,nt=J.disabled,Ot=J.addonAfter,Ct=J.loading,Tt="".concat(Te,"-button");if(Ct&&ze)return[fe(Te),Ot];if(!ze)return Ot;var Dt,Be=ze,ie=Be.type&&Be.type.__ANT_BUTTON===!0;return ie||Be.type==="button"?Dt=Object(p.a)(Be,E()({onMouseDown:Ee,onClick:le,key:"enterButton"},ie?{className:Tt,size:et}:{})):Dt=e.createElement(V.a,{className:Tt,type:"primary",size:et,disabled:nt,key:"enterButton",onMouseDown:Ee,onClick:le},ze===!0?e.createElement(F.a,null):ze),Ot?[Dt,Object(p.c)(Ot,null,{key:"addonAfter"})]:Dt},ot=function(Te){var et=Te.getPrefixCls,ze=Te.direction,nt=J.prefixCls,Ot=J.inputPrefixCls,Ct=J.enterButton,Tt=J.className,Dt=J.size,Be=z(J,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete Be.onSearch,delete Be.loading;var ie=et("input-search",nt),X=et("input",Ot),Fe=function(q){var ht;if(Ct){var Rt;ht=t()(ie,Tt,(Rt={},n()(Rt,"".concat(ie,"-rtl"),ze==="rtl"),n()(Rt,"".concat(ie,"-enter-button"),!!Ct),n()(Rt,"".concat(ie,"-").concat(q),!!q),Rt))}else ht=t()(ie,Tt,n()({},"".concat(ie,"-rtl"),ze==="rtl"));return ht};return e.createElement(S.b.Consumer,null,function(Ne){return e.createElement(D,E()({ref:Object(M.a)(de,ve),onPressEnter:le},Be,{size:Dt||Ne,prefixCls:X,addonAfter:Qe(ie,Dt||Ne),suffix:xe(ie),onChange:Ce,className:Fe(Dt||Ne)}))})};return e.createElement(T.a,null,ot)});Y.defaultProps={enterButton:!1},Y.displayName="Search";var $=Y,ue=d("Y1PL"),ne=function(J){c()(de,J);var ve=r()(de);function de(Ce){var Ee;A()(this,de),Ee=ve.call(this,Ce),Ee.focus=function(){Ee.resizableTextArea.textArea.focus()},Ee.saveTextArea=function(fe){Ee.resizableTextArea=fe==null?void 0:fe.resizableTextArea},Ee.saveClearableInput=function(fe){Ee.clearableInput=fe},Ee.handleChange=function(fe){Ee.setValue(fe.target.value),I(Ee.resizableTextArea.textArea,fe,Ee.props.onChange)},Ee.handleReset=function(fe){Ee.setValue("",function(){Ee.focus()}),I(Ee.resizableTextArea.textArea,fe,Ee.props.onChange)},Ee.renderTextArea=function(fe,xe){return e.createElement(ue.default,E()({},Object(a.default)(Ee.props,["allowClear","bordered"]),{className:t()(Ee.props.className,n()({},"".concat(fe,"-borderless"),!xe)),prefixCls:fe,onChange:Ee.handleChange,ref:Ee.saveTextArea}))},Ee.renderComponent=function(fe){var xe=fe.getPrefixCls,Qe=fe.direction,ot=Ee.state.value,Je=Ee.props,Te=Je.prefixCls,et=Je.bordered,ze=et===void 0?!0:et,nt=xe("input",Te);return e.createElement(x,E()({},Ee.props,{prefixCls:nt,direction:Qe,inputType:"text",value:_(ot),element:Ee.renderTextArea(nt,ze),handleReset:Ee.handleReset,ref:Ee.saveClearableInput,triggerFocus:Ee.focus,bordered:ze}))};var le=typeof Ce.value=="undefined"?Ce.defaultValue:Ce.value;return Ee.state={value:le},Ee}return m()(de,[{key:"setValue",value:function(Ee,le){this.props.value===void 0&&this.setState({value:Ee},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(Ee){return Ee.value!==void 0?{value:Ee.value}:null}}]),de}(e.Component),ge=ne,Oe=d("J4zp"),De=d.n(Oe),He=d("qPY4"),pe=d.n(He),Ue=d("fUL4"),oe=d.n(Ue),ee=function(J,ve){var de={};for(var Ce in J)Object.prototype.hasOwnProperty.call(J,Ce)&&ve.indexOf(Ce)<0&&(de[Ce]=J[Ce]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Ce=Object.getOwnPropertySymbols(J);Ee<Ce.length;Ee++)ve.indexOf(Ce[Ee])<0&&Object.prototype.propertyIsEnumerable.call(J,Ce[Ee])&&(de[Ce[Ee]]=J[Ce[Ee]]);return de},Xe={click:"onClick",hover:"onMouseOver"},se=e.forwardRef(function(J,ve){var de=Object(e.useState)(!1),Ce=De()(de,2),Ee=Ce[0],le=Ce[1],fe=function(){var Je=J.disabled;if(Je)return;le(!Ee)},xe=function(Je){var Te,et=J.action,ze=J.iconRender,nt=ze===void 0?function(){return null}:ze,Ot=Xe[et]||"",Ct=nt(Ee),Tt=(Te={},n()(Te,Ot,fe),n()(Te,"className","".concat(Je,"-icon")),n()(Te,"key","passwordIcon"),n()(Te,"onMouseDown",function(Be){Be.preventDefault()}),n()(Te,"onMouseUp",function(Be){Be.preventDefault()}),Te);return e.cloneElement(e.isValidElement(Ct)?Ct:e.createElement("span",null,Ct),Tt)},Qe=function(Je){var Te=Je.getPrefixCls,et=J.className,ze=J.prefixCls,nt=J.inputPrefixCls,Ot=J.size,Ct=J.visibilityToggle,Tt=ee(J,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Dt=Te("input",nt),Be=Te("input-password",ze),ie=Ct&&xe(Be),X=t()(Be,et,n()({},"".concat(Be,"-").concat(Ot),!!Ot)),Fe=E()(E()({},Object(a.default)(Tt,["suffix","iconRender"])),{type:Ee?"text":"password",className:X,prefixCls:Dt,suffix:ie});return Ot&&(Fe.size=Ot),e.createElement(D,E()({ref:ve},Fe))};return e.createElement(T.a,null,Qe)});se.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(ve){return ve?e.createElement(pe.a,null):e.createElement(oe.a,null)}},se.displayName="Password";var Q=se;D.Group=P,D.Search=$,D.TextArea=ge,D.Password=Q;var G=B.a=D},"5s0K":function(H,B,d){var O=d("bYtY");function E(){var C=[],A={},w;return{add:function(m,f,c,o,r){return O.isString(o)&&(r=o,o=0),A[m.id]?!1:(A[m.id]=1,C.push({el:m,target:f,time:c,delay:o,easing:r}),!0)},done:function(m){return w=m,this},start:function(){for(var m=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(){m--,m||(C.length=0,A={},w&&w())}}}}B.createWrap=E},"5yev":function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},"6/nd":function(H,B,d){var O=d("ProS");O.registerAction("legendScroll","legendscroll",function(E,C){var A=E.scrollDataIndex;A!=null&&C.eachComponent({mainType:"legend",subType:"scroll",query:E},function(w){w.setScrollDataIndex(A)})})},"62sa":function(H,B,d){var O=d("bYtY"),E=d("4NO4"),C=E.makeInner,A=d("zTMp"),w=d("Ez2D"),m=O.each,f=O.curry,c=C();function o(p,g,v){var y=p.currTrigger,x=[p.x,p.y],T=p,S=p.dispatchAction||O.bind(v.dispatchAction,v),b=g.getComponent("axisPointer").coordSysAxesInfo;if(!b)return;h(x)&&(x=w({seriesIndex:T.seriesIndex,dataIndex:T.dataIndex},g).point);var _=h(x),I=T.axesInfo,L=b.axesInfo,N=y==="leave"||h(x),D={},R={},P={list:[],map:{}},M={showPointer:f(n,R),showTooltip:f(e,P)};m(b.coordSysMap,function(F,j){var W=_||F.containPoint(x);m(b.coordSysAxesInfo[j],function(V,z){var Y=V.axis,$=l(I,V);if(!N&&W&&(!I||$)){var ue=$&&$.value;ue==null&&!_&&(ue=Y.pointToData(x)),ue!=null&&r(V,ue,M,!1,D)}})});var U={};return m(L,function(F,j){var W=F.linkGroup;W&&!R[j]&&m(W.axesInfo,function(V,z){var Y=R[z];if(V!==F&&Y){var $=Y.value;W.mapper&&($=F.axis.scale.parse(W.mapper($,u(V),u(F)))),U[F.key]=$}})}),m(U,function(F,j){r(L[j],F,M,!0,D)}),s(R,L,D),t(P,x,p,S),a(L,S,v),D}function r(p,g,v,y,x){var T=p.axis;if(T.scale.isBlank()||!T.containData(g))return;if(!p.involveSeries){v.showPointer(p,g);return}var S=i(g,p),b=S.payloadBatch,_=S.snapToValue;b[0]&&x.seriesIndex==null&&O.extend(x,b[0]),!y&&p.snap&&(T.containData(_)&&_!=null&&(g=_)),v.showPointer(p,g,b,x),v.showTooltip(p,S,_)}function i(p,g){var v=g.axis,y=v.dim,x=p,T=[],S=Number.MAX_VALUE,b=-1;return m(g.seriesModels,function(_,I){var L=_.getData().mapDimension(y,!0),N,D;if(_.getAxisTooltipData){var R=_.getAxisTooltipData(L,p,v);D=R.dataIndices,N=R.nestestValue}else{if(D=_.getData().indicesOfNearest(L[0],p,v.type==="category"?.5:null),!D.length)return;N=_.getData().get(L[0],D[0])}if(N==null||!isFinite(N))return;var P=p-N,M=Math.abs(P);M<=S&&((M<S||P>=0&&b<0)&&(S=M,b=P,x=N,T.length=0),m(D,function(U){T.push({seriesIndex:_.seriesIndex,dataIndexInside:U,dataIndex:_.getData().getRawIndex(U)})}))}),{payloadBatch:T,snapToValue:x}}function n(p,g,v,y){p[g.key]={value:v,payloadBatch:y}}function e(p,g,v,y){var x=v.payloadBatch,T=g.axis,S=T.model,b=g.axisPointerModel;if(!g.triggerTooltip||!x.length)return;var _=g.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:S.componentIndex,axisType:S.type,axisId:S.id,value:y,valueLabelOpt:{precision:b.get("label.precision"),formatter:b.get("label.formatter")},seriesDataIndices:x.slice()})}function s(p,g,v){var y=v.axesInfo=[];m(g,function(x,T){var S=x.axisPointerModel.option,b=p[T];b?(!x.useHandle&&(S.status="show"),S.value=b.value,S.seriesDataIndices=(b.payloadBatch||[]).slice()):!x.useHandle&&(S.status="hide"),S.status==="show"&&y.push({axisDim:x.axis.dim,axisIndex:x.axis.model.componentIndex,value:S.value})})}function t(p,g,v,y){if(h(g)||!p.list.length){y({type:"hideTip"});return}var x=((p.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};y({type:"showTip",escapeConnect:!0,x:g[0],y:g[1],tooltipOption:v.tooltipOption,position:v.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:p.list})}function a(p,g,v){var y=v.getZr(),x="axisPointerLastHighlights",T=c(y)[x]||{},S=c(y)[x]={};m(p,function(I,L){var N=I.axisPointerModel.option;N.status==="show"&&m(N.seriesDataIndices,function(D){var R=D.seriesIndex+" | "+D.dataIndex;S[R]=D})});var b=[],_=[];O.each(T,function(I,L){!S[L]&&_.push(I)}),O.each(S,function(I,L){!T[L]&&b.push(I)}),_.length&&v.dispatchAction({type:"downplay",escapeConnect:!0,batch:_}),b.length&&v.dispatchAction({type:"highlight",escapeConnect:!0,batch:b})}function l(p,g){for(var v=0;v<(p||[]).length;v++){var y=p[v];if(g.axis.dim===y.axisDim&&g.axis.model.componentIndex===y.axisIndex)return y}}function u(p){var g=p.axis.model,v={},y=v.axisDim=p.axis.dim;return v.axisIndex=v[y+"AxisIndex"]=g.componentIndex,v.axisName=v[y+"AxisName"]=g.name,v.axisId=v[y+"AxisId"]=g.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,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.shrinkBuf=O,B.arraySet=E,B.flattenChunks=C,B.Buf32=B.Buf16=B.Buf8=void 0;function O(f,c){return f.length===c?f:f.subarray?f.subarray(0,c):(f.length=c,f)}function E(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;B.Buf8=A;var w=Uint16Array;B.Buf16=w;var m=Int32Array;B.Buf32=m},"6D9b":function(H,B,d){},"6GrX":function(H,B,d){var O=d("mFDi"),E=d("Xnb7"),C=d("bYtY"),A=C.getContext,w=C.extend,m=C.retrieve2,f=C.retrieve3,c=C.trim,o={},r=0,i=5e3,n=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",s={};function t(P,M){s[P]=M}function a(P,M){M=M||e;var U=P+":"+M;if(o[U])return o[U];for(var F=(P+"").split(`
|
|
|
`),j=0,W=0,V=F.length;W<V;W++)j=Math.max(I(F[W],M).width,j);return r>i&&(r=0,o={}),r++,o[U]=j,j}function l(P,M,U,F,j,W,V,z){return V?h(P,M,U,F,j,W,V,z):u(P,M,U,F,j,W,z)}function u(P,M,U,F,j,W,V){var z=L(P,M,j,W,V),Y=a(P,M);j&&(Y+=j[1]+j[3]);var $=z.outerHeight,ue=p(0,Y,U),ne=g(0,$,F),ge=new O(ue,ne,Y,$);return ge.lineHeight=z.lineHeight,ge}function h(P,M,U,F,j,W,V,z){var Y=N(P,{rich:V,truncate:z,font:M,textAlign:U,textPadding:j,textLineHeight:W}),$=Y.outerWidth,ue=Y.outerHeight,ne=p(0,$,U),ge=g(0,ue,F);return new O(ne,ge,$,ue)}function p(P,M,U){return U==="right"?P-=M:U==="center"&&(P-=M/2),P}function g(P,M,U){return U==="middle"?P-=M/2:U==="bottom"&&(P-=M),P}function v(P,M,U){var F=M.textPosition,j=M.textDistance,W=U.x,V=U.y;j=j||0;var z=U.height,Y=U.width,$=z/2,ue="left",ne="top";switch(F){case"left":W-=j,V+=$,ue="right",ne="middle";break;case"right":W+=j+Y,V+=$,ne="middle";break;case"top":W+=Y/2,V-=j,ue="center",ne="bottom";break;case"bottom":W+=Y/2,V+=z+j,ue="center";break;case"inside":W+=Y/2,V+=$,ue="center",ne="middle";break;case"insideLeft":W+=j,V+=$,ne="middle";break;case"insideRight":W+=Y-j,V+=$,ue="right",ne="middle";break;case"insideTop":W+=Y/2,V+=j,ue="center";break;case"insideBottom":W+=Y/2,V+=z-j,ue="center",ne="bottom";break;case"insideTopLeft":W+=j,V+=j;break;case"insideTopRight":W+=Y-j,V+=j,ue="right";break;case"insideBottomLeft":W+=j,V+=z-j,ne="bottom";break;case"insideBottomRight":W+=Y-j,V+=z-j,ue="right",ne="bottom";break}return P=P||{},P.x=W,P.y=V,P.textAlign=ue,P.textVerticalAlign=ne,P}function y(P,M,U){var F={textPosition:P,textDistance:U};return v({},F,M)}function x(P,M,U,F,j){if(!M)return"";var W=(P+"").split(`
|
|
|
`);j=T(M,U,F,j);for(var V=0,z=W.length;V<z;V++)W[V]=S(W[V],j);return W.join(`
|
|
|
`)}function T(P,M,U,F){F=w({},F),F.font=M;var U=m(U,"...");F.maxIterations=m(F.maxIterations,2);var j=F.minChar=m(F.minChar,0);F.cnCharWidth=a("\u56FD",M);var W=F.ascCharWidth=a("a",M);F.placeholder=m(F.placeholder,"");for(var V=P=Math.max(0,P-1),z=0;z<j&&V>=W;z++)V-=W;var Y=a(U,M);return Y>V&&(U="",Y=0),V=P-Y,F.ellipsis=U,F.ellipsisWidth=Y,F.contentWidth=V,F.containerWidth=P,F}function S(P,M){var U=M.containerWidth,F=M.font,j=M.contentWidth;if(!U)return"";var W=a(P,F);if(W<=U)return P;for(var V=0;;V++){if(W<=j||V>=M.maxIterations){P+=M.ellipsis;break}var z=V===0?b(P,j,M.ascCharWidth,M.cnCharWidth):W>0?Math.floor(P.length*j/W):0;P=P.substr(0,z),W=a(P,F)}return P===""&&(P=M.placeholder),P}function b(P,M,U,F){for(var j=0,W=0,V=P.length;W<V&&j<M;W++){var z=P.charCodeAt(W);j+=0<=z&&z<=127?U:F}return W}function _(P){return a("\u56FD",P)}function I(P,M){return s.measureText(P,M)}s.measureText=function(P,M){var U=A();return U.font=M||e,U.measureText(P)};function L(P,M,U,F,j){P!=null&&(P+="");var W=m(F,_(M)),V=P?P.split(`
|
|
|
`):[],z=V.length*W,Y=z,$=!0;if(U&&(Y+=U[0]+U[2]),P&&j){$=!1;var ue=j.outerHeight,ne=j.outerWidth;if(ue!=null&&Y>ue)P="",V=[];else if(ne!=null)for(var ge=T(ne-(U?U[1]+U[3]:0),M,j.ellipsis,{minChar:j.minChar,placeholder:j.placeholder}),Oe=0,De=V.length;Oe<De;Oe++)V[Oe]=S(V[Oe],ge)}return{lines:V,height:z,outerHeight:Y,lineHeight:W,canCacheByTextString:$}}function N(P,M){var U={lines:[],width:0,height:0};if(P!=null&&(P+=""),!P)return U;for(var F=n.lastIndex=0,j;(j=n.exec(P))!=null;){var W=j.index;W>F&&D(U,P.substring(F,W)),D(U,j[2],j[1]),F=n.lastIndex}F<P.length&&D(U,P.substring(F,P.length));var V=U.lines,z=0,Y=0,$=[],ue=M.textPadding,ne=M.truncate,ge=ne&&ne.outerWidth,Oe=ne&&ne.outerHeight;ue&&(ge!=null&&(ge-=ue[1]+ue[3]),Oe!=null&&(Oe-=ue[0]+ue[2]));for(var De=0;De<V.length;De++){for(var He=V[De],pe=0,Ue=0,oe=0;oe<He.tokens.length;oe++){var ee=He.tokens[oe],Xe=ee.styleName&&M.rich[ee.styleName]||{},se=ee.textPadding=Xe.textPadding,Q=ee.font=Xe.font||M.font,G=ee.textHeight=m(Xe.textHeight,_(Q));if(se&&(G+=se[0]+se[2]),ee.height=G,ee.lineHeight=f(Xe.textLineHeight,M.textLineHeight,G),ee.textAlign=Xe&&Xe.textAlign||M.textAlign,ee.textVerticalAlign=Xe&&Xe.textVerticalAlign||"middle",Oe!=null&&z+ee.lineHeight>Oe)return{lines:[],width:0,height:0};ee.textWidth=a(ee.text,Q);var J=Xe.textWidth,ve=J==null||J==="auto";if(typeof J=="string"&&J.charAt(J.length-1)==="%")ee.percentWidth=J,$.push(ee),J=0;else{if(ve){J=ee.textWidth;var de=Xe.textBackgroundColor,Ce=de&&de.image;Ce&&(Ce=E.findExistImage(Ce),E.isImageReady(Ce)&&(J=Math.max(J,Ce.width*G/Ce.height)))}var Ee=se?se[1]+se[3]:0;J+=Ee;var le=ge!=null?ge-Ue:null;le!=null&&le<J&&(!ve||le<Ee?(ee.text="",ee.textWidth=J=0):(ee.text=x(ee.text,le-Ee,Q,ne.ellipsis,{minChar:ne.minChar}),ee.textWidth=a(ee.text,Q),J=ee.textWidth+Ee))}Ue+=ee.width=J,Xe&&(pe=Math.max(pe,ee.lineHeight))}He.width=Ue,He.lineHeight=pe,z+=pe,Y=Math.max(Y,Ue)}U.outerWidth=U.width=m(M.textWidth,Y),U.outerHeight=U.height=m(M.textHeight,z),ue&&(U.outerWidth+=ue[1]+ue[3],U.outerHeight+=ue[0]+ue[2]);for(var De=0;De<$.length;De++){var ee=$[De],fe=ee.percentWidth;ee.width=parseInt(fe,10)/100*Y}return U}function D(P,M,U){for(var F=M==="",j=M.split(`
|
|
|
`),W=P.lines,V=0;V<j.length;V++){var z=j[V],Y={styleName:U,text:z,isLineHolder:!z&&!F};if(V)W.push({tokens:[Y]});else{var $=(W[W.length-1]||(W[0]={tokens:[]})).tokens,ue=$.length;ue===1&&$[0].isLineHolder?$[0]=Y:(z||!ue||F)&&$.push(Y)}}}function R(P){var M=(P.fontSize||P.fontFamily)&&[P.fontStyle,P.fontWeight,(P.fontSize||12)+"px",P.fontFamily||"sans-serif"].join(" ");return M&&c(M)||P.textFont||P.font}B.DEFAULT_FONT=e,B.$override=t,B.getWidth=a,B.getBoundingRect=l,B.adjustTextX=p,B.adjustTextY=g,B.calculateTextPosition=v,B.adjustTextPositionOnRect=y,B.truncateText=x,B.getLineHeight=_,B.measureText=I,B.parsePlainText=L,B.parseRichText=N,B.makeFont=R},"6Hfg":function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("FhB9")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="SwapRightOutlined";var c=A.forwardRef(f);B.default=c},"6Ic6":function(H,B,d){var O=d("bYtY"),E=O.each,C=d("4fz+"),A=d("iRjW"),w=d("Yl7c"),m=d("4NO4"),f=d("IwbS"),c=d("9H2F"),o=c.createTask,r=d("zM3Q"),i=m.makeInner(),n=r();function e(){this.group=new C,this.uid=A.getUID("viewChart"),this.renderTask=o({plan:l,reset:u}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(g,v){},render:function(g,v,y,x){},highlight:function(g,v,y,x){a(g.getData(),x,"emphasis")},downplay:function(g,v,y,x){a(g.getData(),x,"normal")},remove:function(g,v){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var s=e.prototype;s.updateView=s.updateLayout=s.updateVisual=function(g,v,y,x){this.render(g,v,y,x)};function t(g,v,y){if(g&&(g.trigger(v,y),g.isGroup&&!f.isHighDownDispatcher(g)))for(var x=0,T=g.childCount();x<T;x++)t(g.childAt(x),v,y)}function a(g,v,y){var x=m.queryDataIndex(g,v),T=v&&v.highlightKey!=null?f.getHighlightDigit(v.highlightKey):null;x!=null?E(m.normalizeToArray(x),function(S){t(g.getItemGraphicEl(S),y,T)}):g.eachItemGraphicEl(function(S){t(S,y,T)})}w.enableClassExtend(e,["dispose"]),w.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(g,v){i(g).updateMethod=v};function l(g){return n(g.model)}function u(g){var v=g.model,y=g.ecModel,x=g.api,T=g.payload,S=v.pipelineContext.progressiveRender,b=g.view,_=T&&i(T).updateMethod,I=S?"incrementalPrepareRender":_&&b[_]?_:"render";return I!=="render"&&b[I](v,y,x,T),h[I]}var h={incrementalPrepareRender:{progress:function(g,v){v.view.incrementalRender(g,v.model,v.ecModel,v.api,v.payload)}},render:{forceFirstProgress:!0,progress:function(g,v){v.view.render(v.model,v.ecModel,v.api,v.payload)}}},p=e;H.exports=p},"6MrE":function(H,B,d){},"6Qwc":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.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"};B.default=O},"6SEX":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("qWUW"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},"6UJt":function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("v56E"),A=d.n(C),w=d("R9oj"),m=d("5NDa")},"6VBw":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("ODXe"),C=d("rePB"),A=d("Ff2n"),w=d("q1tI"),m=d("TSYQ"),f=d.n(m),c=d("Pw59"),o=d("Qi1f"),r=["icon","className","onClick","style","primaryColor","secondaryColor"],i={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n(g){var v=g.primaryColor,y=g.secondaryColor;i.primaryColor=v,i.secondaryColor=y||Object(o.b)(v),i.calculated=!!y}function e(){return Object(O.a)({},i)}var s=function(v){var y=v.icon,x=v.className,T=v.onClick,S=v.style,b=v.primaryColor,_=v.secondaryColor,I=Object(A.a)(v,r),L=i;if(b&&(L={primaryColor:b,secondaryColor:_||Object(o.b)(b)}),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:x,onClick:T,style:S,"data-icon":N.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};s.displayName="IconReact",s.getTwoToneColors=e,s.setTwoToneColors=n;var t=s;function a(g){var v=Object(o.d)(g),y=Object(E.a)(v,2),x=y[0],T=y[1];return t.setTwoToneColors({primaryColor:x,secondaryColor:T})}function l(){var g=t.getTwoToneColors();return g.calculated?[g.primaryColor,g.secondaryColor]:g.primaryColor}var u=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];a("#1890ff");var h=w.forwardRef(function(g,v){var y,x=g.className,T=g.icon,S=g.spin,b=g.rotate,_=g.tabIndex,I=g.onClick,L=g.twoToneColor,N=Object(A.a)(g,u),D=w.useContext(c.a),R=D.prefixCls,P=R===void 0?"anticon":R,M=f()(P,(y={},Object(C.a)(y,"".concat(P,"-").concat(T.name),!!T.name),Object(C.a)(y,"".concat(P,"-spin"),!!S||T.name==="loading"),y),x),U=_;U===void 0&&I&&(U=-1);var F=b?{msTransform:"rotate(".concat(b,"deg)"),transform:"rotate(".concat(b,"deg)")}:void 0,j=Object(o.d)(L),W=Object(E.a)(j,2),V=W[0],z=W[1];return w.createElement("span",Object(O.a)(Object(O.a)({role:"img","aria-label":T.name},N),{},{ref:v,tabIndex:U,onClick:I,className:M}),w.createElement(t,{icon:T,primaryColor:V,secondaryColor:z,style:F}))});h.displayName="AntdIcon",h.getTwoToneColor=l,h.setTwoToneColor=a;var p=B.a=h},"6cGi":function(H,B,d){"use strict";d.d(B,"a",function(){return c});var O=d("ODXe"),E=d("q1tI");function C(o){var r=E.useRef();r.current=o;var i=E.useCallback(function(){for(var n,e=arguments.length,s=new Array(e),t=0;t<e;t++)s[t]=arguments[t];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(s))},[]);return i}var A=d("TNol"),w=d("dm2S"),m;(function(o){o[o.INNER=0]="INNER",o[o.PROP=1]="PROP"})(m||(m={}));function f(o){return o!==void 0}function c(o,r){var i=r||{},n=i.defaultValue,e=i.value,s=i.onChange,t=i.postState,a=Object(w.a)(function(){var T=void 0,S;return f(e)?(T=e,S=m.PROP):f(n)?(T=typeof n=="function"?n():n,S=m.PROP):(T=typeof o=="function"?o():o,S=m.INNER),[T,S,T]}),l=Object(O.a)(a,2),u=l[0],h=l[1],p=f(e)?e:u[0],g=t?t(p):p;Object(A.b)(function(){h(function(T){var S=Object(O.a)(T,1),b=S[0];return[e,m.PROP,b]})},[e]);var v=E.useRef(),y=C(function(T,S){h(function(b){var _=Object(O.a)(b,3),I=_[0],L=_[1],N=_[2],D=typeof T=="function"?T(I):T;if(D===I)return b;var R=L===m.INNER&&v.current!==N?N:I;return[D,m.INNER,R]},S)}),x=C(s);return Object(A.a)(function(){var T=Object(O.a)(u,3),S=T[0],b=T[1],_=T[2];S!==_&&b===m.INNER&&(x(S,_),v.current=_)},[u]),[g,y]}},"6fms":function(H,B,d){var O=d("SUKs"),E=d("06Qe"),C=d("bYtY"),A=C.each;function w(o){return parseInt(o,10)}function m(o,r){E.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,s=r.addToStorage;r.delFromStorage=function(t){e.call(r,t),t&&(t.onRemove&&t.onRemove(n))},r.addToStorage=function(t){t.onAdd&&t.onAdd(n),s.call(r,t)},this._firstPaint=!0}m.prototype={constructor:m,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var r=this.getViewportRoot();if(r)return{offsetLeft:r.offsetLeft||0,offsetTop:r.offsetTop||0}},refresh:function(){var r=this.storage.getDisplayList(!0,!0);this._paintList(r)},_paintList:function(r){for(var 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||w(i.width))-w(i.paddingLeft)-w(i.paddingRight)|0},_getHeight:function(){var r=this.root,i=r.currentStyle;return(r.clientHeight||w(i.height))-w(i.paddingTop)-w(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){m.prototype[o]=f(o)});var c=m;H.exports=c},"6r85":function(H,B,d){var O=d("bYtY");function E(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=E},"6uqw":function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("ItGF"),A=d("YOMW"),w=d("XxSj"),m=d("K4ya"),f=d("4NO4"),c=d("OELB"),o=w.mapVisual,r=w.eachVisual,i=E.isArray,n=E.each,e=c.asc,s=c.linearMap,t=E.noop,a=O.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-Infinity,Infinity],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(u,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&&m.replaceVisualOption(p,u,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(u){var h=this.stateList;u=E.bind(u,this),this.controllerVisuals=m.createVisualMappings(this.option.controller,h,u),this.targetVisuals=m.createVisualMappings(this.option.target,h,u)},getTargetSeriesIndices:function(){var u=this.option.seriesIndex,h=[];return u==null||u==="all"?this.ecModel.eachSeries(function(p,g){h.push(g)}):h=f.normalizeToArray(u),h},eachTargetSeries:function(u,h){E.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 g=this.option,v=g.precision,y=this.dataBound,x=g.formatter,T,S;if(p=p||["<",">"],E.isArray(u)&&(u=u.slice(),T=!0),S=h?u:T?[b(u[0]),b(u[1])]:b(u),E.isString(x))return x.replace("{value}",T?S[0]:S).replace("{value2}",T?S[1]:S);if(E.isFunction(x))return T?x(u[0],u[1]):x(u);if(T)return u[0]===y[0]?p[0]+" "+S[1]:u[1]===y[1]?p[1]+" "+S[0]:S[0]+" - "+S[1];return S;function b(_){return _===y[0]?"min":_===y[1]?"max":(+_).toFixed(Math.min(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 g=u.dimensions,v=g.length-1;v>=0;v--){var y=g[v],x=u.getDimensionInfo(y);if(!x.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},g=h.target||(h.target={}),v=h.controller||(h.controller={});E.merge(g,p),E.merge(v,p);var y=this.isCategory();x.call(this,g),x.call(this,v),T.call(this,g,"inRange","outOfRange"),S.call(this,v);function x(b){i(h.color)&&!b.inRange&&(b.inRange={color:h.color.slice().reverse()}),b.inRange=b.inRange||{color:u.get("gradientColor")},n(this.stateList,function(_){var I=b[_];if(E.isString(I)){var L=A.get(I,"active",y);L?(b[_]={},b[_][I]=L):delete b[_]}},this)}function T(b,_,I){var L=b[_],N=b[I];L&&!N&&(N=b[I]={},n(L,function(D,R){if(!w.isValidType(R))return;var P=A.get(R,"inactive",y);P!=null&&(N[R]=P,R==="color"&&!N.hasOwnProperty("opacity")&&!N.hasOwnProperty("colorAlpha")&&(N.opacity=[0,0]))}))}function S(b){var _=(b.inRange||{}).symbol||(b.outOfRange||{}).symbol,I=(b.inRange||{}).symbolSize||(b.outOfRange||{}).symbolSize,L=this.get("inactiveColor");n(this.stateList,function(N){var D=this.itemSize,R=b[N];R||(R=b[N]={color:y?L:[L]}),R.symbol==null&&(R.symbol=_&&E.clone(_)||(y?"roundRect":["roundRect"])),R.symbolSize==null&&(R.symbolSize=I&&E.clone(I)||(y?D[0]:[D[0],D[0]])),R.symbol=o(R.symbol,function(U){return U==="none"||U==="square"?"roundRect":U});var P=R.symbolSize;if(P!=null){var M=-Infinity;r(P,function(U){U>M&&(M=U)}),R.symbolSize=o(P,function(U){return s(U,[0,M],[0,D[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:t,getValueState:t,getVisualMeta:t}),l=a;H.exports=l},"6usn":function(H,B,d){var O=d("bYtY");function E(A,w){return O.map(["Radius","Angle"],function(m,f){var c=this["get"+m+"Axis"](),o=w[f],r=A[f]/2,i="dataTo"+m,n=c.type==="category"?c.getBandWidth():Math.abs(c[i](o-r)-c[i](o+r));return m==="Angle"&&(n=n*Math.PI/180),n},this)}function C(A){var w=A.getRadiusAxis(),m=A.getAngleAxis(),f=w.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=w.dataToRadius(c[0]),r=m.dataToAngle(c[1]),i=A.coordToPoint([o,r]);return i.push(o,r*Math.PI/180),i}),size:O.bind(E,A)}}}H.exports=C},"6xvX":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("V7ic"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},"711d":function(H,B){function d(O){return function(E){return E==null?void 0:E[O]}}H.exports=d},"72pK":function(H,B){function d(C,A,w,m,f,c){C=C||0;var o=w[1]-w[0];if(f!=null&&(f=E(f,[0,o])),c!=null&&(c=Math.max(c,f!=null?f:0)),m==="all"){var r=Math.abs(A[1]-A[0]);r=E(r,[0,o]),f=c=E(r,[f,c]),m=0}A[0]=E(A[0],w),A[1]=E(A[1],w);var i=O(A,m);A[m]+=C;var n=f||0,e=w.slice();i.sign<0?e[0]+=n:e[1]-=n,A[m]=E(A[m],e);var s=O(A,m);f!=null&&(s.sign!==i.sign||s.span<f)&&(A[1-m]=A[m]+i.sign*f);var s=O(A,m);return c!=null&&s.span>c&&(A[1-m]=A[m]+s.sign*c),A}function O(C,A){var w=C[A]-C[1-A];return{span:Math.abs(w),sign:w>0?-1:w<0?1:A?-1:1}}function E(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,B,d){var O=d("ProS");d("IXuL"),d("8X+K");var E=d("f5Yq"),C=d("h8O9"),A=d("/d5a");d("Ae16"),O.registerVisual(E("line","circle","line")),O.registerLayout(C("line")),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,A("line"))},"75ev":function(H,B,d){var O=d("ProS");d("IWNH"),d("bNin"),d("v5uJ");var E=d("f5Yq"),C=d("yik8");O.registerVisual(E("tree","circle")),O.registerLayout(C)},"7AJT":function(H,B,d){var O=d("bYtY"),E=d("hM6l"),C=function(w,m,f,c,o){E.call(this,w,m,f),this.type=c||"value",this.position=o||"bottom"};C.prototype={constructor:C,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var w=this.position;return w==="top"||w==="bottom"},getGlobalExtent:function(w){var m=this.getExtent();return m[0]=this.toGlobalCoord(m[0]),m[1]=this.toGlobalCoord(m[1]),w&&m[0]>m[1]&&m.reverse(),m},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(w,m){return this.coordToData(this.toLocalCoord(w[this.dim==="x"?0:1]),m)},toLocalCoord:null,toGlobalCoord:null},O.inherits(C,E);var A=C;H.exports=A},"7Cbv":function(H,B,d){"use strict";var O=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),E=new Uint8Array(16);function C(){if(!O)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(E)}var 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 w(e){return typeof e=="string"&&A.test(e)}for(var m=w,f=[],c=0;c<256;++c)f.push((c+256).toString(16).substr(1));function o(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(f[e[s+0]]+f[e[s+1]]+f[e[s+2]]+f[e[s+3]]+"-"+f[e[s+4]]+f[e[s+5]]+"-"+f[e[s+6]]+f[e[s+7]]+"-"+f[e[s+8]]+f[e[s+9]]+"-"+f[e[s+10]]+f[e[s+11]]+f[e[s+12]]+f[e[s+13]]+f[e[s+14]]+f[e[s+15]]).toLowerCase();if(!m(t))throw TypeError("Stringified UUID is invalid");return t}var r=o;function i(e,s,t){e=e||{};var a=e.random||(e.rng||C)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,s){t=t||0;for(var l=0;l<16;++l)s[t+l]=a[l];return s}return r(a)}var n=B.a=i},"7DRL":function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=C.createHashMap,w=C.isString,m=C.isArray,f=C.each,c=C.assert,o=d("MEGo"),r=o.parseXML,i=A(),n={registerMap:function(s,t,a){var l;return m(t)?l=t:t.svg?l=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(a=t.specialAreas,t=t.geoJson),l=[{type:"geoJSON",source:t,specialAreas:a}]),f(l,function(u){var h=u.type;h==="geoJson"&&(h=u.type="geoJSON");var p=e[h];p(u)}),i.set(s,l)},retrieveMap:function(s){return i.get(s)}},e={geoJSON:function(s){var t=s.source;s.geoJSON=w(t)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(s){s.svgXML=r(s.source)}};H.exports=n},"7G+c":function(H,B,d){var O=d("bYtY"),E=O.createHashMap,C=O.isTypedArray,A=d("Yl7c"),w=A.enableClassCheck,m=d("k9D9"),f=m.SOURCE_FORMAT_ORIGINAL,c=m.SERIES_LAYOUT_BY_COLUMN,o=m.SOURCE_FORMAT_UNKNOWN,r=m.SOURCE_FORMAT_TYPED_ARRAY,i=m.SOURCE_FORMAT_KEYED_COLUMNS;function n(s){this.fromDataset=s.fromDataset,this.data=s.data||(s.sourceFormat===i?{}:[]),this.sourceFormat=s.sourceFormat||o,this.seriesLayoutBy=s.seriesLayoutBy||c,this.dimensionsDefine=s.dimensionsDefine,this.encodeDefine=s.encodeDefine&&E(s.encodeDefine),this.startIndex=s.startIndex||0,this.dimensionsDetectCount=s.dimensionsDetectCount}n.seriesDataToSource=function(s){return new n({data:s,sourceFormat:C(s)?r:f,fromDataset:!1})},w(n);var e=n;H.exports=e},"7Kak":function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("KPFz"),A=d.n(C)},"7Phj":function(H,B,d){var O=d("bYtY"),E=d("OELB"),C=E.parsePercent,A=O.each;function w(o){var r=m(o);A(r,function(i){var n=i.seriesModels;if(!n.length)return;f(i),A(n,function(e,s){c(e,i.boxOffsetList[s],i.boxWidthList[s])})})}function m(o){var r=[],i=[];return o.eachSeriesByType("boxplot",function(n){var e=n.getBaseAxis(),s=O.indexOf(i,e);s<0&&(s=i.length,i[s]=e,r[s]={axis:e,seriesModels:[]}),r[s].seriesModels.push(n)}),r}function f(o){var r,i=o.axis,n=o.seriesModels,e=n.length,s=o.boxWidthList=[],t=o.boxOffsetList=[],a=[],l;if(i.type==="category")l=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 x=y.get("boxWidth");O.isArray(x)||(x=[x,x]),a.push([C(x[0],l)||0,C(x[1],l)||0])});var h=l*.8-2,p=h/e*.3,g=(h-p*(e-1))/e,v=g/2-h/2;A(n,function(y,x){t.push(v),v+=p+g,s.push(Math.min(Math.max(g,a[x][0]),a[x][1]))})}function c(o,r,i){var n=o.coordinateSystem,e=o.getData(),s=i/2,t=o.get("layout")==="horizontal"?0:1,a=1-t,l=["x","y"],u=e.mapDimension(l[t]),h=e.mapDimension(l[a],!0);if(u==null||h.length<5)return;for(var p=0;p<e.count();p++){var g=e.get(u,p),v=_(g,h[2],p),y=_(g,h[0],p),x=_(g,h[1],p),T=_(g,h[3],p),S=_(g,h[4],p),b=[];I(b,x,0),I(b,T,1),b.push(y,x,S,T),L(b,y),L(b,S),L(b,v),e.setItemLayout(p,{initBaseline:v[a],ends:b})}function _(N,D,R){var P=e.get(D,R),M=[];M[t]=N,M[a]=P;var U;return isNaN(N)||isNaN(P)?U=[NaN,NaN]:(U=n.dataToPoint(M),U[t]+=r),U}function I(N,D,R){var P=D.slice(),M=D.slice();P[t]+=s,M[t]-=s,R?N.push(P,M):N.push(M,P)}function L(N,D){var R=D.slice(),P=D.slice();R[t]-=s,P[t]+=s,N.push(R,P)}}H.exports=w},"7SHv":function(H,B,d){var O=d("LPTA"),E=O.devicePixelRatio,C=d("bYtY"),A=d("SUKs"),w=d("mFDi"),m=d("BPZU"),f=d("Xmg4"),c=d("mLcG"),o=d("Dagg"),r=d("ItGF"),i=1e5,n=314159,e=.01,s=.001;function t(T){return parseInt(T,10)}function a(T){return T?T.__builtin__?!0:!(typeof T.resize!="function"||typeof T.refresh!="function"):!1}var l=new w(0,0,0,0),u=new w(0,0,0,0);function h(T,S,b){return l.copy(T.getBoundingRect()),T.transform&&l.applyTransform(T.transform),u.width=S,u.height=b,!l.intersect(u)}function p(T,S){if(T===S)return!1;if(!T||!S||T.length!==S.length)return!0;for(var b=0;b<T.length;b++)if(T[b]!==S[b])return!0;return!1}function g(T,S){for(var b=0;b<T.length;b++){var _=T[b];_.setTransform(S),S.beginPath(),_.buildPath(S,_.shape),S.clip(),_.restoreTransform(S)}}function v(T,S){var b=document.createElement("div");return b.style.cssText=["position:relative","width:"+T+"px","height:"+S+"px","padding:0","margin:0","border-width:0"].join(";")+";",b}var y=function(S,b,_){this.type="canvas";var I=!S.nodeName||S.nodeName.toUpperCase()==="CANVAS";this._opts=_=C.extend({},_||{}),this.dpr=_.devicePixelRatio||E,this._singleCanvas=I,this.root=S;var L=S.style;L&&(L["-webkit-tap-highlight-color"]="transparent",L["-webkit-user-select"]=L["user-select"]=L["-webkit-touch-callout"]="none",S.innerHTML=""),this.storage=b;var N=this._zlevelList=[],D=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var P=S.width,M=S.height;_.width!=null&&(P=_.width),_.height!=null&&(M=_.height),this.dpr=_.devicePixelRatio||1,S.width=P*this.dpr,S.height=M*this.dpr,this._width=P,this._height=M;var U=new f(S,this,this.dpr);U.__builtin__=!0,U.initContext(),D[n]=U,U.zlevel=n,N.push(n),this._domRoot=S}else{this._width=this._getSize(0),this._height=this._getSize(1);var R=this._domRoot=v(this._width,this._height);S.appendChild(R)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var S=this.getViewportRoot();if(S)return{offsetLeft:S.offsetLeft||0,offsetTop:S.offsetTop||0}},refresh:function(S){var b=this.storage.getDisplayList(!0),_=this._zlevelList;this._redrawId=Math.random(),this._paintList(b,S,this._redrawId);for(var I=0;I<_.length;I++){var L=_[I],N=this._layers[L];if(!N.__builtin__&&N.refresh){var D=I===0?this._backgroundColor:null;N.refresh(D)}}return this.refreshHover(),this},addHover:function(S,b){if(S.__hoverMir)return;var _=new S.constructor({style:S.style,shape:S.shape,z:S.z,z2:S.z2,silent:S.silent});return _.__from=S,S.__hoverMir=_,b&&_.setStyle(b),this._hoverElements.push(_),_},removeHover:function(S){var b=S.__hoverMir,_=this._hoverElements,I=C.indexOf(_,b);I>=0&&_.splice(I,1),S.__hoverMir=null},clearHover:function(S){for(var b=this._hoverElements,_=0;_<b.length;_++){var I=b[_].__from;I&&(I.__hoverMir=null)}b.length=0},refreshHover:function(){var S=this._hoverElements,b=S.length,_=this._hoverlayer;if(_&&_.clear(),!b)return;m(S,this.storage.displayableSortFunc),_||(_=this._hoverlayer=this.getLayer(i));var I={};_.ctx.save();for(var L=0;L<b;){var N=S[L],D=N.__from;if(!(D&&D.__zr)){S.splice(L,1),D.__hoverMir=null,b--;continue}L++,D.invisible||(N.transform=D.transform,N.invTransform=D.invTransform,N.__clipPaths=D.__clipPaths,this._doPaintEl(N,_,!0,I))}_.ctx.restore()},getHoverLayer:function(){return this.getLayer(i)},_paintList:function(S,b,_){if(this._redrawId!==_)return;b=b||!1,this._updateLayerStatus(S);var I=this._doPaintList(S,b);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var L=this;c(function(){L._paintList(S,b,_)})}},_compositeManually:function(){var S=this.getLayer(n).ctx,b=this._domRoot.width,_=this._domRoot.height;S.clearRect(0,0,b,_),this.eachBuiltinLayer(function(I){I.virtual&&S.drawImage(I.dom,0,0,b,_)})},_doPaintList:function(S,b){for(var _=[],I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I],N=this._layers[L];N.__builtin__&&N!==this._hoverlayer&&(N.__dirty||b)&&_.push(N)}for(var D=!0,R=0;R<_.length;R++){var N=_[R],P=N.ctx,M={};P.save();var U=b?N.__startIndex:N.__drawIndex,F=!b&&N.incremental&&Date.now,j=F&&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=S[U];(!V.incremental||!V.notClear||b)&&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 Y=S[z];if(this._doPaintEl(Y,N,b,M),Y.__dirty=Y.__dirtyText=!1,F){var $=Date.now()-j;if($>15)break}}N.__drawIndex=z,N.__drawIndex<N.__endIndex&&(D=!1),M.prevElClipPaths&&P.restore(),P.restore()}return r.wxa&&C.each(this._layers,function(ue){ue&&ue.ctx&&ue.ctx.draw&&ue.ctx.draw()}),D},_doPaintEl:function(S,b,_,I){var L=b.ctx,N=S.transform;if((b.__dirty||_)&&!S.invisible&&S.style.opacity!==0&&!(N&&!N[0]&&!N[3])&&!(S.culling&&h(S,this._width,this._height))){var D=S.__clipPaths,R=I.prevElClipPaths;(!R||p(D,R))&&(R&&(L.restore(),I.prevElClipPaths=null,I.prevEl=null),D&&(L.save(),g(D,L),I.prevElClipPaths=D)),S.beforeBrush&&S.beforeBrush(L),S.brush(L,I.prevEl||null),I.prevEl=S,S.afterBrush&&S.afterBrush(L)}},getLayer:function(S,b){this._singleCanvas&&!this._needsManuallyCompositing&&(S=n);var _=this._layers[S];return _||(_=new f("zr_"+S,this,this.dpr),_.zlevel=S,_.__builtin__=!0,this._layerConfig[S]?C.merge(_,this._layerConfig[S],!0):this._layerConfig[S-e]&&C.merge(_,this._layerConfig[S-e],!0),b&&(_.virtual=b),this.insertLayer(S,_),_.initContext()),_},insertLayer:function(S,b){var _=this._layers,I=this._zlevelList,L=I.length,N=null,D=-1,R=this._domRoot;if(_[S]){A("ZLevel "+S+" has been used already");return}if(!a(b)){A("Layer of zlevel "+S+" is not valid");return}if(L>0&&S>I[0]){for(D=0;D<L-1&&!(I[D]<S&&I[D+1]>S);D++);N=_[I[D]]}if(I.splice(D+1,0,S),_[S]=b,!b.virtual)if(N){var P=N.dom;P.nextSibling?R.insertBefore(b.dom,P.nextSibling):R.appendChild(b.dom)}else R.firstChild?R.insertBefore(b.dom,R.firstChild):R.appendChild(b.dom)},eachLayer:function(S,b){var _=this._zlevelList,I,L;for(L=0;L<_.length;L++)I=_[L],S.call(b,this._layers[I],I)},eachBuiltinLayer:function(S,b){var _=this._zlevelList,I,L,N;for(N=0;N<_.length;N++)L=_[N],I=this._layers[L],I.__builtin__&&S.call(b,I,L)},eachOtherLayer:function(S,b){var _=this._zlevelList,I,L,N;for(N=0;N<_.length;N++)L=_[N],I=this._layers[L],I.__builtin__||S.call(b,I,L)},getLayers:function(){return this._layers},_updateLayerStatus:function(S){this.eachBuiltinLayer(function(M,U){M.__dirty=M.__used=!1});function b(M){L&&(L.__endIndex!==M&&(L.__dirty=!0),L.__endIndex=M)}if(this._singleCanvas)for(var _=1;_<S.length;_++){var I=S[_];if(I.zlevel!==S[_-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var L=null,N=0,D,_=0;_<S.length;_++){var I=S[_],R=I.zlevel,P;D!==R&&(D=R,N=0),I.incremental?(P=this.getLayer(R+s,this._needsManuallyCompositing),P.incremental=!0,N=1):P=this.getLayer(R+(N>0?e:0),this._needsManuallyCompositing),P.__builtin__||A("ZLevel "+R+" has been used by unkown layer "+P.id),P!==L&&(P.__used=!0,P.__startIndex!==_&&(P.__dirty=!0),P.__startIndex=_,P.incremental?P.__drawIndex=-1:P.__drawIndex=_,b(_),L=P),I.__dirty&&(P.__dirty=!0,P.incremental&&P.__drawIndex<0&&(P.__drawIndex=_))}b(_),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(S){S.clear()},setBackgroundColor:function(S){this._backgroundColor=S},configLayer:function(S,b){if(b){var _=this._layerConfig;_[S]?C.merge(_[S],b,!0):_[S]=b;for(var I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I];if(L===S||L===S+e){var N=this._layers[L];C.merge(N,_[S],!0)}}}},delLayer:function(S){var b=this._layers,_=this._zlevelList,I=b[S];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete b[S],_.splice(C.indexOf(_,S),1)},resize:function(S,b){if(this._domRoot.style){var _=this._domRoot;_.style.display="none";var I=this._opts;if(S!=null&&(I.width=S),b!=null&&(I.height=b),S=this._getSize(0),b=this._getSize(1),_.style.display="",this._width!==S||b!==this._height){_.style.width=S+"px",_.style.height=b+"px";for(var L in this._layers)this._layers.hasOwnProperty(L)&&this._layers[L].resize(S,b);C.each(this._progressiveLayers,function(N){N.resize(S,b)}),this.refresh(!0)}this._width=S,this._height=b}else{if(S==null||b==null)return;this._width=S,this._height=b,this.getLayer(n).resize(S,b)}return this},clearLayer:function(S){var b=this._layers[S];b&&b.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(S){if(S=S||{},this._singleCanvas&&!this._compositeManually)return this._layers[n].dom;var b=new f("image",this,S.pixelRatio||this.dpr);if(b.initContext(),b.clear(!1,S.backgroundColor||this._backgroundColor),S.pixelRatio<=this.dpr){this.refresh();var _=b.dom.width,I=b.dom.height,L=b.ctx;this.eachLayer(function(M){M.__builtin__?L.drawImage(M.dom,0,0,_,I):M.renderToCanvas&&(b.ctx.save(),M.renderToCanvas(b.ctx),b.ctx.restore())})}else for(var N={},D=this.storage.getDisplayList(!0),R=0;R<D.length;R++){var P=D[R];this._doPaintEl(P,b,!0,N)}return b.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(S){var b=this._opts,_=["width","height"][S],I=["clientWidth","clientHeight"][S],L=["paddingLeft","paddingTop"][S],N=["paddingRight","paddingBottom"][S];if(b[_]!=null&&b[_]!=="auto")return parseFloat(b[_]);var D=this.root,R=document.defaultView.getComputedStyle(D);return(D[I]||t(R[_])||t(D.style[_]))-(t(R[L])||0)-(t(R[N])||0)|0},pathToImage:function(S,b){b=b||this.dpr;var _=document.createElement("canvas"),I=_.getContext("2d"),L=S.getBoundingRect(),N=S.style,D=N.shadowBlur*b,R=N.shadowOffsetX*b,P=N.shadowOffsetY*b,M=N.hasStroke()?N.lineWidth:0,U=Math.max(M/2,-R+D),F=Math.max(M/2,R+D),j=Math.max(M/2,-P+D),W=Math.max(M/2,P+D),V=L.width+U+F,z=L.height+j+W;_.width=V*b,_.height=z*b,I.scale(b,b),I.clearRect(0,0,V,z),I.dpr=b;var Y={position:S.position,rotation:S.rotation,scale:S.scale};S.position=[U-L.x,j-L.y],S.rotation=0,S.scale=[1,1],S.updateTransform(),S&&S.brush(I);var $=o,ue=new $({style:{x:0,y:0,image:_}});return Y.position!=null&&(ue.position=S.position=Y.position),Y.rotation!=null&&(ue.rotation=S.rotation=Y.rotation),Y.scale!=null&&(ue.scale=S.scale=Y.scale),ue}};var x=y;H.exports=x},"7a+S":function(H,B,d){var O=d("bYtY"),E=d("bLfw"),C=d("YXkt"),A=d("4NO4"),w=E.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(f,c,o){this._data,this._names,this.mergeDefaultAndTheme(f,o),this._initData()},mergeOption:function(f){w.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(s,t){var a=A.getDataItemValue(s),l;O.isObject(s)?(l=O.clone(s),l.value=t):l=t,i.push(l),!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()}}),m=w;H.exports=m},"7aKB":function(H,B,d){var O=d("bYtY"),E=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 w(v,y){return v=(v||"").toLowerCase().replace(/-(.)/g,function(x,T){return T.toUpperCase()}),y&&v&&(v=v.charAt(0).toUpperCase()+v.slice(1)),v}var m=O.normalizeCssArray,f=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function o(v){return v==null?"":(v+"").replace(f,function(y,x){return c[x]})}var r=["a","b","c","d","e","f","g"],i=function(v,y){return"{"+v+(y==null?"":y)+"}"};function n(v,y,x){O.isArray(y)||(y=[y]);var T=y.length;if(!T)return"";for(var S=y[0].$vars||[],b=0;b<S.length;b++){var _=r[b];v=v.replace(i(_),i(_,0))}for(var I=0;I<T;I++)for(var L=0;L<S.length;L++){var N=y[I][S[L]];v=v.replace(i(r[L],I),x?o(N):N)}return v}function e(v,y,x){return O.each(y,function(T,S){v=v.replace("{"+S+"}",x?o(T):T)}),v}function s(v,y){v=O.isString(v)?{color:v,extraCssText:y}:v||{};var x=v.color,T=v.type,y=v.extraCssText,S=v.renderMode||"html",b=v.markerId||"X";return x?S==="html"?T==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+o(x)+";"+(y||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+o(x)+";"+(y||"")+'"></span>':{renderMode:S,content:"{marker"+b+"|} ",style:{color:x}}:""}function t(v,y){return v+="","0000".substr(0,y-v.length)+v}function a(v,y,x){(v==="week"||v==="month"||v==="quarter"||v==="half-year"||v==="year")&&(v=`MM-dd
|
|
|
yyyy`);var T=C.parseDate(y),S=x?"UTC":"",b=T["get"+S+"FullYear"](),_=T["get"+S+"Month"]()+1,I=T["get"+S+"Date"](),L=T["get"+S+"Hours"](),N=T["get"+S+"Minutes"](),D=T["get"+S+"Seconds"](),R=T["get"+S+"Milliseconds"]();return v=v.replace("MM",t(_,2)).replace("M",_).replace("yyyy",b).replace("yy",b%100).replace("dd",t(I,2)).replace("d",I).replace("hh",t(L,2)).replace("h",L).replace("mm",t(N,2)).replace("m",N).replace("ss",t(D,2)).replace("s",D).replace("SSS",t(R,3)),v}function l(v){return v&&v.charAt(0).toUpperCase()+v.substr(1)}var u=E.truncateText;function h(v){return E.getBoundingRect(v.text,v.font,v.textAlign,v.textVerticalAlign,v.textPadding,v.textLineHeight,v.rich,v.truncate)}function p(v,y,x,T,S,b,_,I){return E.getBoundingRect(v,y,x,T,S,I,b,_)}function g(v,y){if(y==="_blank"||y==="blank"){var x=window.open();x.opener=null,x.location=v}else window.open(v,y)}B.addCommas=A,B.toCamelCase=w,B.normalizeCssArray=m,B.encodeHTML=o,B.formatTpl=n,B.formatTplSimple=e,B.getTooltipMarker=s,B.formatTime=a,B.capitalFirst=l,B.truncateText=u,B.getTextBoundingRect=h,B.getTextRect=p,B.windowOpen=g},"7bkD":function(H,B,d){var O=d("bYtY");function E(C,A){A=A||{};var w=C.coordinateSystem,m=C.axis,f={},c=m.position,o=m.orient,r=w.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 s={top:-1,bottom:1,right:1,left:-1};f.labelDirection=f.tickDirection=f.nameDirection=s[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}B.layout=E},"7hqr":function(H,B,d){var O=d("bYtY"),E=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,s,t,a;if(E(c,function(p,g){C(p)&&(c[g]=p={name:p}),n&&!p.isExtraCoord&&(!r&&!e&&p.ordinalMeta&&(e=p),!s&&p.type!=="ordinal"&&p.type!=="time"&&(!i||i===p.coordDim)&&(s=p))}),s&&!r&&!e&&(r=!0),s){t="__\0ecstackresult",a="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var l=s.coordDim,u=s.type,h=0;E(c,function(p){p.coordDim===l&&h++}),c.push({name:t,coordDim:l,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:s&&s.name,stackedByDimension:e&&e.name,isStackedByIndex:r,stackedOverDimension:a,stackResultDimension:t}}function w(f,c){return!!c&&c===f.getCalculationInfo("stackedDimension")}function m(f,c){return w(f,c)?f.getCalculationInfo("stackResultDimension"):c}B.enableDataStack=A,B.isDimensionStacked=w,B.getStackedDimension=m},"7mYs":function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),A=d("7aKB"),w=d("OELB"),m={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},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,s=e.getRangeInfo(),t=e.getOrient();this._renderDayRect(o,s,n),this._renderLines(o,s,t,n),this._renderYearText(o,s,t,n),this._renderMonthText(o,t,n),this._renderWeekText(o,s,t,n)},_renderDayRect:function(o,r,i){for(var n=o.coordinateSystem,e=o.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),t=n.getCellHeight(),a=r.start.time;a<=r.end.time;a=n.getNextNDay(a,1).time){var l=n.dataToRect([a],!1).tl,u=new C.Rect({shape:{x:l[0],y:l[1],width:s,height:t},cursor:"default",style:e});i.add(u)}},_renderLines:function(o,r,i,n){var e=this,s=o.coordinateSystem,t=o.getModel("splitLine.lineStyle").getLineStyle(),a=o.get("splitLine.show"),l=t.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=r.start,h=0;u.time<=r.end.time;h++){g(u.formatedDate),h===0&&(u=s.getDateInfo(r.start.y+"-"+r.start.m));var p=u.date;p.setMonth(p.getMonth()+1),u=s.getDateInfo(p)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(v){e._firstDayOfMonth.push(s.getDateInfo(v)),e._firstDayPoints.push(s.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,l,i),t,n),a&&this._drawSplitline(e._getEdgesPoints(e._blpoints,l,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=[],s=0;s<7;s++){var t=n.getNextNDay(r.time,s),a=n.dataToRect([t.time],!1);e[2*t.day]=a.tl,e[2*t.day+1]=a[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 s=["center","bottom"];n==="bottom"?(r[1]+=e,s=["center","top"]):n==="left"?r[0]-=e:n==="right"?(r[0]+=e,s=["center","top"]):r[1]-=e;var t=0;return(n==="left"||n==="right")&&(t=Math.PI/2),{rotation:t,position:r,style:{textAlign:s[0],textVerticalAlign:s[1]}}},_renderYearText:function(o,r,i,n){var e=o.getModel("yearLabel");if(!e.get("show"))return;var s=e.get("margin"),t=e.get("position");t||(t=i!=="horizontal"?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(a[0][0]+a[1][0])/2,u=(a[0][1]+a[1][1])/2,h=i==="horizontal"?0:1,p={top:[l,a[h][1]],bottom:[l,a[1-h][1]],left:[a[1-h][0],u],right:[a[h][0],u]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var v=e.get("formatter"),y={start:r.start.y,end:r.end.y,nameMap:g},x=this._formatterLabel(v,y),T=new C.Text({z2:30});C.setTextStyle(T.style,e,{text:x}),T.attr(this._yearTextPositionControl(T,p[t],i,t,s)),n.add(T)},_monthTextPositionControl:function(o,r,i,n,e){var s="left",t="top",a=o[0],l=o[1];return i==="horizontal"?(l=l+e,r&&(s="center"),n==="start"&&(t="bottom")):(a=a+e,r&&(t="middle"),n==="start"&&(s="right")),{x:a,y:l,textAlign:s,textVerticalAlign:t}},_renderMonthText:function(o,r,i){var n=o.getModel("monthLabel");if(!n.get("show"))return;var e=n.get("nameMap"),s=n.get("margin"),t=n.get("position"),a=n.get("align"),l=[this._tlpoints,this._blpoints];E.isString(e)&&(e=m[e.toUpperCase()]||[]);var u=t==="start"?0:1,h=r==="horizontal"?0:1;s=t==="start"?-s:s;for(var p=a==="center",g=0;g<l[u].length-1;g++){var v=l[u][g].slice(),y=this._firstDayOfMonth[g];if(p){var x=this._firstDayPoints[g];v[h]=(x[h]+l[0][g+1][h])/2}var T=n.get("formatter"),S=e[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},_=this._formatterLabel(T,b),I=new C.Text({z2:30});E.extend(C.setTextStyle(I.style,n,{text:_}),this._monthTextPositionControl(v,p,r,t,s)),i.add(I)}},_weekTextPositionControl:function(o,r,i,n,e){var s="center",t="middle",a=o[0],l=o[1],u=i==="start";return r==="horizontal"?(a=a+n+(u?1:-1)*e[0]/2,s=u?"right":"left"):(l=l+n+(u?1:-1)*e[1]/2,t=u?"bottom":"top"),{x:a,y:l,textAlign:s,textVerticalAlign:t}},_renderWeekText:function(o,r,i,n){var e=o.getModel("dayLabel");if(!e.get("show"))return;var s=o.coordinateSystem,t=e.get("position"),a=e.get("nameMap"),l=e.get("margin"),u=s.getFirstDayOfWeek();E.isString(a)&&(a=f[a.toUpperCase()]||[]);var h=s.getNextNDay(r.end.time,7-r.lweek).time,p=[s.getCellWidth(),s.getCellHeight()];l=w.parsePercent(l,p[i==="horizontal"?0:1]),t==="start"&&(h=s.getNextNDay(r.start.time,-(7+r.fweek)).time,l=-l);for(var g=0;g<7;g++){var v=s.getNextNDay(h,g),y=s.dataToRect([v.time],!1).center,x=g;x=Math.abs((g+u)%7);var T=new C.Text({z2:30});E.extend(C.setTextStyle(T.style,e,{text:a[x]}),this._weekTextPositionControl(y,i,t,l,p)),n.add(T)}}});H.exports=c},"7oTu":function(H,B,d){var O=d("IMiH"),E=d("QBsz"),C=E.applyTransform,A=O.CMD,w=[[],[],[]],m=Math.sqrt,f=Math.atan2;function c(o,r){var i=o.data,n,e,s,t,a,l,u=A.M,h=A.C,p=A.L,g=A.R,v=A.A,y=A.Q;for(s=0,t=0;s<i.length;){n=i[s++],t=s,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 x=r[4],T=r[5],S=m(r[0]*r[0]+r[1]*r[1]),b=m(r[2]*r[2]+r[3]*r[3]),_=f(-r[1]/b,r[0]/S);i[s]*=S,i[s++]+=x,i[s]*=b,i[s++]+=T,i[s++]*=S,i[s++]*=b,i[s++]+=_,i[s++]+=_,s+=2,t=s;break;case g:l[0]=i[s++],l[1]=i[s++],C(l,l,r),i[t++]=l[0],i[t++]=l[1],l[0]+=i[s++],l[1]+=i[s++],C(l,l,r),i[t++]=l[0],i[t++]=l[1]}for(a=0;a<e;a++){var l=w[a];l[0]=i[s++],l[1]=i[s++],C(l,l,r),i[t++]=l[0],i[t++]=l[1]}}}H.exports=c},"7pVf":function(H,B,d){var O=d("ProS"),E=d("ZqQs");d("oE7X"),d("OUJF"),d("3X6L"),d("NH9N"),O.registerPreprocessor(E)},"7ph2":function(H,B){function d(C){return C instanceof Array||(C=[C,C]),C}var O="lineStyle.opacity".split("."),E={seriesType:"lines",reset:function(C,A,w){var m=d(C.get("symbol")),f=d(C.get("symbolSize")),c=C.getData();c.setVisual("fromSymbol",m&&m[0]),c.setVisual("toSymbol",m&&m[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)),s=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]),s[0]&&r.setItemVisual(i,"fromSymbolSize",s[0]),s[1]&&r.setItemVisual(i,"toSymbolSize",s[1]),r.setItemVisual(i,"opacity",t)}return{dataEach:c.hasItemOption?o:null}}};H.exports=E},"7uqq":function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("AUH6"),m=d("+TT/"),f=d("OELB"),c=d("W4dC"),o=d("7DRL");function r(s,t){var a=s.get("boundingCoords");if(a!=null){var l=a[0],u=a[1];isNaN(l[0])||isNaN(l[1])||isNaN(u[0])||isNaN(u[1])||this.setBoundingRect(l[0],l[1],u[0]-l[0],u[1]-l[1])}var h=this.getBoundingRect(),p,g=s.get("layoutCenter"),v=s.get("layoutSize"),y=t.getWidth(),x=t.getHeight(),T=h.width/h.height*this.aspectScale,S=!1;g&&v&&(g=[f.parsePercent(g[0],y),f.parsePercent(g[1],x)],v=f.parsePercent(v,Math.min(y,x)),!isNaN(g[0])&&!isNaN(g[1])&&!isNaN(v)&&(S=!0));var b;if(S){var b={};T>1?(b.width=v,b.height=v/T):(b.height=v,b.width=v*T),b.y=g[1]-b.height/2,b.x=g[0]-b.width/2}else p=s.getBoxLayoutParams(),p.aspect=T,b=m.getLayoutRect(p,{width:y,height:x});this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(s.get("center")),this.setZoom(s.get("zoom"))}function i(s,t){A.each(t.get("geoCoord"),function(a,l){s.addGeoCoord(l,a)})}var n={dimensions:w.prototype.dimensions,create:function(s,t){var a=[];s.eachComponent("geo",function(u,h){var p=u.get("map"),g=u.get("aspectScale"),v=!0,y=o.retrieveMap(p);y&&y[0]&&y[0].type==="svg"?(g==null&&(g=1),v=!1):g==null&&(g=.75);var x=new w(p+h,p,u.get("nameMap"),v);x.aspectScale=g,x.zoomLimit=u.get("scaleLimit"),a.push(x),i(x,u),u.coordinateSystem=x,x.model=u,x.resize=r,x.resize(u,t)}),s.eachSeries(function(u){var h=u.get("coordinateSystem");if(h==="geo"){var p=u.get("geoIndex")||0;u.coordinateSystem=a[p]}});var l={};return s.eachSeriesByType("map",function(u){if(!u.getHostGeoModel()){var h=u.getMapType();l[h]=l[h]||[],l[h].push(u)}}),A.each(l,function(u,h){var p=A.map(u,function(v){return v.get("nameMap")}),g=new w(h,h,A.mergeAll(p));g.zoomLimit=A.retrieve.apply(null,A.map(u,function(v){return v.get("scaleLimit")})),a.push(g),g.resize=r,g.aspectScale=u[0].get("aspectScale"),g.resize(u[0],t),A.each(u,function(v){v.coordinateSystem=g,i(g,v)})}),a},getFilledRegions:function(s,t,a){for(var l=(s||[]).slice(),u=A.createHashMap(),h=0;h<l.length;h++)u.set(l[h].name,l[h]);var p=c.load(t,a);return A.each(p.regions,function(g){var v=g.name;!u.get(v)&&l.push({name:v})}),l}};C.registerCoordinateSystem("geo",n);var e=n;H.exports=e},"7yuC":function(H,B,d){var O=d("QBsz"),E=O.scaleAndAdd;function C(A,w,m){for(var f=m.rect,c=f.width,o=f.height,r=[f.x+c/2,f.y+o/2],i=m.gravity==null?.1:m.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 s=m.friction==null?.6:m.friction,t=s;return{warmUp:function(){t=s*.8},setFixed:function(a){A[a].fixed=!0},setUnfixed:function(a){A[a].fixed=!1},step:function(a){for(var l=[],u=A.length,h=0;h<w.length;h++){var p=w[h];if(p.ignoreForceLayout)continue;var g=p.n1,v=p.n2;O.sub(l,v.p,g.p);var y=O.len(l)-p.d,x=v.w/(g.w+v.w);isNaN(x)&&(x=0),O.normalize(l,l),!g.fixed&&E(g.p,g.p,l,x*y*t),!v.fixed&&E(v.p,v.p,l,-(1-x)*y*t)}for(var h=0;h<u;h++){var T=A[h];T.fixed||(O.sub(l,r,T.p),E(T.p,T.p,l,i*t))}for(var h=0;h<u;h++)for(var g=A[h],S=h+1;S<u;S++){var v=A[S];O.sub(l,v.p,g.p);var y=O.len(l);y===0&&(O.set(l,Math.random()-.5,Math.random()-.5),y=1);var b=(g.rep+v.rep)/y/y;!g.fixed&&E(g.pp,g.pp,l,b),!v.fixed&&E(v.pp,v.pp,l,-b)}for(var _=[],h=0;h<u;h++){var T=A[h];T.fixed||(O.sub(_,T.p,T.pp),E(T.p,T.p,_,t),O.copy(T.pp,T.p))}t=t*.992,a&&a(A,w,t<.01)}}}B.forceLayout=C},"8+yF":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200},E={lookup:function(A){if(A>=32&&A<=255)return A;var w=O[A];return w!==void 0?w:16777216|A}};B.default=E},"8CQX":function(H,B,d){"use strict";function O(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(a){return typeof a}:O=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(s)}Object.defineProperty(B,"__esModule",{value:!0}),B.getKeycode=i,B.getKey=n,B.getKeysym=e;var E=r(d("mHUz")),C=r(d("8+yF")),A=r(d("6Qwc")),w=r(d("gIYZ")),m=r(d("mTgk")),f=o(d("GdRQ"));function c(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return c=function(){return s},s}function o(s){if(s&&s.__esModule)return s;if(s===null||O(s)!=="object"&&typeof s!="function")return{default:s};var t=c();if(t&&t.has(s))return t.get(s);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u)){var h=l?Object.getOwnPropertyDescriptor(s,u):null;h&&(h.get||h.set)?Object.defineProperty(a,u,h):a[u]=s[u]}return a.default=s,t&&t.set(s,a),a}function r(s){return s&&s.__esModule?s:{default:s}}function i(s){if(s.code){switch(s.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return s.code}if(s.type!=="keypress"&&s.keyCode in A.default){var t=A.default[s.keyCode];if(f.isMac()&&t==="ContextMenu"&&(t="MetaRight"),s.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(s.location===3)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function n(s){if(s.key!==void 0){switch(s.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return s.char}switch(s.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(s.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(s.key==="\0"&&s.code==="NumpadDecimal")return"Delete";if(!f.isIE()&&!f.isEdge())return s.key;if(s.key.length!==1&&s.key!=="Unidentified")return s.key}var t=i(s);return t in w.default?w.default[t]:s.charCode?String.fromCharCode(s.charCode):"Unidentified"}function e(s){var t=n(s);if(t==="Unidentified")return null;if(t in m.default){var a=s.location;if(t==="Meta"&&a===0&&(a=2),t==="Clear"&&a===3){var l=i(s);l==="NumLock"&&(a=0)}if((a===void 0||a>3)&&(a=0),t==="Meta"){var u=i(s);if(u==="AltLeft")return E.default.XK_Meta_L;if(u==="AltRight")return E.default.XK_Meta_R}if(t==="Clear"){var h=i(s);if(h==="NumLock")return E.default.XK_Num_Lock}return m.default[t][a]}if(t.length!==1)return null;var p=t.charCodeAt();return p?C.default.lookup(p):null}},"8EBN":function(H,B,d){(function(O){O(d("VrN/"))})(function(O){"use strict";O.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var E=0;E<O.modeInfo.length;E++){var C=O.modeInfo[E];C.mimes&&(C.mime=C.mimes[0])}O.findModeByMIME=function(A){A=A.toLowerCase();for(var w=0;w<O.modeInfo.length;w++){var m=O.modeInfo[w];if(m.mime==A)return m;if(m.mimes){for(var f=0;f<m.mimes.length;f++)if(m.mimes[f]==A)return m}}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 w=0;w<O.modeInfo.length;w++){var m=O.modeInfo[w];if(m.ext){for(var f=0;f<m.ext.length;f++)if(m.ext[f]==A)return m}}},O.findModeByFileName=function(A){for(var w=0;w<O.modeInfo.length;w++){var m=O.modeInfo[w];if(m.file&&m.file.test(A))return m}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 w=0;w<O.modeInfo.length;w++){var m=O.modeInfo[w];if(m.name.toLowerCase()==A)return m;if(m.alias){for(var f=0;f<m.alias.length;f++)if(m.alias[f].toLowerCase()==A)return m}}}})},"8IMR":function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},"8ISB":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("6Hfg"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},"8K/p":function(H,B,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(B,"__esModule",{value:!0}),B.default=void 0;var E=m(d("Lo0S")),C=A(d("ItS6"));function A(i){return i&&i.__esModule?i:{default:i}}function w(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return w=function(){return i},i}function m(i){if(i&&i.__esModule)return i;if(i===null||O(i)!=="object"&&typeof i!="function")return{default:i};var n=w();if(n&&n.has(i))return n.get(i);var e={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=s?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 s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}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,s,t,a,l,u,h){if(this._ctl===null){if(l.rQwait("TIGHT compression-control",1))return!1;this._ctl=l.rQshift8();for(var p=0;p<4;p++)this._ctl>>p&1&&(this._zlibs[p].reset(),E.Info("Reset zlib stream "+p));this._ctl=this._ctl>>4}var g;if(this._ctl===8)g=this._fillRect(e,s,t,a,l,u,h);else if(this._ctl===9)g=this._jpegRect(e,s,t,a,l,u,h);else if(this._ctl===10)g=this._pngRect(e,s,t,a,l,u,h);else if((this._ctl&128)==0)g=this._basicRect(this._ctl,e,s,t,a,l,u,h);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return g&&(this._ctl=null),g}},{key:"_fillRect",value:function(e,s,t,a,l,u,h){if(l.rQwait("TIGHT",3))return!1;var p=l.rQi,g=l.rQ;return u.fillRect(e,s,t,a,[g[p+2],g[p+1],g[p]],!1),l.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,s,t,a,l,u,h){var p=this._readData(l);return p===null?!1:(u.imageRect(e,s,t,a,"image/jpeg",p),!0)}},{key:"_pngRect",value:function(e,s,t,a,l,u,h){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,s,t,a,l,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 g=e&3,v;switch(this._filter){case 0:v=this._copyFilter(g,s,t,a,l,u,h,p);break;case 1:v=this._paletteFilter(g,s,t,a,l,u,h,p);break;case 2:v=this._gradientFilter(g,s,t,a,l,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,s,t,a,l,u,h,p){var g=a*l*3,v;if(g<12){if(u.rQwait("TIGHT",g))return!1;v=u.rQshiftBytes(g)}else{if(v=this._readData(u),v===null)return!1;this._zlibs[e].setInput(v),v=this._zlibs[e].inflate(g),this._zlibs[e].setInput(null)}return h.blitRgbImage(s,t,a,l,v,0,!1),!0}},{key:"_paletteFilter",value:function(e,s,t,a,l,u,h,p){if(this._numColors===0){if(u.rQwait("TIGHT palette",1))return!1;var g=u.rQpeek8()+1,v=g*3;if(u.rQwait("TIGHT palette",1+v))return!1;this._numColors=g,u.rQskipBytes(1),u.rQshiftTo(this._palette,v)}var y=this._numColors<=2?1:8,x=Math.floor((a*y+7)/8),T=x*l,S;if(T<12){if(u.rQwait("TIGHT",T))return!1;S=u.rQshiftBytes(T)}else{if(S=this._readData(u),S===null)return!1;this._zlibs[e].setInput(S),S=this._zlibs[e].inflate(T),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(s,t,a,l,S,this._palette,h):this._paletteRect(s,t,a,l,S,this._palette,h),this._numColors=0,!0}},{key:"_monoRect",value:function(e,s,t,a,l,u,h){for(var p=this._getScratchBuffer(t*a*4),g=Math.floor((t+7)/8),v=Math.floor(t/8),y=0;y<a;y++){var x=void 0,T=void 0,S=void 0;for(S=0;S<v;S++)for(var b=7;b>=0;b--)x=(y*t+S*8+7-b)*4,T=(l[y*g+S]>>b&1)*3,p[x]=u[T],p[x+1]=u[T+1],p[x+2]=u[T+2],p[x+3]=255;for(var _=7;_>=8-t%8;_--)x=(y*t+S*8+7-_)*4,T=(l[y*g+S]>>_&1)*3,p[x]=u[T],p[x+1]=u[T+1],p[x+2]=u[T+2],p[x+3]=255}h.blitRgbxImage(e,s,t,a,p,0,!1)}},{key:"_paletteRect",value:function(e,s,t,a,l,u,h){for(var p=this._getScratchBuffer(t*a*4),g=t*a*4,v=0,y=0;v<g;v+=4,y++){var x=l[y]*3;p[v]=u[x],p[v+1]=u[x+1],p[v+2]=u[x+2],p[v+3]=255}h.blitRgbxImage(e,s,t,a,p,0,!1)}},{key:"_gradientFilter",value:function(e,s,t,a,l,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 s;s=e.rQshift8(),this._len=s&127,s&128&&(s=e.rQshift8(),this._len|=(s&127)<<7,s&128&&(s=e.rQshift8(),this._len|=s<<14))}if(e.rQwait("TIGHT",this._len))return null;var t=e.rQshiftBytes(this._len);return this._len=0,t}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),i}();B.default=r},"8SMY":function(H,B,d){var O=d("n4Lv"),E=O.prepareDataCoordInfo,C=O.getStackedOnPoint;function A(m,f){var c=[];return f.diff(m).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 w(m,f,c,o,r,i,n,e){for(var s=A(m,f),t=[],a=[],l=[],u=[],h=[],p=[],g=[],v=E(r,f,n),y=E(i,m,e),x=0;x<s.length;x++){var T=s[x],S=!0;switch(T.cmd){case"=":var b=m.getItemLayout(T.idx),_=f.getItemLayout(T.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=_.slice()),t.push(b),a.push(_),l.push(c[T.idx]),u.push(o[T.idx1]),g.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()),l.push(C(v,r,f,I)),u.push(o[I]),g.push(f.getRawIndex(I));break;case"-":var I=T.idx,L=m.getRawIndex(I);L!==I?(t.push(m.getItemLayout(I)),a.push(i.dataToPoint([m.get(y.dataDimsForPoint[0],I),m.get(y.dataDimsForPoint[1],I)])),l.push(c[I]),u.push(C(y,i,m,I)),g.push(L)):S=!1}S&&(h.push(T),p.push(p.length))}p.sort(function(U,F){return g[U]-g[F]});for(var N=[],D=[],R=[],P=[],M=[],x=0;x<p.length;x++){var I=p[x];N[x]=t[I],D[x]=a[I],R[x]=l[I],P[x]=u[I],M[x]=h[I]}return{current:N,next:D,stackedOnCurrent:R,stackedOnNext:P,status:M}}H.exports=w},"8Skl":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="DownOutlined";var f=B.a=E.forwardRef(m)},"8Th4":function(H,B,d){var O=d("3LNs"),E=d("/y7N"),C=d("7bkD"),A=d("Znkb"),w=["x","y"],m=["width","height"],f=O.extend({makeElOption:function(n,e,s,t,a){var l=s.axis,u=l.coordinateSystem,h=r(u,1-o(l)),p=u.dataToPoint(e)[0],g=t.get("type");if(g&&g!=="none"){var v=E.buildElStyle(t),y=c[g](l,p,h);y.style=v,n.graphicKey=y.type,n.pointer=y}var x=C.layout(s);E.buildCartesianSingleLabelElOption(e,n,x,s,t,a)},getHandleTransform:function(n,e,s){var t=C.layout(e,{labelInside:!1});return t.labelMargin=s.get("handle.margin"),{position:E.getTransformedPosition(e.axis,n,t),rotation:t.rotation+(t.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,e,s,t){var a=s.axis,l=a.coordinateSystem,u=o(a),h=r(l,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 g=r(l,1-u),v=(g[1]+g[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,s){var t=E.makeLineShape([e,s[0]],[e,s[1]],o(n));return{type:"Line",subPixelOptimize:!0,shape:t}},shadow:function(n,e,s){var t=n.getBandWidth(),a=s[1]-s[0];return{type:"Rect",shape:E.makeRectShape([e-t/2,s[0]],[t,a],o(n))}}};function o(n){return n.isHorizontal()?0:1}function r(n,e){var s=n.getRect();return[s[w[e]],s[w[e]]+s[m[e]]]}A.registerAxisPointerClass("SingleAxisPointer",f);var i=f;H.exports=i},"8Uz6":function(H,B,d){var O=d("hNWo"),E=d("+TT/"),C=E.mergeLayoutParam,A=E.getLayoutParams,w=O.extend({type:"legend.scroll",setScrollDataIndex:function(c){this.option.scrollDataIndex=c},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(c,o,r,i){var n=A(c);w.superCall(this,"init",c,o,r,i),m(this,c,n)},mergeOption:function(c,o){w.superCall(this,"mergeOption",c,o),m(this,this.option,c)}});function m(c,o,r){var i=c.getOrient(),n=[1,1];n[i.index]=0,C(o,r,{type:"box",ignoreSize:n})}var f=w;H.exports=f},"8X+K":function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("4mN7"),w=A.fromPoints,m=d("9wZj"),f=d("FBjb"),c=d("8SMY"),o=d("IwbS"),r=d("4NO4"),i=d("1NG9"),n=i.Polyline,e=i.Polygon,s=d("6Ic6"),t=d("n4Lv"),a=t.prepareDataCoordInfo,l=t.getStackedOnPoint,u=d("sK/D"),h=u.createGridClipPath,p=u.createPolarClipPath;function g(N,D){if(N.length!==D.length)return;for(var R=0;R<N.length;R++){var P=N[R],M=D[R];if(P[0]!==M[0]||P[1]!==M[1])return}return!0}function v(N,D){var R=[],P=[],M=[],U=[];return w(N,R,P),w(D,M,U),Math.max(Math.abs(R[0]-M[0]),Math.abs(R[1]-M[1]),Math.abs(P[0]-U[0]),Math.abs(P[1]-U[1]))}function y(N){return typeof N=="number"?N:N?.5:0}function x(N,D,R){if(!R.valueDim)return[];for(var P=[],M=0,U=D.count();M<U;M++)P.push(l(R,N,D,M));return P}function T(N,D,R){for(var P=D.getBaseAxis(),M=P.dim==="x"||P.dim==="radius"?0:1,U=[],F=0;F<N.length-1;F++){var j=N[F+1],W=N[F];U.push(W);var V=[];switch(R){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,Y=[];V[M]=Y[M]=z,V[1-M]=W[1-M],Y[1-M]=j[1-M],U.push(V),U.push(Y);break;default:V[M]=W[M],V[1-M]=j[1-M],U.push(V)}}return N[F]&&U.push(N[F]),U}function S(N,D){var R=N.getVisual("visualMeta");if(!R||!R.length||!N.count())return;if(D.type!=="cartesian2d")return;for(var P,M,U=R.length-1;U>=0;U--){var F=R[U].dimension,j=N.dimensions[F],W=N.getDimensionInfo(j);if(P=W&&W.coordDim,P==="x"||P==="y"){M=R[U];break}}if(!M)return;var V=D.getAxis(P),z=C.map(M.stops,function(He){return{coord:V.toGlobalCoord(V.dataToCoord(He.value)),color:He.color}}),Y=z.length,$=M.outerColors.slice();Y&&z[0].coord>z[Y-1].coord&&(z.reverse(),$.reverse());var ue=10,ne=z[0].coord-ue,ge=z[Y-1].coord+ue,Oe=ge-ne;if(Oe<.001)return"transparent";C.each(z,function(He){He.offset=(He.coord-ne)/Oe}),z.push({offset:Y?z[Y-1].offset:.5,color:$[1]||"transparent"}),z.unshift({offset:Y?z[0].offset:.5,color:$[0]||"transparent"});var De=new o.LinearGradient(0,0,0,0,z,!0);return De[P]=ne,De[P+"2"]=ge,De}function b(N,D,R){var P=N.get("showAllSymbol"),M=P==="auto";if(P&&!M)return;var U=R.getAxesByScale("ordinal")[0];if(!U)return;if(M&&_(U,D))return;var F=D.mapDimension(U.dim),j={};return C.each(U.getViewLabels(),function(W){j[W.tickValue]=1}),function(W){return!j.hasOwnProperty(D.get(F,W))}}function _(N,D){var R=N.getExtent(),P=Math.abs(R[1]-R[0])/N.scale.count();isNaN(P)&&(P=0);for(var M=D.count(),U=Math.max(1,Math.round(M/5)),F=0;F<M;F+=U)if(f.getSymbolSize(D,F)[N.isHorizontal()?1:0]*1.5>P)return!1;return!0}function I(N,D,R){if(N.type==="cartesian2d"){var P=N.getBaseAxis().isHorizontal(),M=h(N,D,R);if(!R.get("clip",!0)){var U=M.shape,F=Math.max(U.width,U.height);P?(U.y-=F,U.height+=F*2):(U.x-=F,U.width+=F*2)}return M}else return p(N,D,R)}var L=s.extend({type:"line",init:function(){var N=new o.Group,D=new m;this.group.add(D.group),this._symbolDraw=D,this._lineGroup=N},render:function(N,D,R){var P=N.coordinateSystem,M=this.group,U=N.getData(),F=N.getModel("lineStyle"),j=N.getModel("areaStyle"),W=U.mapArray(U.getItemLayout),V=P.type==="polar",z=this._coordSys,Y=this._symbolDraw,$=this._polyline,ue=this._polygon,ne=this._lineGroup,ge=N.get("animation"),Oe=!j.isEmpty(),De=j.get("origin"),He=a(P,U,De),pe=x(P,U,He),Ue=N.get("showSymbol"),oe=Ue&&!V&&b(N,U,P),ee=this._data;ee&&ee.eachItemGraphicEl(function(de,Ce){de.__temp&&(M.remove(de),ee.setItemGraphicEl(Ce,null))}),Ue||Y.remove(),M.add(ne);var Xe=!V&&N.get("step"),se;P&&P.getArea&&N.get("clip",!0)&&(se=P.getArea(),se.width!=null?(se.x-=.1,se.y-=.1,se.width+=.2,se.height+=.2):se.r0&&(se.r0-=.5,se.r1+=.5)),this._clipShapeForSymbol=se,$&&z.type===P.type&&Xe===this._step?(Oe&&!ue?ue=this._newPolygon(W,pe,P,ge):ue&&!Oe&&(ne.remove(ue),ue=this._polygon=null),ne.setClipPath(I(P,!1,N)),Ue&&Y.updateData(U,{isIgnore:oe,clipShape:se}),U.eachItemGraphicEl(function(de){de.stopAnimation(!0)}),(!g(this._stackedOnPoints,pe)||!g(this._points,W))&&(ge?this._updateAnimation(U,pe,P,R,Xe,De):(Xe&&(W=T(W,P,Xe),pe=T(pe,P,Xe)),$.setShape({points:W}),ue&&ue.setShape({points:W,stackedOnPoints:pe})))):(Ue&&Y.updateData(U,{isIgnore:oe,clipShape:se}),Xe&&(W=T(W,P,Xe),pe=T(pe,P,Xe)),$=this._newPolyline(W,P,ge),Oe&&(ue=this._newPolygon(W,pe,P,ge)),ne.setClipPath(I(P,!0,N)));var Q=S(U,P)||U.getVisual("color");$.useStyle(C.defaults(F.getLineStyle(),{fill:"none",stroke:Q,lineJoin:"bevel"}));var G=N.get("smooth");if(G=y(N.get("smooth")),$.setShape({smooth:G,smoothMonotone:N.get("smoothMonotone"),connectNulls:N.get("connectNulls")}),ue){var J=U.getCalculationInfo("stackedOnSeries"),ve=0;ue.useStyle(C.defaults(j.getAreaStyle(),{fill:Q,opacity:.7,lineJoin:"bevel"})),J&&(ve=y(J.get("smooth"))),ue.setShape({smooth:G,stackedOnSmooth:ve,smoothMonotone:N.get("smoothMonotone"),connectNulls:N.get("connectNulls")})}this._data=U,this._coordSys=P,this._stackedOnPoints=pe,this._points=W,this._step=Xe,this._valueOrigin=De},dispose:function(){},highlight:function(N,D,R,P){var M=N.getData(),U=r.queryDataIndex(M,P);if(!(U instanceof Array)&&U!=null&&U>=0){var F=M.getItemGraphicEl(U);if(!F){var j=M.getItemLayout(U);if(!j)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(j[0],j[1]))return;F=new f(M,U),F.position=j,F.setZ(N.get("zlevel"),N.get("z")),F.ignore=isNaN(j[0])||isNaN(j[1]),F.__temp=!0,M.setItemGraphicEl(U,F),F.stopSymbolAnimation(!0),this.group.add(F)}F.highlight()}else s.prototype.highlight.call(this,N,D,R,P)},downplay:function(N,D,R,P){var M=N.getData(),U=r.queryDataIndex(M,P);if(U!=null&&U>=0){var F=M.getItemGraphicEl(U);F&&(F.__temp?(M.setItemGraphicEl(U,null),this.group.remove(F)):F.downplay())}else s.prototype.downplay.call(this,N,D,R,P)},_newPolyline:function(N){var D=this._polyline;return D&&this._lineGroup.remove(D),D=new n({shape:{points:N},silent:!0,z2:10}),this._lineGroup.add(D),this._polyline=D,D},_newPolygon:function(N,D){var R=this._polygon;return R&&this._lineGroup.remove(R),R=new e({shape:{points:N,stackedOnPoints:D},silent:!0}),this._lineGroup.add(R),this._polygon=R,R},_updateAnimation:function(N,D,R,P,M,U){var F=this._polyline,j=this._polygon,W=N.hostModel,V=c(this._data,N,this._stackedOnPoints,D,this._coordSys,R,this._valueOrigin,U),z=V.current,Y=V.stackedOnCurrent,$=V.next,ue=V.stackedOnNext;if(M&&(z=T(V.current,R,M),Y=T(V.stackedOnCurrent,R,M),$=T(V.next,R,M),ue=T(V.stackedOnNext,R,M)),v(z,$)>3e3||j&&v(Y,ue)>3e3){F.setShape({points:$}),j&&j.setShape({points:$,stackedOnPoints:ue});return}F.shape.__points=V.current,F.shape.points=z,o.updateProps(F,{shape:{points:$}},W),j&&(j.setShape({points:z,stackedOnPoints:Y}),o.updateProps(j,{shape:{points:$,stackedOnPoints:ue}},W));for(var ne=[],ge=V.status,Oe=0;Oe<ge.length;Oe++){var De=ge[Oe].cmd;if(De==="="){var He=N.getItemGraphicEl(ge[Oe].idx1);He&&ne.push({el:He,ptIdx:Oe})}}F.animators&&F.animators.length&&F.animators[0].during(function(){for(var pe=0;pe<ne.length;pe++){var Ue=ne[pe].el;Ue.attr("position",F.shape.__points[ne[pe].ptIdx])}})},remove:function(N){var D=this.group,R=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),R&&R.eachItemGraphicEl(function(P,M){P.__temp&&(D.remove(P),R.setItemGraphicEl(M,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});H.exports=L},"8XDt":function(H,B,d){d("qH13");var O=d("aX58"),E=O.registerPainter,C=d("6fms");E("vml",C)},"8XRh":function(H,B,d){"use strict";d.d(B,"a",function(){return Qe});var O=d("rePB"),E=d("VTBJ"),C=d("ODXe"),A=d("U8pU"),w=d("q1tI"),m=d("m+aA"),f=d("c+Xe"),c=d("TSYQ"),o=d.n(c),r=d("MNnm");function i(Je,Te){var et={};return et[Je.toLowerCase()]=Te.toLowerCase(),et["Webkit".concat(Je)]="webkit".concat(Te),et["Moz".concat(Je)]="moz".concat(Te),et["ms".concat(Je)]="MS".concat(Te),et["O".concat(Je)]="o".concat(Te.toLowerCase()),et}function n(Je,Te){var et={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")};return Je&&("AnimationEvent"in Te||delete et.animationend.animation,"TransitionEvent"in Te||delete et.transitionend.transition),et}var e=n(Object(r.a)(),typeof window!="undefined"?window:{}),s={};if(Object(r.a)()){var t=document.createElement("div");s=t.style}var a={};function l(Je){if(a[Je])return a[Je];var Te=e[Je];if(Te)for(var et=Object.keys(Te),ze=et.length,nt=0;nt<ze;nt+=1){var Ot=et[nt];if(Object.prototype.hasOwnProperty.call(Te,Ot)&&Ot in s)return a[Je]=Te[Ot],a[Je]}return""}var u=l("animationend"),h=l("transitionend"),p=!!(u&&h),g=u||"animationend",v=h||"transitionend";function y(Je,Te){if(!Je)return null;if(Object(A.a)(Je)==="object"){var et=Te.replace(/-\w/g,function(ze){return ze[1].toUpperCase()});return Je[et]}return"".concat(Je,"-").concat(Te)}var x="none",T="appear",S="enter",b="leave",_="none",I="prepare",L="start",N="active",D="end",R=d("dm2S"),P=d("wgJM"),M=function(){var Je=w.useRef(null);function Te(){P.a.cancel(Je.current)}function et(ze){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Te();var Ot=Object(P.a)(function(){nt<=1?ze({isCanceled:function(){return Ot!==Je.current}}):et(ze,nt-1)});Je.current=Ot}return w.useEffect(function(){return function(){Te()}},[]),[et,Te]},U=Object(r.a)()?w.useLayoutEffect:w.useEffect,F=U,j=[I,L,N,D],W=!1,V=!0;function z(Je){return Je===N||Je===D}var Y=function(Je,Te){var et=Object(R.a)(_),ze=Object(C.a)(et,2),nt=ze[0],Ot=ze[1],Ct=M(),Tt=Object(C.a)(Ct,2),Dt=Tt[0],Be=Tt[1];function ie(){Ot(I,!0)}return F(function(){if(nt!==_&&nt!==D){var X=j.indexOf(nt),Fe=j[X+1],Ne=Te(nt);Ne===W?Ot(Fe,!0):Dt(function(q){function ht(){if(q.isCanceled())return;Ot(Fe,!0)}Ne===!0?ht():Promise.resolve(Ne).then(ht)})}},[Je,nt]),w.useEffect(function(){return function(){Be()}},[]),[ie,nt]},$=function(Je){var Te=Object(w.useRef)(),et=Object(w.useRef)(Je);et.current=Je;var ze=w.useCallback(function(Ct){et.current(Ct)},[]);function nt(Ct){Ct&&(Ct.removeEventListener(v,ze),Ct.removeEventListener(g,ze))}function Ot(Ct){Te.current&&Te.current!==Ct&&nt(Te.current),Ct&&Ct!==Te.current&&(Ct.addEventListener(v,ze),Ct.addEventListener(g,ze),Te.current=Ct)}return w.useEffect(function(){return function(){nt(Te.current)}},[]),[Ot,nt]};function ue(Je,Te,et,ze){var nt=ze.motionEnter,Ot=nt===void 0?!0:nt,Ct=ze.motionAppear,Tt=Ct===void 0?!0:Ct,Dt=ze.motionLeave,Be=Dt===void 0?!0:Dt,ie=ze.motionDeadline,X=ze.motionLeaveImmediately,Fe=ze.onAppearPrepare,Ne=ze.onEnterPrepare,q=ze.onLeavePrepare,ht=ze.onAppearStart,Rt=ze.onEnterStart,ut=ze.onLeaveStart,Xt=ze.onAppearActive,or=ze.onEnterActive,Zr=ze.onLeaveActive,ar=ze.onAppearEnd,dr=ze.onEnterEnd,er=ze.onLeaveEnd,Ht=ze.onVisibleChanged,dt=Object(R.a)(),Hr=Object(C.a)(dt,2),dn=Hr[0],Nn=Hr[1],Vn=Object(R.a)(x),gi=Object(C.a)(Vn,2),bn=gi[0],Mn=gi[1],jt=Object(R.a)(null),St=Object(C.a)(jt,2),Ie=St[0],_e=St[1],Le=Object(w.useRef)(!1),Ze=Object(w.useRef)(null);function it(){return et()}var ft=Object(w.useRef)(!1);function Nt(Ut){var Sr=it();if(Ut&&!Ut.deadline&&Ut.target!==Sr)return;var hr=ft.current,gr;bn===T&&hr?gr=ar==null?void 0:ar(Sr,Ut):bn===S&&hr?gr=dr==null?void 0:dr(Sr,Ut):bn===b&&hr&&(gr=er==null?void 0:er(Sr,Ut)),bn!==x&&hr&&gr!==!1&&(Mn(x,!0),_e(null,!0))}var Ar=$(Nt),Mr=Object(C.a)(Ar,1),un=Mr[0],Mt=w.useMemo(function(){var Ut,Sr,hr;switch(bn){case T:return Ut={},Object(O.a)(Ut,I,Fe),Object(O.a)(Ut,L,ht),Object(O.a)(Ut,N,Xt),Ut;case S:return Sr={},Object(O.a)(Sr,I,Ne),Object(O.a)(Sr,L,Rt),Object(O.a)(Sr,N,or),Sr;case b:return hr={},Object(O.a)(hr,I,q),Object(O.a)(hr,L,ut),Object(O.a)(hr,N,Zr),hr;default:return{}}},[bn]),at=Y(bn,function(Ut){if(Ut===I){var Sr=Mt[I];return Sr?Sr(it()):W}if(Bt in Mt){var hr;_e(((hr=Mt[Bt])===null||hr===void 0?void 0:hr.call(Mt,it(),null))||null)}return Bt===N&&(un(it()),ie>0&&(clearTimeout(Ze.current),Ze.current=setTimeout(function(){Nt({deadline:!0})},ie))),V}),lt=Object(C.a)(at,2),rr=lt[0],Bt=lt[1],_t=z(Bt);ft.current=_t,F(function(){Nn(Te);var Ut=Le.current;if(Le.current=!0,!Je)return;var Sr;!Ut&&Te&&Tt&&(Sr=T),Ut&&Te&&Ot&&(Sr=S),(Ut&&!Te&&Be||!Ut&&X&&!Te&&Be)&&(Sr=b),Sr&&(Mn(Sr),rr())},[Te]),Object(w.useEffect)(function(){(bn===T&&!Tt||bn===S&&!Ot||bn===b&&!Be)&&Mn(x)},[Tt,Ot,Be]),Object(w.useEffect)(function(){return function(){Le.current=!1,clearTimeout(Ze.current)}},[]);var Kt=w.useRef(!1);Object(w.useEffect)(function(){dn&&(Kt.current=!0),dn!==void 0&&bn===x&&((Kt.current||dn)&&(Ht==null||Ht(dn)),Kt.current=!0)},[dn,bn]);var wt=Ie;return Mt[I]&&Bt===L&&(wt=Object(E.a)({transition:"none"},wt)),[bn,Bt,wt,dn!=null?dn:Te]}var ne=d("1OyB"),ge=d("vuIU"),Oe=d("Ji7U"),De=d("LK+K"),He=function(Je){Object(Oe.a)(et,Je);var Te=Object(De.a)(et);function et(){return Object(ne.a)(this,et),Te.apply(this,arguments)}return Object(ge.a)(et,[{key:"render",value:function(){return this.props.children}}]),et}(w.Component),pe=He;function Ue(Je){var Te=Je;Object(A.a)(Je)==="object"&&(Te=Je.transitionSupport);function et(nt){return!!(nt.motionName&&Te)}var ze=w.forwardRef(function(nt,Ot){var Ct=nt.visible,Tt=Ct===void 0?!0:Ct,Dt=nt.removeOnLeave,Be=Dt===void 0?!0:Dt,ie=nt.forceRender,X=nt.children,Fe=nt.motionName,Ne=nt.leavedClassName,q=nt.eventProps,ht=et(nt),Rt=Object(w.useRef)(),ut=Object(w.useRef)();function Xt(){try{return Rt.current instanceof HTMLElement?Rt.current:Object(m.a)(ut.current)}catch(jt){return null}}var or=ue(ht,Tt,Xt,nt),Zr=Object(C.a)(or,4),ar=Zr[0],dr=Zr[1],er=Zr[2],Ht=Zr[3],dt=w.useRef(Ht);Ht&&(dt.current=!0);var Hr=w.useCallback(function(jt){Rt.current=jt,Object(f.b)(Ot,jt)},[Ot]),dn,Nn=Object(E.a)(Object(E.a)({},q),{},{visible:Tt});if(!X)dn=null;else if(ar===x||!et(nt))Ht?dn=X(Object(E.a)({},Nn),Hr):!Be&&dt.current?dn=X(Object(E.a)(Object(E.a)({},Nn),{},{className:Ne}),Hr):ie?dn=X(Object(E.a)(Object(E.a)({},Nn),{},{style:{display:"none"}}),Hr):dn=null;else{var Vn,gi;dr===I?gi="prepare":z(dr)?gi="active":dr===L&&(gi="start"),dn=X(Object(E.a)(Object(E.a)({},Nn),{},{className:o()(y(Fe,ar),(Vn={},Object(O.a)(Vn,y(Fe,"".concat(ar,"-").concat(gi)),gi),Object(O.a)(Vn,Fe,typeof Fe=="string"),Vn)),style:er}),Hr)}if(w.isValidElement(dn)&&Object(f.c)(dn)){var bn=dn,Mn=bn.ref;Mn||(dn=w.cloneElement(dn,{ref:Hr}))}return w.createElement(pe,{ref:ut},dn)});return ze.displayName="CSSMotion",ze}var oe=Ue(p),ee=d("wx14"),Xe=d("Ff2n"),se="add",Q="keep",G="remove",J="removed";function ve(Je){var Te;return Je&&Object(A.a)(Je)==="object"&&"key"in Je?Te=Je:Te={key:Je},Object(E.a)(Object(E.a)({},Te),{},{key:String(Te.key)})}function de(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Je.map(ve)}function Ce(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],et=[],ze=0,nt=Te.length,Ot=de(Je),Ct=de(Te);Ot.forEach(function(Be){for(var ie=!1,X=ze;X<nt;X+=1){var Fe=Ct[X];if(Fe.key===Be.key){ze<X&&(et=et.concat(Ct.slice(ze,X).map(function(Ne){return Object(E.a)(Object(E.a)({},Ne),{},{status:se})})),ze=X),et.push(Object(E.a)(Object(E.a)({},Fe),{},{status:Q})),ze+=1,ie=!0;break}}ie||et.push(Object(E.a)(Object(E.a)({},Be),{},{status:G}))}),ze<nt&&(et=et.concat(Ct.slice(ze).map(function(Be){return Object(E.a)(Object(E.a)({},Be),{},{status:se})})));var Tt={};et.forEach(function(Be){var ie=Be.key;Tt[ie]=(Tt[ie]||0)+1});var Dt=Object.keys(Tt).filter(function(Be){return Tt[Be]>1});return Dt.forEach(function(Be){et=et.filter(function(ie){var X=ie.key,Fe=ie.status;return X!==Be||Fe!==G}),et.forEach(function(ie){ie.key===Be&&(ie.status=Q)})}),et}var Ee=["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 xe(Je){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oe,et=function(ze){Object(Oe.a)(Ot,ze);var nt=Object(De.a)(Ot);function Ot(){var Ct;Object(ne.a)(this,Ot);for(var Tt=arguments.length,Dt=new Array(Tt),Be=0;Be<Tt;Be++)Dt[Be]=arguments[Be];return Ct=nt.call.apply(nt,[this].concat(Dt)),Ct.state={keyEntities:[]},Ct.removeKey=function(ie){var X=Ct.state.keyEntities,Fe=X.map(function(Ne){return Ne.key!==ie?Ne:Object(E.a)(Object(E.a)({},Ne),{},{status:J})});return Ct.setState({keyEntities:Fe}),Fe.filter(function(Ne){var q=Ne.status;return q!==J}).length},Ct}return Object(ge.a)(Ot,[{key:"render",value:function(){var Tt=this,Dt=this.state.keyEntities,Be=this.props,ie=Be.component,X=Be.children,Fe=Be.onVisibleChanged,Ne=Be.onAllRemoved,q=Object(Xe.a)(Be,Ee),ht=ie||w.Fragment,Rt={};return fe.forEach(function(ut){Rt[ut]=q[ut],delete q[ut]}),delete q.keys,w.createElement(ht,q,Dt.map(function(ut){var Xt=ut.status,or=Object(Xe.a)(ut,le),Zr=Xt===se||Xt===Q;return w.createElement(Te,Object(ee.a)({},Rt,{key:or.key,visible:Zr,eventProps:or,onVisibleChanged:function(dr){if(Fe==null||Fe(dr,{key:or.key}),!dr){var er=Tt.removeKey(or.key);er===0&&Ne&&Ne()}}}),X)}))}}],[{key:"getDerivedStateFromProps",value:function(Tt,Dt){var Be=Tt.keys,ie=Dt.keyEntities,X=de(Be),Fe=Ce(ie,X);return{keyEntities:Fe.filter(function(Ne){var q=ie.find(function(ht){var Rt=ht.key;return Ne.key===Rt});return!(q&&q.status===J&&Ne.status===G)})}}}]),Ot}(w.Component);return et.defaultProps={component:"div"},et}var Qe=xe(p),ot=B.b=oe},"8hn6":function(H,B){var d="#eee",O=function(){return{axisLine:{lineStyle:{color:d}},axisTick:{lineStyle:{color:d}},axisLabel:{textStyle:{color:d}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:d}}}},E=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],C={color:E,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:d},crossStyle:{color:d},label:{color:"#000"}}},legend:{textStyle:{color:d}},textStyle:{color:d},title:{textStyle:{color:d}},toolbox:{iconStyle:{normal:{borderColor:d}}},dataZoom:{textStyle:{color:d}},visualMap:{textStyle:{color:d}},timeline:{lineStyle:{color:d},itemStyle:{normal:{color:E[1]}},label:{normal:{textStyle:{color:d}}},controlStyle:{normal:{color:d,borderColor:d}}},timeAxis:O(),logAxis:O(),valueAxis:O(),categoryAxis:O(),line:{symbol:"circle"},graph:{color:E},gauge:{title:{textStyle:{color:d}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};C.categoryAxis.splitLine.show=!1;var A=C;H.exports=A},"8nMs":function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("+rIm"),A=d("Znkb"),w=d("AVZG"),m=d("WN+l"),f=m.rectCoordAxisBuildSplitArea,c=m.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine","minorSplitLine"],i=A.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(n,e,s,t){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new E.Group,this.group.add(this._axisGroup),!n.get("show"))return;var l=n.getCoordSysModel(),u=w.layout(l,n),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,l)},this),E.groupTransition(a,this._axisGroup,n),i.superCall(this,"render",n,e,s,t)},remove:function(){c(this)},_splitLine:function(n,e){var s=n.axis;if(s.scale.isBlank())return;var t=n.getModel("splitLine"),a=t.getModel("lineStyle"),l=a.get("color");l=O.isArray(l)?l:[l];for(var u=e.coordinateSystem.getRect(),h=s.isHorizontal(),p=0,g=s.getTicksCoords({tickModel:t}),v=[],y=[],x=a.getLineStyle(),T=0;T<g.length;T++){var S=s.toGlobalCoord(g[T].coord);h?(v[0]=S,v[1]=u.y,y[0]=S,y[1]=u.y+u.height):(v[0]=u.x,v[1]=S,y[0]=u.x+u.width,y[1]=S);var b=p++%l.length,_=g[T].tickValue;this._axisGroup.add(new E.Line({anid:_!=null?"line_"+g[T].tickValue:null,subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:y[0],y2:y[1]},style:O.defaults({stroke:l[b]},x),silent:!0}))}},_minorSplitLine:function(n,e){var s=n.axis,t=n.getModel("minorSplitLine"),a=t.getModel("lineStyle"),l=e.coordinateSystem.getRect(),u=s.isHorizontal(),h=s.getMinorTicksCoords();if(!h.length)return;for(var p=[],g=[],v=a.getLineStyle(),y=0;y<h.length;y++)for(var x=0;x<h[y].length;x++){var T=s.toGlobalCoord(h[y][x].coord);u?(p[0]=T,p[1]=l.y,g[0]=T,g[1]=l.y+l.height):(p[0]=l.x,p[1]=T,g[0]=l.x+l.width,g[1]=T),this._axisGroup.add(new E.Line({anid:"minor_line_"+h[y][x].tickValue,subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[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,B,d){var O=d("mFDi"),E=d("4mN7"),C=d("QBsz"),A=d("BlVb");function w(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}w.prototype={constructor:w,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,s=0;s<e.length;s++){if(e[s].type!=="polygon")continue;var t=e[s].exterior;E.fromPoints(t,i,n),C.min(o,o,i),C.max(r,r,n)}return s===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 s=0;s<(e?e.length:0);s++)if(A.contain(e[s]))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),s=i.calculateTransform(e),t=this.geometries,a=0;a<t.length;a++){if(t[a].type!=="polygon")continue;for(var l=t[a].exterior,u=t[a].interiors,h=0;h<l.length;h++)C.applyTransform(l[h],l[h],s);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],s)}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 w(f,this.geometries,this.center);return c._rect=this._rect,c.transformTo=null,c}};var m=w;H.exports=m},"8txm":function(H,B,d){},"8waO":function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("iLNv"),A=d("ZWlE");d("hJvP"),d("IXyC"),d("xRUu");var w=5;O.extendComponentView({type:"parallel",render:function(c,o,r){this._model=c,this._api=r,this._handlers||(this._handlers={},E.each(m,function(i,n){r.getZr().on(n,this._handlers[n]=E.bind(i,this))},this)),C.createOrUpdate(this,"_throttledDispatchExpand",c.get("axisExpandRate"),"fixRate")},dispose:function(c,o){E.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(E.extend({type:"parallelAxisExpand"},c))}});var m={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>w)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(c){if(this._mouseDownPoint||!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,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("K4ya"),m=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&&w.replaceVisualOption(e,i,["inBrush","outOfBrush"]);var s=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:f},s.hasOwnProperty("liftZ")||(s.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 m(i.brushStyle).getItemStyle(),removeOnClick:i.removeOnClick,z:i.z},n,!0)}var r=c;H.exports=r},"8z0m":function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("RIqP"),A=d.n(C),w=d("pVnL"),m=d.n(w),f=d("J4zp"),c=d.n(f),o=d("q1tI"),r=d.n(o),i=d("TSYQ"),n=d.n(i);function e(ar,dr){var er="cannot "+ar.method+" "+ar.action+" "+dr.status+"'",Ht=new Error(er);return Ht.status=dr.status,Ht.method=ar.method,Ht.url=ar.action,Ht}function s(ar){var dr=ar.responseText||ar.response;if(!dr)return dr;try{return JSON.parse(dr)}catch(er){return dr}}function t(ar){var dr=new XMLHttpRequest;ar.onProgress&&dr.upload&&(dr.upload.onprogress=function(Hr){Hr.total>0&&(Hr.percent=Hr.loaded/Hr.total*100),ar.onProgress(Hr)});var er=new FormData;ar.data&&Object.keys(ar.data).forEach(function(dt){var Hr=ar.data[dt];if(Array.isArray(Hr)){Hr.forEach(function(dn){er.append(dt+"[]",dn)});return}er.append(dt,ar.data[dt])}),ar.file instanceof Blob?er.append(ar.filename,ar.file,ar.file.name):er.append(ar.filename,ar.file),dr.onerror=function(Hr){ar.onError(Hr)},dr.onload=function(){return dr.status<200||dr.status>=300?ar.onError(e(ar,dr),s(dr)):ar.onSuccess(s(dr),dr)},dr.open(ar.method,ar.action,!0),ar.withCredentials&&"withCredentials"in dr&&(dr.withCredentials=!0);var Ht=ar.headers||{};return Ht["X-Requested-With"]!==null&&dr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ht).forEach(function(dt){Ht[dt]!==null&&dr.setRequestHeader(dt,Ht[dt])}),dr.send(er),{abort:function(){dr.abort()}}}var a=+new Date,l=0;function u(){return"rc-upload-"+a+"-"+ ++l}function h(ar,dr){return ar.indexOf(dr,ar.length-dr.length)!==-1}var p=function(ar,dr){if(ar&&dr){var er=Array.isArray(dr)?dr:dr.split(","),Ht=ar.name||"",dt=ar.type||"",Hr=dt.replace(/\/.*$/,"");return er.some(function(dn){var Nn=dn.trim();return Nn.charAt(0)==="."?h(Ht.toLowerCase(),Nn.toLowerCase()):/\/\*$/.test(Nn)?Hr===Nn.replace(/\/.*$/,""):dt===Nn})}return!0};function g(ar,dr){var er=ar.createReader(),Ht=[];function dt(){er.readEntries(function(Hr){var dn=Array.prototype.slice.apply(Hr);Ht=Ht.concat(dn);var Nn=!dn.length;Nn?dr(Ht):dt()})}dt()}var v=function(dr,er,Ht){var dt=function Hr(dn,Nn){Nn=Nn||"",dn.isFile?dn.file(function(Vn){Ht(Vn)&&(dn.fullPath&&!Vn.webkitRelativePath&&(Object.defineProperties(Vn,{webkitRelativePath:{writable:!0}}),Vn.webkitRelativePath=dn.fullPath.replace(/^\//,""),Object.defineProperties(Vn,{webkitRelativePath:{writable:!1}})),er([Vn]))}):dn.isDirectory&&g(dn,function(Vn){Vn.forEach(function(gi){Hr(gi,""+Nn+dn.name+"/")})})};dr.forEach(function(Hr){dt(Hr.webkitGetAsEntry())})},y=v,x=Object.assign||function(ar){for(var dr=1;dr<arguments.length;dr++){var er=arguments[dr];for(var Ht in er)Object.prototype.hasOwnProperty.call(er,Ht)&&(ar[Ht]=er[Ht])}return ar},T=function(){function ar(dr,er){var Ht=[],dt=!0,Hr=!1,dn=void 0;try{for(var Nn=dr[Symbol.iterator](),Vn;!(dt=(Vn=Nn.next()).done)&&!(Ht.push(Vn.value),er&&Ht.length===er);dt=!0);}catch(gi){Hr=!0,dn=gi}finally{try{!dt&&Nn.return&&Nn.return()}finally{if(Hr)throw dn}}return Ht}return function(dr,er){if(Array.isArray(dr))return dr;if(Symbol.iterator in Object(dr))return ar(dr,er);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function ar(dr,er){for(var Ht=0;Ht<er.length;Ht++){var dt=er[Ht];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(dr,dt.key,dt)}}return function(dr,er,Ht){return er&&ar(dr.prototype,er),Ht&&ar(dr,Ht),dr}}();function b(ar,dr,er){return dr in ar?Object.defineProperty(ar,dr,{value:er,enumerable:!0,configurable:!0,writable:!0}):ar[dr]=er,ar}function _(ar,dr){var er={};for(var Ht in ar){if(dr.indexOf(Ht)>=0)continue;if(!Object.prototype.hasOwnProperty.call(ar,Ht))continue;er[Ht]=ar[Ht]}return er}function I(ar,dr){if(!(ar instanceof dr))throw new TypeError("Cannot call a class as a function")}function L(ar,dr){if(!ar)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dr&&(typeof dr=="object"||typeof dr=="function")?dr:ar}function N(ar,dr){if(typeof dr!="function"&&dr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof dr);ar.prototype=Object.create(dr&&dr.prototype,{constructor:{value:ar,enumerable:!1,writable:!0,configurable:!0}}),dr&&(Object.setPrototypeOf?Object.setPrototypeOf(ar,dr):ar.__proto__=dr)}var D=function(dr){return Object.keys(dr).reduce(function(er,Ht){return(Ht.substr(0,5)==="data-"||Ht.substr(0,5)==="aria-"||Ht==="role")&&(er[Ht]=dr[Ht]),er},{})},R=function(ar){N(dr,ar);function dr(){var er,Ht,dt,Hr;I(this,dr);for(var dn=arguments.length,Nn=Array(dn),Vn=0;Vn<dn;Vn++)Nn[Vn]=arguments[Vn];return Hr=(Ht=(dt=L(this,(er=dr.__proto__||Object.getPrototypeOf(dr)).call.apply(er,[this].concat(Nn))),dt),dt.state={uid:u()},dt.reqs={},dt.onChange=function(gi){var bn=gi.target.files;dt.uploadFiles(bn),dt.reset()},dt.onClick=function(gi){var bn=dt.fileInput;if(!bn)return;var Mn=dt.props,jt=Mn.children,St=Mn.onClick;jt&&jt.type==="button"&&(bn.parentNode.focus(),bn.parentNode.querySelector("button").blur()),bn.click(),St&&St(gi)},dt.onKeyDown=function(gi){gi.key==="Enter"&&dt.onClick()},dt.onFileDrop=function(gi){var bn=dt.props.multiple;if(gi.preventDefault(),gi.type==="dragover")return;if(dt.props.directory)y(Array.prototype.slice.call(gi.dataTransfer.items),dt.uploadFiles,function(jt){return p(jt,dt.props.accept)});else{var Mn=Array.prototype.slice.call(gi.dataTransfer.files).filter(function(jt){return p(jt,dt.props.accept)});bn===!1&&(Mn=Mn.slice(0,1)),dt.uploadFiles(Mn)}},dt.uploadFiles=function(gi){var bn=Array.prototype.slice.call(gi);bn.map(function(Mn){return Mn.uid=u(),Mn}).forEach(function(Mn){dt.upload(Mn,bn)})},dt.saveFileInput=function(gi){dt.fileInput=gi},Ht),L(dt,Hr)}return S(dr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(Ht,dt){var Hr=this,dn=this.props;if(!dn.beforeUpload)return setTimeout(function(){return Hr.post(Ht)},0);var Nn=dn.beforeUpload(Ht,dt);Nn&&Nn.then?Nn.then(function(Vn){var gi=Object.prototype.toString.call(Vn);return gi==="[object File]"||gi==="[object Blob]"?Hr.post(Vn):Hr.post(Ht)}).catch(function(Vn){console.log(Vn)}):Nn!==!1&&setTimeout(function(){return Hr.post(Ht)},0);return}},{key:"post",value:function(Ht){var dt=this;if(!this._isMounted)return;var Hr=this.props,dn=Hr.onStart,Nn=Hr.onProgress,Vn=Hr.transformFile,gi=Vn===void 0?function(bn){return bn}:Vn;new Promise(function(bn){var Mn=Hr.action;return typeof Mn=="function"&&(Mn=Mn(Ht)),bn(Mn)}).then(function(bn){var Mn=Ht.uid,jt=Hr.customRequest||t,St=Promise.resolve(gi(Ht)).then(function(Ie){var _e=Hr.data;return typeof _e=="function"&&(_e=_e(Ie)),Promise.all([Ie,_e])}).catch(function(Ie){console.error(Ie)});St.then(function(Ie){var _e=T(Ie,2),Le=_e[0],Ze=_e[1],it={action:bn,filename:Hr.name,data:Ze,file:Le,headers:Hr.headers,withCredentials:Hr.withCredentials,method:Hr.method||"post",onProgress:Nn?function(ft){Nn(ft,Ht)}:null,onSuccess:function(Nt,Ar){delete dt.reqs[Mn],Hr.onSuccess(Nt,Ht,Ar)},onError:function(Nt,Ar){delete dt.reqs[Mn],Hr.onError(Nt,Ar,Ht)}};dn(Ht),dt.reqs[Mn]=jt(it)})})}},{key:"reset",value:function(){this.setState({uid:u()})}},{key:"abort",value:function(Ht){var dt=this.reqs;if(Ht){var Hr=Ht;Ht&&Ht.uid&&(Hr=Ht.uid),dt[Hr]&&dt[Hr].abort&&dt[Hr].abort(),delete dt[Hr]}else Object.keys(dt).forEach(function(dn){dt[dn]&&dt[dn].abort&&dt[dn].abort(),delete dt[dn]})}},{key:"render",value:function(){var Ht,dt=this.props,Hr=dt.component,dn=dt.prefixCls,Nn=dt.className,Vn=dt.disabled,gi=dt.id,bn=dt.style,Mn=dt.multiple,jt=dt.accept,St=dt.children,Ie=dt.directory,_e=dt.openFileDialogOnClick,Le=dt.onMouseEnter,Ze=dt.onMouseLeave,it=_(dt,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),ft=n()((Ht={},b(Ht,dn,!0),b(Ht,dn+"-disabled",Vn),b(Ht,Nn,Nn),Ht)),Nt=Vn?{}:{onClick:_e?this.onClick:function(){},onKeyDown:_e?this.onKeyDown:function(){},onMouseEnter:Le,onMouseLeave:Ze,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.a.createElement(Hr,x({},Nt,{className:ft,role:"button",style:bn}),r.a.createElement("input",x({},D(it),{id:gi,type:"file",ref:this.saveFileInput,onClick:function(Mr){return Mr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:jt,directory:Ie?"directory":null,webkitdirectory:Ie?"webkitdirectory":null,multiple:Mn,onChange:this.onChange})),St)}}]),dr}(o.Component),P=R,M=Object.assign||function(ar){for(var dr=1;dr<arguments.length;dr++){var er=arguments[dr];for(var Ht in er)Object.prototype.hasOwnProperty.call(er,Ht)&&(ar[Ht]=er[Ht])}return ar},U=function(){function ar(dr,er){for(var Ht=0;Ht<er.length;Ht++){var dt=er[Ht];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(dr,dt.key,dt)}}return function(dr,er,Ht){return er&&ar(dr.prototype,er),Ht&&ar(dr,Ht),dr}}();function F(ar,dr){if(!(ar instanceof dr))throw new TypeError("Cannot call a class as a function")}function j(ar,dr){if(!ar)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dr&&(typeof dr=="object"||typeof dr=="function")?dr:ar}function W(ar,dr){if(typeof dr!="function"&&dr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof dr);ar.prototype=Object.create(dr&&dr.prototype,{constructor:{value:ar,enumerable:!1,writable:!0,configurable:!0}}),dr&&(Object.setPrototypeOf?Object.setPrototypeOf(ar,dr):ar.__proto__=dr)}function V(){}var z=function(ar){W(dr,ar);function dr(){var er,Ht,dt,Hr;F(this,dr);for(var dn=arguments.length,Nn=Array(dn),Vn=0;Vn<dn;Vn++)Nn[Vn]=arguments[Vn];return Hr=(Ht=(dt=j(this,(er=dr.__proto__||Object.getPrototypeOf(dr)).call.apply(er,[this].concat(Nn))),dt),dt.saveUploader=function(gi){dt.uploader=gi},Ht),j(dt,Hr)}return U(dr,[{key:"abort",value:function(Ht){this.uploader.abort(Ht)}},{key:"render",value:function(){return r.a.createElement(P,M({},this.props,{ref:this.saveUploader}))}}]),dr}(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 Y=z,$=Y,ue=function(ar,dr){var er={};for(var Ht in ar)Object.prototype.hasOwnProperty.call(ar,Ht)&&dr.indexOf(Ht)<0&&(er[Ht]=ar[Ht]);if(ar!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ht=Object.getOwnPropertySymbols(ar);dt<Ht.length;dt++)dr.indexOf(Ht[dt])<0&&Object.prototype.propertyIsEnumerable.call(ar,Ht[dt])&&(er[Ht[dt]]=ar[Ht[dt]]);return er},ne=function(dr,er){var Ht=dr.style,dt=dr.height,Hr=ue(dr,["style","height"]);return o.createElement(or,m()({ref:er},Hr,{type:"drag",style:m()(m()({},Ht),{height:dt})}))},ge=o.forwardRef(ne);ge.displayName="Dragger";var Oe=ge,De=d("UmKh"),He=d("gZBC"),pe=d.n(He),Ue=d("+d4F"),oe=d.n(Ue),ee=d("XAae"),Xe=d.n(ee),se=d("6xvX"),Q=d.n(se),G=d("qPY4"),J=d.n(G),ve=d("QB+1"),de=d.n(ve),Ce=d("Qs3X"),Ee=d.n(Ce),le=d("0n0R");function fe(){return!0}function xe(ar){return m()(m()({},ar),{lastModified:ar.lastModified,lastModifiedDate:ar.lastModifiedDate,name:ar.name,size:ar.size,type:ar.type,uid:ar.uid,percent:0,originFileObj:ar})}function Qe(ar,dr){var er=ar.uid!==void 0?"uid":"name";return dr.filter(function(Ht){return Ht[er]===ar[er]})[0]}function ot(ar,dr){var er=ar.uid!==void 0?"uid":"name",Ht=dr.filter(function(dt){return dt[er]!==ar[er]});return Ht.length===dr.length?null:Ht}var Je=function(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",er=dr.split("/"),Ht=er[er.length-1],dt=Ht.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(dt)||[""])[0]},Te=function(dr){return dr.indexOf("image/")===0},et=function(dr){if(dr.type&&!dr.thumbUrl)return Te(dr.type);var er=dr.thumbUrl||dr.url,Ht=Je(er);return/^data:image\//.test(er)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Ht)?!0:/^data:/.test(er)?!1:!Ht},ze=200;function nt(ar){return new Promise(function(dr){if(!ar.type||!Te(ar.type)){dr("");return}var er=document.createElement("canvas");er.width=ze,er.height=ze,er.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ze,"px; height: ").concat(ze,"px; z-index: 9999; display: none;"),document.body.appendChild(er);var Ht=er.getContext("2d"),dt=new Image;dt.onload=function(){var Hr=dt.width,dn=dt.height,Nn=ze,Vn=ze,gi=0,bn=0;Hr<dn?(Vn=dn*(ze/Hr),bn=-(Vn-Nn)/2):(Nn=Hr*(ze/dn),gi=-(Nn-Vn)/2),Ht.drawImage(dt,gi,bn,Nn,Vn);var Mn=er.toDataURL();document.body.removeChild(er),dr(Mn)},dt.src=window.URL.createObjectURL(ar)})}var Ot=d("3S7+"),Ct=d("CFYs"),Tt=d("H84U"),Dt=d("2/Rp"),Be=d("hkKa"),ie=function(dr,er){var Ht,dt=dr.listType,Hr=dr.previewFile,dn=dr.onPreview,Nn=dr.onDownload,Vn=dr.onRemove,gi=dr.locale,bn=dr.iconRender,Mn=dr.isImageUrl,jt=dr.prefixCls,St=dr.items,Ie=St===void 0?[]:St,_e=dr.showPreviewIcon,Le=dr.showRemoveIcon,Ze=dr.showDownloadIcon,it=dr.removeIcon,ft=dr.downloadIcon,Nt=dr.progress,Ar=Object(Be.a)();o.useEffect(function(){if(dt!=="picture"&&dt!=="picture-card")return;(Ie||[]).forEach(function(hr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(hr.originFileObj instanceof File||hr.originFileObj instanceof Blob)||hr.thumbUrl!==void 0)return;hr.thumbUrl="",Hr&&Hr(hr.originFileObj).then(function(gr){hr.thumbUrl=gr||"",Ar()})})},[dt,Ie,Hr]);var Mr=function(gr,Jr){return dn?(Jr.preventDefault(),dn(gr)):void 0},un=function(gr){typeof Nn=="function"?Nn(gr):gr.url&&window.open(gr.url)},Mt=function(gr){Vn&&Vn(gr)},at=function(gr){if(bn)return bn(gr,dt);var Jr=gr.status==="uploading",$r=Mn&&Mn(gr)?o.createElement(Xe.a,null):o.createElement(Q.a,null),Pn=Jr?o.createElement(pe.a,null):o.createElement(oe.a,null);return dt==="picture"?Pn=Jr?o.createElement(pe.a,null):$r:dt==="picture-card"&&(Pn=Jr?gi.uploading:$r),Pn},lt=function(gr,Jr,$r,Pn){var Dn={type:"text",size:"small",title:Pn,onClick:function(Ai){Jr(),Object(le.b)(gr)&&gr.props.onClick&&gr.props.onClick(Ai)},className:"".concat($r,"-list-item-card-actions-btn")};if(Object(le.b)(gr)){var Zn=Object(le.a)(gr,m()(m()({},gr.props),{onClick:function(){}}));return o.createElement(Dt.a,m()({},Dn,{icon:Zn}))}return o.createElement(Dt.a,Dn,o.createElement("span",null,gr))};o.useImperativeHandle(er,function(){return{handlePreview:Mr,handleDownload:un}});var rr=o.useContext(Tt.b),Bt=rr.getPrefixCls,_t=rr.direction,Kt=Bt("upload",jt),wt=Ie.map(function(hr){var gr,Jr,$r,Pn=at(hr),Dn=o.createElement("div",{className:"".concat(Kt,"-text-icon")},Pn);if(dt==="picture"||dt==="picture-card")if(hr.status==="uploading"||!hr.thumbUrl&&!hr.url){var Zn,li=n()((Zn={},E()(Zn,"".concat(Kt,"-list-item-thumbnail"),!0),E()(Zn,"".concat(Kt,"-list-item-file"),hr.status!=="uploading"),Zn));Dn=o.createElement("div",{className:li},Pn)}else{var Ai,Ii=Mn&&Mn(hr)?o.createElement("img",{src:hr.thumbUrl||hr.url,alt:hr.name,className:"".concat(Kt,"-list-item-image")}):Pn,$e=n()((Ai={},E()(Ai,"".concat(Kt,"-list-item-thumbnail"),!0),E()(Ai,"".concat(Kt,"-list-item-file"),Mn&&!Mn(hr)),Ai));Dn=o.createElement("a",{className:$e,onClick:function(en){return Mr(hr,en)},href:hr.url||hr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ii)}if(hr.status==="uploading"){var Se="percent"in hr?o.createElement(Ct.a,m()({},Nt,{type:"line",percent:hr.percent})):null;$r=o.createElement("div",{className:"".concat(Kt,"-list-item-progress"),key:"progress"},Se)}var Re=n()((gr={},E()(gr,"".concat(Kt,"-list-item"),!0),E()(gr,"".concat(Kt,"-list-item-").concat(hr.status),!0),E()(gr,"".concat(Kt,"-list-item-list-type-").concat(dt),!0),gr)),je=typeof hr.linkProps=="string"?JSON.parse(hr.linkProps):hr.linkProps,Ye=Le?lt(it||o.createElement(de.a,null),function(){return Mt(hr)},Kt,gi.removeFile):null,Ve=Ze&&hr.status==="done"?lt(ft||o.createElement(Ee.a,null),function(){return un(hr)},Kt,gi.downloadFile):null,qe=dt!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(Kt,"-list-item-card-actions ").concat(dt==="picture"?"picture":"")},Ve,Ye),xt=n()((Jr={},E()(Jr,"".concat(Kt,"-list-item-name"),!0),E()(Jr,"".concat(Kt,"-list-item-name-icon-count-").concat([Ve,Ye].filter(function(mn){return mn}).length),!0),Jr)),ct=hr.url?[o.createElement("a",m()({key:"view",target:"_blank",rel:"noopener noreferrer",className:xt,title:hr.name},je,{href:hr.url,onClick:function(en){return Mr(hr,en)}}),hr.name),qe]:[o.createElement("span",{key:"view",className:xt,onClick:function(en){return Mr(hr,en)},title:hr.name},hr.name),qe],Jt={pointerEvents:"none",opacity:.5},Rr=_e?o.createElement("a",{href:hr.url||hr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:hr.url||hr.thumbUrl?void 0:Jt,onClick:function(en){return Mr(hr,en)},title:gi.previewFile},o.createElement(J.a,null)):null,Ir=dt==="picture-card"&&hr.status!=="uploading"&&o.createElement("span",{className:"".concat(Kt,"-list-item-actions")},Rr,hr.status==="done"&&Ve,Ye),Xr;hr.response&&typeof hr.response=="string"?Xr=hr.response:Xr=hr.error&&hr.error.statusText||gi.uploadError;var qt=o.createElement("span",null,Dn,ct),pn=o.createElement("div",{className:Re},o.createElement("div",{className:"".concat(Kt,"-list-item-info")},qt),Ir,o.createElement(De.a,{transitionName:"fade",component:""},$r)),fr=n()(E()({},"".concat(Kt,"-list-picture-card-container"),dt==="picture-card"));return o.createElement("div",{key:hr.uid,className:fr},hr.status==="error"?o.createElement(Ot.a,{title:Xr,getPopupContainer:function(en){return en.parentNode}},pn):o.createElement("span",null,pn))}),Ut=n()((Ht={},E()(Ht,"".concat(Kt,"-list"),!0),E()(Ht,"".concat(Kt,"-list-").concat(dt),!0),E()(Ht,"".concat(Kt,"-list-rtl"),_t==="rtl"),Ht)),Sr=dt==="picture-card"?"animate-inline":"animate";return o.createElement(De.a,{transitionName:"".concat(Kt,"-").concat(Sr),component:"div",className:Ut},wt)},X=o.forwardRef(ie);X.displayName="UploadList",X.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:nt,isImageUrl:et};var Fe=X,Ne=d("YMnH"),q=d("ZvpZ"),ht=d("uaoM"),Rt=d("sPtV"),ut=function(dr,er){var Ht,dt=dr.fileList,Hr=dr.defaultFileList,dn=dr.onRemove,Nn=dr.showUploadList,Vn=dr.listType,gi=dr.onPreview,bn=dr.onDownload,Mn=dr.previewFile,jt=dr.disabled,St=dr.locale,Ie=dr.iconRender,_e=dr.isImageUrl,Le=dr.progress,Ze=dr.prefixCls,it=dr.className,ft=dr.type,Nt=dr.children,Ar=dr.style,Mr=Object(Rt.a)(dt||Hr||[]),un=c()(Mr,2),Mt=un[0],at=un[1],lt=o.useState("drop"),rr=c()(lt,2),Bt=rr[0],_t=rr[1],Kt=o.useRef();o.useEffect(function(){at(dt||Hr||[]),Object(ht.a)("fileList"in dr||!("value"in dr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in dr&&at(dt||[])},[dt]);var wt=function(ct){"fileList"in dr||at(ct.fileList);var Jt=dr.onChange;Jt&&Jt(m()(m()({},ct),{fileList:A()(ct.fileList)}))},Ut=function(ct){var Jt=xe(ct);Jt.status="uploading";var Rr=Mt().concat(),Ir=Rr.findIndex(function(Xr){var qt=Xr.uid;return qt===Jt.uid});Ir===-1?Rr.push(Jt):Rr[Ir]=Jt,wt({file:Jt,fileList:Rr})},Sr=function(ct,Jt,Rr){try{typeof ct=="string"&&(ct=JSON.parse(ct))}catch(Xr){}var Ir=Qe(Jt,Mt());if(!Ir)return;Ir.status="done",Ir.response=ct,Ir.xhr=Rr,wt({file:m()({},Ir),fileList:Mt().concat()})},hr=function(ct,Jt){var Rr=Qe(Jt,Mt());if(!Rr)return;Rr.percent=ct.percent,wt({event:ct,file:m()({},Rr),fileList:Mt().concat()})},gr=function(ct,Jt,Rr){var Ir=Qe(Rr,Mt());if(!Ir)return;Ir.error=ct,Ir.response=Jt,Ir.status="error",wt({file:m()({},Ir),fileList:Mt().concat()})},Jr=function(ct){Promise.resolve(typeof dn=="function"?dn(ct):dn).then(function(Jt){if(Jt===!1)return;var Rr=ot(ct,Mt());Rr&&(ct.status="removed",Kt.current&&Kt.current.abort(ct),wt({file:ct,fileList:Rr}))})},$r=function(ct){_t(ct.type)},Pn=function(ct,Jt){var Rr=dr.beforeUpload;if(!Rr)return!0;var Ir=Rr(ct,Jt);if(Ir===!1){var Xr=[];return Mt().concat(Jt.map(xe)).forEach(function(qt){Xr.every(function(pn){return pn.uid!==qt.uid})&&Xr.push(qt)}),wt({file:ct,fileList:Xr}),!1}return Ir&&Ir.then?Ir:!0},Dn=Object(Be.a)();o.useImperativeHandle(er,function(){return{onStart:Ut,onSuccess:Sr,onProgress:hr,onError:gr,fileList:Mt(),upload:Kt.current,forceUpdate:Dn}});var Zn=function(ct){var Jt=Nn.showRemoveIcon,Rr=Nn.showPreviewIcon,Ir=Nn.showDownloadIcon,Xr=Nn.removeIcon,qt=Nn.downloadIcon;return o.createElement(Fe,{listType:Vn,items:Mt(),previewFile:Mn,onPreview:gi,onDownload:bn,onRemove:Jr,showRemoveIcon:!jt&&Jt,showPreviewIcon:Rr,showDownloadIcon:Ir,removeIcon:Xr,downloadIcon:qt,iconRender:Ie,locale:m()(m()({},ct),St),isImageUrl:_e,progress:Le})},li=o.useContext(Tt.b),Ai=li.getPrefixCls,Ii=li.direction,$e=Ai("upload",Ze),Se=m()(m()({onStart:Ut,onError:gr,onProgress:hr,onSuccess:Sr},dr),{prefixCls:$e,beforeUpload:Pn});delete Se.className,delete Se.style,(!Nt||jt)&&delete Se.id;var Re=Nn?o.createElement(Ne.a,{componentName:"Upload",defaultLocale:q.a.Upload},Zn):null;if(ft==="drag"){var je,Ye=n()($e,(je={},E()(je,"".concat($e,"-drag"),!0),E()(je,"".concat($e,"-drag-uploading"),Mt().some(function(xt){return xt.status==="uploading"})),E()(je,"".concat($e,"-drag-hover"),Bt==="dragover"),E()(je,"".concat($e,"-disabled"),jt),E()(je,"".concat($e,"-rtl"),Ii==="rtl"),je),it);return o.createElement("span",null,o.createElement("div",{className:Ye,onDrop:$r,onDragOver:$r,onDragLeave:$r,style:Ar},o.createElement($,m()({},Se,{ref:Kt,className:"".concat($e,"-btn")}),o.createElement("div",{className:"".concat($e,"-drag-container")},Nt))),Re)}var Ve=n()($e,(Ht={},E()(Ht,"".concat($e,"-select"),!0),E()(Ht,"".concat($e,"-select-").concat(Vn),!0),E()(Ht,"".concat($e,"-disabled"),jt),E()(Ht,"".concat($e,"-rtl"),Ii==="rtl"),Ht)),qe=o.createElement("div",{className:Ve,style:Nt?void 0:{display:"none"}},o.createElement($,m()({},Se,{ref:Kt})));return Vn==="picture-card"?o.createElement("span",{className:n()(it,"".concat($e,"-picture-card-wrapper"))},Re,qe):o.createElement("span",{className:it},qe,Re)},Xt=o.forwardRef(ut);Xt.Dragger=Oe,Xt.displayName="Upload",Xt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:fe,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var or=Xt;or.Dragger=Oe;var Zr=B.a=or},"98bh":function(H,B,d){var O=d("ProS"),E=d("5GtS"),C=d("bYtY"),A=d("4NO4"),w=d("OELB"),m=w.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 E(this,{coordDimensions:["value"],encodeDefaulter:C.curry(i,this)})},_createSelectableList:function(){for(var t=this.getRawData(),a=t.mapDimension("value"),l=[],u=0,h=t.count();u<h;u++)l.push({name:t.getName(u),value:t.get(a,u),selected:o(t,u,"selected")});return l},getDataParams:function(t){var a=this.getData(),l=e.superCall(this,"getDataParams",t),u=[];return a.each(a.mapDimension("value"),function(h){u.push(h)}),l.percent=m(u,t,a.hostModel.get("percentPrecision")),l.$vars.push("percent"),l},_defaultLabelLine:function(t){A.defaultEmphasis(t,"labelLine",["show"]);var a=t.labelLine,l=t.emphasis.labelLine;a.show=a.show&&t.label.show,l.show=l.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});C.mixin(e,f);var s=e;H.exports=s},"9H2F":function(H,B,d){var O=d("bYtY"),E=O.assert,C=O.isArray,A=d("Tghj"),w=A.__DEV__;function m(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,s=n&&n.skip;if(this._dirty&&e){var t=this.context;t.data=t.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!s&&(a=this._plan(this.context));var l=g(this._modBy),u=this._modDataCount||0,h=g(n&&n.modBy),p=n&&n.modDataCount||0;(l!==h||u!==p)&&(a="reset");function g(I){return!(I>=1)&&(I=1),I}var v;(this._dirty||a==="reset")&&(this._dirty=!1,v=i(this,s)),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 x=this._dueIndex,T=Math.min(y!=null?this._dueIndex+y:Infinity,this._dueEnd);if(!s&&(v||x<T)){var S=this._progress;if(C(S))for(var b=0;b<S.length;b++)r(this,S[b],x,T,h,p);else r(this,S,x,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,s,t,a,l={reset:function(p,g,v,y){e=p,n=g,s=v,t=y,a=Math.ceil(t/s),l.next=s>1&&t>0?h:u}};return l;function u(){return e<n?e++:null}function h(){var p=e%a*s+Math.ceil(e/a),g=e>=n?null:p<t?p:e;return e++,g}}();c.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function r(n,e,s,t,a,l){o.reset(s,t,a,l),n._callingProgress=e,n._callingProgress({start:s,end:t,count:t-s,next:o.next},n.context)}function i(n,e){n._dueIndex=n._outputDueEnd=n._dueEnd=0,n._settedOutputEnd=null;var s,t;!e&&n._reset&&(s=n._reset(n.context),s&&s.progress&&(t=s.forceFirstProgress,s=s.progress),C(s)&&!s.length&&(s=null)),n._progress=s,n._modBy=n._modDataCount=null;var a=n._downstream;return a&&a.dirty(),t}c.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},c.pipe=function(n){(this._downstream!==n||this._dirty)&&(this._downstream=n,n._upstream=this,n.dirty())},c.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},c.getUpstream=function(){return this._upstream},c.getDownstream=function(){return this._downstream},c.setOutputEnd=function(n){this._outputDueEnd=this._settedOutputEnd=n},B.createTask=m},"9KIM":function(H,B,d){var O=d("mFDi"),E=d("xSat"),C=E.onIrrelevantElement,A=d("IwbS");function w(o){return o=c(o),function(r,i){return A.clipPointsByRect(r,o)}}function m(o,r){return o=c(o),function(i){var n=r!=null?r:i,e=n?o.width:o.height,s=n?o.x:o.y;return[s,s+(e||0)]}}function f(o,r,i){return o=c(o),function(n,e,s){return o.contain(e[0],e[1])&&!C(n,r,i)}}function c(o){return O.create(o)}B.makeRectPanelClipPath=w,B.makeLinearBrushOtherExtent=m,B.makeRectIsTargetByCursor=f},"9OqN":function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CTR=function(){var E=O.lib.BlockCipherMode.extend(),C=E.Encryptor=E.extend({processBlock:function(w,m){var 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++)w[m+n]^=i[n]}});return E.Decryptor=C,E}(),O.mode.CTR})},"9ama":function(H,B,d){},"9eas":function(H,B,d){d("HM/N"),d("tBnm")},"9hCq":function(H,B,d){var O=d("IwbS"),E=d("+TT/"),C=d("bYtY"),A=d("VaxA"),w=A.wrapTreePathInfo,m=8,f=8,c=5;function o(e){this.group=new O.Group,e.add(this.group)}o.prototype={constructor:o,render:function(e,s,t,a){var l=e.getModel("breadcrumb"),u=this.group;if(u.removeAll(),!l.get("show")||!t)return;var h=l.getModel("itemStyle"),p=h.getModel("textStyle"),g={pos:{left:l.get("left"),right:l.get("right"),top:l.get("top"),bottom:l.get("bottom")},box:{width:s.getWidth(),height:s.getHeight()},emptyItemWidth:l.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(t,g,p),this._renderContent(e,g,h,p,a),E.positionElement(u,g.pos,g.box)},_prepare:function(e,s,t){for(var a=e;a;a=a.parentNode){var l=a.getModel().get("name"),u=t.getTextRect(l),h=Math.max(u.width+m*2,s.emptyItemWidth);s.totalWidth+=h+f,s.renderList.push({node:a,text:l,width:h})}},_renderContent:function(e,s,t,a,l){for(var u=0,h=s.emptyItemWidth,p=e.get("breadcrumb.height"),g=E.getAvailableSize(s.pos,s.box),v=s.totalWidth,y=s.renderList,x=y.length-1;x>=0;x--){var T=y[x],S=T.node,b=T.width,_=T.text;v>g.width&&(v-=b-h,b=h,_=null);var I=new O.Polygon({shape:{points:r(u,0,b,p,x===y.length-1,x===0)},style:C.defaults(t.getItemStyle(),{lineJoin:"bevel",text:_,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:C.curry(l,S)});this.group.add(I),i(I,e,S),u+=b+f}},remove:function(){this.group.removeAll()}};function r(e,s,t,a,l,u){var h=[[l?e:e-c,s],[e+t,s],[e+t,s+a],[l?e:e-c,s+a]];return!u&&h.splice(2,0,[e+t+c,s+a/2]),!l&&h.push([e,s+a/2]),h}function i(e,s,t){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:s.componentIndex,seriesIndex:s.componentIndex,seriesName:s.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&w(t,s)}}var n=o;H.exports=n},"9u0u":function(H,B,d){var O=d("bYtY");function E(A,w){var m={};return O.each(A,function(f){f.each(f.mapDimension("value"),function(c,o){var r="ec-"+f.getName(o);m[r]=m[r]||[],isNaN(c)||m[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=m[o].length,s=0;s<e;s++)i=Math.min(i,m[o][s]),n=Math.max(n,m[o][s]),r+=m[o][s];var t;return w==="min"?t=i:w==="max"?t=n:w==="average"?t=r/e:t=r,e===0?NaN:t})}function C(A){var w={};A.eachSeriesByType("map",function(m){var f=m.getHostGeoModel(),c=f?"o"+f.id:"i"+m.getMapType();(w[c]=w[c]||[]).push(m)}),O.each(w,function(m,f){for(var c=E(O.map(m,function(r){return r.getData()}),m[0].get("mapValueCalculation")),o=0;o<m.length;o++)m[o].originalData=m[o].getData();for(var o=0;o<m.length;o++)m[o].seriesGroup=m,m[o].needsDrawMap=o===0&&!m[o].getHostGeoModel(),m[o].setData(c.cloneShallow()),m[o].mainSeries=m[0]})}H.exports=C},"9wZj":function(H,B,d){var O=d("IwbS"),E=d("FBjb"),C=d("bYtY"),A=C.isObject;function w(i){this.group=new O.Group,this._symbolCtor=i||E}var m=w.prototype;function f(i,n,e,s){return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(s.isIgnore&&s.isIgnore(e))&&!(s.clipShape&&!s.clipShape.contain(n[0],n[1]))&&i.getItemVisual(e,"symbol")!=="none"}m.updateData=function(i,n){n=c(n);var e=this.group,s=i.hostModel,t=this._data,a=this._symbolCtor,l=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,l);p.attr("position",h),i.setItemGraphicEl(u,p),e.add(p)}}).update(function(u,h){var p=t.getItemGraphicEl(h),g=i.getItemLayout(u);if(!f(i,g,u,n)){e.remove(p);return}p?(p.updateData(i,u,l),O.updateProps(p,{position:g},s)):(p=new a(i,u),p.attr("position",g)),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},m.isPersistent=function(){return!0},m.updateLayout=function(){var i=this._data;i&&i.eachItemGraphicEl(function(n,e){var s=i.getItemLayout(e);n.attr("position",s)})},m.incrementalPrepareUpdate=function(i){this._seriesScope=o(i),this._data=null,this.group.removeAll()},m.incrementalUpdate=function(i,n,e){e=c(e);function s(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 l=new this._symbolCtor(n,t,this._seriesScope);l.traverse(s),l.attr("position",a),this.group.add(l),n.setItemGraphicEl(t,l)}}};function c(i){return i!=null&&!A(i)&&(i={isIgnore:i}),i||{}}m.remove=function(i){var n=this.group,e=this._data;e&&i?e.eachItemGraphicEl(function(s){s.fadeOut(function(){n.remove(s)})}):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=w;H.exports=r},"9yH6":function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("q1tI"),m=d("x1Ya"),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=w.createContext(null),i=r.Provider,n=r,e=d("cDf5"),s=d.n(e);function t(R,P){typeof R=="function"?R(P):s()(R)==="object"&&R&&"current"in R&&(R.current=P)}function a(){for(var R=arguments.length,P=new Array(R),M=0;M<R;M++)P[M]=arguments[M];return function(U){P.forEach(function(F){t(F,U)})}}var l=d("uaoM"),u=function(R,P){var M={};for(var U in R)Object.prototype.hasOwnProperty.call(R,U)&&P.indexOf(U)<0&&(M[U]=R[U]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,U=Object.getOwnPropertySymbols(R);F<U.length;F++)P.indexOf(U[F])<0&&Object.prototype.propertyIsEnumerable.call(R,U[F])&&(M[U[F]]=R[U[F]]);return M},h=function(P,M){var U,F=w.useContext(n),j=w.useContext(o.b),W=j.getPrefixCls,V=j.direction,z=w.useRef(),Y=a(M,z);w.useEffect(function(){Object(l.a)(!("optionType"in P),"Radio","`optionType` is only support in Radio.Group.")},[]);var $=function(ee){P.onChange&&P.onChange(ee),(F==null?void 0:F.onChange)&&F.onChange(ee)},ue=P.prefixCls,ne=P.className,ge=P.children,Oe=P.style,De=u(P,["prefixCls","className","children","style"]),He=W("radio",ue),pe=A()({},De);F&&(pe.name=F.name,pe.onChange=$,pe.checked=P.value===F.value,pe.disabled=P.disabled||F.disabled);var Ue=c()(ne,(U={},E()(U,"".concat(He,"-wrapper"),!0),E()(U,"".concat(He,"-wrapper-checked"),pe.checked),E()(U,"".concat(He,"-wrapper-disabled"),pe.disabled),E()(U,"".concat(He,"-wrapper-rtl"),V==="rtl"),U));return w.createElement("label",{className:Ue,style:Oe,onMouseEnter:P.onMouseEnter,onMouseLeave:P.onMouseLeave},w.createElement(m.a,A()({},pe,{prefixCls:He,ref:Y})),ge!==void 0?w.createElement("span",null,ge):null)},p=w.forwardRef(h);p.displayName="Radio",p.defaultProps={type:"radio"};var g=p,v=d("J4zp"),y=d.n(v),x=d("6cGi"),T=d("3Nzz"),S=w.forwardRef(function(R,P){var M=w.useContext(o.b),U=M.getPrefixCls,F=M.direction,j=w.useContext(T.b),W=Object(x.a)(R.defaultValue,{value:R.value}),V=y()(W,2),z=V[0],Y=V[1],$=function(ge){var Oe=z,De=ge.target.value;"value"in R||Y(De);var He=R.onChange;He&&De!==Oe&&He(ge)},ue=function(){var ge,Oe=R.prefixCls,De=R.className,He=De===void 0?"":De,pe=R.options,Ue=R.optionType,oe=R.buttonStyle,ee=R.disabled,Xe=R.children,se=R.size,Q=R.style,G=R.id,J=R.onMouseEnter,ve=R.onMouseLeave,de=U("radio",Oe),Ce="".concat(de,"-group"),Ee=Xe;if(pe&&pe.length>0){var le=Ue==="button"?"".concat(de,"-button"):de;Ee=pe.map(function(Qe){return typeof Qe=="string"?w.createElement(g,{ref:P,key:Qe,prefixCls:le,disabled:ee,value:Qe,checked:z===Qe},Qe):w.createElement(g,{ref:P,key:"radio-group-value-options-".concat(Qe.value),prefixCls:le,disabled:Qe.disabled||ee,value:Qe.value,checked:z===Qe.value,style:Qe.style},Qe.label)})}var fe=se||j,xe=c()(Ce,"".concat(Ce,"-").concat(oe),(ge={},E()(ge,"".concat(Ce,"-").concat(fe),fe),E()(ge,"".concat(Ce,"-rtl"),F==="rtl"),ge),He);return w.createElement("div",{className:xe,style:Q,onMouseEnter:J,onMouseLeave:ve,id:G},Ee)};return w.createElement(i,{value:{onChange:$,value:z,disabled:R.disabled,name:R.name}},ue())});S.defaultProps={buttonStyle:"outline"};var b=w.memo(S),_=function(R,P){var M={};for(var U in R)Object.prototype.hasOwnProperty.call(R,U)&&P.indexOf(U)<0&&(M[U]=R[U]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,U=Object.getOwnPropertySymbols(R);F<U.length;F++)P.indexOf(U[F])<0&&Object.prototype.propertyIsEnumerable.call(R,U[F])&&(M[U[F]]=R[U[F]]);return M},I=function(P,M){var U=w.useContext(n),F=w.useContext(o.b),j=F.getPrefixCls,W=P.prefixCls,V=_(P,["prefixCls"]),z=j("radio-button",W);return U&&(V.checked=P.value===U.value,V.disabled=P.disabled||U.disabled),w.createElement(g,A()({prefixCls:z},V,{type:"radio",ref:M}))},L=w.forwardRef(I),N=g;N.Button=L,N.Group=b;var D=B.a=N},A1Ka:function(H,B,d){var O=d("bLfw"),E=d("sS/r"),C=d("D5nY"),A=C.detectSourceFormat,w=d("k9D9"),m=w.SERIES_LAYOUT_BY_COLUMN;O.extend({type:"dataset",defaultOption:{seriesLayoutBy:m,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){A(this)}}),E.extend({type:"dataset"})},ABKa:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("Qs9O")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="FolderOutlined";var c=A.forwardRef(f);B.default=c},AE9C:function(H,B,d){var O=d("bYtY"),E=d("crZl"),C=d("IwbS"),A=d("oVpE"),w=A.createSymbol,m=d("+TT/"),f=d("y7Aq"),c=E.extend({type:"visualMap.piecewise",doRender:function(){var r=this.group;r.removeAll();var i=this.visualMapModel,n=i.get("textGap"),e=i.textStyleModel,s=e.getFont(),t=e.getTextColor(),a=this._getItemAlign(),l=i.itemSize,u=this._getViewData(),h=u.endsText,p=O.retrieve(i.get("showLabel",!0),!h);h&&this._renderEndsText(r,h[0],l,p,a),O.each(u.viewPieceList,g,this),h&&this._renderEndsText(r,h[1],l,p,a),m.box(i.get("orient"),r,i.get("itemGap")),this.renderBackground(r),this.positionGroup(r);function g(v){var y=v.piece,x=new C.Group;x.onclick=O.bind(this._onItemClick,this,y),this._enableHoverLink(x,v.indexInModelPieceList);var T=i.getRepresentValue(y);if(this._createItemSymbol(x,T,[0,0,l[0],l[1]]),p){var S=this.visualMapModel.getValueState(T);x.add(new C.Text({style:{x:a==="right"?-n:l[0]+n,y:l[1]/2,text:y.text,textVerticalAlign:"middle",textAlign:a,textFont:s,textFill:t,opacity:S==="outOfRange"?.5:1}}))}r.add(x)}},_enableHoverLink:function(r,i){r.on("mouseover",O.bind(n,this,"highlight")).on("mouseout",O.bind(n,this,"downplay"));function n(e){var s=this.visualMapModel;s.option.hoverLink&&this.api.dispatchAction({type:e,batch:f.makeHighDownBatch(s.findTargetDataIndices(i),s)})}},_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,s){if(!i)return;var t=new C.Group,a=this.visualMapModel.textStyleModel;t.add(new C.Text({style:{x:e?s==="right"?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:e?s:"center",text: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"),s=r.get("inverse");return(e==="horizontal"?s:!s)?i.reverse():n&&(n=n.slice().reverse()),{viewPieceList:i,endsText:n}},_createItemSymbol:function(r,i,n){r.add(w(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),s=i.getSelectedMapKey(r);n.selectedMode==="single"?(e[s]=!0,O.each(e,function(t,a){e[a]=a===s})):e[s]=!e[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),o=c;H.exports=o},AEZ6:function(H,B,d){var O=d("bYtY"),E=O.each,C=O.createHashMap,A=d("T4UG"),w=d("MwEJ"),m=A.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(o,r){var i=this.getSource();return f(i,this),w(i,this)},getRawIndicesByActiveState:function(o){var r=this.coordinateSystem,i=this.getData(),n=[];return r.eachActiveState(i,function(e,s){o===e&&n.push(i.getRawIndex(s))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function f(o,r){if(o.encodeDefine)return;var i=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!i)return;var n=o.encodeDefine=C();E(i.dimensions,function(e){var s=c(e);n.set(e,s)})}function c(o){return+o.replace("dim","")}H.exports=m},AH3D:function(H,B,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,B,d){var O=d("ProS"),E=d("bYtY"),C=d("5GtS"),A=d("4NO4"),w=A.defaultEmphasis,m=d("D5nY"),f=m.makeSeriesEncodeForNameBased,c=d("xKMd"),o=O.extendSeriesModel({type:"series.funnel",init:function(i){o.superApply(this,"init",arguments),this.legendVisualProvider=new c(E.bind(this.getData,this),E.bind(this.getRawData,this)),this._defaultLabelLine(i)},getInitialData:function(i,n){return C(this,{coordDimensions:["value"],encodeDefaulter:E.curry(f,this)})},_defaultLabelLine:function(i){w(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),s=n.mapDimension("value"),t=n.getSum(s);return e.percent=t?+(n.get(s,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,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CFB=function(){var E=O.lib.BlockCipherMode.extend();E.Encryptor=E.extend({processBlock:function(w,m){var f=this._cipher,c=f.blockSize;C.call(this,w,m,c,f),this._prevBlock=w.slice(m,m+c)}}),E.Decryptor=E.extend({processBlock:function(w,m){var f=this._cipher,c=f.blockSize,o=w.slice(m,m+c);C.call(this,w,m,c,f),this._prevBlock=o}});function C(A,w,m,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<m;r++)A[w+r]^=c[r]}return E}(),O.mode.CFB})},ANjR:function(H,B,d){var O=d("bYtY");function E(A,w){return w=w||[0,0],O.map([0,1],function(m){var f=w[m],c=A[m]/2,o=[],r=[];return o[m]=f-c,r[m]=f+c,o[1-m]=r[1-m]=w[1-m],Math.abs(this.dataToPoint(o)[m]-this.dataToPoint(r)[m])},this)}function C(A){var w=A.getBoundingRect();return{coordSys:{type:"geo",x:w.x,y:w.y,width:w.width,height:w.height,zoom:A.getZoom()},api:{coord:function(m){return A.dataToPoint(m)},size:O.bind(E,A)}}}H.exports=C},AOa7:function(H,B,d){},AUH6:function(H,B,d){var O=d("bYtY"),E=d("mFDi"),C=d("bMXI"),A=d("W4dC");function w(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}w.prototype={constructor:w,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 s=this._rawTransformable;if(s.transform=n.calculateTransform(new E(c,o,r,i)),s.decomposeTransform(),e){var t=s.scale;t[1]=-t[1]}s.updateTransform(),this._updateTransform()},getRegion:function(c){return this._regionsMap.get(c)},getRegionByCoord:function(c){for(var 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(m,"dataToPoint"),convertFromPixel:O.curry(m,"pointToData")},O.mixin(w,C);function m(c,o,r,i){var n=r.geoModel,e=r.seriesModel,s=n?n.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return s===this?s[c](i):null}var f=w;H.exports=f},AVZG:function(H,B,d){var O=d("bYtY");function E(C,A,w){w=w||{};var m=C.coordinateSystem,f=A.axis,c={},o=f.getAxesOnZeroOf()[0],r=f.position,i=o?"onZero":r,n=f.dim,e=m.getRect(),s=[e.x,e.x+e.width,e.y,e.y+e.height],t={left:0,right:1,top:0,bottom:1,onZero:2},a=A.get("offset")||0,l=n==="x"?[s[2]-a,s[3]+a]:[s[0]-a,s[1]+a];if(o){var u=o.toGlobalCoord(o.dataToCoord(0));l[t.onZero]=Math.max(Math.min(u,l[1]),l[0])}c.position=[n==="y"?l[t[i]]:s[0],n==="x"?l[t[i]]:s[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?l[t[r]]-l[t.onZero]:0,A.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),O.retrieve(w.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}B.layout=E},"Ae+d":function(H,B){function d(E,C,A){var w=E.target,m=w.position;m[0]+=C,m[1]+=A,w.dirty()}function O(E,C,A,w){var m=E.target,f=E.zoomLimit,c=m.position,o=m.scale,r=E.zoom=E.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/E.zoom;E.zoom=r,c[0]-=(A-c[0])*(e-1),c[1]-=(w-c[1])*(e-1),o[0]*=e,o[1]*=e,m.dirty()}B.updateViewOnPan=d,B.updateViewOnZoom=O},Ae16:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS");d("Wqna"),d("rySg"),O.extendComponentView({type:"grid",render:function(A,w){this.group.removeAll(),A.get("show")&&this.group.add(new C.Rect({shape:A.coordinateSystem.getRect(),style:E.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,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("PQMj"),A=d.n(C)},"B+YJ":function(H,B,d){d("TYVI"),d("p1MT")},"B6l+":function(H,B,d){var O=d("Sq3C"),E=d("Z1HP"),C=d("Sxd8"),A=d("dt0z");function w(m,f,c){m=A(m),f=C(f);var o=f?E(m):0;return f&&o<f?m+O(f-o,c):m}H.exports=w},B9cy:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("0XgM"),A=d.n(C)},B9fm:function(H,B,d){var O=d("bYtY"),E=d("Qe9p"),C=d("YH21"),A=d("Ze12"),w=d("ItGF"),m=d("7aKB"),f=O.each,c=m.toCamelCase,o=["","-webkit-","-moz-","-o-"],r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function i(l){var u="cubic-bezier(0.23, 1, 0.32, 1)",h="left "+l+"s "+u+",top "+l+"s "+u;return O.map(o,function(p){return p+"transition:"+h}).join(";")}function n(l){var u=[],h=l.get("fontSize"),p=l.getTextColor();return p&&u.push("color:"+p),u.push("font:"+l.getFont()),h&&u.push("line-height:"+Math.round(h*3/2)+"px"),f(["decoration","align"],function(g){var v=l.get(g);v&&u.push("text-"+g+":"+v)}),u.join(";")}function e(l){var u=[],h=l.get("transitionDuration"),p=l.get("backgroundColor"),g=l.getModel("textStyle"),v=l.get("padding");return h&&u.push(i(h)),p&&(w.canvasSupported?u.push("background-Color:"+p):(u.push("background-Color:#"+E.toHex(p)),u.push("filter:alpha(opacity=70)"))),f(["width","color","radius"],function(y){var x="border-"+y,T=c(x),S=l.get(T);S!=null&&u.push(x+":"+S+(y==="color"?"":"px"))}),u.push(n(g)),v!=null&&u.push("padding:"+m.normalizeCssArray(v).join("px ")+"px"),u.join(";")+";"}function s(l,u,h,p,g){var v=u&&u.painter;if(h){var y=v&&v.getViewportRoot();y&&A.transformLocalCoord(l,y,document.body,p,g)}else{l[0]=p,l[1]=g;var x=v&&v.getViewportRootOffset();x&&(l[0]+=x.offsetLeft,l[1]+=x.offsetTop)}}function t(l,u,h){if(w.wxa)return null;var p=document.createElement("div");p.domBelongToZr=!0,this.el=p;var g=this._zr=u.getZr(),v=this._appendToBody=h&&h.appendToBody;this._styleCoord=[0,0],s(this._styleCoord,g,v,u.getWidth()/2,u.getHeight()/2),v?document.body.appendChild(p):l.appendChild(p),this._container=l,this._show=!1,this._hideTimeout;var y=this;p.onmouseenter=function(){y._enterable&&(clearTimeout(y._hideTimeout),y._show=!0),y._inContent=!0},p.onmousemove=function(x){if(x=x||window.event,!y._enterable){var T=g.handler,S=g.painter.getViewportRoot();C.normalizeEvent(S,x,!0),T.dispatch("mousemove",x)}},p.onmouseleave=function(){y._enterable&&(y._show&&y.hideLater(y._hideDelay)),y._inContent=!1}}t.prototype={constructor:t,_enterable:!0,update:function(){var l=this._container,u=l.currentStyle||document.defaultView.getComputedStyle(l),h=l.style;h.position!=="absolute"&&u.position!=="absolute"&&(h.position="relative")},show:function(l){clearTimeout(this._hideTimeout);var u=this.el,h=this._styleCoord;u.style.cssText=r+e(l)+";left:"+h[0]+"px;top:"+h[1]+"px;"+(l.get("extraCssText")||""),u.style.display=u.innerHTML?"block":"none",u.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(l){this.el.innerHTML=l==null?"":l},setEnterable:function(l){this._enterable=l},getSize:function(){var l=this.el;return[l.clientWidth,l.clientHeight]},moveTo:function(l,u){var h=this._styleCoord;s(h,this._zr,this._appendToBody,l,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(l){this._show&&!(this._inContent&&this._enterable)&&(l?(this._hideDelay=l,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),l)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var l=this.el.clientWidth,u=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(this.el);h&&(l+=parseInt(h.borderLeftWidth,10)+parseInt(h.borderRightWidth,10),u+=parseInt(h.borderTopWidth,10)+parseInt(h.borderBottomWidth,10))}return{width:l,height:u}}};var a=t;H.exports=a},BPZU:function(H,B){var d=32,O=7,E=256;function C(i){for(var n=0;i>=d;)n|=i&1,i>>=1;return i+n}function A(i,n,e,s){var t=n+1;if(t===e)return 1;if(s(i[t++],i[n])<0){for(;t<e&&s(i[t],i[t-1])<0;)t++;w(i,n,t)}else for(;t<e&&s(i[t],i[t-1])>=0;)t++;return t-n}function w(i,n,e){for(e--;n<e;){var s=i[n];i[n++]=i[e],i[e--]=s}}function m(i,n,e,s,t){for(s===n&&s++;s<e;s++){for(var a=i[s],l=n,u=s,h;l<u;)h=l+u>>>1,t(a,i[h])<0?u=h:l=h+1;var p=s-l;switch(p){case 3:i[l+3]=i[l+2];case 2:i[l+2]=i[l+1];case 1:i[l+1]=i[l];break;default:for(;p>0;)i[l+p]=i[l+p-1],p--}i[l]=a}}function f(i,n,e,s,t,a){var l=0,u=0,h=1;if(a(i,n[e+t])>0){for(u=s-t;h<u&&a(i,n[e+t+h])>0;)l=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),l+=t,h+=t}else{for(u=t+1;h<u&&a(i,n[e+t-h])<=0;)l=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=l;l=t-h,h=t-p}for(l++;l<h;){var g=l+(h-l>>>1);a(i,n[e+g])>0?l=g+1:h=g}return h}function c(i,n,e,s,t,a){var l=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;)l=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=l;l=t-h,h=t-p}else{for(u=s-t;h<u&&a(i,n[e+t+h])>=0;)l=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),l+=t,h+=t}for(l++;l<h;){var g=l+(h-l>>>1);a(i,n[e+g])<0?h=g:l=g+1}return h}function o(i,n){var e=O,s=0,t=E,a=0,l,u,h=0;s=i.length,s<2*E&&(t=s>>>1);var p=[];a=s<120?5:s<1542?10:s<119151?19:40,l=[],u=[];function g(b,_){l[h]=b,u[h]=_,h+=1}function v(){for(;h>1;){var b=h-2;if(b>=1&&u[b-1]<=u[b]+u[b+1]||b>=2&&u[b-2]<=u[b]+u[b-1])u[b-1]<u[b+1]&&b--;else if(u[b]>u[b+1])break;x(b)}}function y(){for(;h>1;){var b=h-2;b>0&&u[b-1]<u[b+1]&&b--,x(b)}}function x(b){var _=l[b],I=u[b],L=l[b+1],N=u[b+1];u[b]=I+N,b===h-3&&(l[b+1]=l[b+2],u[b+1]=u[b+2]),h--;var D=c(i[L],i,_,I,0,n);if(_+=D,I-=D,I===0)return;if(N=f(i[_+I-1],i,L,N,N-1,n),N===0)return;I<=N?T(_,I,L,N):S(_,I,L,N)}function T(b,_,I,L){var N=0;for(N=0;N<_;N++)p[N]=i[b+N];var D=0,R=I,P=b;if(i[P++]=i[R++],--L===0){for(N=0;N<_;N++)i[P+N]=p[D+N];return}if(_===1){for(N=0;N<L;N++)i[P+N]=i[R+N];i[P+L]=p[D];return}for(var M=e,U,F,j;;){U=0,F=0,j=!1;do if(n(i[R],p[D])<0){if(i[P++]=i[R++],F++,U=0,--L===0){j=!0;break}}else if(i[P++]=p[D++],U++,F=0,--_===1){j=!0;break}while((U|F)<M);if(j)break;do{if(U=c(i[R],p,D,_,0,n),U!==0){for(N=0;N<U;N++)i[P+N]=p[D+N];if(P+=U,D+=U,_-=U,_<=1){j=!0;break}}if(i[P++]=i[R++],--L===0){j=!0;break}if(F=f(p[D],i,R,L,0,n),F!==0){for(N=0;N<F;N++)i[P+N]=i[R+N];if(P+=F,R+=F,L-=F,L===0){j=!0;break}}if(i[P++]=p[D++],--_===1){j=!0;break}M--}while(U>=O||F>=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[P+N]=i[R+N];i[P+L]=p[D]}else{if(_===0)throw new Error;for(N=0;N<_;N++)i[P+N]=p[D+N]}}function S(b,_,I,L){var N=0;for(N=0;N<L;N++)p[N]=i[I+N];var D=b+_-1,R=L-1,P=I+L-1,M=0,U=0;if(i[P--]=i[D--],--_===0){for(M=P-(L-1),N=0;N<L;N++)i[M+N]=p[N];return}if(L===1){for(P-=_,D-=_,U=P+1,M=D+1,N=_-1;N>=0;N--)i[U+N]=i[M+N];i[P]=p[R];return}for(var F=e;;){var j=0,W=0,V=!1;do if(n(p[R],i[D])<0){if(i[P--]=i[D--],j++,W=0,--_===0){V=!0;break}}else if(i[P--]=p[R--],W++,j=0,--L===1){V=!0;break}while((j|W)<F);if(V)break;do{if(j=_-c(p[R],i,b,_,_-1,n),j!==0){for(P-=j,D-=j,_-=j,U=P+1,M=D+1,N=j-1;N>=0;N--)i[U+N]=i[M+N];if(_===0){V=!0;break}}if(i[P--]=p[R--],--L===1){V=!0;break}if(W=L-f(i[D],p,0,L,L-1,n),W!==0){for(P-=W,R-=W,L-=W,U=P+1,M=R+1,N=0;N<W;N++)i[U+N]=p[M+N];if(L<=1){V=!0;break}}if(i[P--]=i[D--],--_===0){V=!0;break}F--}while(j>=O||W>=O);if(V)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),L===1){for(P-=_,D-=_,U=P+1,M=D+1,N=_-1;N>=0;N--)i[U+N]=i[M+N];i[P]=p[R]}else{if(L===0)throw new Error;for(M=P-(L-1),N=0;N<L;N++)i[M+N]=p[N]}}this.mergeRuns=v,this.forceMergeRuns=y,this.pushRun=g}function r(i,n,e,s){e||(e=0),s||(s=i.length);var t=s-e;if(t<2)return;var a=0;if(t<d){a=A(i,e,s,n),m(i,e,s,e+a,n);return}var l=new o(i,n),u=C(t);do{if(a=A(i,e,s,n),a<u){var h=t;h>u&&(h=u),m(i,e,e+h,e+a,n),a=h}l.pushRun(e,a),l.mergeRuns(),t-=a,e+=a}while(t!==0);l.forceMergeRuns()}H.exports=r},Bd2K:function(H,B,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 m(e)}),(typeof r!="object"||r.whenOpening!==!1)&&(n["'>'"]=function(e){return A(e)}),o.addKeyMap(n)});var E=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],C=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function 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 s=r[e].head,t=o.getTokenAt(s),a=O.innerMode(o.getMode(),t.state),l=a.state,u=a.mode.xmlCurrentTag&&a.mode.xmlCurrentTag(l),h=u&&u.name;if(!h)return O.Pass;var p=a.mode.configuration=="html",g=typeof n=="object"&&n.dontCloseTags||p&&E,v=typeof n=="object"&&n.indentTags||p&&C;t.end>s.ch&&(h=h.slice(0,h.length-t.end+s.ch));var y=h.toLowerCase();if(!h||t.type=="string"&&(t.end!=s.ch||!/[\"\']/.test(t.string.charAt(t.string.length-1))||t.string.length==1)||t.type=="tag"&&u.close||t.string.indexOf("/")==s.ch-t.start-1||g&&f(g,y)>-1||c(o,a.mode.xmlCurrentContext&&a.mode.xmlCurrentContext(l)||[],h,s,!0))return O.Pass;var x=typeof n=="object"&&n.emptyTags;if(x&&f(x,h)>-1){i[e]={text:"/>",newPos:O.Pos(s.line,s.ch+2)};continue}var T=v&&f(v,y)>-1;i[e]={indent:T,text:">"+(T?`
|
|
|
|
|
|
`:"")+"</"+h+">",newPos:T?O.Pos(s.line+1,0):O.Pos(s.line,s.ch+1)}}for(var S=typeof n=="object"&&n.dontIndentOnAutoClose,e=r.length-1;e>=0;e--){var b=i[e];o.replaceRange(b.text,r[e].head,r[e].anchor,"+insert");var _=o.listSelections().slice(0);_[e]={head:b.newPos,anchor:b.newPos},o.setSelections(_),!S&&b.indent&&(o.indentLine(b.newPos.line,null,!0),o.indentLine(b.newPos.line+1,null,!0))}}function w(o,r){for(var i=o.listSelections(),n=[],e=r?"/":"</",s=o.getOption("autoCloseTags"),t=typeof s=="object"&&s.dontIndentOnSlash,a=0;a<i.length;a++){if(!i[a].empty())return O.Pass;var l=i[a].head,u=o.getTokenAt(l),h=O.innerMode(o.getMode(),u.state),p=h.state;if(r&&(u.type=="string"||u.string.charAt(0)!="<"||u.start!=l.ch-1))return O.Pass;var g,v=h.mode.name!="xml"&&o.getMode().name=="htmlmixed";if(v&&h.mode.name=="javascript")g=e+"script";else if(v&&h.mode.name=="css")g=e+"style";else{var y=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(p);if(!y||y.length&&c(o,y,y[y.length-1],l))return O.Pass;g=e+y[y.length-1]}o.getLine(l.line).charAt(u.end)!=">"&&(g+=">"),n[a]=g}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 m(o){return o.getOption("disableInput")?O.Pass:w(o,!0)}O.commands.closeTag=function(o){return w(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 s=Math.min(o.lastLine()+1,n.line+500),t=O.scanForClosingTag(o,n,null,s);if(!t||t.tag!=i)return!1;for(var a=e?1:0,l=r.length-1;l>=0&&r[l]==i;l--)++a;n=t.to;for(var l=1;l<a;l++){var u=O.scanForClosingTag(o,n,null,s);if(!u||u.tag!=i)return!1;n=u.to}return!0}})},BlVb:function(H,B,d){var O=d("hyiK"),E=1e-8;function C(w,m){return Math.abs(w-m)<E}function A(w,m,f){var c=0,o=w[0];if(!o)return!1;for(var r=1;r<w.length;r++){var i=w[r];c+=O(o[0],o[1],i[0],i[1],m,f),o=i}var n=w[0];return(!C(o[0],n[0])||!C(o[1],n[1]))&&(c+=O(o[0],o[1],n[0],n[1],m,f)),c!==0}B.contain=A},BoS7:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("czTT"),A=d.n(C)},Bq2U:function(H,B,d){var O=d("RDYZ"),E=d("Qe9p"),C=d("bYtY"),A=C.isArrayLike,w=Array.prototype.slice;function m(g,v){return g[v]}function f(g,v,y){g[v]=y}function c(g,v,y){return(v-g)*y+g}function o(g,v,y){return y>.5?v:g}function r(g,v,y,x,T){var S=g.length;if(T===1)for(var b=0;b<S;b++)x[b]=c(g[b],v[b],y);else for(var _=S&&g[0].length,b=0;b<S;b++)for(var I=0;I<_;I++)x[b][I]=c(g[b][I],v[b][I],y)}function i(g,v,y){var x=g.length,T=v.length;if(x!==T){var S=x>T;if(S)g.length=T;else for(var b=x;b<T;b++)g.push(y===1?v[b]:w.call(v[b]))}for(var _=g[0]&&g[0].length,b=0;b<g.length;b++)if(y===1)isNaN(g[b])&&(g[b]=v[b]);else for(var I=0;I<_;I++)isNaN(g[b][I])&&(g[b][I]=v[b][I])}function n(g,v,y){if(g===v)return!0;var x=g.length;if(x!==v.length)return!1;if(y===1){for(var T=0;T<x;T++)if(g[T]!==v[T])return!1}else for(var S=g[0].length,T=0;T<x;T++)for(var b=0;b<S;b++)if(g[T][b]!==v[T][b])return!1;return!0}function e(g,v,y,x,T,S,b,_,I){var L=g.length;if(I===1)for(var N=0;N<L;N++)_[N]=s(g[N],v[N],y[N],x[N],T,S,b);else for(var D=g[0].length,N=0;N<L;N++)for(var R=0;R<D;R++)_[N][R]=s(g[N][R],v[N][R],y[N][R],x[N][R],T,S,b)}function s(g,v,y,x,T,S,b){var _=(y-g)*.5,I=(x-v)*.5;return(2*(v-y)+_+I)*b+(-3*(v-y)-2*_-I)*S+_*T+v}function t(g){if(A(g)){var v=g.length;if(A(g[0])){for(var y=[],x=0;x<v;x++)y.push(w.call(g[x]));return y}return w.call(g)}return g}function a(g){return g[0]=Math.floor(g[0]),g[1]=Math.floor(g[1]),g[2]=Math.floor(g[2]),"rgba("+g.join(",")+")"}function l(g){var v=g[g.length-1].value;return A(v&&v[0])?2:1}function u(g,v,y,x,T,S){var b=g._getter,_=g._setter,I=v==="spline",L=x.length;if(!L)return;var N=x[0].value,D=A(N),R=!1,P=!1,M=D?l(x):0,U;x.sort(function(Q,G){return Q.time-G.time}),U=x[L-1].time;for(var F=[],j=[],W=x[0].value,V=!0,z=0;z<L;z++){F.push(x[z].time/U);var Y=x[z].value;if(D&&n(Y,W,M)||!D&&Y===W||(V=!1),W=Y,typeof Y=="string"){var $=E.parse(Y);$?(Y=$,R=!0):P=!0}j.push(Y)}if(!S&&V)return;for(var ue=j[L-1],z=0;z<L-1;z++)D?i(j[z],ue,M):isNaN(j[z])&&!isNaN(ue)&&!P&&!R&&(j[z]=ue);D&&i(b(g._target,T),ue,M);var ne=0,ge=0,Oe,De,He,pe,Ue,oe;if(R)var ee=[0,0,0,0];var Xe=function(G,J){var ve;if(J<0)ve=0;else if(J<ge){for(Oe=Math.min(ne+1,L-1),ve=Oe;ve>=0&&!(F[ve]<=J);ve--);ve=Math.min(ve,L-2)}else{for(ve=ne;ve<L&&!(F[ve]>J);ve++);ve=Math.min(ve-1,L-2)}ne=ve,ge=J;var de=F[ve+1]-F[ve];if(de===0)return;if(De=(J-F[ve])/de,I)if(pe=j[ve],He=j[ve===0?ve:ve-1],Ue=j[ve>L-2?L-1:ve+1],oe=j[ve>L-3?L-1:ve+2],D)e(He,pe,Ue,oe,De,De*De,De*De*De,b(G,T),M);else{var Ce;if(R)Ce=e(He,pe,Ue,oe,De,De*De,De*De*De,ee,1),Ce=a(ee);else{if(P)return o(pe,Ue,De);Ce=s(He,pe,Ue,oe,De,De*De,De*De*De)}_(G,T,Ce)}else if(D)r(j[ve],j[ve+1],De,b(G,T),M);else{var Ce;if(R)r(j[ve],j[ve+1],De,ee,1),Ce=a(ee);else{if(P)return o(j[ve],j[ve+1],De);Ce=c(j[ve],j[ve+1],De)}_(G,T,Ce)}},se=new O({target:g._target,life:U,loop:g._loop,delay:g._delay,onframe:Xe,ondestroy:y});return v&&v!=="spline"&&(se.easing=v),se}var h=function(v,y,x,T){this._tracks={},this._target=v,this._loop=y||!1,this._getter=x||m,this._setter=T||f,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(v,y){var x=this._tracks;for(var T in y){if(!y.hasOwnProperty(T))continue;if(!x[T]){x[T]=[];var S=this._getter(this._target,T);if(S==null)continue;v!==0&&x[T].push({time:0,value:t(S)})}x[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,x=0;x<y;x++)v[x].call(this)},start:function(v,y){var x=this,T=0,S=function(){T--,T||x._doneCallback()},b;for(var _ in this._tracks){if(!this._tracks.hasOwnProperty(_))continue;var I=u(this,v,S,this._tracks[_],_,y);I&&(this._clipList.push(I),T++,this.animation&&this.animation.addClip(I),b=I)}if(b){var L=b.onframe;b.onframe=function(N,D){L(N,D);for(var R=0;R<x._onframeList.length;R++)x._onframeList[R](N,D)}}return T||this._doneCallback(),this},stop:function(v){for(var y=this._clipList,x=this.animation,T=0;T<y.length;T++){var S=y[T];v&&S.onframe(this._target,1),x&&x.removeClip(S)}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,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},Bsck:function(H,B,d){var O=d("bYtY"),E=d("Qxkt"),C=d("Mdki"),A=d("YXkt"),w=d("sdST"),m=function(r,i){this.name=r||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=i};m.prototype={constructor:m,isRemoved:function(){return this.dataIndex<0},eachNode:function(r,i,n){typeof r=="function"&&(n=i,i=r,r=null),r=r||{},O.isString(r)&&(r={order:r});var e=r.order||"preorder",s=this[r.attr||"children"],t;e==="preorder"&&(t=i.call(n,this));for(var a=0;!t&&a<s.length;a++)s[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 s=n[i].getNodeById(r);if(s)return s}},contains:function(r){if(r===this)return!0;for(var i=0,n=this.children,e=n.length;i<e;i++){var s=n[i].contains(r);if(s)return s}},getAncestors:function(r){for(var i=[],n=r?this:this.parentNode;n;)i.push(n),n=n.parentNode;return i.reverse(),i},getValue:function(r){var i=this.hostTree.data;return i.get(i.getDimension(r||"value"),this.dataIndex)},setLayout:function(r,i){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,r,i)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(r){if(this.dataIndex<0)return;var i=this.hostTree,n=i.data.getItemModel(this.dataIndex),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 E(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 s=new f(i,n&&n.levels),t=[],a=1;l(r);function l(p,g){var v=p.value;a=Math.max(a,O.isArray(v)?v.length:1),t.push(p);var y=new m(p.name,s);g?c(y,g):s.root=y,s._nodes.push(y);var x=p.children;if(x)for(var T=0;T<x.length;T++)l(x[T],y)}s.root.updateDepthAndHeight(0);var u=w(t,{coordDimensions:["value"],dimensionsCount:a}),h=new A(u,i);return h.initData(t),e&&e(h),C({mainData:h,struct:s,structAttr:"tree"}),s.update(),s};function c(r,i){var n=i.children;if(r.parentNode===i)return;n.push(r),r.parentNode=i}var o=f;H.exports=o},BtR2:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="LikeOutlined";var f=B.a=E.forwardRef(m)},BuqR:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("6uqw"),w=d("XxSj"),m=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,s){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var t=this._mode=this._determineMode();r[this._mode].call(this),this._resetSelected(e,s);var a=this.option.categories;this.resetVisual(function(l,u){t==="categories"?(l.mappingMethod="category",l.categories=C.clone(a)):(l.dataExtent=this.getExtent(),l.mappingMethod="piecewise",l.pieceList=C.map(this._pieceList,function(h){var h=C.clone(h);return u!=="inRange"&&(h.visual=null),h}))})},completeVisualOption:function(){var e=this.option,s={},t=w.listVisualTypes(),a=this.isCategory();C.each(e.pieces,function(u){C.each(t,function(h){u.hasOwnProperty(h)&&(s[h]=1)})}),C.each(s,function(u,h){var p=0;C.each(this.stateList,function(g){p|=l(e,g,h)||l(e.target,g,h)},this),!p&&C.each(this.stateList,function(g){(e[g]||(e[g]={}))[h]=m.get(h,g==="inRange"?"active":"inactive",a)})},this);function l(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,s){var t=this.option,a=this._pieceList,l=(s?t:e).selected||{};if(t.selected=l,C.each(a,function(h,p){var g=this.getSelectedMapKey(h);l.hasOwnProperty(g)||(l[g]=!0)},this),t.selectedMode==="single"){var u=!1;C.each(a,function(h,p){var g=this.getSelectedMapKey(h);l[g]&&(u?l[g]=!1:u=!0)},this)}},getSelectedMapKey:function(e){return this._mode==="categories"?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=C.clone(e)},getValueState:function(e){var s=w.findPieceIndex(e,this._pieceList);return s!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var s=[];return this.eachTargetSeries(function(t){var a=[],l=t.getData();l.each(this.getDataDimension(l),function(u,h){var p=w.findPieceIndex(u,this._pieceList);p===e&&a.push(h)},this),s.push({seriesId:t.id,dataIndex:a})},this),s},getRepresentValue:function(e){var s;if(this.isCategory())s=e.value;else if(e.value!=null)s=e.value;else{var t=e.interval||[];s=t[0]===-Infinity&&t[1]===Infinity?0:(t[0]+t[1])/2}return s},getVisualMeta:function(e){if(this.isCategory())return;var s=[],t=[],a=this;function l(g,v){var y=a.getRepresentValue({interval:g});v||(v=a.getValueState(y));var x=e(y,v);g[0]===-Infinity?t[0]=x:g[1]===Infinity?t[1]=x:s.push({value:g[0],color:x},{value:g[1],color:x})}var u=this._pieceList.slice();if(!u.length)u.push({interval:[-Infinity,Infinity]});else{var 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(g){var v=g.interval;v&&(v[0]>p&&l([p,v[0]],"outOfRange"),l(v.slice()),p=v[1])},this),{stops:s,outerColors:t}}}),r={splitNumber:function(){var e=this.option,s=this._pieceList,t=Math.min(e.precision,20),a=this.getExtent(),l=e.splitNumber;l=Math.max(parseInt(l,10),1),e.splitNumber=l;for(var u=(a[1]-a[0])/l;+u.toFixed(t)!==u&&t<5;)t++;e.precision=t,u=+u.toFixed(t),e.minOpen&&s.push({interval:[-Infinity,a[0]],close:[0,0]});for(var h=0,p=a[0];h<l;p+=u,h++){var g=h===l-1?a[1]:p+u;s.push({interval:[p,g],close:[1,1]})}e.maxOpen&&s.push({interval:[a[1],Infinity],close:[0,0]}),c(s),C.each(s,function(v,y){v.index=y,v.text=this.formatValueText(v.interval)},this)},categories:function(){var e=this.option;C.each(e.categories,function(s){this._pieceList.push({text:this.formatValueText(s,!0),value:s})},this),i(e,this._pieceList)},pieces:function(){var e=this.option,s=this._pieceList;C.each(e.pieces,function(t,a){C.isObject(t)||(t={value:t});var l={text:"",index:a};if(t.label!=null&&(l.text=t.label),t.hasOwnProperty("value")){var u=l.value=t.value;l.interval=[u,u],l.close=[1,1]}else{for(var h=l.interval=[],p=l.close=[0,0],g=[1,0,1],v=[-Infinity,Infinity],y=[],x=0;x<2;x++){for(var T=[["gte","gt","min"],["lte","lt","max"]][x],S=0;S<3&&h[x]==null;S++)h[x]=t[T[S]],p[x]=g[S],y[x]=S===2;h[x]==null&&(h[x]=v[x])}y[0]&&h[1]===Infinity&&(p[0]=0),y[1]&&h[0]===-Infinity&&(p[1]=0),h[0]===h[1]&&p[0]&&p[1]&&(l.value=h[0])}l.visual=w.retrieveVisuals(t),s.push(l)},this),i(e,s),c(s),C.each(s,function(t){var a=t.close,l=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,l)},this)}};function i(e,s){var t=e.inverse;(e.orient==="vertical"?!t:t)&&s.reverse()}var n=o;H.exports=n},BvKs:function(H,B,d){"use strict";d.d(B,"a",function(){return Mt});var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),s=d("VTBJ"),t=d("1OyB"),a=d("vuIU"),l=d("JX7q"),u=d("Ji7U"),h=d("LK+K"),p=d("I8Z2"),g=d("BGR+"),v=d("wx14"),y=d("rePB"),x=d("4IlW"),T=d("2GS6"),S=d("Gytx"),b=d.n(S),_=d("TSYQ"),I=d.n(_),L=d("U8pU"),N=d("ODXe"),D=/iPhone/i,R=/iPod/i,P=/iPad/i,M=/\bAndroid(?:.+)Mobile\b/i,U=/Android/i,F=/\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,Y=/BB10/i,$=/Opera Mini/i,ue=/\b(CriOS|Chrome)(?:.+)Mobile/i,ne=/Mobile(?:.+)Firefox\b/i;function ge(at,lt){return at.test(lt)}function Oe(at){var lt=at||(typeof navigator!="undefined"?navigator.userAgent:""),rr=lt.split("[FBAN");if(typeof rr[1]!="undefined"){var Bt=rr,_t=Object(N.a)(Bt,1);lt=_t[0]}if(rr=lt.split("Twitter"),typeof rr[1]!="undefined"){var Kt=rr,wt=Object(N.a)(Kt,1);lt=wt[0]}var Ut={apple:{phone:ge(D,lt)&&!ge(W,lt),ipod:ge(R,lt),tablet:!ge(D,lt)&&ge(P,lt)&&!ge(W,lt),device:(ge(D,lt)||ge(R,lt)||ge(P,lt))&&!ge(W,lt)},amazon:{phone:ge(F,lt),tablet:!ge(F,lt)&&ge(j,lt),device:ge(F,lt)||ge(j,lt)},android:{phone:!ge(W,lt)&&ge(F,lt)||!ge(W,lt)&&ge(M,lt),tablet:!ge(W,lt)&&!ge(F,lt)&&!ge(M,lt)&&(ge(j,lt)||ge(U,lt)),device:!ge(W,lt)&&(ge(F,lt)||ge(j,lt)||ge(M,lt)||ge(U,lt))||ge(/\bokhttp\b/i,lt)},windows:{phone:ge(W,lt),tablet:ge(V,lt),device:ge(W,lt)||ge(V,lt)},other:{blackberry:ge(z,lt),blackberry10:ge(Y,lt),opera:ge($,lt),firefox:ge(ne,lt),chrome:ge(ue,lt),device:ge(z,lt)||ge(Y,lt)||ge($,lt)||ge(ne,lt)||ge(ue,lt)},any:null,phone:null,tablet:null};return Ut.any=Ut.apple.device||Ut.android.device||Ut.windows.device||Ut.other.device,Ut.phone=Ut.apple.phone||Ut.android.phone||Ut.windows.phone,Ut.tablet=Ut.apple.tablet||Ut.android.tablet||Ut.windows.tablet,Ut}var De=Object(s.a)(Object(s.a)({},Oe()),{},{isMobile:Oe}),He=De;function pe(){}function Ue(at,lt,rr){var Bt=lt||"";return at.key||"".concat(Bt,"item_").concat(rr)}function oe(at){return"".concat(at,"-menu-")}function ee(at,lt){var rr=-1;e.Children.forEach(at,function(Bt){rr+=1,Bt&&Bt.type&&Bt.type.isMenuItemGroup?e.Children.forEach(Bt.props.children,function(_t){rr+=1,lt(_t,rr)}):lt(Bt,rr)})}function Xe(at,lt,rr){if(!at||rr.find)return;e.Children.forEach(at,function(Bt){if(Bt){var _t=Bt.type;if(!_t||!(_t.isSubMenu||_t.isMenuItem||_t.isMenuItemGroup))return;lt.indexOf(Bt.key)!==-1?rr.find=!0:Bt.props.children&&Xe(Bt.props.children,lt,rr)}})}var se=["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"],Q=function(lt){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=lt&&typeof lt.getBoundingClientRect=="function"&<.getBoundingClientRect().width;if(Bt){if(rr){var _t=getComputedStyle(lt),Kt=_t.marginLeft,wt=_t.marginRight;Bt+=+Kt.replace("px","")+ +wt.replace("px","")}Bt=+Bt.toFixed(6)}return Bt||0},G=function(lt,rr,Bt){lt&&Object(L.a)(lt.style)==="object"&&(lt.style[rr]=Bt)},J=function(){return He.any},ve=d("KQm4"),de=d("Ff2n"),Ce=d("i8i4"),Ee=d("bdgK"),le=d("Uaa1"),fe=d("HTfv"),xe={adjustX:1,adjustY:1},Qe={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},ot={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},Je=Qe,Te=0,et={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ze=function(lt,rr,Bt){var _t=oe(rr),Kt=lt.getState();lt.setState({defaultActiveFirst:Object(s.a)(Object(s.a)({},Kt.defaultActiveFirst),{},Object(y.a)({},_t,Bt))})},nt=function(at){Object(u.a)(rr,at);var lt=Object(h.a)(rr);function rr(Bt){var _t;Object(t.a)(this,rr),_t=lt.call(this,Bt),_t.onDestroy=function(gr){_t.props.onDestroy(gr)},_t.onKeyDown=function(gr){var Jr=gr.keyCode,$r=_t.menuInstance,Pn=_t.props,Dn=Pn.isOpen,Zn=Pn.store;if(Jr===x.a.ENTER)return _t.onTitleClick(gr),ze(Zn,_t.props.eventKey,!0),!0;if(Jr===x.a.RIGHT)return Dn?$r.onKeyDown(gr):(_t.triggerOpenChange(!0),ze(Zn,_t.props.eventKey,!0)),!0;if(Jr===x.a.LEFT){var li;if(Dn)li=$r.onKeyDown(gr);else return;return li||(_t.triggerOpenChange(!1),li=!0),li}return Dn&&(Jr===x.a.UP||Jr===x.a.DOWN)?$r.onKeyDown(gr):void 0},_t.onOpenChange=function(gr){_t.props.onOpenChange(gr)},_t.onPopupVisibleChange=function(gr){_t.triggerOpenChange(gr,gr?"mouseenter":"mouseleave")},_t.onMouseEnter=function(gr){var Jr=_t.props,$r=Jr.eventKey,Pn=Jr.onMouseEnter,Dn=Jr.store;ze(Dn,_t.props.eventKey,!1),Pn({key:$r,domEvent:gr})},_t.onMouseLeave=function(gr){var Jr=_t.props,$r=Jr.parentMenu,Pn=Jr.eventKey,Dn=Jr.onMouseLeave;$r.subMenuInstance=Object(l.a)(_t),Dn({key:Pn,domEvent:gr})},_t.onTitleMouseEnter=function(gr){var Jr=_t.props,$r=Jr.eventKey,Pn=Jr.onItemHover,Dn=Jr.onTitleMouseEnter;Pn({key:$r,hover:!0}),Dn({key:$r,domEvent:gr})},_t.onTitleMouseLeave=function(gr){var Jr=_t.props,$r=Jr.parentMenu,Pn=Jr.eventKey,Dn=Jr.onItemHover,Zn=Jr.onTitleMouseLeave;$r.subMenuInstance=Object(l.a)(_t),Dn({key:Pn,hover:!1}),Zn({key:Pn,domEvent:gr})},_t.onTitleClick=function(gr){var Jr=Object(l.a)(_t),$r=Jr.props;if($r.onTitleClick({key:$r.eventKey,domEvent:gr}),$r.triggerSubMenuAction==="hover")return;_t.triggerOpenChange(!$r.isOpen,"click"),ze($r.store,_t.props.eventKey,!1)},_t.onSubMenuClick=function(gr){typeof _t.props.onClick=="function"&&_t.props.onClick(_t.addKeyPath(gr))},_t.onSelect=function(gr){_t.props.onSelect(gr)},_t.onDeselect=function(gr){_t.props.onDeselect(gr)},_t.getPrefixCls=function(){return"".concat(_t.props.rootPrefixCls,"-submenu")},_t.getActiveClassName=function(){return"".concat(_t.getPrefixCls(),"-active")},_t.getDisabledClassName=function(){return"".concat(_t.getPrefixCls(),"-disabled")},_t.getSelectedClassName=function(){return"".concat(_t.getPrefixCls(),"-selected")},_t.getOpenClassName=function(){return"".concat(_t.props.rootPrefixCls,"-submenu-open")},_t.saveMenuInstance=function(gr){_t.menuInstance=gr},_t.addKeyPath=function(gr){return Object(s.a)(Object(s.a)({},gr),{},{keyPath:(gr.keyPath||[]).concat(_t.props.eventKey)})},_t.triggerOpenChange=function(gr,Jr){var $r=_t.props.eventKey,Pn=function(){_t.onOpenChange({key:$r,item:Object(l.a)(_t),trigger:Jr,open:gr})};Jr==="mouseenter"?_t.mouseenterTimeout=setTimeout(function(){Pn()},0):Pn()},_t.isChildrenSelected=function(){var gr={find:!1};return Xe(_t.props.children,_t.props.selectedKeys,gr),gr.find},_t.isOpen=function(){return _t.props.openKeys.indexOf(_t.props.eventKey)!==-1},_t.adjustWidth=function(){if(!_t.subMenuTitle||!_t.menuInstance)return;var gr=Ce.findDOMNode(_t.menuInstance);if(gr.offsetWidth>=_t.subMenuTitle.offsetWidth)return;gr.style.minWidth="".concat(_t.subMenuTitle.offsetWidth,"px")},_t.saveSubMenuTitle=function(gr){_t.subMenuTitle=gr},_t.getBaseProps=function(){var gr=Object(l.a)(_t),Jr=gr.props;return{mode:Jr.mode==="horizontal"?"vertical":Jr.mode,visible:_t.props.isOpen,level:Jr.level+1,inlineIndent:Jr.inlineIndent,focusable:!1,onClick:_t.onSubMenuClick,onSelect:_t.onSelect,onDeselect:_t.onDeselect,onDestroy:_t.onDestroy,selectedKeys:Jr.selectedKeys,eventKey:"".concat(Jr.eventKey,"-menu-"),openKeys:Jr.openKeys,motion:Jr.motion,onOpenChange:_t.onOpenChange,subMenuOpenDelay:Jr.subMenuOpenDelay,parentMenu:Object(l.a)(_t),subMenuCloseDelay:Jr.subMenuCloseDelay,forceSubMenuRender:Jr.forceSubMenuRender,triggerSubMenuAction:Jr.triggerSubMenuAction,builtinPlacements:Jr.builtinPlacements,defaultActiveFirst:Jr.store.getState().defaultActiveFirst[oe(Jr.eventKey)],multiple:Jr.multiple,prefixCls:Jr.rootPrefixCls,id:_t.internalMenuId,manualRef:_t.saveMenuInstance,itemIcon:Jr.itemIcon,expandIcon:Jr.expandIcon,direction:Jr.direction}},_t.getMotion=function(gr,Jr){var $r=Object(l.a)(_t),Pn=$r.haveRendered,Dn=_t.props,Zn=Dn.motion,li=Dn.rootPrefixCls,Ai=Object(s.a)(Object(s.a)({},Zn),{},{leavedClassName:"".concat(li,"-hidden"),removeOnLeave:!1,motionAppear:Pn||!Jr||gr!=="inline"});return Ai};var Kt=Bt.store,wt=Bt.eventKey,Ut=Kt.getState(),Sr=Ut.defaultActiveFirst;_t.isRootMenu=!1;var hr=!1;return Sr&&(hr=Sr[wt]),ze(Kt,wt,hr),_t}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _t=this,Kt=this.props,wt=Kt.mode,Ut=Kt.parentMenu,Sr=Kt.manualRef;if(Sr&&Sr(this),wt!=="horizontal"||!Ut.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return _t.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var _t=this.props,Kt=_t.onDestroy,wt=_t.eventKey;Kt&&Kt(wt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(_t){var Kt=this,wt=this.getBaseProps(),Ut=this.getMotion(wt.mode,wt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||wt.visible||wt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Sr=wt.direction;return e.createElement(fe.default,Object.assign({visible:wt.visible},Ut),function(hr){var gr=hr.className,Jr=hr.style,$r=I()("".concat(wt.prefixCls,"-sub"),gr,Object(y.a)({},"".concat(wt.prefixCls,"-rtl"),Sr==="rtl"));return e.createElement(Xt,Object.assign({},wt,{id:Kt.internalMenuId,className:$r,style:Jr}),_t)})}},{key:"render",value:function(){var _t,Kt=Object(s.a)({},this.props),wt=Kt.isOpen,Ut=this.getPrefixCls(),Sr=Kt.mode==="inline",hr=I()(Ut,"".concat(Ut,"-").concat(Kt.mode),(_t={},Object(y.a)(_t,Kt.className,!!Kt.className),Object(y.a)(_t,this.getOpenClassName(),wt),Object(y.a)(_t,this.getActiveClassName(),Kt.active||wt&&!Sr),Object(y.a)(_t,this.getDisabledClassName(),Kt.disabled),Object(y.a)(_t,this.getSelectedClassName(),this.isChildrenSelected()),_t));this.internalMenuId||(Kt.eventKey?this.internalMenuId="".concat(Kt.eventKey,"$Menu"):(Te+=1,this.internalMenuId="$__$".concat(Te,"$Menu")));var gr={},Jr={},$r={};Kt.disabled||(gr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Jr={onClick:this.onTitleClick},$r={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Pn={},Dn=Kt.direction;Sr&&(Dn==="rtl"?Pn.paddingRight=Kt.inlineIndent*Kt.level:Pn.paddingLeft=Kt.inlineIndent*Kt.level);var Zn={};this.props.isOpen&&(Zn={"aria-owns":this.internalMenuId});var li=null;Kt.mode!=="horizontal"&&(li=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(li=e.createElement(this.props.expandIcon,Object(s.a)({},this.props))));var Ai=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Pn,className:"".concat(Ut,"-title"),role:"button"},$r,Jr,{"aria-expanded":wt},Zn,{"aria-haspopup":"true",title:typeof Kt.title=="string"?Kt.title:void 0}),Kt.title,li||e.createElement("i",{className:"".concat(Ut,"-arrow")})),Ii=this.renderChildren(Kt.children),$e=Kt.parentMenu.isRootMenu?Kt.parentMenu.props.getPopupContainer:function(Ir){return Ir.parentNode},Se=et[Kt.mode],Re=Kt.popupOffset?{offset:Kt.popupOffset}:{},je=Kt.mode==="inline"?"":Kt.popupClassName;je+=Dn==="rtl"?" ".concat(Ut,"-rtl"):"";var Ye=Kt.disabled,Ve=Kt.triggerSubMenuAction,qe=Kt.subMenuOpenDelay,xt=Kt.forceSubMenuRender,ct=Kt.subMenuCloseDelay,Jt=Kt.builtinPlacements;se.forEach(function(Ir){return delete Kt[Ir]}),delete Kt.onClick;var Rr=Dn==="rtl"?Object.assign({},ot,Jt):Object.assign({},Qe,Jt);return delete Kt.direction,e.createElement("li",Object.assign({},Kt,gr,{className:hr,role:"menuitem"}),Sr&&Ai,Sr&&Ii,!Sr&&e.createElement(le.a,{prefixCls:Ut,popupClassName:I()("".concat(Ut,"-popup"),je),getPopupContainer:$e,builtinPlacements:Rr,popupPlacement:Se,popupVisible:wt,popupAlign:Re,popup:Ii,action:Ye?[]:[Ve],mouseEnterDelay:qe,mouseLeaveDelay:ct,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:xt},Ai))}}]),rr}(e.Component);nt.defaultProps={onMouseEnter:pe,onMouseLeave:pe,onTitleMouseEnter:pe,onTitleMouseLeave:pe,onTitleClick:pe,manualRef:pe,mode:"vertical",title:""};var Ot=Object(p.b)(function(at,lt){var rr=at.openKeys,Bt=at.activeKey,_t=at.selectedKeys,Kt=lt.eventKey,wt=lt.subMenuKey;return{isOpen:rr.indexOf(Kt)>-1,active:Bt[wt]===Kt,selectedKeys:_t}})(nt);Ot.isSubMenu=!0;var Ct=Ot,Tt="menuitem-overflowed",Dt=.5,Be=function(at){Object(u.a)(rr,at);var lt=Object(h.a)(rr);function rr(){var Bt;return Object(t.a)(this,rr),Bt=lt.apply(this,arguments),Bt.resizeObserver=null,Bt.mutationObserver=null,Bt.originalTotalWidth=0,Bt.overflowedItems=[],Bt.menuItemSizes=[],Bt.cancelFrameId=null,Bt.state={lastVisibleIndex:void 0},Bt.getMenuItemNodes=function(){var _t=Bt.props.prefixCls,Kt=Ce.findDOMNode(Object(l.a)(Bt));return Kt?[].slice.call(Kt.children).filter(function(wt){return wt.className.split(" ").indexOf("".concat(_t,"-overflowed-submenu"))<0}):[]},Bt.getOverflowedSubMenuItem=function(_t,Kt,wt){var Ut=Bt.props,Sr=Ut.overflowedIndicator,hr=Ut.level,gr=Ut.mode,Jr=Ut.prefixCls,$r=Ut.theme;if(hr!==1||gr!=="horizontal")return null;var Pn=Bt.props.children[0],Dn=Pn.props,Zn=Dn.children,li=Dn.title,Ai=Dn.style,Ii=Object(de.a)(Dn,["children","title","style"]),$e=Object(s.a)({},Ai),Se="".concat(_t,"-overflowed-indicator"),Re="".concat(_t,"-overflowed-indicator");Kt.length===0&&wt!==!0?$e=Object(s.a)(Object(s.a)({},$e),{},{display:"none"}):wt&&($e=Object(s.a)(Object(s.a)({},$e),{},{visibility:"hidden",position:"absolute"}),Se="".concat(Se,"-placeholder"),Re="".concat(Re,"-placeholder"));var je=$r?"".concat(Jr,"-").concat($r):"",Ye={};return se.forEach(function(Ve){Ii[Ve]!==void 0&&(Ye[Ve]=Ii[Ve])}),e.createElement(Ct,Object.assign({title:Sr,className:"".concat(Jr,"-overflowed-submenu"),popupClassName:je},Ye,{key:Se,eventKey:Re,disabled:!1,style:$e}),Kt)},Bt.setChildrenWidthAndResize=function(){if(Bt.props.mode!=="horizontal")return;var _t=Ce.findDOMNode(Object(l.a)(Bt));if(!_t)return;var Kt=_t.children;if(!Kt||Kt.length===0)return;var wt=_t.children[Kt.length-1];G(wt,"display","inline-block");var Ut=Bt.getMenuItemNodes(),Sr=Ut.filter(function(hr){return hr.className.split(" ").indexOf(Tt)>=0});Sr.forEach(function(hr){G(hr,"display","inline-block")}),Bt.menuItemSizes=Ut.map(function(hr){return Q(hr,!0)}),Sr.forEach(function(hr){G(hr,"display","none")}),Bt.overflowedIndicatorWidth=Q(_t.children[_t.children.length-1],!0),Bt.originalTotalWidth=Bt.menuItemSizes.reduce(function(hr,gr){return hr+gr},0),Bt.handleResize(),G(wt,"display","none")},Bt.handleResize=function(){if(Bt.props.mode!=="horizontal")return;var _t=Ce.findDOMNode(Object(l.a)(Bt));if(!_t)return;var Kt=Q(_t);Bt.overflowedItems=[];var wt=0,Ut;Bt.originalTotalWidth>Kt+Dt&&(Ut=-1,Bt.menuItemSizes.forEach(function(Sr){wt+=Sr,wt+Bt.overflowedIndicatorWidth<=Kt&&(Ut+=1)})),Bt.setState({lastVisibleIndex:Ut})},Bt}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){var _t=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Kt=Ce.findDOMNode(this);if(!Kt)return;this.resizeObserver=new Ee.default(function(wt){wt.forEach(function(){var Ut=_t.cancelFrameId;cancelAnimationFrame(Ut),_t.cancelFrameId=requestAnimationFrame(_t.setChildrenWidthAndResize)})}),[].slice.call(Kt.children).concat(Kt).forEach(function(wt){_t.resizeObserver.observe(wt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){_t.resizeObserver.disconnect(),[].slice.call(Kt.children).concat(Kt).forEach(function(wt){_t.resizeObserver.observe(wt)}),_t.setChildrenWidthAndResize()}),this.mutationObserver.observe(Kt,{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(_t){var Kt=this,wt=this.state.lastVisibleIndex;return(_t||[]).reduce(function(Ut,Sr,hr){var gr=Sr;if(Kt.props.mode==="horizontal"){var Jr=Kt.getOverflowedSubMenuItem(Sr.props.eventKey,[]);wt!==void 0&&Kt.props.className.indexOf("".concat(Kt.props.prefixCls,"-root"))!==-1&&(hr>wt&&(gr=e.cloneElement(Sr,{style:{display:"none"},eventKey:"".concat(Sr.props.eventKey,"-hidden"),className:"".concat(Tt)})),hr===wt+1&&(Kt.overflowedItems=_t.slice(wt+1).map(function(Pn){return e.cloneElement(Pn,{key:Pn.props.eventKey,mode:"vertical-left"})}),Jr=Kt.getOverflowedSubMenuItem(Sr.props.eventKey,Kt.overflowedItems)));var $r=[].concat(Object(ve.a)(Ut),[Jr,gr]);return hr===_t.length-1&&$r.push(Kt.getOverflowedSubMenuItem(Sr.props.eventKey,[],!0)),$r}return[].concat(Object(ve.a)(Ut),[gr])},[])}},{key:"render",value:function(){var _t=this.props,Kt=_t.visible,wt=_t.prefixCls,Ut=_t.overflowedIndicator,Sr=_t.mode,hr=_t.level,gr=_t.tag,Jr=_t.children,$r=_t.theme,Pn=Object(de.a)(_t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Dn=gr;return e.createElement(Dn,Object.assign({},Pn),this.renderChildren(Jr))}}]),rr}(e.Component);Be.defaultProps={tag:"div",className:""};var ie=Be;function X(at){return at.length?at.every(function(lt){return!!lt.props.disabled}):!0}function Fe(at,lt,rr){var Bt=at.getState();at.setState({activeKey:Object(s.a)(Object(s.a)({},Bt.activeKey),{},Object(y.a)({},lt,rr))})}function Ne(at){return at.eventKey||"0-menu-"}function q(at,lt){var rr=lt,Bt=at.children,_t=at.eventKey;if(rr){var Kt;if(ee(Bt,function(wt,Ut){wt&&wt.props&&!wt.props.disabled&&rr===Ue(wt,_t,Ut)&&(Kt=!0)}),Kt)return rr}return rr=null,at.defaultActiveFirst&&ee(Bt,function(wt,Ut){!rr&&wt&&!wt.props.disabled&&(rr=Ue(wt,_t,Ut))}),rr}function ht(at){if(at){var lt=this.instanceArray.indexOf(at);lt!==-1?this.instanceArray[lt]=at:this.instanceArray.push(at)}}var Rt=function(at){Object(u.a)(rr,at);var lt=Object(h.a)(rr);function rr(Bt){var _t;return Object(t.a)(this,rr),_t=lt.call(this,Bt),_t.onKeyDown=function(Kt,wt){var Ut=Kt.keyCode,Sr;if(_t.getFlatInstanceArray().forEach(function(gr){gr&&gr.props.active&&gr.onKeyDown&&(Sr=gr.onKeyDown(Kt))}),Sr)return 1;var hr=null;return(Ut===x.a.UP||Ut===x.a.DOWN)&&(hr=_t.step(Ut===x.a.UP?-1:1)),hr?(Kt.preventDefault(),Fe(_t.props.store,Ne(_t.props),hr.props.eventKey),typeof wt=="function"&&wt(hr),1):void 0},_t.onItemHover=function(Kt){var wt=Kt.key,Ut=Kt.hover;Fe(_t.props.store,Ne(_t.props),Ut?wt:null)},_t.onDeselect=function(Kt){_t.props.onDeselect(Kt)},_t.onSelect=function(Kt){_t.props.onSelect(Kt)},_t.onClick=function(Kt){_t.props.onClick(Kt)},_t.onOpenChange=function(Kt){_t.props.onOpenChange(Kt)},_t.onDestroy=function(Kt){_t.props.onDestroy(Kt)},_t.getFlatInstanceArray=function(){return _t.instanceArray},_t.step=function(Kt){var wt=_t.getFlatInstanceArray(),Ut=_t.props.store.getState().activeKey[Ne(_t.props)],Sr=wt.length;if(!Sr)return null;Kt<0&&(wt=wt.concat().reverse());var hr=-1;if(wt.every(function(Pn,Dn){return Pn&&Pn.props.eventKey===Ut?(hr=Dn,!1):!0}),!_t.props.defaultActiveFirst&&hr!==-1&&X(wt.slice(hr,Sr-1)))return;var gr=(hr+1)%Sr,Jr=gr;do{var $r=wt[Jr];if(!$r||$r.props.disabled)Jr=(Jr+1)%Sr;else return $r}while(Jr!==gr);return null},_t.renderCommonMenuItem=function(Kt,wt,Ut){var Sr=_t.props.store.getState(),hr=Object(l.a)(_t),gr=hr.props,Jr=Ue(Kt,gr.eventKey,wt),$r=Kt.props;if(!$r||typeof Kt.type=="string")return Kt;var Pn=Jr===Sr.activeKey,Dn=Object(s.a)(Object(s.a)({mode:$r.mode||gr.mode,level:gr.level,inlineIndent:gr.inlineIndent,renderMenuItem:_t.renderMenuItem,rootPrefixCls:gr.prefixCls,index:wt,parentMenu:gr.parentMenu,manualRef:$r.disabled?void 0:Object(T.a)(Kt.ref,ht.bind(Object(l.a)(_t))),eventKey:Jr,active:!$r.disabled&&Pn,multiple:gr.multiple,onClick:function(li){($r.onClick||pe)(li),_t.onClick(li)},onItemHover:_t.onItemHover,motion:gr.motion,subMenuOpenDelay:gr.subMenuOpenDelay,subMenuCloseDelay:gr.subMenuCloseDelay,forceSubMenuRender:gr.forceSubMenuRender,onOpenChange:_t.onOpenChange,onDeselect:_t.onDeselect,onSelect:_t.onSelect,builtinPlacements:gr.builtinPlacements,itemIcon:$r.itemIcon||_t.props.itemIcon,expandIcon:$r.expandIcon||_t.props.expandIcon},Ut),{},{direction:gr.direction});return(gr.mode==="inline"||J())&&(Dn.triggerSubMenuAction="click"),e.cloneElement(Kt,Dn)},_t.renderMenuItem=function(Kt,wt,Ut){if(!Kt)return null;var Sr=_t.props.store.getState(),hr={openKeys:Sr.openKeys,selectedKeys:Sr.selectedKeys,triggerSubMenuAction:_t.props.triggerSubMenuAction,subMenuKey:Ut};return _t.renderCommonMenuItem(Kt,wt,hr)},Bt.store.setState({activeKey:Object(s.a)(Object(s.a)({},Bt.store.getState().activeKey),{},Object(y.a)({},Bt.eventKey,q(Bt,Bt.activeKey)))}),_t.instanceArray=[],_t}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(_t){return this.props.visible||_t.visible||this.props.className!==_t.className||!b()(this.props.style,_t.style)}},{key:"componentDidUpdate",value:function(_t){var Kt=this.props,wt="activeKey"in Kt?Kt.activeKey:Kt.store.getState().activeKey[Ne(Kt)],Ut=q(Kt,wt);if(Ut!==wt)Fe(Kt.store,Ne(Kt),Ut);else if("activeKey"in _t){var Sr=q(_t,_t.activeKey);Ut!==Sr&&Fe(Kt.store,Ne(Kt),Ut)}}},{key:"render",value:function(){var _t=this,Kt=Object(v.a)({},this.props);this.instanceArray=[];var wt=I()(Kt.prefixCls,Kt.className,"".concat(Kt.prefixCls,"-").concat(Kt.mode)),Ut={className:wt,role:Kt.role||"menu"};Kt.id&&(Ut.id=Kt.id),Kt.focusable&&(Ut.tabIndex=0,Ut.onKeyDown=this.onKeyDown);var Sr=Kt.prefixCls,hr=Kt.eventKey,gr=Kt.visible,Jr=Kt.level,$r=Kt.mode,Pn=Kt.overflowedIndicator,Dn=Kt.theme;return se.forEach(function(Zn){return delete Kt[Zn]}),delete Kt.onClick,e.createElement(ie,Object.assign({},Kt,{prefixCls:Sr,mode:$r,tag:"ul",level:Jr,theme:Dn,visible:gr,overflowedIndicator:Pn},Ut),e.Children.map(Kt.children,function(Zn,li){return _t.renderMenuItem(Zn,li,hr||"0-menu-")}))}}]),rr}(e.Component);Rt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:pe};var ut=Object(p.b)()(Rt),Xt=ut,or=d("Kwbf");function Zr(at,lt,rr){var Bt=at.prefixCls,_t=at.motion,Kt=at.defaultMotions,wt=Kt===void 0?{}:Kt,Ut=at.openAnimation,Sr=at.openTransitionName,hr=lt.switchingModeFromInline;if(_t)return _t;if(Object(L.a)(Ut)==="object"&&Ut)Object(or.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ut=="string")return{motionName:"".concat(Bt,"-open-").concat(Ut)};if(Sr)return{motionName:Sr};var gr=wt[rr];return gr||(hr?null:wt.other)}var ar=function(at){Object(u.a)(rr,at);var lt=Object(h.a)(rr);function rr(Bt){var _t;Object(t.a)(this,rr),_t=lt.call(this,Bt),_t.inlineOpenKeys=[],_t.onSelect=function(Ut){var Sr=Object(l.a)(_t),hr=Sr.props;if(hr.selectable){var gr=_t.store.getState(),Jr=gr.selectedKeys,$r=Ut.key;hr.multiple?Jr=Jr.concat([$r]):Jr=[$r],"selectedKeys"in hr||_t.store.setState({selectedKeys:Jr}),hr.onSelect(Object(s.a)(Object(s.a)({},Ut),{},{selectedKeys:Jr}))}},_t.onClick=function(Ut){var Sr=_t.getRealMenuMode(),hr=Object(l.a)(_t),gr=hr.store,Jr=hr.props.onOpenChange;Sr!=="inline"&&!("openKeys"in _t.props)&&(gr.setState({openKeys:[]}),Jr([])),_t.props.onClick(Ut)},_t.onKeyDown=function(Ut,Sr){_t.innerMenu.getWrappedInstance().onKeyDown(Ut,Sr)},_t.onOpenChange=function(Ut){var Sr=Object(l.a)(_t),hr=Sr.props,gr=_t.store.getState().openKeys.concat(),Jr=!1,$r=function(Dn){var Zn=!1;if(Dn.open)Zn=gr.indexOf(Dn.key)===-1,Zn&&gr.push(Dn.key);else{var li=gr.indexOf(Dn.key);Zn=li!==-1,Zn&&gr.splice(li,1)}Jr=Jr||Zn};Array.isArray(Ut)?Ut.forEach($r):$r(Ut),Jr&&("openKeys"in _t.props||_t.store.setState({openKeys:gr}),hr.onOpenChange(gr))},_t.onDeselect=function(Ut){var Sr=Object(l.a)(_t),hr=Sr.props;if(hr.selectable){var gr=_t.store.getState().selectedKeys.concat(),Jr=Ut.key,$r=gr.indexOf(Jr);$r!==-1&&gr.splice($r,1),"selectedKeys"in hr||_t.store.setState({selectedKeys:gr}),hr.onDeselect(Object(s.a)(Object(s.a)({},Ut),{},{selectedKeys:gr}))}},_t.onMouseEnter=function(Ut){_t.restoreModeVerticalFromInline();var Sr=_t.props.onMouseEnter;Sr&&Sr(Ut)},_t.onTransitionEnd=function(Ut){var Sr=Ut.propertyName==="width"&&Ut.target===Ut.currentTarget,hr=Ut.target.className,gr=Object.prototype.toString.call(hr)==="[object SVGAnimatedString]"?hr.animVal:hr,Jr=Ut.propertyName==="font-size"&&gr.indexOf("anticon")>=0;(Sr||Jr)&&_t.restoreModeVerticalFromInline()},_t.setInnerMenu=function(Ut){_t.innerMenu=Ut},_t.isRootMenu=!0;var Kt=Bt.defaultSelectedKeys,wt=Bt.defaultOpenKeys;return"selectedKeys"in Bt&&(Kt=Bt.selectedKeys||[]),"openKeys"in Bt&&(wt=Bt.openKeys||[]),_t.store=Object(p.c)({selectedKeys:Kt,openKeys:wt,activeKey:{"0-menu-":q(Bt,Bt.activeKey)}}),_t.state={switchingModeFromInline:!1},_t}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(_t){this.updateOpentKeysWhenSwitchMode(_t),this.updateMiniStore();var Kt=this.props,wt=Kt.siderCollapsed,Ut=Kt.inlineCollapsed,Sr=Kt.onOpenChange;(!_t.inlineCollapsed&&Ut||!_t.siderCollapsed&&wt)&&Sr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(_t){var Kt=this.props,wt=this.store,Ut=this.inlineOpenKeys,Sr=wt.getState(),hr={};_t.mode==="inline"&&Kt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Kt||((Kt.inlineCollapsed&&!_t.inlineCollapsed||Kt.siderCollapsed&&!_t.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Sr.openKeys.concat(),hr.openKeys=[]),(!Kt.inlineCollapsed&&_t.inlineCollapsed||!Kt.siderCollapsed&&_t.siderCollapsed)&&(hr.openKeys=Ut,this.inlineOpenKeys=[])),Object.keys(hr).length&&wt.setState(hr)}},{key:"updateMenuDisplay",value:function(){var _t=this.props.collapsedWidth,Kt=this.store,wt=this.prevOpenKeys,Ut=this.getInlineCollapsed()&&(_t===0||_t==="0"||_t==="0px");Ut?(this.prevOpenKeys=Kt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):wt&&(this.store.setState({openKeys:wt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var _t=this.props.mode,Kt=this.state.switchingModeFromInline,wt=this.getInlineCollapsed();return Kt&&wt?"inline":wt?"vertical":_t}},{key:"getInlineCollapsed",value:function(){var _t=this.props,Kt=_t.inlineCollapsed,wt=_t.siderCollapsed;return wt!==void 0?wt:Kt}},{key:"restoreModeVerticalFromInline",value:function(){var _t=this.state.switchingModeFromInline;_t&&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 _t=Object(s.a)({},Object(g.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Kt=this.getRealMenuMode();return _t.className+=" ".concat(_t.prefixCls,"-root"),_t.direction==="rtl"&&(_t.className+=" ".concat(_t.prefixCls,"-rtl")),_t=Object(s.a)(Object(s.a)({},_t),{},{mode:Kt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Zr(this.props,this.state,Kt)}),delete _t.openAnimation,delete _t.openTransitionName,e.createElement(p.a,{store:this.store},e.createElement(Xt,Object.assign({},_t,{ref:this.setInnerMenu}),this.props.children))}}]),rr}(e.Component);ar.defaultProps={selectable:!0,onClick:pe,onSelect:pe,onOpenChange:pe,onDeselect:pe,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 dr=ar,er=function(at){Object(u.a)(rr,at);var lt=Object(h.a)(rr);function rr(){var Bt;return Object(t.a)(this,rr),Bt=lt.apply(this,arguments),Bt.onKeyDown=function(_t){var Kt=_t.keyCode;return Kt===x.a.ENTER?(Bt.onClick(_t),!0):void 0},Bt.onMouseLeave=function(_t){var Kt=Bt.props,wt=Kt.eventKey,Ut=Kt.onItemHover,Sr=Kt.onMouseLeave;Ut({key:wt,hover:!1}),Sr({key:wt,domEvent:_t})},Bt.onMouseEnter=function(_t){var Kt=Bt.props,wt=Kt.eventKey,Ut=Kt.onItemHover,Sr=Kt.onMouseEnter;Ut({key:wt,hover:!0}),Sr({key:wt,domEvent:_t})},Bt.onClick=function(_t){var Kt=Bt.props,wt=Kt.eventKey,Ut=Kt.multiple,Sr=Kt.onClick,hr=Kt.onSelect,gr=Kt.onDeselect,Jr=Kt.isSelected,$r={key:wt,keyPath:[wt],item:Object(l.a)(Bt),domEvent:_t};Sr($r),Ut?Jr?gr($r):hr($r):Jr||hr($r)},Bt.saveNode=function(_t){Bt.node=_t},Bt}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var _t=this.props;_t.onDestroy&&_t.onDestroy(_t.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 _t,Kt=Object(s.a)({},this.props),wt=I()(this.getPrefixCls(),Kt.className,(_t={},Object(y.a)(_t,this.getActiveClassName(),!Kt.disabled&&Kt.active),Object(y.a)(_t,this.getSelectedClassName(),Kt.isSelected),Object(y.a)(_t,this.getDisabledClassName(),Kt.disabled),_t)),Ut=Object(s.a)(Object(s.a)({},Kt.attribute),{},{title:typeof Kt.title=="string"?Kt.title:void 0,className:wt,role:Kt.role||"menuitem","aria-disabled":Kt.disabled});Kt.role==="option"?Ut=Object(s.a)(Object(s.a)({},Ut),{},{role:"option","aria-selected":Kt.isSelected}):(Kt.role===null||Kt.role==="none")&&(Ut.role="none");var Sr={onClick:Kt.disabled?null:this.onClick,onMouseLeave:Kt.disabled?null:this.onMouseLeave,onMouseEnter:Kt.disabled?null:this.onMouseEnter},hr=Object(s.a)({},Kt.style);Kt.mode==="inline"&&(Kt.direction==="rtl"?hr.paddingRight=Kt.inlineIndent*Kt.level:hr.paddingLeft=Kt.inlineIndent*Kt.level),se.forEach(function(Jr){return delete Kt[Jr]}),delete Kt.direction;var gr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(gr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(g.default)(Kt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ut,Sr,{style:hr,ref:this.saveNode}),Kt.children,gr)}}]),rr}(e.Component);er.isMenuItem=!0,er.defaultProps={onSelect:pe,onMouseEnter:pe,onMouseLeave:pe,manualRef:pe};var Ht=Object(p.b)(function(at,lt){var rr=at.activeKey,Bt=at.selectedKeys,_t=lt.eventKey,Kt=lt.subMenuKey;return{active:rr[Kt]===_t,isSelected:Bt.indexOf(_t)!==-1}})(er),dt=Ht,Hr=function(at){Object(u.a)(rr,at);var lt=Object(h.a)(rr);function rr(){var Bt;return Object(t.a)(this,rr),Bt=lt.apply(this,arguments),Bt.renderInnerMenuItem=function(_t){var Kt=Bt.props,wt=Kt.renderMenuItem,Ut=Kt.index;return wt(_t,Ut,Bt.props.subMenuKey)},Bt}return Object(a.a)(rr,[{key:"render",value:function(){var _t=Object(v.a)({},this.props),Kt=_t.className,wt=Kt===void 0?"":Kt,Ut=_t.rootPrefixCls,Sr="".concat(Ut,"-item-group-title"),hr="".concat(Ut,"-item-group-list"),gr=_t.title,Jr=_t.children;return se.forEach(function($r){return delete _t[$r]}),delete _t.onClick,delete _t.direction,e.createElement("li",Object.assign({},_t,{className:"".concat(wt," ").concat(Ut,"-item-group")}),e.createElement("div",{className:Sr,title:typeof gr=="string"?gr:void 0},gr),e.createElement("ul",{className:hr},e.Children.map(Jr,this.renderInnerMenuItem)))}}]),rr}(e.Component);Hr.isMenuItemGroup=!0,Hr.defaultProps={disabled:!0};var dn=Hr,Nn=function(lt){var rr=lt.className,Bt=lt.rootPrefixCls,_t=lt.style;return e.createElement("li",{className:"".concat(rr," ").concat(Bt,"-item-divider"),style:_t})};Nn.defaultProps={disabled:!0,className:"",style:{}};var Vn=Nn,gi=dr,bn=Object(e.createContext)({inlineCollapsed:!1}),Mn=bn,jt=d("0n0R"),St=function(at){r()(rr,at);var lt=n()(rr);function rr(){return m()(this,rr),lt.apply(this,arguments)}return c()(rr,[{key:"renderTitle",value:function(_t){var Kt=this.props,wt=Kt.icon,Ut=Kt.title,Sr=Kt.level,hr=Kt.rootPrefixCls;if(!wt)return _t&&Sr===1&&Ut&&typeof Ut=="string"?e.createElement("div",{className:"".concat(hr,"-inline-collapsed-noicon")},Ut.charAt(0)):Ut;var gr=Object(jt.b)(Ut)&&Ut.type==="span";return e.createElement(e.Fragment,null,wt,gr?Ut:e.createElement("span",null,Ut))}},{key:"render",value:function(){var _t=this,Kt=this.props,wt=Kt.rootPrefixCls,Ut=Kt.popupClassName;return e.createElement(Mn.Consumer,null,function(Sr){var hr=Sr.inlineCollapsed,gr=Sr.antdMenuTheme;return e.createElement(Ct,E()({},Object(g.default)(_t.props,["icon"]),{title:_t.renderTitle(hr),popupClassName:I()(wt,"".concat(wt,"-").concat(gr),Ut)}))})}}]),rr}(e.Component);St.contextType=Mn,St.isSubMenu=1;var Ie=St,_e=d("Zm9Q"),Le=d("3S7+"),Ze=d("ZX9x"),it=function(at,lt){var rr={};for(var Bt in at)Object.prototype.hasOwnProperty.call(at,Bt)&<.indexOf(Bt)<0&&(rr[Bt]=at[Bt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Bt=Object.getOwnPropertySymbols(at);_t<Bt.length;_t++)lt.indexOf(Bt[_t])<0&&Object.prototype.propertyIsEnumerable.call(at,Bt[_t])&&(rr[Bt[_t]]=at[Bt[_t]]);return rr},ft=function(at){r()(rr,at);var lt=n()(rr);function rr(){var Bt;return m()(this,rr),Bt=lt.apply(this,arguments),Bt.renderItem=function(_t){var Kt=_t.siderCollapsed,wt=Bt.props,Ut=wt.level,Sr=wt.className,hr=wt.children,gr=wt.rootPrefixCls,Jr=Bt.props,$r=Jr.title,Pn=Jr.icon,Dn=Jr.danger,Zn=it(Jr,["title","icon","danger"]);return e.createElement(Mn.Consumer,null,function(li){var Ai,Ii=li.inlineCollapsed,$e=li.direction,Se=$r;typeof $r=="undefined"?Se=Ut===1?hr:"":$r===!1&&(Se="");var Re={title:Se};!Kt&&!Ii&&(Re.title=null,Re.visible=!1);var je=Object(_e.a)(hr).length;return e.createElement(Le.a,E()({},Re,{placement:$e==="rtl"?"left":"right",overlayClassName:"".concat(gr,"-inline-collapsed-tooltip")}),e.createElement(dt,E()({},Zn,{className:I()(Sr,(Ai={},A()(Ai,"".concat(gr,"-item-danger"),Dn),A()(Ai,"".concat(gr,"-item-only-child"),(Pn?je+1:je)===1),Ai)),title:$r}),Pn,Bt.renderItemChildren(Ii)))})},Bt}return c()(rr,[{key:"renderItemChildren",value:function(_t){var Kt=this.props,wt=Kt.icon,Ut=Kt.children,Sr=Kt.level,hr=Kt.rootPrefixCls;return!wt||Object(jt.b)(Ut)&&Ut.type==="span"?Ut&&_t&&Sr===1&&typeof Ut=="string"?e.createElement("div",{className:"".concat(hr,"-inline-collapsed-noicon")},Ut.charAt(0)):Ut:e.createElement("span",null,Ut)}},{key:"render",value:function(){return e.createElement(Ze.a.Consumer,null,this.renderItem)}}]),rr}(e.Component);ft.isMenuItem=!0;var Nt=d("H84U"),Ar=d("uaoM"),Mr=d("EXcs"),un=function(at){r()(rr,at);var lt=n()(rr);function rr(Bt){var _t;return m()(this,rr),_t=lt.call(this,Bt),_t.renderMenu=function(Kt){var wt=Kt.getPopupContainer,Ut=Kt.getPrefixCls,Sr=Kt.direction,hr=_t.props,gr=hr.prefixCls,Jr=hr.className,$r=hr.theme,Pn={horizontal:{motionName:"slide-up"},inline:Mr.a,other:{motionName:"zoom-big"}},Dn=Ut("menu",gr),Zn=I()(Jr,"".concat(Dn,"-").concat($r),A()({},"".concat(Dn,"-inline-collapsed"),_t.getInlineCollapsed()));return e.createElement(Mn.Provider,{value:{inlineCollapsed:_t.getInlineCollapsed()||!1,antdMenuTheme:$r,direction:Sr}},e.createElement(gi,E()({getPopupContainer:wt},_t.props,{className:Zn,prefixCls:Dn,direction:Sr,defaultMotions:Pn})))},Object(Ar.a)(!("inlineCollapsed"in Bt&&Bt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Ar.a)(!(Bt.siderCollapsed!==void 0&&"inlineCollapsed"in Bt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),_t}return c()(rr,[{key:"getInlineCollapsed",value:function(){var _t=this.props,Kt=_t.inlineCollapsed,wt=_t.siderCollapsed;return wt!==void 0?wt:Kt}},{key:"render",value:function(){return e.createElement(Nt.a,null,this.renderMenu)}}]),rr}(e.Component);un.defaultProps={className:"",theme:"light",focusable:!1};var Mt=function(at){r()(rr,at);var lt=n()(rr);function rr(){return m()(this,rr),lt.apply(this,arguments)}return c()(rr,[{key:"render",value:function(){var _t=this;return e.createElement(Ze.a.Consumer,null,function(Kt){return e.createElement(un,E()({},_t.props,Kt))})}}]),rr}(e.Component);Mt.Divider=Vn,Mt.Item=ft,Mt.SubMenu=Ie,Mt.ItemGroup=dn},C0SR:function(H,B,d){var O=d("YH21"),E=function(){this._track=[]};E.prototype={constructor:E,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,s=i.length;e<s;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 w)if(w.hasOwnProperty(o)){var r=w[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 w={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 s=A(i);return o.pinchX=s[0],o.pinchY=s[1],{type:"pinch",target:c[0].target,event:o}}}},m=E;H.exports=m},C0tN:function(H,B,d){d("0o9m"),d("8Uz6"),d("Ducp"),d("6/nd")},CBdT:function(H,B,d){var O=d("ProS");d("8waO"),d("AEZ6"),d("YNf1");var E=d("q3GZ");O.registerVisual(E)},CF2D:function(H,B,d){var O=d("ProS");d("vZI5"),d("GeKi");var E=d("6r85"),C=d("TJmX"),A=d("CbHG");O.registerPreprocessor(E),O.registerVisual(C),O.registerLayout(A)},CFYs:function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d.n(t),l=d("TSYQ"),u=d.n(l),h=d("BGR+"),p=d("V/uB"),g=d.n(p),v=d("NAnI"),y=d.n(v),x=d("J84W"),T=d.n(x),S=d("kbBi"),b=d.n(S),_=d("H84U"),I=d("CWQg"),L=d("uaoM"),N=d("Zss7"),D=d.n(N),R=2,P=.16,M=.05,U=.05,F=.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(ft,Nt,Ar){var Mr;return Math.round(ft.h)>=60&&Math.round(ft.h)<=240?Mr=Ar?Math.round(ft.h)-R*Nt:Math.round(ft.h)+R*Nt:Mr=Ar?Math.round(ft.h)+R*Nt:Math.round(ft.h)-R*Nt,Mr<0?Mr+=360:Mr>=360&&(Mr-=360),Mr}function Y(ft,Nt,Ar){if(ft.h===0&&ft.s===0)return ft.s;var Mr;return Ar?Mr=ft.s-P*Nt:Nt===W?Mr=ft.s+P:Mr=ft.s+M*Nt,Mr>1&&(Mr=1),Ar&&Nt===j&&Mr>.1&&(Mr=.1),Mr<.06&&(Mr=.06),Number(Mr.toFixed(2))}function $(ft,Nt,Ar){var Mr;return Ar?Mr=ft.v+U*Nt:Mr=ft.v-F*Nt,Mr>1&&(Mr=1),Number(Mr.toFixed(2))}function ue(ft){for(var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ar=[],Mr=D()(ft),un=j;un>0;un-=1){var Mt=Mr.toHsv(),at=D()({h:z(Mt,un,!0),s:Y(Mt,un,!0),v:$(Mt,un,!0)}).toHexString();Ar.push(at)}Ar.push(Mr.toHexString());for(var lt=1;lt<=W;lt+=1){var rr=Mr.toHsv(),Bt=D()({h:z(rr,lt),s:Y(rr,lt),v:$(rr,lt)}).toHexString();Ar.push(Bt)}return Nt.theme==="dark"?V.map(function(_t){var Kt=_t.index,wt=_t.opacity,Ut=D.a.mix(Nt.backgroundColor||"#141414",Ar[Kt],wt*100).toHexString();return Ut}):Ar}var ne={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"},ge={},Oe={};Object.keys(ne).forEach(function(ft){ge[ft]=ue(ne[ft]),ge[ft].primary=ge[ft][5],Oe[ft]=ue(ne[ft],{theme:"dark",backgroundColor:"#141414"}),Oe[ft].primary=Oe[ft][5]});var De=ge.red,He=ge.volcano,pe=ge.gold,Ue=ge.orange,oe=ge.yellow,ee=ge.lime,Xe=ge.green,se=ge.cyan,Q=ge.blue,G=ge.geekblue,J=ge.purple,ve=ge.magenta,de=ge.grey;function Ce(ft){return!ft||ft<0?0:ft>100?100:ft}function Ee(ft){var Nt=ft.success,Ar=ft.successPercent,Mr=Ar;return Nt&&"progress"in Nt&&(Object(L.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),Mr=Nt.progress),Nt&&"percent"in Nt&&(Mr=Nt.percent),Mr}var le=function(ft,Nt){var Ar={};for(var Mr in ft)Object.prototype.hasOwnProperty.call(ft,Mr)&&Nt.indexOf(Mr)<0&&(Ar[Mr]=ft[Mr]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Mr=Object.getOwnPropertySymbols(ft);un<Mr.length;un++)Nt.indexOf(Mr[un])<0&&Object.prototype.propertyIsEnumerable.call(ft,Mr[un])&&(Ar[Mr[un]]=ft[Mr[un]]);return Ar},fe=function(Nt){var Ar=[];return Object.keys(Nt).forEach(function(Mr){var un=parseFloat(Mr.replace(/%/g,""));isNaN(un)||Ar.push({key:un,value:Nt[Mr]})}),Ar=Ar.sort(function(Mr,un){return Mr.key-un.key}),Ar.map(function(Mr){var un=Mr.key,Mt=Mr.value;return"".concat(Mt," ").concat(un,"%")}).join(", ")},xe=function(Nt){var Ar=Nt.from,Mr=Ar===void 0?ne.blue:Ar,un=Nt.to,Mt=un===void 0?ne.blue:un,at=Nt.direction,lt=at===void 0?"to right":at,rr=le(Nt,["from","to","direction"]);if(Object.keys(rr).length!==0){var Bt=fe(rr);return{backgroundImage:"linear-gradient(".concat(lt,", ").concat(Bt,")")}}return{backgroundImage:"linear-gradient(".concat(lt,", ").concat(Mr,", ").concat(Mt,")")}},Qe=function(Nt){var Ar=Nt.prefixCls,Mr=Nt.percent,un=Nt.strokeWidth,Mt=Nt.size,at=Nt.strokeColor,lt=Nt.strokeLinecap,rr=Nt.children,Bt=Nt.trailColor,_t=Nt.success,Kt=at&&typeof at!="string"?xe(at):{background:at},wt=Bt?{backgroundColor:Bt}:void 0,Ut=A()({width:"".concat(Ce(Mr),"%"),height:un||(Mt==="small"?6:8),borderRadius:lt==="square"?0:""},Kt),Sr=Ee(Nt),hr={width:"".concat(Ce(Sr),"%"),height:un||(Mt==="small"?6:8),borderRadius:lt==="square"?0:"",backgroundColor:_t==null?void 0:_t.strokeColor},gr=Sr!==void 0?t.createElement("div",{className:"".concat(Ar,"-success-bg"),style:hr}):null;return t.createElement(t.Fragment,null,t.createElement("div",{className:"".concat(Ar,"-outer")},t.createElement("div",{className:"".concat(Ar,"-inner"),style:wt},t.createElement("div",{className:"".concat(Ar,"-bg"),style:Ut}),gr)),rr)},ot=Qe,Je={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Te=function(Nt){var Ar=Nt.map(function(){return Object(t.useRef)()}),Mr=Object(t.useRef)();return Object(t.useEffect)(function(){var un=Date.now(),Mt=!1;Object.keys(Ar).forEach(function(at){var lt=Ar[at].current;if(!lt)return;Mt=!0;var rr=lt.style;rr.transitionDuration=".3s, .3s, .3s, .06s",Mr.current&&un-Mr.current<100&&(rr.transitionDuration="0s, 0s")}),Mt&&(Mr.current=Date.now())}),[Ar]};function et(){return et=Object.assign||function(ft){for(var Nt=1;Nt<arguments.length;Nt++){var Ar=arguments[Nt];for(var Mr in Ar)Object.prototype.hasOwnProperty.call(Ar,Mr)&&(ft[Mr]=Ar[Mr])}return ft},et.apply(this,arguments)}function ze(ft,Nt){return Dt(ft)||Tt(ft,Nt)||Ot(ft,Nt)||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 Ot(ft,Nt){if(!ft)return;if(typeof ft=="string")return Ct(ft,Nt);var Ar=Object.prototype.toString.call(ft).slice(8,-1);if(Ar==="Object"&&ft.constructor&&(Ar=ft.constructor.name),Ar==="Map"||Ar==="Set")return Array.from(ft);if(Ar==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ar))return Ct(ft,Nt)}function Ct(ft,Nt){(Nt==null||Nt>ft.length)&&(Nt=ft.length);for(var Ar=0,Mr=new Array(Nt);Ar<Nt;Ar++)Mr[Ar]=ft[Ar];return Mr}function Tt(ft,Nt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(ft)))return;var Ar=[],Mr=!0,un=!1,Mt=void 0;try{for(var at=ft[Symbol.iterator](),lt;!(Mr=(lt=at.next()).done)&&!(Ar.push(lt.value),Nt&&Ar.length===Nt);Mr=!0);}catch(rr){un=!0,Mt=rr}finally{try{!Mr&&at.return!=null&&at.return()}finally{if(un)throw Mt}}return Ar}function Dt(ft){if(Array.isArray(ft))return ft}function Be(ft,Nt){if(ft==null)return{};var Ar=ie(ft,Nt),Mr,un;if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(ft);for(un=0;un<Mt.length;un++){if(Mr=Mt[un],Nt.indexOf(Mr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ft,Mr))continue;Ar[Mr]=ft[Mr]}}return Ar}function ie(ft,Nt){if(ft==null)return{};var Ar={},Mr=Object.keys(ft),un,Mt;for(Mt=0;Mt<Mr.length;Mt++){if(un=Mr[Mt],Nt.indexOf(un)>=0)continue;Ar[un]=ft[un]}return Ar}var X=function(Nt){var Ar=Nt.className,Mr=Nt.percent,un=Nt.prefixCls,Mt=Nt.strokeColor,at=Nt.strokeLinecap,lt=Nt.strokeWidth,rr=Nt.style,Bt=Nt.trailColor,_t=Nt.trailWidth,Kt=Nt.transition,wt=Be(Nt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete wt.gapPosition;var Ut=Array.isArray(Mr)?Mr:[Mr],Sr=Array.isArray(Mt)?Mt:[Mt],hr=Te(Ut),gr=ze(hr,1),Jr=gr[0],$r=lt/2,Pn=100-lt/2,Dn="M ".concat(at==="round"?$r:0,",").concat($r,`
|
|
|
L `).concat(at==="round"?Pn:100,",").concat($r),Zn="0 0 100 ".concat(lt),li=0;return a.a.createElement("svg",et({className:u()("".concat(un,"-line"),Ar),viewBox:Zn,preserveAspectRatio:"none",style:rr},wt),a.a.createElement("path",{className:"".concat(un,"-line-trail"),d:Dn,strokeLinecap:at,stroke:Bt,strokeWidth:_t||lt,fillOpacity:"0"}),Ut.map(function(Ai,Ii){var $e={strokeDasharray:"".concat(Ai,"px, 100px"),strokeDashoffset:"-".concat(li,"px"),transition:Kt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Se=Sr[Ii]||Sr[Sr.length-1];return li+=Ai,a.a.createElement("path",{key:Ii,className:"".concat(un,"-line-path"),d:Dn,strokeLinecap:at,stroke:Se,strokeWidth:lt,fillOpacity:"0",ref:Jr[Ii],style:$e})}))};X.defaultProps=Je;var Fe=X;function Ne(){return Ne=Object.assign||function(ft){for(var Nt=1;Nt<arguments.length;Nt++){var Ar=arguments[Nt];for(var Mr in Ar)Object.prototype.hasOwnProperty.call(Ar,Mr)&&(ft[Mr]=Ar[Mr])}return ft},Ne.apply(this,arguments)}function q(ft,Nt){return or(ft)||Xt(ft,Nt)||Rt(ft,Nt)||ht()}function ht(){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 Rt(ft,Nt){if(!ft)return;if(typeof ft=="string")return ut(ft,Nt);var Ar=Object.prototype.toString.call(ft).slice(8,-1);if(Ar==="Object"&&ft.constructor&&(Ar=ft.constructor.name),Ar==="Map"||Ar==="Set")return Array.from(ft);if(Ar==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ar))return ut(ft,Nt)}function ut(ft,Nt){(Nt==null||Nt>ft.length)&&(Nt=ft.length);for(var Ar=0,Mr=new Array(Nt);Ar<Nt;Ar++)Mr[Ar]=ft[Ar];return Mr}function Xt(ft,Nt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(ft)))return;var Ar=[],Mr=!0,un=!1,Mt=void 0;try{for(var at=ft[Symbol.iterator](),lt;!(Mr=(lt=at.next()).done)&&!(Ar.push(lt.value),Nt&&Ar.length===Nt);Mr=!0);}catch(rr){un=!0,Mt=rr}finally{try{!Mr&&at.return!=null&&at.return()}finally{if(un)throw Mt}}return Ar}function or(ft){if(Array.isArray(ft))return ft}function Zr(ft,Nt){if(ft==null)return{};var Ar=ar(ft,Nt),Mr,un;if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(ft);for(un=0;un<Mt.length;un++){if(Mr=Mt[un],Nt.indexOf(Mr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ft,Mr))continue;Ar[Mr]=ft[Mr]}}return Ar}function ar(ft,Nt){if(ft==null)return{};var Ar={},Mr=Object.keys(ft),un,Mt;for(Mt=0;Mt<Mr.length;Mt++){if(un=Mr[Mt],Nt.indexOf(un)>=0)continue;Ar[un]=ft[un]}return Ar}var dr=0;function er(ft){return+ft.replace("%","")}function Ht(ft){return Array.isArray(ft)?ft:[ft]}function dt(ft,Nt,Ar,Mr){var un=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Mt=arguments.length>5?arguments[5]:void 0,at=50-Mr/2,lt=0,rr=-at,Bt=0,_t=-2*at;switch(Mt){case"left":lt=-at,rr=0,Bt=2*at,_t=0;break;case"right":lt=at,rr=0,Bt=-2*at,_t=0;break;case"bottom":rr=at,_t=2*at;break;default:}var Kt="M 50,50 m ".concat(lt,",").concat(rr,`
|
|
|
a `).concat(at,",").concat(at," 0 1 1 ").concat(Bt,",").concat(-_t,`
|
|
|
a `).concat(at,",").concat(at," 0 1 1 ").concat(-Bt,",").concat(_t),wt=Math.PI*2*at,Ut={stroke:Ar,strokeDasharray:"".concat(Nt/100*(wt-un),"px ").concat(wt,"px"),strokeDashoffset:"-".concat(un/2+ft/100*(wt-un),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Kt,pathStyle:Ut}}var Hr=function(Nt){var Ar=Nt.prefixCls,Mr=Nt.strokeWidth,un=Nt.trailWidth,Mt=Nt.gapDegree,at=Nt.gapPosition,lt=Nt.trailColor,rr=Nt.strokeLinecap,Bt=Nt.style,_t=Nt.className,Kt=Nt.strokeColor,wt=Nt.percent,Ut=Zr(Nt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Sr=Object(t.useMemo)(function(){return dr+=1,dr},[]),hr=dt(0,100,lt,Mr,Mt,at),gr=hr.pathString,Jr=hr.pathStyle,$r=Ht(wt),Pn=Ht(Kt),Dn=Pn.find(function($e){return Object.prototype.toString.call($e)==="[object Object]"}),Zn=Te($r),li=q(Zn,1),Ai=li[0],Ii=function(){var Se=0;return $r.map(function(Re,je){var Ye=Pn[je]||Pn[Pn.length-1],Ve=Object.prototype.toString.call(Ye)==="[object Object]"?"url(#".concat(Ar,"-gradient-").concat(Sr,")"):"",qe=dt(Se,Re,Ye,Mr,Mt,at);return Se+=Re,a.a.createElement("path",{key:je,className:"".concat(Ar,"-circle-path"),d:qe.pathString,stroke:Ve,strokeLinecap:rr,strokeWidth:Mr,opacity:Re===0?0:1,fillOpacity:"0",style:qe.pathStyle,ref:Ai[je]})})};return a.a.createElement("svg",Ne({className:u()("".concat(Ar,"-circle"),_t),viewBox:"0 0 100 100",style:Bt},Ut),Dn&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(Ar,"-gradient-").concat(Sr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Dn).sort(function($e,Se){return er($e)-er(Se)}).map(function($e,Se){return a.a.createElement("stop",{key:Se,offset:$e,stopColor:Dn[$e]})}))),a.a.createElement("path",{className:"".concat(Ar,"-circle-trail"),d:gr,stroke:lt,strokeLinecap:rr,strokeWidth:un||Mr,fillOpacity:"0",style:Jr}),Ii().reverse())};Hr.defaultProps=Je;var dn=Hr,Nn={Line:Fe,Circle:dn};function Vn(ft){var Nt=ft.percent,Ar=ft.success,Mr=ft.successPercent,un=Ce(Nt),Mt=Ee({success:Ar,successPercent:Mr});return Mt?[Ce(Mt),Ce(un-Ce(Mt))]:un}function gi(ft){var Nt=ft.success,Ar=ft.strokeColor,Mr=ft.successPercent,un=Ar||null,Mt=Ee({success:Nt,successPercent:Mr});return Mt?[ne.green,un]:un}var bn=function(Nt){var Ar=Nt.prefixCls,Mr=Nt.width,un=Nt.strokeWidth,Mt=Nt.trailColor,at=Nt.strokeLinecap,lt=Nt.gapPosition,rr=Nt.gapDegree,Bt=Nt.type,_t=Nt.children,Kt=Mr||120,wt={width:Kt,height:Kt,fontSize:Kt*.15+6},Ut=un||6,Sr=lt||Bt==="dashboard"&&"bottom"||"top",hr=function(){return rr||rr===0?rr:Bt==="dashboard"?75:void 0},gr=gi(Nt),Jr=Object.prototype.toString.call(gr)==="[object Object]",$r=u()("".concat(Ar,"-inner"),E()({},"".concat(Ar,"-circle-gradient"),Jr));return t.createElement("div",{className:$r,style:wt},t.createElement(dn,{percent:Vn(Nt),strokeWidth:Ut,trailWidth:Ut,strokeColor:gr,strokeLinecap:at,trailColor:Mt,prefixCls:Ar,gapDegree:hr(),gapPosition:Sr}),_t)},Mn=bn,jt=function(Nt){for(var Ar=Nt.size,Mr=Nt.steps,un=Nt.percent,Mt=un===void 0?0:un,at=Nt.strokeWidth,lt=at===void 0?8:at,rr=Nt.strokeColor,Bt=Nt.trailColor,_t=Nt.prefixCls,Kt=Nt.children,wt=Math.floor(Mr*(Mt/100)),Ut=Ar==="small"?2:14,Sr=[],hr=0;hr<Mr;hr+=1)Sr.push(t.createElement("div",{key:hr,className:u()("".concat(_t,"-steps-item"),E()({},"".concat(_t,"-steps-item-active"),hr<=wt-1)),style:{backgroundColor:hr<=wt-1?rr:Bt,width:Ut,height:lt}}));return t.createElement("div",{className:"".concat(_t,"-steps-outer")},Sr,Kt)},St=jt,Ie=function(ft,Nt){var Ar={};for(var Mr in ft)Object.prototype.hasOwnProperty.call(ft,Mr)&&Nt.indexOf(Mr)<0&&(Ar[Mr]=ft[Mr]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Mr=Object.getOwnPropertySymbols(ft);un<Mr.length;un++)Nt.indexOf(Mr[un])<0&&Object.prototype.propertyIsEnumerable.call(ft,Mr[un])&&(Ar[Mr[un]]=ft[Mr[un]]);return Ar},_e=Object(I.a)("line","circle","dashboard"),Le=Object(I.a)("normal","exception","active","success"),Ze=function(ft){n()(Ar,ft);var Nt=s()(Ar);function Ar(){var Mr;return m()(this,Ar),Mr=Nt.apply(this,arguments),Mr.renderProgress=function(un){var Mt,at=un.getPrefixCls,lt=un.direction,rr=r()(Mr),Bt=rr.props,_t=Bt.prefixCls,Kt=Bt.className,wt=Bt.size,Ut=Bt.type,Sr=Bt.steps,hr=Bt.showInfo,gr=Bt.strokeColor,Jr=Ie(Bt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),$r=at("progress",_t),Pn=Mr.getProgressStatus(),Dn=Mr.renderProcessInfo($r,Pn);Object(L.a)(!("successPercent"in Bt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var Zn;Ut==="line"?Zn=Sr?t.createElement(St,A()({},Mr.props,{strokeColor:typeof gr=="string"?gr:void 0,prefixCls:$r,steps:Sr}),Dn):t.createElement(ot,A()({},Mr.props,{prefixCls:$r}),Dn):(Ut==="circle"||Ut==="dashboard")&&(Zn=t.createElement(Mn,A()({},Mr.props,{prefixCls:$r,progressStatus:Pn}),Dn));var li=u()($r,(Mt={},E()(Mt,"".concat($r,"-").concat(Ut==="dashboard"&&"circle"||Sr&&"steps"||Ut),!0),E()(Mt,"".concat($r,"-status-").concat(Pn),!0),E()(Mt,"".concat($r,"-show-info"),hr),E()(Mt,"".concat($r,"-").concat(wt),wt),E()(Mt,"".concat($r,"-rtl"),lt==="rtl"),Mt),Kt);return t.createElement("div",A()({},Object(h.default)(Jr,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:li}),Zn)},Mr}return c()(Ar,[{key:"getPercentNumber",value:function(){var un=this.props.percent,Mt=un===void 0?0:un,at=Ee(this.props);return parseInt(at!==void 0?at.toString():Mt.toString(),10)}},{key:"getProgressStatus",value:function(){var un=this.props.status;return Le.indexOf(un)<0&&this.getPercentNumber()>=100?"success":un||"normal"}},{key:"renderProcessInfo",value:function(un,Mt){var at=this.props,lt=at.showInfo,rr=at.format,Bt=at.type,_t=at.percent,Kt=Ee(this.props);if(!lt)return null;var wt,Ut=rr||function(hr){return"".concat(hr,"%")},Sr=Bt==="line";return rr||Mt!=="exception"&&Mt!=="success"?wt=Ut(Ce(_t),Ce(Kt)):Mt==="exception"?wt=Sr?t.createElement(b.a,null):t.createElement(g.a,null):Mt==="success"&&(wt=Sr?t.createElement(T.a,null):t.createElement(y.a,null)),t.createElement("span",{className:"".concat(un,"-text"),title:typeof wt=="string"?wt:void 0},wt)}},{key:"render",value:function(){return t.createElement(_.a,null,this.renderProgress)}}]),Ar}(t.Component);Ze.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var it=B.a=Ze},"CMP+":function(H,B,d){var O=d("bYtY"),E=d("hM6l"),C=function(w,m,f,c){E.call(this,w,m,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,E);var A=C;H.exports=A},CP8R:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},"CWI+":function(H,B,d){},CbHG:function(H,B,d){var O=d("IwbS"),E=O.subPixelOptimize,C=d("zM3Q"),A=d("OELB"),w=A.parsePercent,m=d("bYtY"),f=m.retrieve2,c=typeof Float32Array!="undefined"?Float32Array:Array,o={seriesType:"candlestick",plan:C(),reset:function(n){var e=n.coordinateSystem,s=n.getData(),t=i(n,s),a=0,l=1,u=["x","y"],h=s.mapDimension(u[a]),p=s.mapDimension(u[l],!0),g=p[0],v=p[1],y=p[2],x=p[3];if(s.setLayout({candleWidth:t,isSimpleBox:t<=1.3}),h==null||p.length<4)return;return{progress:n.pipelineContext.large?S:T};function T(b,_){for(var I;(I=b.next())!=null;){var L=_.get(h,I),N=_.get(g,I),D=_.get(v,I),R=_.get(y,I),P=_.get(x,I),M=Math.min(N,D),U=Math.max(N,D),F=Y(M,L),j=Y(U,L),W=Y(R,L),V=Y(P,L),z=[];$(z,j,0),$(z,F,1),z.push(ne(V),ne(j),ne(W),ne(F)),_.setItemLayout(I,{sign:r(_,I,N,D,v),initBaseline:N>D?j[l]:F[l],ends:z,brushRect:ue(R,P,L)})}function Y(ge,Oe){var De=[];return De[a]=Oe,De[l]=ge,isNaN(Oe)||isNaN(ge)?[NaN,NaN]:e.dataToPoint(De)}function $(ge,Oe,De){var He=Oe.slice(),pe=Oe.slice();He[a]=E(He[a]+t/2,1,!1),pe[a]=E(pe[a]-t/2,1,!0),De?ge.push(He,pe):ge.push(pe,He)}function ue(ge,Oe,De){var He=Y(ge,De),pe=Y(Oe,De);return He[a]-=t/2,pe[a]-=t/2,{x:He[0],y:He[1],width:l?t:pe[0]-He[0],height:l?pe[1]-He[1]:t}}function ne(ge){return ge[a]=E(ge[a],1),ge}}function S(b,_){for(var I=new c(b.count*4),L=0,N,D=[],R=[],P;(P=b.next())!=null;){var M=_.get(h,P),U=_.get(g,P),F=_.get(v,P),j=_.get(y,P),W=_.get(x,P);if(isNaN(M)||isNaN(j)||isNaN(W)){I[L++]=NaN,L+=3;continue}I[L++]=r(_,P,U,F,v),D[a]=M,D[l]=j,N=e.dataToPoint(D,null,R),I[L++]=N?N[0]:NaN,I[L++]=N?N[1]:NaN,D[l]=W,N=e.dataToPoint(D,null,R),I[L++]=N?N[1]:NaN}_.setLayout("largePoints",I)}}};function r(n,e,s,t,a){var l;return s>t?l=-1:s<t?l=1:l=e>0?n.get(a,e-1)<=t?1:-1:1,l}function i(n,e){var s=n.getBaseAxis(),t,a=s.type==="category"?s.getBandWidth():(t=s.getExtent(),Math.abs(t[1]-t[0])/e.count()),l=w(f(n.get("barMaxWidth"),a),a),u=w(f(n.get("barMinWidth"),1),a),h=n.get("barWidth");return h!=null?w(h,a):Math.max(Math.min(a/2,l),u)}H.exports=o},CiB2:function(H,B,d){"use strict";d.d(B,"a",function(){return O});function O(E){if(E==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(H,B,d){d("5NHt"),d("f3JH")},CrYA:function(H,B,d){var O=d("MFOe"),E=O.Global;H.exports={name:"sessionStorage",read:A,write:w,each:m,remove:f,clearAll:c};function C(){return E.sessionStorage}function A(o){return C().getItem(o)}function w(o,r){return C().setItem(o,r)}function m(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,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("4vCz"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},D1WM:function(H,B,d){var O=d("bYtY"),E=d("hM6l"),C=function(w,m,f,c,o){E.call(this,w,m,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,E);var A=C;H.exports=A},D5nY:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("4NO4"),A=C.makeInner,w=C.getDataItemValue,m=d("bYtY"),f=m.createHashMap,c=m.each,o=m.map,r=m.isArray,i=m.isString,n=m.isObject,e=m.isTypedArray,s=m.isArrayLike,t=m.extend,a=m.assert,l=d("7G+c"),u=d("k9D9"),h=u.SOURCE_FORMAT_ORIGINAL,p=u.SOURCE_FORMAT_ARRAY_ROWS,g=u.SOURCE_FORMAT_OBJECT_ROWS,v=u.SOURCE_FORMAT_KEYED_COLUMNS,y=u.SOURCE_FORMAT_UNKNOWN,x=u.SOURCE_FORMAT_TYPED_ARRAY,T=u.SERIES_LAYOUT_BY_ROW,S={Must:1,Might:2,Not:3},b=A();function _(z){var Y=z.option.source,$=y;if(e(Y))$=x;else if(r(Y)){Y.length===0&&($=p);for(var ue=0,ne=Y.length;ue<ne;ue++){var ge=Y[ue];if(ge==null)continue;if(r(ge)){$=p;break}else if(n(ge)){$=g;break}}}else if(n(Y)){for(var Oe in Y)if(Y.hasOwnProperty(Oe)&&s(Y[Oe])){$=v;break}}else if(Y!=null)throw new Error("Invalid data");b(z).sourceFormat=$}function I(z){return b(z).source}function L(z){b(z).datasetMap=f()}function N(z){var Y=z.option,$=Y.data,ue=e($)?x:h,ne=!1,ge=Y.seriesLayoutBy,Oe=Y.sourceHeader,De=Y.dimensions,He=j(z);if(He){var pe=He.option;$=pe.source,ue=b(He).sourceFormat,ne=!0,ge=ge||pe.seriesLayoutBy,Oe==null&&(Oe=pe.sourceHeader),De=De||pe.dimensions}var Ue=D($,ue,ge,Oe,De);b(z).source=new l({data:$,fromDataset:ne,seriesLayoutBy:ge,sourceFormat:ue,dimensionsDefine:Ue.dimensionsDefine,startIndex:Ue.startIndex,dimensionsDetectCount:Ue.dimensionsDetectCount,encodeDefine:Y.encode})}function D(z,Y,$,ue,ne){if(!z)return{dimensionsDefine:R(ne)};var ge,Oe;if(Y===p)ue==="auto"||ue==null?P(function(He){He!=null&&He!=="-"&&(i(He)?Oe==null&&(Oe=1):Oe=0)},$,z,10):Oe=ue?1:0,!ne&&Oe===1&&(ne=[],P(function(He,pe){ne[pe]=He!=null?He:""},$,z)),ge=ne?ne.length:$===T?z.length:z[0]?z[0].length:null;else if(Y===g)ne||(ne=M(z));else if(Y===v)ne||(ne=[],c(z,function(He,pe){ne.push(pe)}));else if(Y===h){var De=w(z[0]);ge=r(De)&&De.length||1}else Y===x;return{startIndex:Oe,dimensionsDefine:R(ne),dimensionsDetectCount:ge}}function R(z){if(!z)return;var Y=f();return o(z,function($,ue){if($=t({},n($)?$:{name:$}),$.name==null)return $;$.name+="",$.displayName==null&&($.displayName=$.name);var ne=Y.get($.name);return ne?$.name+="-"+ne.count++:Y.set($.name,{count:1}),$})}function P(z,Y,$,ue){if(ue==null&&(ue=Infinity),Y===T)for(var ne=0;ne<$.length&&ne<ue;ne++)z($[ne]?$[ne][0]:null,ne);else for(var ge=$[0]||[],ne=0;ne<ge.length&&ne<ue;ne++)z(ge[ne],ne)}function M(z){for(var Y=0,$;Y<z.length&&!($=z[Y++]););if($){var ue=[];return c($,function(ne,ge){ue.push(ge)}),ue}}function U(z,Y,$){var ue={},ne=j(Y);if(!ne||!z)return ue;var ge=[],Oe=[],De=Y.ecModel,He=b(De).datasetMap,pe=ne.uid+"_"+$.seriesLayoutBy,Ue,oe;z=z.slice(),c(z,function(Q,G){!n(Q)&&(z[G]={name:Q}),Q.type==="ordinal"&&Ue==null&&(Ue=G,oe=se(z[G])),ue[Q.name]=[]});var ee=He.get(pe)||He.set(pe,{categoryWayDim:oe,valueWayDim:0});c(z,function(Q,G){var J=Q.name,ve=se(Q);if(Ue==null){var de=ee.valueWayDim;Xe(ue[J],de,ve),Xe(Oe,de,ve),ee.valueWayDim+=ve}else if(Ue===G)Xe(ue[J],0,ve),Xe(ge,0,ve);else{var de=ee.categoryWayDim;Xe(ue[J],de,ve),Xe(Oe,de,ve),ee.categoryWayDim+=ve}});function Xe(Q,G,J){for(var ve=0;ve<J;ve++)Q.push(G+ve)}function se(Q){var G=Q.dimsDef;return G?G.length:1}return ge.length&&(ue.itemName=ge),Oe.length&&(ue.seriesName=Oe),ue}function F(z,Y,$){var ue={},ne=j(z);if(!ne)return ue;var ge=Y.sourceFormat,Oe=Y.dimensionsDefine,De;(ge===g||ge===v)&&c(Oe,function(Ue,oe){(n(Ue)?Ue.name:Ue)==="name"&&(De=oe)});var He=function(){for(var Ue={},oe={},ee=[],Xe=0,se=Math.min(5,$);Xe<se;Xe++){var Q=V(Y.data,ge,Y.seriesLayoutBy,Oe,Y.startIndex,Xe);ee.push(Q);var G=Q===S.Not;if(G&&Ue.v==null&&Xe!==De&&(Ue.v=Xe),(Ue.n==null||Ue.n===Ue.v||!G&&ee[Ue.n]===S.Not)&&(Ue.n=Xe),J(Ue)&&ee[Ue.n]!==S.Not)return Ue;G||(Q===S.Might&&oe.v==null&&Xe!==De&&(oe.v=Xe),(oe.n==null||oe.n===oe.v)&&(oe.n=Xe))}function J(ve){return ve.v!=null&&ve.n!=null}return J(Ue)?Ue:J(oe)?oe:null}();if(He){ue.value=He.v;var pe=De!=null?De:He.n;ue.itemName=[pe],ue.seriesName=[pe]}return ue}function j(z){var Y=z.option,$=Y.data;if(!$)return z.ecModel.getComponent("dataset",Y.datasetIndex||0)}function W(z,Y){return V(z.data,z.sourceFormat,z.seriesLayoutBy,z.dimensionsDefine,z.startIndex,Y)}function V(z,Y,$,ue,ne,ge){var Oe,De=5;if(e(z))return S.Not;var He,pe;if(ue){var Ue=ue[ge];n(Ue)?(He=Ue.name,pe=Ue.type):i(Ue)&&(He=Ue)}if(pe!=null)return pe==="ordinal"?S.Must:S.Not;if(Y===p)if($===T){for(var oe=z[ge],ee=0;ee<(oe||[]).length&&ee<De;ee++)if((Oe=G(oe[ne+ee]))!=null)return Oe}else for(var ee=0;ee<z.length&&ee<De;ee++){var Xe=z[ne+ee];if(Xe&&(Oe=G(Xe[ge]))!=null)return Oe}else if(Y===g){if(!He)return S.Not;for(var ee=0;ee<z.length&&ee<De;ee++){var se=z[ee];if(se&&(Oe=G(se[He]))!=null)return Oe}}else if(Y===v){if(!He)return S.Not;var oe=z[He];if(!oe||e(oe))return S.Not;for(var ee=0;ee<oe.length&&ee<De;ee++)if((Oe=G(oe[ee]))!=null)return Oe}else if(Y===h)for(var ee=0;ee<z.length&&ee<De;ee++){var se=z[ee],Q=w(se);if(!r(Q))return S.Not;if((Oe=G(Q[ge]))!=null)return Oe}function G(J){var ve=i(J);if(J!=null&&isFinite(J)&&J!=="")return ve?S.Might:S.Not;if(ve&&J!=="-")return S.Must}return S.Not}B.BE_ORDINAL=S,B.detectSourceFormat=_,B.getSource=I,B.resetSourceDefaulter=L,B.prepareSource=N,B.makeSeriesEncodeForAxisCoordSys=U,B.makeSeriesEncodeForNameBased=F,B.guessOrdinal=W},D9ME:function(H,B,d){var O=d("IwbS"),E=d("fls0"),C=d("bYtY"),A=d("oVpE"),w=A.createSymbol,m=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 E(i,n,e)},o._updateEffectSymbol=function(i,n){var e=i.getItemModel(n),s=e.getModel("effect"),t=s.get("symbolSize"),a=s.get("symbol");C.isArray(t)||(t=[t,t]);var l=s.get("color")||i.getItemVisual(n,"color"),u=this.childAt(1);if(this._symbolType!==a&&(this.remove(u),u=w(a,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),!u)return;u.setStyle("shadowColor",l),u.setStyle(s.getItemStyle(["color"])),u.attr("scale",t),u.setColor(l),u.attr("scale",t),this._symbolType=a,this._symbolScale=t,this._updateEffectAnimation(i,s,n)},o._updateEffectAnimation=function(i,n,e){var s=this.childAt(1);if(!s)return;var t=this,a=i.getItemLayout(e),l=n.get("period")*1e3,u=n.get("loop"),h=n.get("constantSpeed"),p=C.retrieve(n.get("delay"),function(x){return x/i.count()*l/3}),g=typeof p=="function";if(s.ignore=!0,this.updateAnimationPoints(s,a),h>0&&(l=this.getLineLength(s)/h*1e3),l!==this._period||u!==this._loop){s.stopAnimation();var v=p;g&&(v=p(e)),s.__t>0&&(v=-l*s.__t),s.__t=0;var y=s.animate("",u).when(l,{__t:1}).delay(v).during(function(){t.updateSymbolPosition(s)});u||y.done(function(){t.remove(s)}),y.start()}this._period=l,this._loop=u},o.getLineLength=function(i){return m.dist(i.__p1,i.__cp1)+m.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,s=i.__cp1,t=i.__t,a=i.position,l=[a[0],a[1]],u=f.quadraticAt,h=f.quadraticDerivativeAt;a[0]=u(n[0],s[0],e[0],t),a[1]=u(n[1],s[1],e[1],t);var p=h(n[0],s[0],e[0],t),g=h(n[1],s[1],e[1],t);if(i.rotation=-Math.atan2(g,p)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(i.__lastT!==void 0&&i.__lastT<i.__t){var v=m.dist(l,a)*1.05;i.attr("scale",[i.scale[0],v]),t===1&&(a[0]=l[0]+(a[0]-l[0])/2,a[1]=l[1]+(a[1]-l[1])/2)}else if(i.__lastT===1){var v=2*m.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,B){function d(){}d.prototype={diff:function(m,f,c){c||(c=function(g,v){return g===v}),this.equals=c;var o=this;m=m.slice(),f=f.slice();var r=f.length,i=m.length,n=1,e=r+i,s=[{newPos:-1,components:[]}],t=this.extractCommon(s[0],f,m,0);if(s[0].newPos+1>=r&&t+1>=i){for(var a=[],l=0;l<f.length;l++)a.push(l);return[{indices:a,count:f.length}]}function u(){for(var p=-1*n;p<=n;p+=2){var g,v=s[p-1],y=s[p+1],x=(y?y.newPos:0)-p;v&&(s[p-1]=void 0);var T=v&&v.newPos+1<r,S=y&&0<=x&&x<i;if(!T&&!S){s[p]=void 0;continue}if(!T||S&&v.newPos<y.newPos?(g=E(y),o.pushComponent(g.components,void 0,!0)):(g=v,g.newPos++,o.pushComponent(g.components,!0,void 0)),x=o.extractCommon(g,f,m,p),g.newPos+1>=r&&x+1>=i)return O(o,g.components,f,m);s[p]=g}n++}for(;n<=e;){var h=u();if(h)return h}},pushComponent:function(m,f,c){var o=m[m.length-1];o&&o.added===f&&o.removed===c?m[m.length-1]={count:o.count+1,added:f,removed:c}:m.push({count:1,added:f,removed:c})},extractCommon:function(m,f,c,o){for(var r=f.length,i=c.length,n=m.newPos,e=n-o,s=0;n+1<r&&e+1<i&&this.equals(f[n+1],c[e+1]);)n++,e++,s++;return s&&m.components.push({count:s}),m.newPos=n,e},tokenize:function(m){return m.slice()},join:function(m){return m.slice()}};function O(w,m,f,c){for(var o=0,r=m.length,i=0,n=0;o<r;o++){var e=m[o];if(e.removed){for(var s=[],t=n;t<n+e.count;t++)s.push(t);e.indices=s,n+=e.count}else{for(var s=[],t=i;t<i+e.count;t++)s.push(t);e.indices=s,i+=e.count,e.added||(n+=e.count)}}return m}function E(w){return{newPos:w.newPos,components:w.components.slice(0)}}var C=new d;function A(w,m,f){return C.diff(w,m,f)}H.exports=A},DEFe:function(H,B,d){var O=d("bYtY"),E=d("SgGq"),C=d("Ae+d"),A=d("xSat"),w=A.onIrrelevantElement,m=d("IwbS"),f=d("W4dC"),c=d("iRjW"),o=c.getUID,r=d("DN4a");function i(a){var l=a.getItemStyle(),u=a.get("areaColor");return u!=null&&(l.fill=u),l}function n(a,l,u,h,p){u.off("click"),u.off("mousedown"),l.get("selectedMode")&&(u.on("mousedown",function(){a._mouseDownFlag=!0}),u.on("click",function(g){if(!a._mouseDownFlag)return;a._mouseDownFlag=!1;for(var v=g.target;!v.__regions;)v=v.parent;if(!v)return;var y={type:(l.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:O.map(v.__regions,function(x){return{name:x.name,from:p.uid}})};y[l.mainType+"Id"]=l.id,h.dispatchAction(y),e(l,u)}))}function e(a,l){l.eachChild(function(u){O.each(u.__regions,function(h){u.trigger(a.isSelected(h.name)?"emphasis":"normal")})})}function s(a,l){var u=new m.Group;this.uid=o("ec_map_draw"),this._controller=new E(a.getZr()),this._controllerHost={target:l?u:null},this.group=u,this._updateGroup=l,this._mouseDownFlag,this._mapName,this._initialized,u.add(this._regionsGroup=new m.Group),u.add(this._backgroundGroup=new m.Group)}s.prototype={constructor:s,draw:function(a,l,u,h,p){var g=a.mainType==="geo",v=a.getData&&a.getData();g&&l.eachComponent({mainType:"series",subType:"map"},function(j){!v&&j.getHostGeoModel()===a&&(v=j.getData())});var y=a.coordinateSystem;this._updateBackground(y);var x=this._regionsGroup,T=this.group,S=y.getTransformInfo(),b=!x.childAt(0)||p,_;if(b)T.transform=S.roamTransform,T.decomposeTransform(),T.dirty();else{var I=new r;I.transform=S.roamTransform,I.decomposeTransform();var L={scale:I.scale,position:I.position};_=I.scale,m.updateProps(T,L,a)}var N=S.rawScale,D=S.rawPosition;x.removeAll();var R=["itemStyle"],P=["emphasis","itemStyle"],M=["label"],U=["emphasis","label"],F=O.createHashMap();O.each(y.regions,function(j){var W=F.get(j.name)||F.set(j.name,new m.Group),V=new m.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});W.add(V);var z=a.getRegionModel(j.name)||a,Y=z.getModel(R),$=z.getModel(P),ue=i(Y),ne=i($),ge=z.getModel(M),Oe=z.getModel(U),De;if(v){De=v.indexOfName(j.name);var He=v.getItemVisual(De,"color",!0);He&&(ue.fill=He)}var pe=function(de){return[de[0]*N[0]+D[0],de[1]*N[1]+D[1]]};O.each(j.geometries,function(de){if(de.type!=="polygon")return;for(var Ce=[],Ee=0;Ee<de.exterior.length;++Ee)Ce.push(pe(de.exterior[Ee]));V.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}));for(var Ee=0;Ee<(de.interiors?de.interiors.length:0);++Ee){for(var le=de.interiors[Ee],Ce=[],fe=0;fe<le.length;++fe)Ce.push(pe(le[fe]));V.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}))}}),V.setStyle(ue),V.style.strokeNoScale=!0,V.culling=!0;var Ue=ge.get("show"),oe=Oe.get("show"),ee=v&&isNaN(v.get(v.mapDimension("value"),De)),Xe=v&&v.getItemLayout(De);if(g||ee&&(Ue||oe)||Xe&&Xe.showLabel){var se=g?j.name:De,Q;(!v||De>=0)&&(Q=a);var G=new m.Text({position:pe(j.center.slice()),scale:[1/T.scale[0],1/T.scale[1]],z2:10,silent:!0});if(m.setLabelStyle(G.style,G.hoverStyle={},ge,Oe,{labelFetcher:Q,labelDataIndex:se,defaultText:j.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!b){var J=[1/_[0],1/_[1]];m.updateProps(G,{scale:J},a)}W.add(G)}if(v)v.setItemGraphicEl(De,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 ve=W.__regions||(W.__regions=[]);ve.push(j),W.highDownSilentOnTouch=!!a.get("selectedMode"),m.setHoverStyle(W,ne),x.add(W)}),this._updateController(a,l,u),n(this,a,x,u,h),e(a,x)},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 l=a.map;this._mapName!==l&&O.each(f.makeGraphic(l,this.uid),function(u){this._backgroundGroup.add(u)},this),this._mapName=l},_updateController:function(a,l,u){var h=a.coordinateSystem,p=this._controller,g=this._controllerHost;g.zoomLimit=a.get("scaleLimit"),g.zoom=h.getZoom(),p.enable(a.get("roam")||!1);var v=a.mainType;function y(){var x={type:"geoRoam",componentType:v};return x[v+"Id"]=a.id,x}p.off("pan").on("pan",function(x){this._mouseDownFlag=!1,C.updateViewOnPan(g,x.dx,x.dy),u.dispatchAction(O.extend(y(),{dx:x.dx,dy:x.dy}))},this),p.off("zoom").on("zoom",function(x){if(this._mouseDownFlag=!1,C.updateViewOnZoom(g,x.scale,x.originX,x.originY),u.dispatchAction(O.extend(y(),{zoom:x.scale,originX:x.originX,originY:x.originY})),this._updateGroup){var T=this.group.scale;this._regionsGroup.traverse(function(S){S.type==="text"&&S.attr("scale",[1/T[0],1/T[1]])})}},this),p.setPointerChecker(function(x,T,S){return h.getViewRectAfterRoam().contain(T,S)&&!w(x,u,a)})}};var t=s;H.exports=t},DFOY:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d.n(t),l=d("VTBJ"),u=d("1OyB"),h=d("vuIU"),p=d("JX7q"),g=d("Ji7U"),v=d("LK+K"),y=d("i8i4"),x=d.n(y),T=d("l4aY"),S=d("m+aA"),b=d("c+Xe"),_=d("zT1h"),I=d("QC+M"),L=d("TSYQ"),N=d.n(L);function D(Pt,gt,Et){return Et?Pt[0]===gt[0]:Pt[0]===gt[0]&&Pt[1]===gt[1]}function R(Pt,gt,Et){var Lt=Pt[gt]||{};return Object(l.a)(Object(l.a)({},Lt),Et)}function P(Pt,gt,Et,Lt){for(var kt=Et.points,yt=Object.keys(Pt),Qt=0;Qt<yt.length;Qt+=1){var tr=yt[Qt];if(D(Pt[tr].points,kt,Lt))return"".concat(gt,"-placement-").concat(tr)}return""}var M=d("Ff2n"),U=d("xEkU"),F=d.n(U),j=d("9mu1"),W=d("rePB"),V=d("U8pU"),z=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Y(Pt,gt){var Et={};return Et[Pt.toLowerCase()]=gt.toLowerCase(),Et["Webkit".concat(Pt)]="webkit".concat(gt),Et["Moz".concat(Pt)]="moz".concat(gt),Et["ms".concat(Pt)]="MS".concat(gt),Et["O".concat(Pt)]="o".concat(gt.toLowerCase()),Et}function $(Pt,gt){var Et={animationend:Y("Animation","AnimationEnd"),transitionend:Y("Transition","TransitionEnd")};return Pt&&("AnimationEvent"in gt||delete Et.animationend.animation,"TransitionEvent"in gt||delete Et.transitionend.transition),Et}var ue=$(z,typeof window!="undefined"?window:{}),ne={};if(z){var ge=document.createElement("div");ne=ge.style}var Oe={};function De(Pt){if(Oe[Pt])return Oe[Pt];var gt=ue[Pt];if(gt)for(var Et=Object.keys(gt),Lt=Et.length,kt=0;kt<Lt;kt+=1){var yt=Et[kt];if(Object.prototype.hasOwnProperty.call(gt,yt)&&yt in ne)return Oe[Pt]=gt[yt],Oe[Pt]}return""}var He=De("animationend"),pe=De("transitionend"),Ue=!!(He&&pe);function oe(Pt,gt){if(!Pt)return null;if(Object(V.a)(Pt)==="object"){var Et=gt.replace(/-\w/g,function(Lt){return Lt[1].toUpperCase()});return Pt[Et]}return"".concat(Pt,"-").concat(gt)}var ee="none",Xe="appear",se="enter",Q="leave";function G(Pt){var gt=Pt,Et=!!t.forwardRef;Object(V.a)(Pt)==="object"&&(gt=Pt.transitionSupport,Et="forwardRef"in Pt?Pt.forwardRef:Et);function Lt(yt){return!!(yt.motionName&>)}var kt=function(yt){Object(g.a)(tr,yt);var Qt=Object(v.a)(tr);function tr(){var ir;return Object(u.a)(this,tr),ir=Qt.apply(this,arguments),ir.$cacheEle=null,ir.node=null,ir.raf=null,ir.destroyed=!1,ir.deadlineId=null,ir.state={status:ee,statusActive:!1,newStatus:!1,statusStyle:null},ir.onDomUpdate=function(){var yr=ir.state,xn=yr.status,vn=yr.newStatus,Wn=ir.props,Yr=Wn.onAppearStart,xr=Wn.onEnterStart,ln=Wn.onLeaveStart,On=Wn.onAppearActive,In=Wn.onEnterActive,Un=Wn.onLeaveActive,ti=Wn.motionAppear,ui=Wn.motionEnter,si=Wn.motionLeave;if(!Lt(ir.props))return;var Pi=ir.getElement();ir.$cacheEle!==Pi&&(ir.removeEventListener(ir.$cacheEle),ir.addEventListener(Pi),ir.$cacheEle=Pi),vn&&xn===Xe&&ti?ir.updateStatus(Yr,null,null,function(){ir.updateActiveStatus(On,Xe)}):vn&&xn===se&&ui?ir.updateStatus(xr,null,null,function(){ir.updateActiveStatus(In,se)}):vn&&xn===Q&&si&&ir.updateStatus(ln,null,null,function(){ir.updateActiveStatus(Un,Q)})},ir.onMotionEnd=function(yr){if(yr&&!yr.deadline&&yr.target!==ir.getElement())return;var xn=ir.state,vn=xn.status,Wn=xn.statusActive,Yr=ir.props,xr=Yr.onAppearEnd,ln=Yr.onEnterEnd,On=Yr.onLeaveEnd;vn===Xe&&Wn?ir.updateStatus(xr,{status:ee},yr):vn===se&&Wn?ir.updateStatus(ln,{status:ee},yr):vn===Q&&Wn&&ir.updateStatus(On,{status:ee},yr)},ir.setNodeRef=function(yr){var xn=ir.props.internalRef;ir.node=yr,Object(b.b)(xn,yr)},ir.getElement=function(){try{return Object(S.a)(ir.node||Object(p.a)(ir))}catch(yr){return ir.$cacheEle}},ir.addEventListener=function(yr){if(!yr)return;yr.addEventListener(pe,ir.onMotionEnd),yr.addEventListener(He,ir.onMotionEnd)},ir.removeEventListener=function(yr){if(!yr)return;yr.removeEventListener(pe,ir.onMotionEnd),yr.removeEventListener(He,ir.onMotionEnd)},ir.updateStatus=function(yr,xn,vn,Wn){var Yr=yr?yr(ir.getElement(),vn):null;if(Yr===!1||ir.destroyed)return;var xr;Wn&&(xr=function(){ir.nextFrame(Wn)}),ir.setState(Object(l.a)({statusStyle:Object(V.a)(Yr)==="object"?Yr:null,newStatus:!1},xn),xr)},ir.updateActiveStatus=function(yr,xn){ir.nextFrame(function(){var vn=ir.state.status;if(vn!==xn)return;var Wn=ir.props.motionDeadline;ir.updateStatus(yr,{statusActive:!0}),Wn>0&&(ir.deadlineId=setTimeout(function(){ir.onMotionEnd({deadline:!0})},Wn))})},ir.nextFrame=function(yr){ir.cancelNextFrame(),ir.raf=F()(yr)},ir.cancelNextFrame=function(){ir.raf&&(F.a.cancel(ir.raf),ir.raf=null)},ir}return Object(h.a)(tr,[{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 yr,xn=this.state,vn=xn.status,Wn=xn.statusActive,Yr=xn.statusStyle,xr=this.props,ln=xr.children,On=xr.motionName,In=xr.visible,Un=xr.removeOnLeave,ti=xr.leavedClassName,ui=xr.eventProps;return ln?vn===ee||!Lt(this.props)?In?ln(Object(l.a)({},ui),this.setNodeRef):Un?null:ln(Object(l.a)(Object(l.a)({},ui),{},{className:ti}),this.setNodeRef):ln(Object(l.a)(Object(l.a)({},ui),{},{className:N()(oe(On,vn),(yr={},Object(W.a)(yr,oe(On,"".concat(vn,"-active")),Wn),Object(W.a)(yr,On,typeof On=="string"),yr)),style:Yr}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(yr,xn){var vn=xn.prevProps,Wn=xn.status;if(!Lt(yr))return{};var Yr=yr.visible,xr=yr.motionAppear,ln=yr.motionEnter,On=yr.motionLeave,In=yr.motionLeaveImmediately,Un={prevProps:yr};return(Wn===Xe&&!xr||Wn===se&&!ln||Wn===Q&&!On)&&(Un.status=ee,Un.statusActive=!1,Un.newStatus=!1),!vn&&Yr&&xr&&(Un.status=Xe,Un.statusActive=!1,Un.newStatus=!0),vn&&!vn.visible&&Yr&&ln&&(Un.status=se,Un.statusActive=!1,Un.newStatus=!0),(vn&&vn.visible&&!Yr&&On||!vn&&In&&!Yr&&On)&&(Un.status=Q,Un.statusActive=!1,Un.newStatus=!0),Un}}]),tr}(t.Component);return kt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Et?t.forwardRef(function(yt,Qt){return t.createElement(kt,Object.assign({internalRef:Qt},yt))}):kt}var J=G(Ue),ve="add",de="keep",Ce="remove",Ee="removed";function le(Pt){var gt;return Pt&&Object(V.a)(Pt)==="object"&&"key"in Pt?gt=Pt:gt={key:Pt},Object(l.a)(Object(l.a)({},gt),{},{key:String(gt.key)})}function fe(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Pt.map(le)}function xe(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Et=[],Lt=0,kt=gt.length,yt=fe(Pt),Qt=fe(gt);yt.forEach(function(yr){for(var xn=!1,vn=Lt;vn<kt;vn+=1){var Wn=Qt[vn];if(Wn.key===yr.key){Lt<vn&&(Et=Et.concat(Qt.slice(Lt,vn).map(function(Yr){return Object(l.a)(Object(l.a)({},Yr),{},{status:ve})})),Lt=vn),Et.push(Object(l.a)(Object(l.a)({},Wn),{},{status:de})),Lt+=1,xn=!0;break}}xn||Et.push(Object(l.a)(Object(l.a)({},yr),{},{status:Ce}))}),Lt<kt&&(Et=Et.concat(Qt.slice(Lt).map(function(yr){return Object(l.a)(Object(l.a)({},yr),{},{status:ve})})));var tr={};Et.forEach(function(yr){var xn=yr.key;tr[xn]=(tr[xn]||0)+1});var ir=Object.keys(tr).filter(function(yr){return tr[yr]>1});return ir.forEach(function(yr){Et=Et.filter(function(xn){var vn=xn.key,Wn=xn.status;return vn!==yr||Wn!==Ce}),Et.forEach(function(xn){xn.key===yr&&(xn.status=de)})}),Et}var Qe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ot(Pt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:J,Et=function(Lt){Object(g.a)(yt,Lt);var kt=Object(v.a)(yt);function yt(){var Qt;return Object(u.a)(this,yt),Qt=kt.apply(this,arguments),Qt.state={keyEntities:[]},Qt.removeKey=function(tr){Qt.setState(function(ir){var yr=ir.keyEntities;return{keyEntities:yr.map(function(xn){return xn.key!==tr?xn:Object(l.a)(Object(l.a)({},xn),{},{status:Ee})})}})},Qt}return Object(h.a)(yt,[{key:"render",value:function(){var tr=this,ir=this.state.keyEntities,yr=this.props,xn=yr.component,vn=yr.children,Wn=Object(M.a)(yr,["component","children"]),Yr=xn||t.Fragment,xr={};return Qe.forEach(function(ln){xr[ln]=Wn[ln],delete Wn[ln]}),delete Wn.keys,t.createElement(Yr,Object.assign({},Wn),ir.map(function(ln){var On=ln.status,In=Object(M.a)(ln,["status"]),Un=On===ve||On===de;return t.createElement(gt,Object.assign({},xr,{key:In.key,visible:Un,eventProps:In,onLeaveEnd:function(){xr.onLeaveEnd&&xr.onLeaveEnd.apply(xr,arguments),tr.removeKey(In.key)}}),vn)}))}}],[{key:"getDerivedStateFromProps",value:function(tr,ir){var yr=tr.keys,xn=ir.keyEntities,vn=fe(yr);if(!Pt)return{keyEntities:vn.map(function(xr){return Object(l.a)(Object(l.a)({},xr),{},{status:de})})};var Wn=xe(xn,vn),Yr=xn.length;return{keyEntities:Wn.filter(function(xr){for(var ln=null,On=0;On<Yr;On+=1){var In=xn[On];if(In.key===xr.key){ln=In;break}}return!(ln&&ln.status===Ee&&xr.status===Ce)})}}}]),yt}(t.Component);return Et.defaultProps={component:"div"},Et}var Je=ot(Ue),Te=J,et=function(gt,Et){var Lt=gt.prefixCls,kt=gt.className,yt=gt.style,Qt=gt.children,tr=gt.onMouseEnter,ir=gt.onMouseLeave,yr=gt.onMouseDown,xn=gt.onTouchStart,vn=Qt;return t.Children.count(Qt)>1&&(vn=t.createElement("div",{className:"".concat(Lt,"-content")},Qt)),t.createElement("div",{ref:Et,className:kt,onMouseEnter:tr,onMouseLeave:ir,onMouseDown:yr,onTouchStart:xn,style:yt},vn)},ze=t.forwardRef(et);ze.displayName="PopupInner";var nt=ze;function Ot(Pt){var gt=Pt.prefixCls,Et=Pt.motion,Lt=Pt.animation,kt=Pt.transitionName;return Et||(Lt?{motionName:"".concat(gt,"-").concat(Lt)}:kt?{motionName:kt}:null)}function Ct(Pt){return Pt&&Pt.motionName}var Tt=function(Pt){Object(g.a)(Et,Pt);var gt=Object(v.a)(Et);function Et(){var Lt;return Object(u.a)(this,Et),Lt=gt.apply(this,arguments),Lt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Lt.popupRef=a.a.createRef(),Lt.alignRef=a.a.createRef(),Lt.nextFrameState=null,Lt.nextFrameId=null,Lt.onAlign=function(kt,yt){var Qt=Lt.state.status,tr=Lt.props,ir=tr.getClassNameFromAlign,yr=tr.onAlign,xn=ir(yt);Qt==="align"?Lt.setState({alignClassName:xn,status:"aligned"},function(){Lt.alignRef.current.forceAlign()}):Qt==="aligned"?(Lt.setState({alignClassName:xn,status:"afterAlign"}),yr(kt,yt)):Lt.setState({alignClassName:xn})},Lt.onMotionEnd=function(){var kt=Lt.props.visible;Lt.setState({status:kt?"AfterMotion":"stable",inMotion:!1})},Lt.setStateOnNextFrame=function(kt){Lt.cancelFrameState(),Lt.nextFrameState=Object(l.a)(Object(l.a)({},Lt.nextFrameState),kt),Lt.nextFrameId=F()(function(){var yt=Object(l.a)({},Lt.nextFrameState);Lt.nextFrameState=null,Lt.setState(yt)})},Lt.getMotion=function(){return Object(l.a)({},Ot(Lt.props))},Lt.getAlignTarget=function(){var kt=Lt.props,yt=kt.point,Qt=kt.getRootDomNode;return yt||Qt},Lt.cancelFrameState=function(){F.a.cancel(Lt.nextFrameId)},Lt.renderPopupElement=function(){var kt=Lt.state,yt=kt.status,Qt=kt.targetHeight,tr=kt.targetWidth,ir=kt.alignClassName,yr=Lt.props,xn=yr.prefixCls,vn=yr.className,Wn=yr.style,Yr=yr.stretch,xr=yr.visible,ln=yr.align,On=yr.destroyPopupOnHide,In=yr.onMouseEnter,Un=yr.onMouseLeave,ti=yr.onMouseDown,ui=yr.onTouchStart,si=yr.children,Pi=N()(xn,vn,ir),zi="".concat(xn,"-hidden"),Ri={};Yr&&(Yr.indexOf("height")!==-1?Ri.height=Qt:Yr.indexOf("minHeight")!==-1&&(Ri.minHeight=Qt),Yr.indexOf("width")!==-1?Ri.width=tr:Yr.indexOf("minWidth")!==-1&&(Ri.minWidth=tr));var Yi=Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},Ri),Lt.getZIndexStyle()),Wn),{},{opacity:yt==="stable"||!xr?void 0:0,pointerEvents:yt==="stable"||!xr?void 0:"none"}),$n=Lt.getMotion(),gn=xr;xr&&yt!=="beforeMotion"&&yt!=="motion"&&yt!=="stable"&&($n.motionAppear=!1,$n.motionEnter=!1,$n.motionLeave=!1),(yt==="afterAlign"||yt==="beforeMotion")&&(gn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Li){var Bi=$n==null?void 0:$n[Li];$n[Li]=function(){for(var wr=arguments.length,lr=new Array(wr),on=0;on<wr;on++)lr[on]=arguments[on];Bi==null||Bi.apply(void 0,lr),Lt.setState({inMotion:!0})}});var mi=!xr||yt!=="align"&&yt!=="aligned"&&yt!=="stable",Hi=!0;return yt==="stable"&&(Hi=xr),On&&!Hi?null:a.a.createElement(Te,Object.assign({visible:gn},$n,{removeOnLeave:!1,onEnterEnd:Lt.onMotionEnd,onLeaveEnd:Lt.onMotionEnd,leavedClassName:zi}),function(Li,Bi){var wr=Li.style,lr=Li.className;return a.a.createElement(j.a,{target:Lt.getAlignTarget(),key:"popup",ref:Lt.alignRef,monitorWindowResize:!0,disabled:mi,align:ln,onAlign:Lt.onAlign},a.a.createElement(nt,{prefixCls:xn,className:N()(Pi,lr),ref:Object(b.a)(Bi,Lt.popupRef),onMouseEnter:In,onMouseLeave:Un,onMouseDown:ti,onTouchStart:ui,style:Object(l.a)(Object(l.a)({},Yi),wr)},si))})},Lt.renderMaskElement=function(){var kt=Lt.props,yt=kt.mask,Qt=kt.maskMotion,tr=kt.maskTransitionName,ir=kt.maskAnimation,yr=kt.prefixCls,xn=kt.visible;if(!yt)return null;var vn={};return Qt&&Qt.motionName&&(vn=Object(l.a)({motionAppear:!0},Ot({motion:Qt,prefixCls:yr,transitionName:tr,animation:ir}))),a.a.createElement(Te,Object.assign({},vn,{visible:xn,removeOnLeave:!0}),function(Wn){var Yr=Wn.className;return a.a.createElement("div",{style:Lt.getZIndexStyle(),key:"mask",className:N()("".concat(yr,"-mask"),Yr)})})},Lt}return Object(h.a)(Et,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var kt=this.state.status,yt=this.props,Qt=yt.getRootDomNode,tr=yt.visible,ir=yt.stretch;if(this.cancelFrameState(),tr&&kt!=="stable")switch(kt){case null:{this.setStateOnNextFrame({status:ir?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Ct(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var yr=["measure","align",null,"beforeMotion","motion"],xn=yr.indexOf(kt),vn=yr[xn+1];xn!==-1&&vn&&this.setStateOnNextFrame({status:vn})}}if(kt==="measure"){var Wn=Qt();Wn&&this.setStateOnNextFrame({targetHeight:Wn.offsetHeight,targetWidth:Wn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var kt=this.props.zIndex;return{zIndex:kt}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(kt,yt){var Qt=kt.visible,tr=Object(M.a)(kt,["visible"]),ir=yt.prevVisible,yr=yt.status,xn=yt.inMotion,vn={prevVisible:Qt,status:yr},Wn=Ot(tr);return ir===null&&Qt===!1?(vn.status="stable",vn.inMotion=!1):Qt!==ir&&(vn.inMotion=!1,Qt||Ct(Wn)&&xn?vn.status=null:vn.status="stable",Qt&&(vn.alignClassName=null)),vn}}]),Et}(t.Component),Dt=Tt,Be=t.createContext(null),ie=Be;function X(){}function Fe(){return""}function Ne(){return window.document}var q=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ht(Pt){var gt=function(Et){Object(g.a)(kt,Et);var Lt=Object(v.a)(kt);function kt(yt){var Qt;Object(u.a)(this,kt),Qt=Lt.call(this,yt),Qt.popupRef=a.a.createRef(),Qt.triggerRef=a.a.createRef(),Qt.onMouseEnter=function(ir){var yr=Qt.props.mouseEnterDelay;Qt.fireEvents("onMouseEnter",ir),Qt.delaySetPopupVisible(!0,yr,yr?null:ir)},Qt.onMouseMove=function(ir){Qt.fireEvents("onMouseMove",ir),Qt.setPoint(ir)},Qt.onMouseLeave=function(ir){Qt.fireEvents("onMouseLeave",ir),Qt.delaySetPopupVisible(!1,Qt.props.mouseLeaveDelay)},Qt.onPopupMouseEnter=function(){Qt.clearDelayTimer()},Qt.onPopupMouseLeave=function(ir){if(ir.relatedTarget&&!ir.relatedTarget.setTimeout&&Qt.popupRef.current&&Qt.popupRef.current.popupRef.current&&Object(T.a)(Qt.popupRef.current.popupRef.current,ir.relatedTarget))return;Qt.delaySetPopupVisible(!1,Qt.props.mouseLeaveDelay)},Qt.onFocus=function(ir){Qt.fireEvents("onFocus",ir),Qt.clearDelayTimer(),Qt.isFocusToShow()&&(Qt.focusTime=Date.now(),Qt.delaySetPopupVisible(!0,Qt.props.focusDelay))},Qt.onMouseDown=function(ir){Qt.fireEvents("onMouseDown",ir),Qt.preClickTime=Date.now()},Qt.onTouchStart=function(ir){Qt.fireEvents("onTouchStart",ir),Qt.preTouchTime=Date.now()},Qt.onBlur=function(ir){Qt.fireEvents("onBlur",ir),Qt.clearDelayTimer(),Qt.isBlurToHide()&&Qt.delaySetPopupVisible(!1,Qt.props.blurDelay)},Qt.onContextMenu=function(ir){ir.preventDefault(),Qt.fireEvents("onContextMenu",ir),Qt.setPopupVisible(!0,ir)},Qt.onContextMenuClose=function(){Qt.isContextMenuToShow()&&Qt.close()},Qt.onClick=function(ir){if(Qt.fireEvents("onClick",ir),Qt.focusTime){var yr;if(Qt.preClickTime&&Qt.preTouchTime?yr=Math.min(Qt.preClickTime,Qt.preTouchTime):Qt.preClickTime?yr=Qt.preClickTime:Qt.preTouchTime&&(yr=Qt.preTouchTime),Math.abs(yr-Qt.focusTime)<20)return;Qt.focusTime=0}Qt.preClickTime=0,Qt.preTouchTime=0,Qt.isClickToShow()&&(Qt.isClickToHide()||Qt.isBlurToHide())&&ir&&ir.preventDefault&&ir.preventDefault();var xn=!Qt.state.popupVisible;(Qt.isClickToHide()&&!xn||xn&&Qt.isClickToShow())&&Qt.setPopupVisible(!Qt.state.popupVisible,ir)},Qt.onPopupMouseDown=function(){if(Qt.hasPopupMouseDown=!0,clearTimeout(Qt.mouseDownTimeout),Qt.mouseDownTimeout=window.setTimeout(function(){Qt.hasPopupMouseDown=!1},0),Qt.context){var ir;(ir=Qt.context).onPopupMouseDown.apply(ir,arguments)}},Qt.onDocumentClick=function(ir){if(Qt.props.mask&&!Qt.props.maskClosable)return;var yr=ir.target,xn=Qt.getRootDomNode(),vn=Qt.getPopupDomNode();!Object(T.a)(xn,yr)&&!Object(T.a)(vn,yr)&&!Qt.hasPopupMouseDown&&Qt.close()},Qt.getRootDomNode=function(){var ir=Qt.props.getTriggerDOMNode;if(ir)return ir(Qt.triggerRef.current);try{var yr=Object(S.a)(Qt.triggerRef.current);if(yr)return yr}catch(xn){}return x.a.findDOMNode(Object(p.a)(Qt))},Qt.getPopupClassNameFromAlign=function(ir){var yr=[],xn=Qt.props,vn=xn.popupPlacement,Wn=xn.builtinPlacements,Yr=xn.prefixCls,xr=xn.alignPoint,ln=xn.getPopupClassNameFromAlign;return vn&&Wn&&yr.push(P(Wn,Yr,ir,xr)),ln&&yr.push(ln(ir)),yr.join(" ")},Qt.getComponent=function(){var ir=Qt.props,yr=ir.prefixCls,xn=ir.destroyPopupOnHide,vn=ir.popupClassName,Wn=ir.onPopupAlign,Yr=ir.popupMotion,xr=ir.popupAnimation,ln=ir.popupTransitionName,On=ir.popupStyle,In=ir.mask,Un=ir.maskAnimation,ti=ir.maskTransitionName,ui=ir.maskMotion,si=ir.zIndex,Pi=ir.popup,zi=ir.stretch,Ri=ir.alignPoint,Yi=Qt.state,$n=Yi.popupVisible,gn=Yi.point,mi=Qt.getPopupAlign(),Hi={};return Qt.isMouseEnterToShow()&&(Hi.onMouseEnter=Qt.onPopupMouseEnter),Qt.isMouseLeaveToHide()&&(Hi.onMouseLeave=Qt.onPopupMouseLeave),Hi.onMouseDown=Qt.onPopupMouseDown,Hi.onTouchStart=Qt.onPopupMouseDown,a.a.createElement(Dt,Object.assign({prefixCls:yr,destroyPopupOnHide:xn,visible:$n,point:Ri&&gn,className:vn,align:mi,onAlign:Wn,animation:xr,getClassNameFromAlign:Qt.getPopupClassNameFromAlign},Hi,{stretch:zi,getRootDomNode:Qt.getRootDomNode,style:On,mask:In,zIndex:si,transitionName:ln,maskAnimation:Un,maskTransitionName:ti,maskMotion:ui,ref:Qt.popupRef,motion:Yr}),typeof Pi=="function"?Pi():Pi)},Qt.getContainer=function(){var ir=Object(p.a)(Qt),yr=ir.props,xn=document.createElement("div");xn.style.position="absolute",xn.style.top="0",xn.style.left="0",xn.style.width="100%";var vn=yr.getPopupContainer?yr.getPopupContainer(Qt.getRootDomNode()):yr.getDocument().body;return vn.appendChild(xn),xn},Qt.setPoint=function(ir){var yr=Qt.props.alignPoint;if(!yr||!ir)return;Qt.setState({point:{pageX:ir.pageX,pageY:ir.pageY}})},Qt.handlePortalUpdate=function(){Qt.state.prevPopupVisible!==Qt.state.popupVisible&&Qt.props.afterPopupVisibleChange(Qt.state.popupVisible)};var tr;return"popupVisible"in yt?tr=!!yt.popupVisible:tr=!!yt.defaultPopupVisible,Qt.state={prevPopupVisible:tr,popupVisible:tr},q.forEach(function(ir){Qt["fire".concat(ir)]=function(yr){Qt.fireEvents(ir,yr)}}),Qt}return Object(h.a)(kt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Qt=this.props,tr=this.state;if(tr.popupVisible){var ir;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ir=Qt.getDocument(),this.clickOutsideHandler=Object(_.a)(ir,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ir=ir||Qt.getDocument(),this.touchOutsideHandler=Object(_.a)(ir,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ir=ir||Qt.getDocument(),this.contextMenuOutsideHandler1=Object(_.a)(ir,"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 Qt=this.props,tr=Qt.popupPlacement,ir=Qt.popupAlign,yr=Qt.builtinPlacements;return tr&&yr?R(yr,tr,ir):ir}},{key:"setPopupVisible",value:function(Qt,tr){var ir=this.props.alignPoint,yr=this.state.popupVisible;this.clearDelayTimer(),yr!==Qt&&("popupVisible"in this.props||this.setState({popupVisible:Qt,prevPopupVisible:yr}),this.props.onPopupVisibleChange(Qt)),ir&&tr&&this.setPoint(tr)}},{key:"delaySetPopupVisible",value:function(Qt,tr,ir){var yr=this,xn=tr*1e3;if(this.clearDelayTimer(),xn){var vn=ir?{pageX:ir.pageX,pageY:ir.pageY}:null;this.delayTimer=window.setTimeout(function(){yr.setPopupVisible(Qt,vn),yr.clearDelayTimer()},xn)}else this.setPopupVisible(Qt,ir)}},{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(Qt){var tr=this.props.children.props,ir=this.props;return tr[Qt]&&ir[Qt]?this["fire".concat(Qt)]:tr[Qt]||ir[Qt]}},{key:"isClickToShow",value:function(){var Qt=this.props,tr=Qt.action,ir=Qt.showAction;return tr.indexOf("click")!==-1||ir.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Qt=this.props,tr=Qt.action,ir=Qt.showAction;return tr.indexOf("contextMenu")!==-1||ir.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Qt=this.props,tr=Qt.action,ir=Qt.hideAction;return tr.indexOf("click")!==-1||ir.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Qt=this.props,tr=Qt.action,ir=Qt.showAction;return tr.indexOf("hover")!==-1||ir.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Qt=this.props,tr=Qt.action,ir=Qt.hideAction;return tr.indexOf("hover")!==-1||ir.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Qt=this.props,tr=Qt.action,ir=Qt.showAction;return tr.indexOf("focus")!==-1||ir.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Qt=this.props,tr=Qt.action,ir=Qt.hideAction;return tr.indexOf("focus")!==-1||ir.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(Qt,tr){var ir=this.props.children.props[Qt];ir&&ir(tr);var yr=this.props[Qt];yr&&yr(tr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Qt=this.state.popupVisible,tr=this.props,ir=tr.children,yr=tr.forceRender,xn=tr.alignPoint,vn=tr.className,Wn=tr.autoDestroy,Yr=a.a.Children.only(ir),xr={key:"trigger"};this.isContextMenuToShow()?xr.onContextMenu=this.onContextMenu:xr.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(xr.onClick=this.onClick,xr.onMouseDown=this.onMouseDown,xr.onTouchStart=this.onTouchStart):(xr.onClick=this.createTwoChains("onClick"),xr.onMouseDown=this.createTwoChains("onMouseDown"),xr.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(xr.onMouseEnter=this.onMouseEnter,xn&&(xr.onMouseMove=this.onMouseMove)):xr.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?xr.onMouseLeave=this.onMouseLeave:xr.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(xr.onFocus=this.onFocus,xr.onBlur=this.onBlur):(xr.onFocus=this.createTwoChains("onFocus"),xr.onBlur=this.createTwoChains("onBlur"));var ln=N()(Yr&&Yr.props&&Yr.props.className,vn);ln&&(xr.className=ln);var On=Object(l.a)({},xr);Object(b.c)(Yr)&&(On.ref=Object(b.a)(this.triggerRef,Yr.ref));var In=a.a.cloneElement(Yr,On),Un;return(Qt||this.popupRef.current||yr)&&(Un=a.a.createElement(Pt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Qt&&Wn&&(Un=null),a.a.createElement(ie.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},In,Un)}}],[{key:"getDerivedStateFromProps",value:function(Qt,tr){var ir=Qt.popupVisible,yr={};return ir!==void 0&&tr.popupVisible!==ir&&(yr.popupVisible=ir,yr.prevPopupVisible=tr.popupVisible),yr}}]),kt}(a.a.Component);return gt.contextType=ie,gt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Fe,getDocument:Ne,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},gt}var Rt=ht(I.a),ut=d("2W6z"),Xt=d.n(ut),or=d("4IlW"),Zr=d("uK0f"),ar=d.n(Zr);function dr(Pt,gt){if(Pt===gt)return!0;if(!Pt||!gt)return!1;var Et=Pt.length;if(gt.length!==Et)return!1;for(var Lt=0;Lt<Et;Lt++)if(Pt[Lt]!==gt[Lt])return!1;return!0}function er(Pt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?er=function(Et){return typeof Et}:er=function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},er(Pt)}function Ht(Pt,gt){if(!(Pt instanceof gt))throw new TypeError("Cannot call a class as a function")}function dt(Pt,gt){for(var Et=0;Et<gt.length;Et++){var Lt=gt[Et];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Pt,Lt.key,Lt)}}function Hr(Pt,gt,Et){return gt&&dt(Pt.prototype,gt),Et&&dt(Pt,Et),Pt}function dn(Pt,gt){if(typeof gt!="function"&>!==null)throw new TypeError("Super expression must either be null or a function");Pt.prototype=Object.create(gt&>.prototype,{constructor:{value:Pt,writable:!0,configurable:!0}}),gt&&Nn(Pt,gt)}function Nn(Pt,gt){return Nn=Object.setPrototypeOf||function(Lt,kt){return Lt.__proto__=kt,Lt},Nn(Pt,gt)}function Vn(Pt){var gt=Mn();return function(){var Et=jt(Pt),Lt;if(gt){var kt=jt(this).constructor;Lt=Reflect.construct(Et,arguments,kt)}else Lt=Et.apply(this,arguments);return gi(this,Lt)}}function gi(Pt,gt){return gt&&(er(gt)==="object"||typeof gt=="function")?gt:bn(Pt)}function bn(Pt){if(Pt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pt}function Mn(){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(Pt){return!1}}function jt(Pt){return jt=Object.setPrototypeOf?Object.getPrototypeOf:function(Et){return Et.__proto__||Object.getPrototypeOf(Et)},jt(Pt)}var St=function(){var Pt=function(gt){dn(Lt,gt);var Et=Vn(Lt);function Lt(){var kt;return Ht(this,Lt),kt=Et.apply(this,arguments),kt.menuItems={},kt.saveMenuItem=function(yt){return function(Qt){kt.menuItems[yt]=Qt}},kt}return Hr(Lt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(yt){!yt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(yt){var Qt=this.props,tr=Qt.fieldNames,ir=Qt.defaultFieldNames;return tr[yt]||ir[yt]}},{key:"getOption",value:function(yt,Qt){var tr=this.props,ir=tr.prefixCls,yr=tr.expandTrigger,xn=tr.expandIcon,vn=tr.loadingIcon,Wn=this.props.onSelect.bind(this,yt,Qt),Yr=this.props.onItemDoubleClick.bind(this,yt,Qt),xr={onClick:Wn,onDoubleClick:Yr},ln="".concat(ir,"-menu-item"),On=null,In=yt[this.getFieldName("children")]&&yt[this.getFieldName("children")].length>0;(In||yt.isLeaf===!1)&&(ln+=" ".concat(ir,"-menu-item-expand"),yt.loading||(On=t.createElement("span",{className:"".concat(ir,"-menu-item-expand-icon")},xn))),yr==="hover"&&(In||yt.isLeaf===!1)&&(xr={onMouseEnter:this.delayOnSelect.bind(this,Wn),onMouseLeave:this.delayOnSelect.bind(this),onClick:Wn}),this.isActiveOption(yt,Qt)&&(ln+=" ".concat(ir,"-menu-item-active"),xr.ref=this.saveMenuItem(Qt)),yt.disabled&&(ln+=" ".concat(ir,"-menu-item-disabled"));var Un=null;yt.loading&&(ln+=" ".concat(ir,"-menu-item-loading"),Un=vn||null);var ti="";return"title"in yt?ti=yt.title:typeof yt[this.getFieldName("label")]=="string"&&(ti=yt[this.getFieldName("label")]),t.createElement("li",Object.assign({key:yt[this.getFieldName("value")],className:ln,title:ti},xr,{role:"menuitem",onMouseDown:function(si){return si.preventDefault()}}),yt[this.getFieldName("label")],On,Un)}},{key:"getActiveOptions",value:function(yt){var Qt=this,tr=this.props.options,ir=yt||this.props.activeValue;return ar()(tr,function(yr,xn){return yr[Qt.getFieldName("value")]===ir[xn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var yt=this,Qt=this.props.options,tr=this.getActiveOptions().map(function(ir){return ir[yt.getFieldName("children")]}).filter(function(ir){return!!ir});return tr.unshift(Qt),tr}},{key:"delayOnSelect",value:function(yt){for(var Qt=this,tr=arguments.length,ir=new Array(tr>1?tr-1:0),yr=1;yr<tr;yr++)ir[yr-1]=arguments[yr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof yt=="function"&&(this.delayTimer=window.setTimeout(function(){yt(ir),Qt.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var yt=this.getShowOptions().length,Qt=0;Qt<yt;Qt++){var tr=this.menuItems[Qt];tr&&tr.parentElement&&(tr.parentElement.scrollTop=tr.offsetTop)}}},{key:"isActiveOption",value:function(yt,Qt){var tr=this.props.activeValue,ir=tr===void 0?[]:tr;return ir[Qt]===yt[this.getFieldName("value")]}},{key:"render",value:function(){var yt=this,Qt=this.props,tr=Qt.prefixCls,ir=Qt.dropdownMenuColumnStyle;return t.createElement("div",null,this.getShowOptions().map(function(yr,xn){return t.createElement("ul",{className:"".concat(tr,"-menu"),key:xn,style:ir},yr.map(function(vn){return yt.getOption(vn,xn)}))}))}}]),Lt}(t.Component);return Pt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Pt}(),Ie=St,_e={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}}},Le=_e;function Ze(Pt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ze=function(Et){return typeof Et}:Ze=function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},Ze(Pt)}function it(Pt,gt){if(Pt==null)return{};var Et=ft(Pt,gt),Lt,kt;if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Pt);for(kt=0;kt<yt.length;kt++){if(Lt=yt[kt],gt.indexOf(Lt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Pt,Lt))continue;Et[Lt]=Pt[Lt]}}return Et}function ft(Pt,gt){if(Pt==null)return{};var Et={},Lt=Object.keys(Pt),kt,yt;for(yt=0;yt<Lt.length;yt++){if(kt=Lt[yt],gt.indexOf(kt)>=0)continue;Et[kt]=Pt[kt]}return Et}function Nt(Pt){return Mt(Pt)||un(Pt)||Mr(Pt)||Ar()}function Ar(){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 Mr(Pt,gt){if(!Pt)return;if(typeof Pt=="string")return at(Pt,gt);var Et=Object.prototype.toString.call(Pt).slice(8,-1);if(Et==="Object"&&Pt.constructor&&(Et=Pt.constructor.name),Et==="Map"||Et==="Set")return Array.from(Pt);if(Et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Et))return at(Pt,gt)}function un(Pt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Pt))return Array.from(Pt)}function Mt(Pt){if(Array.isArray(Pt))return at(Pt)}function at(Pt,gt){(gt==null||gt>Pt.length)&&(gt=Pt.length);for(var Et=0,Lt=new Array(gt);Et<gt;Et++)Lt[Et]=Pt[Et];return Lt}function lt(Pt,gt){if(!(Pt instanceof gt))throw new TypeError("Cannot call a class as a function")}function rr(Pt,gt){for(var Et=0;Et<gt.length;Et++){var Lt=gt[Et];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Pt,Lt.key,Lt)}}function Bt(Pt,gt,Et){return gt&&rr(Pt.prototype,gt),Et&&rr(Pt,Et),Pt}function _t(Pt,gt){if(typeof gt!="function"&>!==null)throw new TypeError("Super expression must either be null or a function");Pt.prototype=Object.create(gt&>.prototype,{constructor:{value:Pt,writable:!0,configurable:!0}}),gt&&Kt(Pt,gt)}function Kt(Pt,gt){return Kt=Object.setPrototypeOf||function(Lt,kt){return Lt.__proto__=kt,Lt},Kt(Pt,gt)}function wt(Pt){var gt=hr();return function(){var Et=gr(Pt),Lt;if(gt){var kt=gr(this).constructor;Lt=Reflect.construct(Et,arguments,kt)}else Lt=Et.apply(this,arguments);return Ut(this,Lt)}}function Ut(Pt,gt){return gt&&(Ze(gt)==="object"||typeof gt=="function")?gt:Sr(Pt)}function Sr(Pt){if(Pt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pt}function hr(){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(Pt){return!1}}function gr(Pt){return gr=Object.setPrototypeOf?Object.getPrototypeOf:function(Et){return Et.__proto__||Object.getPrototypeOf(Et)},gr(Pt)}var Jr=function(){var Pt=function(gt){_t(Lt,gt);var Et=wt(Lt);function Lt(kt){var yt;lt(this,Lt),yt=Et.call(this,kt),yt.setPopupVisible=function(tr){var ir=yt.state.value;"popupVisible"in yt.props||yt.setState({popupVisible:tr}),tr&&!yt.state.popupVisible&&yt.setState({activeValue:ir}),yt.props.onPopupVisibleChange(tr)},yt.handleChange=function(tr,ir,yr){var xn=ir.visible;(yr.type!=="keydown"||yr.keyCode===or.a.ENTER)&&(yt.props.onChange(tr.map(function(vn){return vn[yt.getFieldName("value")]}),tr),yt.setPopupVisible(xn))},yt.handlePopupVisibleChange=function(tr){yt.setPopupVisible(tr)},yt.handleMenuSelect=function(tr,ir,yr){var xn=yt.trigger.getRootDomNode();xn&&xn.focus&&xn.focus();var vn=yt.props,Wn=vn.changeOnSelect,Yr=vn.loadData,xr=vn.expandTrigger;if(!tr||tr.disabled)return;var ln=yt.state.activeValue;ln=ln.slice(0,ir+1),ln[ir]=tr[yt.getFieldName("value")];var On=yt.getActiveOptions(ln);if(tr.isLeaf===!1&&!tr[yt.getFieldName("children")]&&Yr){Wn&&yt.handleChange(On,{visible:!0},yr),yt.setState({activeValue:ln}),Yr(On);return}var In={};!tr[yt.getFieldName("children")]||!tr[yt.getFieldName("children")].length?(yt.handleChange(On,{visible:!1},yr),In.value=ln):Wn&&(yr.type==="click"||yr.type==="keydown")&&(xr==="hover"?yt.handleChange(On,{visible:!1},yr):yt.handleChange(On,{visible:!0},yr),In.value=ln),In.activeValue=ln,("value"in yt.props||yr.type==="keydown"&&yr.keyCode!==or.a.ENTER)&&delete In.value,yt.setState(In)},yt.handleItemDoubleClick=function(){var tr=yt.props.changeOnSelect;tr&&yt.setPopupVisible(!1)},yt.handleKeyDown=function(tr){var ir=yt.props.children;if(ir&&ir.props.onKeyDown){ir.props.onKeyDown(tr);return}var yr=Nt(yt.state.activeValue),xn=yr.length-1<0?0:yr.length-1,vn=yt.getCurrentLevelOptions(),Wn=vn.map(function(On){return On[yt.getFieldName("value")]}).indexOf(yr[xn]);if(tr.keyCode!==or.a.DOWN&&tr.keyCode!==or.a.UP&&tr.keyCode!==or.a.LEFT&&tr.keyCode!==or.a.RIGHT&&tr.keyCode!==or.a.ENTER&&tr.keyCode!==or.a.SPACE&&tr.keyCode!==or.a.BACKSPACE&&tr.keyCode!==or.a.ESC&&tr.keyCode!==or.a.TAB)return;if(!yt.state.popupVisible&&tr.keyCode!==or.a.BACKSPACE&&tr.keyCode!==or.a.LEFT&&tr.keyCode!==or.a.RIGHT&&tr.keyCode!==or.a.ESC&&tr.keyCode!==or.a.TAB){yt.setPopupVisible(!0);return}if(tr.keyCode===or.a.DOWN||tr.keyCode===or.a.UP){tr.preventDefault();var Yr=Wn;Yr!==-1?tr.keyCode===or.a.DOWN?(Yr+=1,Yr=Yr>=vn.length?0:Yr):(Yr-=1,Yr=Yr<0?vn.length-1:Yr):Yr=0,yr[xn]=vn[Yr][yt.getFieldName("value")]}else if(tr.keyCode===or.a.LEFT||tr.keyCode===or.a.BACKSPACE)tr.preventDefault(),yr.splice(yr.length-1,1);else if(tr.keyCode===or.a.RIGHT)tr.preventDefault(),vn[Wn]&&vn[Wn][yt.getFieldName("children")]&&yr.push(vn[Wn][yt.getFieldName("children")][0][yt.getFieldName("value")]);else if(tr.keyCode===or.a.ESC||tr.keyCode===or.a.TAB){yt.setPopupVisible(!1);return}(!yr||yr.length===0)&&yt.setPopupVisible(!1);var xr=yt.getActiveOptions(yr),ln=xr[xr.length-1];yt.handleMenuSelect(ln,xr.length-1,tr),yt.props.onKeyDown&&yt.props.onKeyDown(tr)},yt.saveTrigger=function(tr){yt.trigger=tr};var Qt=[];return"value"in kt?Qt=kt.value||[]:"defaultValue"in kt&&(Qt=kt.defaultValue||[]),Xt()(!("filedNames"in kt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),yt.state={popupVisible:kt.popupVisible,activeValue:Qt,value:Qt,prevProps:kt},yt.defaultFieldNames={label:"label",value:"value",children:"children"},yt}return Bt(Lt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(yt){var Qt=this.defaultFieldNames,tr=this.props,ir=tr.fieldNames,yr=tr.filedNames;return"filedNames"in this.props?yr[yt]||Qt[yt]:ir[yt]||Qt[yt]}},{key:"getFieldNames",value:function(){var yt=this.props,Qt=yt.fieldNames,tr=yt.filedNames;return"filedNames"in this.props?tr:Qt}},{key:"getCurrentLevelOptions",value:function(){var yt=this,Qt=this.props.options,tr=Qt===void 0?[]:Qt,ir=this.state.activeValue,yr=ir===void 0?[]:ir,xn=ar()(tr,function(vn,Wn){return vn[yt.getFieldName("value")]===yr[Wn]},{childrenKeyName:this.getFieldName("children")});return xn[xn.length-2]?xn[xn.length-2][this.getFieldName("children")]:Nt(tr).filter(function(vn){return!vn.disabled})}},{key:"getActiveOptions",value:function(yt){var Qt=this;return ar()(this.props.options||[],function(tr,ir){return tr[Qt.getFieldName("value")]===yt[ir]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var yt=this.props,Qt=yt.prefixCls,tr=yt.transitionName,ir=yt.popupClassName,yr=yt.options,xn=yr===void 0?[]:yr,vn=yt.disabled,Wn=yt.builtinPlacements,Yr=yt.popupPlacement,xr=yt.children,ln=yt.dropdownRender,On=it(yt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),In=t.createElement("div",null),Un="";xn&&xn.length>0?In=t.createElement(Ie,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Un=" ".concat(Qt,"-menus-empty");var ti=In;return ln&&(ti=ln(In)),t.createElement(Rt,Object.assign({ref:this.saveTrigger},On,{popupPlacement:Yr,builtinPlacements:Wn,popupTransitionName:tr,action:vn?[]:["click"],popupVisible:vn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(Qt,"-menus"),popupClassName:ir+Un,popup:ti}),t.cloneElement(xr,{onKeyDown:this.handleKeyDown,tabIndex:vn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(yt,Qt){var tr=Qt.prevProps,ir=tr===void 0?{}:tr,yr={prevProps:yt};return"value"in yt&&!dr(ir.value,yt.value)&&(yr.value=yt.value||[],"loadData"in yt||(yr.activeValue=yt.value||[])),"popupVisible"in yt&&(yr.popupVisible=yt.popupVisible),yr}}]),Lt}(t.Component);return Pt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Le,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Pt}(),$r=Jr,Pn=$r,Dn=d("BGR+"),Zn=d("kbBi"),li=d.n(Zn),Ai=d("HQEm"),Ii=d.n(Ai),$e=d("fEPi"),Se=d.n($e),Re=d("5YOS"),je=d.n(Re),Ye=d("DFhj"),Ve=d.n(Ye),qe=d("5rEg"),xt=d("H84U"),ct=d("YMnH"),Jt=d("uaoM"),Rr=d("3Nzz"),Ir=d("0n0R"),Xr=function(Pt,gt){var Et={};for(var Lt in Pt)Object.prototype.hasOwnProperty.call(Pt,Lt)&>.indexOf(Lt)<0&&(Et[Lt]=Pt[Lt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Lt=Object.getOwnPropertySymbols(Pt);kt<Lt.length;kt++)gt.indexOf(Lt[kt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Lt[kt])&&(Et[Lt[kt]]=Pt[Lt[kt]]);return Et},qt=50;function pn(Pt,gt,Et){return Pt.split(gt).map(function(Lt,kt){return kt===0?Lt:[t.createElement("span",{className:"".concat(Et,"-menu-item-keyword"),key:"seperator"},gt),Lt]})}function fr(Pt,gt,Et){return gt.some(function(Lt){return Lt[Et.label].indexOf(Pt)>-1})}function mn(Pt,gt,Et,Lt){return gt.map(function(kt,yt){var Qt=kt[Lt.label],tr=Qt.indexOf(Pt)>-1?pn(Qt,Pt,Et):Qt;return yt===0?tr:[" / ",tr]})}function en(Pt,gt,Et,Lt){function kt(yt){return yt[Lt.label].indexOf(Et)>-1}return Pt.findIndex(kt)-gt.findIndex(kt)}function kr(Pt){var gt=Pt.fieldNames;return gt}function Gn(Pt){var gt=kr(Pt)||{},Et={children:gt.children||"children",label:gt.label||"label",value:gt.value||"value"};return Et}function di(Pt,gt){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Lt=Gn(gt),kt=[],yt=Lt.children;return Pt.forEach(function(Qt){var tr=Et.concat(Qt);(gt.changeOnSelect||!Qt[yt]||!Qt[yt].length)&&kt.push(tr),Qt[yt]&&(kt=kt.concat(di(Qt[yt],gt,tr)))}),kt}var _i=function(gt){return gt.join(" / ")};function Br(Pt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Pt||[]).forEach(function(Et){var Lt=gt.value||"value";Object(Jt.a)(Lt in Et,"Cascader","Not found `value` in `options`."),Br(Et[gt.children||"children"],gt)})}var sn=function(Pt){n()(Et,Pt);var gt=s()(Et);function Et(Lt){var kt;return m()(this,Et),kt=gt.call(this,Lt),kt.cachedOptions=[],kt.setValue=function(yt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in kt.props||kt.setState({value:yt});var tr=kt.props.onChange;tr&&tr(yt,Qt)},kt.saveInput=function(yt){kt.input=yt},kt.handleChange=function(yt,Qt){if(kt.setState({inputValue:""}),Qt[0].__IS_FILTERED_OPTION){var tr=yt[0],ir=Qt[0].path;kt.setValue(tr,ir);return}kt.setValue(yt,Qt)},kt.handlePopupVisibleChange=function(yt){"popupVisible"in kt.props||kt.setState(function(tr){return{popupVisible:yt,inputFocused:yt,inputValue:yt?tr.inputValue:""}});var Qt=kt.props.onPopupVisibleChange;Qt&&Qt(yt)},kt.handleInputBlur=function(){kt.setState({inputFocused:!1})},kt.handleInputClick=function(yt){var Qt=kt.state,tr=Qt.inputFocused,ir=Qt.popupVisible;(tr||ir)&&yt.stopPropagation()},kt.handleKeyDown=function(yt){(yt.keyCode===or.a.BACKSPACE||yt.keyCode===or.a.SPACE)&&yt.stopPropagation()},kt.handleInputChange=function(yt){var Qt=kt.state.popupVisible,tr=yt.target.value;Qt||kt.handlePopupVisibleChange(!0),kt.setState({inputValue:tr})},kt.clearSelection=function(yt){var Qt=kt.state.inputValue;yt.preventDefault(),yt.stopPropagation(),Qt?kt.setState({inputValue:""}):(kt.handlePopupVisibleChange(!1),kt.clearSelectionTimeout=setTimeout(function(){kt.setValue([])},200))},kt.renderCascader=function(yt,Qt){var tr=yt.getPopupContainer,ir=yt.getPrefixCls,yr=yt.renderEmpty,xn=yt.direction;return t.createElement(Rr.b.Consumer,null,function(vn){var Wn,Yr,xr,ln,On=r()(kt),In=On.props,Un=On.state,ti=In.prefixCls,ui=In.inputPrefixCls,si=In.children,Pi=In.placeholder,zi=Pi===void 0?Qt.placeholder||"Please select":Pi,Ri=In.size,Yi=In.disabled,$n=In.className,gn=In.style,mi=In.allowClear,Hi=In.showSearch,Li=Hi===void 0?!1:Hi,Bi=In.suffixIcon,wr=In.expandIcon,lr=In.notFoundContent,on=In.popupClassName,Zt=In.bordered,br=In.dropdownRender,Or=Xr(In,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),Wr=Ri||vn,An=Un.value,bt=Un.inputFocused,mr=xn==="rtl",vr=ir("cascader",ti),Fr=ir("input",ui),nn=N()((Wn={},A()(Wn,"".concat(Fr,"-lg"),Wr==="large"),A()(Wn,"".concat(Fr,"-sm"),Wr==="small"),Wn)),cn=mi&&!Yi&&An.length>0||Un.inputValue?t.createElement(li.a,{className:"".concat(vr,"-picker-clear"),onClick:kt.clearSelection}):null,tn=N()((Yr={},A()(Yr,"".concat(vr,"-picker-arrow"),!0),A()(Yr,"".concat(vr,"-picker-arrow-expand"),Un.popupVisible),Yr)),Ln=N()($n,"".concat(vr,"-picker"),(xr={},A()(xr,"".concat(vr,"-picker-rtl"),mr),A()(xr,"".concat(vr,"-picker-with-value"),Un.inputValue),A()(xr,"".concat(vr,"-picker-disabled"),Yi),A()(xr,"".concat(vr,"-picker-").concat(Wr),!!Wr),A()(xr,"".concat(vr,"-picker-show-search"),!!Li),A()(xr,"".concat(vr,"-picker-focused"),bt),A()(xr,"".concat(vr,"-picker-borderless"),!Zt),xr)),Tn=Object(Dn.default)(Or,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),Xn=In.options,ci=Gn(kt.props);if(Xn&&Xn.length>0)Un.inputValue&&(Xn=kt.generateFilteredOptions(vr,yr));else{var Jn;Xn=[(Jn={},A()(Jn,ci.label,lr||yr("Cascader")),A()(Jn,ci.value,"ANT_CASCADER_NOT_FOUND"),Jn)]}Un.popupVisible?kt.cachedOptions=Xn:Xn=kt.cachedOptions;var pi={},Si=(Xn||[]).length===1&&Xn[0].isEmptyNode;Si&&(pi.height="auto");var Ni=Li.matchInputWidth!==!1;Ni&&(Un.inputValue||Si)&&kt.input&&(pi.width=kt.input.input.offsetWidth);var xi;Bi?xi=Object(Ir.c)(Bi,t.createElement("span",{className:"".concat(vr,"-picker-arrow")},Bi),function(){var ua;return{className:N()((ua={},A()(ua,Bi.props.className,Bi.props.className),A()(ua,"".concat(vr,"-picker-arrow"),!0),ua))}}):xi=t.createElement(Ii.a,{className:tn});var yi=si||t.createElement("span",{style:gn,className:Ln},t.createElement("span",{className:"".concat(vr,"-picker-label")},kt.getLabel()),t.createElement(qe.a,E()({},Tn,{tabIndex:"-1",ref:kt.saveInput,prefixCls:Fr,placeholder:An&&An.length>0?void 0:zi,className:"".concat(vr,"-input ").concat(nn),value:Un.inputValue,disabled:Yi,readOnly:!Li,autoComplete:Tn.autoComplete||"off",onClick:Li?kt.handleInputClick:void 0,onBlur:Li?kt.handleInputBlur:void 0,onKeyDown:kt.handleKeyDown,onChange:Li?kt.handleInputChange:void 0})),cn,xi),vi;wr?vi=wr:vi=mr?t.createElement(Ve.a,null):t.createElement(Se.a,null);var Ti=t.createElement("span",{className:"".concat(vr,"-menu-item-loading-icon")},t.createElement(je.a,{spin:!0})),Ui=In.getPopupContainer||tr,$i=Object(Dn.default)(In,["inputIcon","expandIcon","loadingIcon","bordered"]),Di=N()(on,(ln={},A()(ln,"".concat(vr,"-menu-").concat(xn),xn==="rtl"),A()(ln,"".concat(vr,"-menu-empty"),Xn.length===1&&Xn[0].value==="ANT_CASCADER_NOT_FOUND"),ln));return t.createElement(Pn,E()({},$i,{prefixCls:vr,getPopupContainer:Ui,options:Xn,value:An,popupVisible:Un.popupVisible,onPopupVisibleChange:kt.handlePopupVisibleChange,onChange:kt.handleChange,dropdownMenuColumnStyle:pi,expandIcon:vi,loadingIcon:Ti,popupClassName:Di,popupPlacement:kt.getPopupPlacement(xn),dropdownRender:br}),yi)})},kt.state={value:Lt.value||Lt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Lt.popupVisible,flattenOptions:Lt.showSearch?di(Lt.options,Lt):void 0,prevProps:Lt},kt}return c()(Et,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var kt=this.props,yt=kt.options,Qt=kt.displayRender,tr=Qt===void 0?_i:Qt,ir=Gn(this.props),yr=this.state.value,xn=Array.isArray(yr[0])?yr[0]:yr,vn=ar()(yt,function(Yr,xr){return Yr[ir.value]===xn[xr]},{childrenKeyName:ir.children}),Wn=vn.length?vn.map(function(Yr){return Yr[ir.label]}):yr;return tr(Wn,vn)}},{key:"generateFilteredOptions",value:function(kt,yt){var Qt=this,tr,ir=this.props,yr=ir.showSearch,xn=ir.notFoundContent,vn=Gn(this.props),Wn=yr.filter,Yr=Wn===void 0?fr:Wn,xr=yr.render,ln=xr===void 0?mn:xr,On=yr.sort,In=On===void 0?en:On,Un=yr.limit,ti=Un===void 0?qt:Un,ui=this.state,si=ui.flattenOptions,Pi=si===void 0?[]:si,zi=ui.inputValue,Ri;if(ti>0){Ri=[];var Yi=0;Pi.some(function($n){var gn=Yr(Qt.state.inputValue,$n,vn);return gn&&(Ri.push($n),Yi+=1),Yi>=ti})}else Object(Jt.a)(typeof ti!="number","Cascader","'limit' of showSearch should be positive number or false."),Ri=Pi.filter(function($n){return Yr(Qt.state.inputValue,$n,vn)});return Ri=Ri.sort(function($n,gn){return In($n,gn,zi,vn)}),Ri.length>0?Ri.map(function($n){var gn;return gn={__IS_FILTERED_OPTION:!0,path:$n},A()(gn,vn.value,$n.map(function(mi){return mi[vn.value]})),A()(gn,vn.label,ln(zi,$n,kt,vn)),A()(gn,"disabled",$n.some(function(mi){return!!mi.disabled})),A()(gn,"isEmptyNode",!0),gn}):[(tr={},A()(tr,vn.value,"ANT_CASCADER_NOT_FOUND"),A()(tr,vn.label,xn||yt("Cascader")),A()(tr,"disabled",!0),A()(tr,"isEmptyNode",!0),tr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",yt=this.props.popupPlacement;return yt!==void 0?yt:kt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var kt=this;return t.createElement(xt.a,null,function(yt){return t.createElement(ct.a,null,function(Qt){return kt.renderCascader(yt,Qt)})})}}],[{key:"getDerivedStateFromProps",value:function(kt,yt){var Qt=yt.prevProps,tr={prevProps:kt};return"value"in kt&&(tr.value=kt.value||[]),"popupVisible"in kt&&(tr.popupVisible=kt.popupVisible),kt.showSearch&&Qt.options!==kt.options&&(tr.flattenOptions=di(kt.options,kt)),tr}}]),Et}(t.Component);sn.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Sn=B.a=sn},DFhj:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("GGyF"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},DL4k:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},DN4a:function(H,B,d){var O=d("Fofx"),E=d("QBsz"),C=O.identity,A=5e-5;function w(n){return n>A||n<-A}var m=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},f=m.prototype;f.transform=null,f.needLocalTransform=function(){return w(this.rotation)||w(this.position[0])||w(this.position[1])||w(this.scale[0]-1)||w(this.scale[1]-1)};var c=[];f.updateTransform=function(){var n=this.parent,e=n&&n.transform,s=this.needLocalTransform(),t=this.transform;if(!(s||e)){t&&C(t);return}t=t||O.create(),s?this.getLocalTransform(t):C(t),e&&(s?O.mul(t,n.transform,t):O.copy(t,n.transform)),this.transform=t;var a=this.globalScaleRatio;if(a!=null&&a!==1){this.getGlobalScale(c);var l=c[0]<0?-1:1,u=c[1]<0?-1:1,h=((c[0]-l)*a+l)/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 m.getLocalTransform(this,n)},f.setTransform=function(n){var e=this.transform,s=n.dpr||1;e?n.setTransform(s*e[0],s*e[1],s*e[2],s*e[3],s*e[4],s*e[5]):n.setTransform(s,0,0,s,0,0)},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],s=n[2]*n[2]+n[3]*n[3],t=this.position,a=this.scale;w(e-1)&&(e=Math.sqrt(e)),w(s-1)&&(s=Math.sqrt(s)),n[0]<0&&(e=-e),n[3]<0&&(s=-s),t[0]=n[4],t[1]=n[5],a[0]=e,a[1]=s,this.rotation=Math.atan2(-n[1]/s,n[0]/e)},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 s=this.origin;s&&(s[0]||s[1])&&(r[4]=s[0],r[5]=s[1],O.mul(o,e,r),o[4]-=s[0],o[5]-=s[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 s=[n,e],t=this.invTransform;return t&&E.applyTransform(s,s,t),s},f.transformCoordToGlobal=function(n,e){var s=[n,e],t=this.transform;return t&&E.applyTransform(s,s,t),s},m.getLocalTransform=function(n,e){e=e||[],C(e);var s=n.origin,t=n.scale||[1,1],a=n.rotation||0,l=n.position||[0,0];return s&&(e[4]-=s[0],e[5]-=s[1]),O.scale(e,e,t),a&&O.rotate(e,e,a),s&&(e[4]+=s[0],e[5]+=s[1]),e[4]+=l[0],e[5]+=l[1],e};var i=m;H.exports=i},DO2E:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},DYRE:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("OPEp"),A=d.n(C)},DZo9:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("JGo8"),A=d.n(C),w=d("+L6B"),m=d("MXD1"),f=d("5Dmo")},Dagg:function(H,B,d){var O=d("Gev7"),E=d("mFDi"),C=d("bYtY"),A=d("Xnb7");function w(f){O.call(this,f)}w.prototype={constructor:w,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,s=r.y||0,t=r.width,a=r.height,l=n.width/n.height;if(t==null&&a!=null?t=a*l:a==null&&t!=null?a=t/l:t==null&&a==null&&(t=n.width,a=n.height),this.setTransform(c),r.sWidth&&r.sHeight){var u=r.sx||0,h=r.sy||0;c.drawImage(n,u,h,r.sWidth,r.sHeight,e,s,t,a)}else if(r.sx&&r.sy){var u=r.sx,h=r.sy,p=t-u,g=a-h;c.drawImage(n,u,h,p,g,e,s,t,a)}else c.drawImage(n,e,s,t,a);r.text!=null&&(this.restoreTransform(c),this.drawRectText(c,this.getBoundingRect()))},getBoundingRect:function(){var c=this.style;return this._rect||(this._rect=new E(c.x||0,c.y||0,c.width||0,c.height||0)),this._rect}},C.inherits(w,O);var m=w;H.exports=m},Dg8C:function(H,B,d){var O=d("XxSj"),E=d("bYtY");function C(A,w){A.eachSeriesByType("sankey",function(m){var f=m.getGraph(),c=f.nodes;if(c.length){var o=Infinity,r=-Infinity;E.each(c,function(i){var n=i.getLayout().value;n<o&&(o=n),n>r&&(r=n)}),E.each(c,function(i){var n=new O({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:m.get("color")}),e=n.mapValueToVisual(i.getLayout().value),s=i.getModel().get("itemStyle.color");s!=null?i.setVisual("color",s):i.setVisual("color",e)})}})}H.exports=C},DjyN:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("Urep"),A=d.n(C),w=d("OaEy")},DlQD:function(H,B,d){(function(O,E){H.exports=E()})(this,function(){"use strict";function O(Ct,Tt){for(var Dt=0;Dt<Tt.length;Dt++){var Be=Tt[Dt];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Ct,Be.key,Be)}}function E(Ct,Tt,Dt){return Tt&&O(Ct.prototype,Tt),Dt&&O(Ct,Dt),Ct}function C(Ct,Tt){if(!Ct)return;if(typeof Ct=="string")return A(Ct,Tt);var Dt=Object.prototype.toString.call(Ct).slice(8,-1);if(Dt==="Object"&&Ct.constructor&&(Dt=Ct.constructor.name),Dt==="Map"||Dt==="Set")return Array.from(Ct);if(Dt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dt))return A(Ct,Tt)}function A(Ct,Tt){(Tt==null||Tt>Ct.length)&&(Tt=Ct.length);for(var Dt=0,Be=new Array(Tt);Dt<Tt;Dt++)Be[Dt]=Ct[Dt];return Be}function w(Ct,Tt){var Dt;if(typeof Symbol=="undefined"||Ct[Symbol.iterator]==null){if(Array.isArray(Ct)||(Dt=C(Ct))||Tt&&Ct&&typeof Ct.length=="number"){Dt&&(Ct=Dt);var Be=0;return function(){return Be>=Ct.length?{done:!0}:{done:!1,value:Ct[Be++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Dt=Ct[Symbol.iterator](),Dt.next.bind(Dt)}function m(Ct,Tt){return Tt={exports:{}},Ct(Tt,Tt.exports),Tt.exports}var f=m(function(Ct){function Tt(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Dt(Be){Ct.exports.defaults=Be}Ct.exports={defaults:Tt(),getDefaults:Tt,changeDefaults:Dt}}),c=f.defaults,o=f.getDefaults,r=f.changeDefaults,i=/[&<>"']/,n=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,t={"&":"&","<":"<",">":">",'"':""","'":"'"},a=function(Tt){return t[Tt]};function l(Ct,Tt){if(Tt){if(i.test(Ct))return Ct.replace(n,a)}else if(e.test(Ct))return Ct.replace(s,a);return Ct}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(Ct){return Ct.replace(u,function(Tt,Dt){return Dt=Dt.toLowerCase(),Dt==="colon"?":":Dt.charAt(0)==="#"?Dt.charAt(1)==="x"?String.fromCharCode(parseInt(Dt.substring(2),16)):String.fromCharCode(+Dt.substring(1)):""})}var p=/(^|[^\[])\^/g;function g(Ct,Tt){Ct=Ct.source||Ct,Tt=Tt||"";var Dt={replace:function(ie,X){return X=X.source||X,X=X.replace(p,"$1"),Ct=Ct.replace(ie,X),Dt},getRegex:function(){return new RegExp(Ct,Tt)}};return Dt}var v=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(Ct,Tt,Dt){if(Ct){var Be;try{Be=decodeURIComponent(h(Dt)).replace(v,"").toLowerCase()}catch(ie){return null}if(Be.indexOf("javascript:")===0||Be.indexOf("vbscript:")===0||Be.indexOf("data:")===0)return null}Tt&&!y.test(Dt)&&(Dt=I(Tt,Dt));try{Dt=encodeURI(Dt).replace(/%25/g,"%")}catch(ie){return null}return Dt}var T={},S=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Ct,Tt){T[" "+Ct]||(S.test(Ct)?T[" "+Ct]=Ct+"/":T[" "+Ct]=R(Ct,"/",!0)),Ct=T[" "+Ct];var Dt=Ct.indexOf(":")===-1;return Tt.substring(0,2)==="//"?Dt?Tt:Ct.replace(b,"$1")+Tt:Tt.charAt(0)==="/"?Dt?Tt:Ct.replace(_,"$1")+Tt:Ct+Tt}var L={exec:function(){}};function N(Ct){for(var Tt=1,Dt,Be;Tt<arguments.length;Tt++){Dt=arguments[Tt];for(Be in Dt)Object.prototype.hasOwnProperty.call(Dt,Be)&&(Ct[Be]=Dt[Be])}return Ct}function D(Ct,Tt){var Dt=Ct.replace(/\|/g,function(X,Fe,Ne){for(var q=!1,ht=Fe;--ht>=0&&Ne[ht]==="\\";)q=!q;return q?"|":" |"}),Be=Dt.split(/ \|/),ie=0;if(Be.length>Tt)Be.splice(Tt);else for(;Be.length<Tt;)Be.push("");for(;ie<Be.length;ie++)Be[ie]=Be[ie].trim().replace(/\\\|/g,"|");return Be}function R(Ct,Tt,Dt){var Be=Ct.length;if(Be===0)return"";for(var ie=0;ie<Be;){var X=Ct.charAt(Be-ie-1);if(X===Tt&&!Dt)ie++;else if(X!==Tt&&Dt)ie++;else break}return Ct.substr(0,Be-ie)}function P(Ct,Tt){if(Ct.indexOf(Tt[1])===-1)return-1;for(var Dt=Ct.length,Be=0,ie=0;ie<Dt;ie++)if(Ct[ie]==="\\")ie++;else if(Ct[ie]===Tt[0])Be++;else if(Ct[ie]===Tt[1]&&(Be--,Be<0))return ie;return-1}function M(Ct){Ct&&Ct.sanitize&&!Ct.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var U={escape:l,unescape:h,edit:g,cleanUrl:x,resolveUrl:I,noopTest:L,merge:N,splitCells:D,rtrim:R,findClosingBracket:P,checkSanitizeDeprecation:M},F=f.defaults,j=U.rtrim,W=U.splitCells,V=U.escape,z=U.findClosingBracket;function Y(Ct,Tt,Dt){var Be=Tt.href,ie=Tt.title?V(Tt.title):null,X=Ct[1].replace(/\\([\[\]])/g,"$1");return Ct[0].charAt(0)!=="!"?{type:"link",raw:Dt,href:Be,title:ie,text:X}:{type:"image",raw:Dt,href:Be,title:ie,text:V(X)}}function $(Ct,Tt){var Dt=Ct.match(/^(\s+)(?:```)/);if(Dt===null)return Tt;var Be=Dt[1];return Tt.split(`
|
|
|
`).map(function(ie){var X=ie.match(/^\s+/);if(X===null)return ie;var Fe=X[0];return Fe.length>=Be.length?ie.slice(Be.length):ie}).join(`
|
|
|
`)}var ue=function(){function Ct(Dt){this.options=Dt||F}var Tt=Ct.prototype;return Tt.space=function(Be){var ie=this.rules.block.newline.exec(Be);if(ie)return ie[0].length>1?{type:"space",raw:ie[0]}:{raw:`
|
|
|
`}},Tt.code=function(Be,ie){var X=this.rules.block.code.exec(Be);if(X){var Fe=ie[ie.length-1];if(Fe&&Fe.type==="paragraph")return{raw:X[0],text:X[0].trimRight()};var Ne=X[0].replace(/^ {4}/gm,"");return{type:"code",raw:X[0],codeBlockStyle:"indented",text:this.options.pedantic?Ne:j(Ne,`
|
|
|
`)}}},Tt.fences=function(Be){var ie=this.rules.block.fences.exec(Be);if(ie){var X=ie[0],Fe=$(X,ie[3]||"");return{type:"code",raw:X,lang:ie[2]?ie[2].trim():ie[2],text:Fe}}},Tt.heading=function(Be){var ie=this.rules.block.heading.exec(Be);if(ie)return{type:"heading",raw:ie[0],depth:ie[1].length,text:ie[2]}},Tt.nptable=function(Be){var ie=this.rules.block.nptable.exec(Be);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 Fe=X.align.length,Ne;for(Ne=0;Ne<Fe;Ne++)/^ *-+: *$/.test(X.align[Ne])?X.align[Ne]="right":/^ *:-+: *$/.test(X.align[Ne])?X.align[Ne]="center":/^ *:-+ *$/.test(X.align[Ne])?X.align[Ne]="left":X.align[Ne]=null;for(Fe=X.cells.length,Ne=0;Ne<Fe;Ne++)X.cells[Ne]=W(X.cells[Ne],X.header.length);return X}}},Tt.hr=function(Be){var ie=this.rules.block.hr.exec(Be);if(ie)return{type:"hr",raw:ie[0]}},Tt.blockquote=function(Be){var ie=this.rules.block.blockquote.exec(Be);if(ie){var X=ie[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ie[0],text:X}}},Tt.list=function(Be){var ie=this.rules.block.list.exec(Be);if(ie){for(var X=ie[0],Fe=ie[2],Ne=Fe.length>1,q=Fe[Fe.length-1]===")",ht={type:"list",raw:X,ordered:Ne,start:Ne?+Fe.slice(0,-1):"",loose:!1,items:[]},Rt=ie[0].match(this.rules.block.item),ut=!1,Xt,or,Zr,ar,dr,er,Ht,dt=Rt.length,Hr=0;Hr<dt;Hr++)Xt=Rt[Hr],X=Xt,or=Xt.length,Xt=Xt.replace(/^ *([*+-]|\d+[.)]) */,""),~Xt.indexOf(`
|
|
|
`)&&(or-=Xt.length,Xt=this.options.pedantic?Xt.replace(/^ {1,4}/gm,""):Xt.replace(new RegExp("^ {1,"+or+"}","gm"),"")),Hr!==dt-1&&(Zr=this.rules.block.bullet.exec(Rt[Hr+1])[0],(Ne?Zr.length===1||!q&&Zr[Zr.length-1]===")":Zr.length>1||this.options.smartLists&&Zr!==Fe)&&(ar=Rt.slice(Hr+1).join(`
|
|
|
`),ht.raw=ht.raw.substring(0,ht.raw.length-ar.length),Hr=dt-1)),dr=ut||/\n\n(?!\s*$)/.test(Xt),Hr!==dt-1&&(ut=Xt.charAt(Xt.length-1)===`
|
|
|
`,dr||(dr=ut)),dr&&(ht.loose=!0),er=/^\[[ xX]\] /.test(Xt),Ht=void 0,er&&(Ht=Xt[1]!==" ",Xt=Xt.replace(/^\[[ xX]\] +/,"")),ht.items.push({type:"list_item",raw:X,task:er,checked:Ht,loose:dr,text:Xt});return ht}},Tt.html=function(Be){var ie=this.rules.block.html.exec(Be);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]}},Tt.def=function(Be){var ie=this.rules.block.def.exec(Be);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]}}},Tt.table=function(Be){var ie=this.rules.block.table.exec(Be);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 Fe=X.align.length,Ne;for(Ne=0;Ne<Fe;Ne++)/^ *-+: *$/.test(X.align[Ne])?X.align[Ne]="right":/^ *:-+: *$/.test(X.align[Ne])?X.align[Ne]="center":/^ *:-+ *$/.test(X.align[Ne])?X.align[Ne]="left":X.align[Ne]=null;for(Fe=X.cells.length,Ne=0;Ne<Fe;Ne++)X.cells[Ne]=W(X.cells[Ne].replace(/^ *\| *| *\| *$/g,""),X.header.length);return X}}},Tt.lheading=function(Be){var ie=this.rules.block.lheading.exec(Be);if(ie)return{type:"heading",raw:ie[0],depth:ie[2].charAt(0)==="="?1:2,text:ie[1]}},Tt.paragraph=function(Be){var ie=this.rules.block.paragraph.exec(Be);if(ie)return{type:"paragraph",raw:ie[0],text:ie[1].charAt(ie[1].length-1)===`
|
|
|
`?ie[1].slice(0,-1):ie[1]}},Tt.text=function(Be,ie){var X=this.rules.block.text.exec(Be);if(X){var Fe=ie[ie.length-1];return Fe&&Fe.type==="text"?{raw:X[0],text:X[0]}:{type:"text",raw:X[0],text:X[0]}}},Tt.escape=function(Be){var ie=this.rules.inline.escape.exec(Be);if(ie)return{type:"escape",raw:ie[0],text:V(ie[1])}},Tt.tag=function(Be,ie,X){var Fe=this.rules.inline.tag.exec(Be);if(Fe)return!ie&&/^<a /i.test(Fe[0])?ie=!0:ie&&/^<\/a>/i.test(Fe[0])&&(ie=!1),!X&&/^<(pre|code|kbd|script)(\s|>)/i.test(Fe[0])?X=!0:X&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Fe[0])&&(X=!1),{type:this.options.sanitize?"text":"html",raw:Fe[0],inLink:ie,inRawBlock:X,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Fe[0]):V(Fe[0]):Fe[0]}},Tt.link=function(Be){var ie=this.rules.inline.link.exec(Be);if(ie){var X=z(ie[2],"()");if(X>-1){var Fe=ie[0].indexOf("!")===0?5:4,Ne=Fe+ie[1].length+X;ie[2]=ie[2].substring(0,X),ie[0]=ie[0].substring(0,Ne).trim(),ie[3]=""}var q=ie[2],ht="";if(this.options.pedantic){var Rt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(q);Rt?(q=Rt[1],ht=Rt[3]):ht=""}else ht=ie[3]?ie[3].slice(1,-1):"";q=q.trim().replace(/^<([\s\S]*)>$/,"$1");var ut=Y(ie,{href:q&&q.replace(this.rules.inline._escapes,"$1"),title:ht&&ht.replace(this.rules.inline._escapes,"$1")},ie[0]);return ut}},Tt.reflink=function(Be,ie){var X;if((X=this.rules.inline.reflink.exec(Be))||(X=this.rules.inline.nolink.exec(Be))){var Fe=(X[2]||X[1]).replace(/\s+/g," ");if(Fe=ie[Fe.toLowerCase()],!Fe||!Fe.href){var Ne=X[0].charAt(0);return{type:"text",raw:Ne,text:Ne}}var q=Y(X,Fe,X[0]);return q}},Tt.strong=function(Be,ie,X){X===void 0&&(X="");var Fe=this.rules.inline.strong.start.exec(Be);if(Fe&&(!Fe[1]||Fe[1]&&(X===""||this.rules.inline.punctuation.exec(X)))){ie=ie.slice(-1*Be.length);var Ne=Fe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ne.lastIndex=0;for(var q;(Fe=Ne.exec(ie))!=null;)if(q=this.rules.inline.strong.middle.exec(ie.slice(0,Fe.index+3)),q)return{type:"strong",raw:Be.slice(0,q[0].length),text:Be.slice(2,q[0].length-2)}}},Tt.em=function(Be,ie,X){X===void 0&&(X="");var Fe=this.rules.inline.em.start.exec(Be);if(Fe&&(!Fe[1]||Fe[1]&&(X===""||this.rules.inline.punctuation.exec(X)))){ie=ie.slice(-1*Be.length);var Ne=Fe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ne.lastIndex=0;for(var q;(Fe=Ne.exec(ie))!=null;)if(q=this.rules.inline.em.middle.exec(ie.slice(0,Fe.index+2)),q)return{type:"em",raw:Be.slice(0,q[0].length),text:Be.slice(1,q[0].length-1)}}},Tt.codespan=function(Be){var ie=this.rules.inline.code.exec(Be);if(ie){var X=ie[2].replace(/\n/g," "),Fe=/[^ ]/.test(X),Ne=X.startsWith(" ")&&X.endsWith(" ");return Fe&&Ne&&(X=X.substring(1,X.length-1)),X=V(X,!0),{type:"codespan",raw:ie[0],text:X}}},Tt.br=function(Be){var ie=this.rules.inline.br.exec(Be);if(ie)return{type:"br",raw:ie[0]}},Tt.del=function(Be){var ie=this.rules.inline.del.exec(Be);if(ie)return{type:"del",raw:ie[0],text:ie[1]}},Tt.autolink=function(Be,ie){var X=this.rules.inline.autolink.exec(Be);if(X){var Fe,Ne;return X[2]==="@"?(Fe=V(this.options.mangle?ie(X[1]):X[1]),Ne="mailto:"+Fe):(Fe=V(X[1]),Ne=Fe),{type:"link",raw:X[0],text:Fe,href:Ne,tokens:[{type:"text",raw:Fe,text:Fe}]}}},Tt.url=function(Be,ie){var X;if(X=this.rules.inline.url.exec(Be)){var Fe,Ne;if(X[2]==="@")Fe=V(this.options.mangle?ie(X[0]):X[0]),Ne="mailto:"+Fe;else{var q;do q=X[0],X[0]=this.rules.inline._backpedal.exec(X[0])[0];while(q!==X[0]);Fe=V(X[0]),X[1]==="www."?Ne="http://"+Fe:Ne=Fe}return{type:"link",raw:X[0],text:Fe,href:Ne,tokens:[{type:"text",raw:Fe,text:Fe}]}}},Tt.inlineText=function(Be,ie,X){var Fe=this.rules.inline.text.exec(Be);if(Fe){var Ne;return ie?Ne=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Fe[0]):V(Fe[0]):Fe[0]:Ne=V(this.options.smartypants?X(Fe[0]):Fe[0]),{type:"text",raw:Fe[0],text:Ne}}},Ct}(),ne=U.noopTest,ge=U.edit,Oe=U.merge,De={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:ne,table:ne,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};De._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,De._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,De.def=ge(De.def).replace("label",De._label).replace("title",De._title).getRegex(),De.bullet=/(?:[*+-]|\d{1,9}[.)])/,De.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,De.item=ge(De.item,"gm").replace(/bull/g,De.bullet).getRegex(),De.list=ge(De.list).replace(/bull/g,De.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+De.def.source+")").getRegex(),De._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",De._comment=/<!--(?!-?>)[\s\S]*?-->/,De.html=ge(De.html,"i").replace("comment",De._comment).replace("tag",De._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),De.paragraph=ge(De._paragraph).replace("hr",De.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",De._tag).getRegex(),De.blockquote=ge(De.blockquote).replace("paragraph",De.paragraph).getRegex(),De.normal=Oe({},De),De.gfm=Oe({},De.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*|$)"}),De.gfm.nptable=ge(De.gfm.nptable).replace("hr",De.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",De._tag).getRegex(),De.gfm.table=ge(De.gfm.table).replace("hr",De.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",De._tag).getRegex(),De.pedantic=Oe({},De.normal,{html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",De._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:ne,paragraph:ge(De.normal._paragraph).replace("hr",De.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",De.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var He={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ne,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:ne,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};He._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",He.punctuation=ge(He.punctuation).replace(/punctuation/g,He._punctuation).getRegex(),He._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",He._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",He.em.start=ge(He.em.start).replace(/punctuation/g,He._punctuation).getRegex(),He.em.middle=ge(He.em.middle).replace(/punctuation/g,He._punctuation).replace(/overlapSkip/g,He._overlapSkip).getRegex(),He.em.endAst=ge(He.em.endAst,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.em.endUnd=ge(He.em.endUnd,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.strong.start=ge(He.strong.start).replace(/punctuation/g,He._punctuation).getRegex(),He.strong.middle=ge(He.strong.middle).replace(/punctuation/g,He._punctuation).replace(/blockSkip/g,He._blockSkip).getRegex(),He.strong.endAst=ge(He.strong.endAst,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.strong.endUnd=ge(He.strong.endUnd,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.blockSkip=ge(He._blockSkip,"g").getRegex(),He.overlapSkip=ge(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=ge(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=ge(He.tag).replace("comment",De._comment).replace("attribute",He._attribute).getRegex(),He._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,He._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,He._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,He.link=ge(He.link).replace("label",He._label).replace("href",He._href).replace("title",He._title).getRegex(),He.reflink=ge(He.reflink).replace("label",He._label).getRegex(),He.reflinkSearch=ge(He.reflinkSearch,"g").replace("reflink",He.reflink).replace("nolink",He.nolink).getRegex(),He.normal=Oe({},He),He.pedantic=Oe({},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:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",He._label).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",He._label).getRegex()}),He.gfm=Oe({},He.normal,{escape:ge(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=ge(He.gfm.url,"i").replace("email",He.gfm._extended_email).getRegex(),He.breaks=Oe({},He.gfm,{br:ge(He.br).replace("{2,}","*").getRegex(),text:ge(He.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var pe={block:De,inline:He},Ue=f.defaults,oe=pe.block,ee=pe.inline;function Xe(Ct){return Ct.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function se(Ct){var Tt="",Dt,Be,ie=Ct.length;for(Dt=0;Dt<ie;Dt++)Be=Ct.charCodeAt(Dt),Math.random()>.5&&(Be="x"+Be.toString(16)),Tt+="&#"+Be+";";return Tt}var Q=function(){function Ct(Dt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Dt||Ue,this.options.tokenizer=this.options.tokenizer||new ue,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Be={block:oe.normal,inline:ee.normal};this.options.pedantic?(Be.block=oe.pedantic,Be.inline=ee.pedantic):this.options.gfm&&(Be.block=oe.gfm,this.options.breaks?Be.inline=ee.breaks:Be.inline=ee.gfm),this.tokenizer.rules=Be}Ct.lex=function(Be,ie){var X=new Ct(ie);return X.lex(Be)};var Tt=Ct.prototype;return Tt.lex=function(Be){return Be=Be.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Be,this.tokens,!0),this.inline(this.tokens),this.tokens},Tt.blockTokens=function(Be,ie,X){ie===void 0&&(ie=[]),X===void 0&&(X=!0),Be=Be.replace(/^ +$/gm,"");for(var Fe,Ne,q,ht;Be;){if(Fe=this.tokenizer.space(Be)){Be=Be.substring(Fe.raw.length),Fe.type&&ie.push(Fe);continue}if(Fe=this.tokenizer.code(Be,ie)){Be=Be.substring(Fe.raw.length),Fe.type?ie.push(Fe):(ht=ie[ie.length-1],ht.raw+=`
|
|
|
`+Fe.raw,ht.text+=`
|
|
|
`+Fe.text);continue}if(Fe=this.tokenizer.fences(Be)){Be=Be.substring(Fe.raw.length),ie.push(Fe);continue}if(Fe=this.tokenizer.heading(Be)){Be=Be.substring(Fe.raw.length),ie.push(Fe);continue}if(Fe=this.tokenizer.nptable(Be)){Be=Be.substring(Fe.raw.length),ie.push(Fe);continue}if(Fe=this.tokenizer.hr(Be)){Be=Be.substring(Fe.raw.length),ie.push(Fe);continue}if(Fe=this.tokenizer.blockquote(Be)){Be=Be.substring(Fe.raw.length),Fe.tokens=this.blockTokens(Fe.text,[],X),ie.push(Fe);continue}if(Fe=this.tokenizer.list(Be)){for(Be=Be.substring(Fe.raw.length),q=Fe.items.length,Ne=0;Ne<q;Ne++)Fe.items[Ne].tokens=this.blockTokens(Fe.items[Ne].text,[],!1);ie.push(Fe);continue}if(Fe=this.tokenizer.html(Be)){Be=Be.substring(Fe.raw.length),ie.push(Fe);continue}if(X&&(Fe=this.tokenizer.def(Be))){Be=Be.substring(Fe.raw.length),this.tokens.links[Fe.tag]||(this.tokens.links[Fe.tag]={href:Fe.href,title:Fe.title});continue}if(Fe=this.tokenizer.table(Be)){Be=Be.substring(Fe.raw.length),ie.push(Fe);continue}if(Fe=this.tokenizer.lheading(Be)){Be=Be.substring(Fe.raw.length),ie.push(Fe);continue}if(X&&(Fe=this.tokenizer.paragraph(Be))){Be=Be.substring(Fe.raw.length),ie.push(Fe);continue}if(Fe=this.tokenizer.text(Be,ie)){Be=Be.substring(Fe.raw.length),Fe.type?ie.push(Fe):(ht=ie[ie.length-1],ht.raw+=`
|
|
|
`+Fe.raw,ht.text+=`
|
|
|
`+Fe.text);continue}if(Be){var Rt="Infinite loop on byte: "+Be.charCodeAt(0);if(this.options.silent){console.error(Rt);break}else throw new Error(Rt)}}return ie},Tt.inline=function(Be){var ie,X,Fe,Ne,q,ht,Rt=Be.length;for(ie=0;ie<Rt;ie++){ht=Be[ie];switch(ht.type){case"paragraph":case"text":case"heading":{ht.tokens=[],this.inlineTokens(ht.text,ht.tokens);break}case"table":{for(ht.tokens={header:[],cells:[]},Ne=ht.header.length,X=0;X<Ne;X++)ht.tokens.header[X]=[],this.inlineTokens(ht.header[X],ht.tokens.header[X]);for(Ne=ht.cells.length,X=0;X<Ne;X++)for(q=ht.cells[X],ht.tokens.cells[X]=[],Fe=0;Fe<q.length;Fe++)ht.tokens.cells[X][Fe]=[],this.inlineTokens(q[Fe],ht.tokens.cells[X][Fe]);break}case"blockquote":{this.inline(ht.tokens);break}case"list":{for(Ne=ht.items.length,X=0;X<Ne;X++)this.inline(ht.items[X].tokens);break}}}return Be},Tt.inlineTokens=function(Be,ie,X,Fe,Ne){ie===void 0&&(ie=[]),X===void 0&&(X=!1),Fe===void 0&&(Fe=!1),Ne===void 0&&(Ne="");var q,ht=Be,Rt;if(this.tokens.links){var ut=Object.keys(this.tokens.links);if(ut.length>0)for(;(Rt=this.tokenizer.rules.inline.reflinkSearch.exec(ht))!=null;)ut.includes(Rt[0].slice(Rt[0].lastIndexOf("[")+1,-1))&&(ht=ht.slice(0,Rt.index)+"["+"a".repeat(Rt[0].length-2)+"]"+ht.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Rt=this.tokenizer.rules.inline.blockSkip.exec(ht))!=null;)ht=ht.slice(0,Rt.index)+"["+"a".repeat(Rt[0].length-2)+"]"+ht.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Be;){if(q=this.tokenizer.escape(Be)){Be=Be.substring(q.raw.length),ie.push(q);continue}if(q=this.tokenizer.tag(Be,X,Fe)){Be=Be.substring(q.raw.length),X=q.inLink,Fe=q.inRawBlock,ie.push(q);continue}if(q=this.tokenizer.link(Be)){Be=Be.substring(q.raw.length),q.type==="link"&&(q.tokens=this.inlineTokens(q.text,[],!0,Fe)),ie.push(q);continue}if(q=this.tokenizer.reflink(Be,this.tokens.links)){Be=Be.substring(q.raw.length),q.type==="link"&&(q.tokens=this.inlineTokens(q.text,[],!0,Fe)),ie.push(q);continue}if(q=this.tokenizer.strong(Be,ht,Ne)){Be=Be.substring(q.raw.length),q.tokens=this.inlineTokens(q.text,[],X,Fe),ie.push(q);continue}if(q=this.tokenizer.em(Be,ht,Ne)){Be=Be.substring(q.raw.length),q.tokens=this.inlineTokens(q.text,[],X,Fe),ie.push(q);continue}if(q=this.tokenizer.codespan(Be)){Be=Be.substring(q.raw.length),ie.push(q);continue}if(q=this.tokenizer.br(Be)){Be=Be.substring(q.raw.length),ie.push(q);continue}if(q=this.tokenizer.del(Be)){Be=Be.substring(q.raw.length),q.tokens=this.inlineTokens(q.text,[],X,Fe),ie.push(q);continue}if(q=this.tokenizer.autolink(Be,se)){Be=Be.substring(q.raw.length),ie.push(q);continue}if(!X&&(q=this.tokenizer.url(Be,se))){Be=Be.substring(q.raw.length),ie.push(q);continue}if(q=this.tokenizer.inlineText(Be,Fe,Xe)){Be=Be.substring(q.raw.length),Ne=q.raw.slice(-1),ie.push(q);continue}if(Be){var Xt="Infinite loop on byte: "+Be.charCodeAt(0);if(this.options.silent){console.error(Xt);break}else throw new Error(Xt)}}return ie},E(Ct,null,[{key:"rules",get:function(){return{block:oe,inline:ee}}}]),Ct}(),G=f.defaults,J=U.cleanUrl,ve=U.escape,de=function(){function Ct(Dt){this.options=Dt||G}var Tt=Ct.prototype;return Tt.code=function(Be,ie,X){var Fe=(ie||"").match(/\S*/)[0];if(this.options.highlight){var Ne=this.options.highlight(Be,Fe);Ne!=null&&Ne!==Be&&(X=!0,Be=Ne)}return Fe?'<pre><code class="'+this.options.langPrefix+ve(Fe,!0)+'">'+(X?Be:ve(Be,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(X?Be:ve(Be,!0))+`</code></pre>
|
|
|
`},Tt.blockquote=function(Be){return`<blockquote>
|
|
|
`+Be+`</blockquote>
|
|
|
`},Tt.html=function(Be){return Be},Tt.heading=function(Be,ie,X,Fe){return this.options.headerIds?"<h"+ie+' id="'+this.options.headerPrefix+Fe.slug(X)+'">'+Be+"</h"+ie+`>
|
|
|
`:"<h"+ie+">"+Be+"</h"+ie+`>
|
|
|
`},Tt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Tt.list=function(Be,ie,X){var Fe=ie?"ol":"ul",Ne=ie&&X!==1?' start="'+X+'"':"";return"<"+Fe+Ne+`>
|
|
|
`+Be+"</"+Fe+`>
|
|
|
`},Tt.listitem=function(Be){return"<li>"+Be+`</li>
|
|
|
`},Tt.checkbox=function(Be){return"<input "+(Be?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Tt.paragraph=function(Be){return"<p>"+Be+`</p>
|
|
|
`},Tt.table=function(Be,ie){return ie&&(ie="<tbody>"+ie+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Be+`</thead>
|
|
|
`+ie+`</table>
|
|
|
`},Tt.tablerow=function(Be){return`<tr>
|
|
|
`+Be+`</tr>
|
|
|
`},Tt.tablecell=function(Be,ie){var X=ie.header?"th":"td",Fe=ie.align?"<"+X+' align="'+ie.align+'">':"<"+X+">";return Fe+Be+"</"+X+`>
|
|
|
`},Tt.strong=function(Be){return"<strong>"+Be+"</strong>"},Tt.em=function(Be){return"<em>"+Be+"</em>"},Tt.codespan=function(Be){return"<code>"+Be+"</code>"},Tt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Tt.del=function(Be){return"<del>"+Be+"</del>"},Tt.link=function(Be,ie,X){if(Be=J(this.options.sanitize,this.options.baseUrl,Be),Be===null)return X;var Fe='<a href="'+ve(Be)+'"';return ie&&(Fe+=' title="'+ie+'"'),Fe+=">"+X+"</a>",Fe},Tt.image=function(Be,ie,X){if(Be=J(this.options.sanitize,this.options.baseUrl,Be),Be===null)return X;var Fe='<img src="'+Be+'" alt="'+X+'"';return ie&&(Fe+=' title="'+ie+'"'),Fe+=this.options.xhtml?"/>":">",Fe},Tt.text=function(Be){return Be},Ct}(),Ce=function(){function Ct(){}var Tt=Ct.prototype;return Tt.strong=function(Be){return Be},Tt.em=function(Be){return Be},Tt.codespan=function(Be){return Be},Tt.del=function(Be){return Be},Tt.html=function(Be){return Be},Tt.text=function(Be){return Be},Tt.link=function(Be,ie,X){return""+X},Tt.image=function(Be,ie,X){return""+X},Tt.br=function(){return""},Ct}(),Ee=function(){function Ct(){this.seen={}}var Tt=Ct.prototype;return Tt.slug=function(Be){var ie=Be.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},Ct}(),le=f.defaults,fe=U.unescape,xe=function(){function Ct(Dt){this.options=Dt||le,this.options.renderer=this.options.renderer||new de,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new Ee}Ct.parse=function(Be,ie){var X=new Ct(ie);return X.parse(Be)};var Tt=Ct.prototype;return Tt.parse=function(Be,ie){ie===void 0&&(ie=!0);var X="",Fe,Ne,q,ht,Rt,ut,Xt,or,Zr,ar,dr,er,Ht,dt,Hr,dn,Nn,Vn,gi=Be.length;for(Fe=0;Fe<gi;Fe++){ar=Be[Fe];switch(ar.type){case"space":continue;case"hr":{X+=this.renderer.hr();continue}case"heading":{X+=this.renderer.heading(this.parseInline(ar.tokens),ar.depth,fe(this.parseInline(ar.tokens,this.textRenderer)),this.slugger);continue}case"code":{X+=this.renderer.code(ar.text,ar.lang,ar.escaped);continue}case"table":{for(or="",Xt="",ht=ar.header.length,Ne=0;Ne<ht;Ne++)Xt+=this.renderer.tablecell(this.parseInline(ar.tokens.header[Ne]),{header:!0,align:ar.align[Ne]});for(or+=this.renderer.tablerow(Xt),Zr="",ht=ar.cells.length,Ne=0;Ne<ht;Ne++){for(ut=ar.tokens.cells[Ne],Xt="",Rt=ut.length,q=0;q<Rt;q++)Xt+=this.renderer.tablecell(this.parseInline(ut[q]),{header:!1,align:ar.align[q]});Zr+=this.renderer.tablerow(Xt)}X+=this.renderer.table(or,Zr);continue}case"blockquote":{Zr=this.parse(ar.tokens),X+=this.renderer.blockquote(Zr);continue}case"list":{for(dr=ar.ordered,er=ar.start,Ht=ar.loose,ht=ar.items.length,Zr="",Ne=0;Ne<ht;Ne++)Hr=ar.items[Ne],dn=Hr.checked,Nn=Hr.task,dt="",Hr.task&&(Vn=this.renderer.checkbox(dn),Ht?Hr.tokens.length>0&&Hr.tokens[0].type==="text"?(Hr.tokens[0].text=Vn+" "+Hr.tokens[0].text,Hr.tokens[0].tokens&&Hr.tokens[0].tokens.length>0&&Hr.tokens[0].tokens[0].type==="text"&&(Hr.tokens[0].tokens[0].text=Vn+" "+Hr.tokens[0].tokens[0].text)):Hr.tokens.unshift({type:"text",text:Vn}):dt+=Vn),dt+=this.parse(Hr.tokens,Ht),Zr+=this.renderer.listitem(dt,Nn,dn);X+=this.renderer.list(Zr,dr,er);continue}case"html":{X+=this.renderer.html(ar.text);continue}case"paragraph":{X+=this.renderer.paragraph(this.parseInline(ar.tokens));continue}case"text":{for(Zr=ar.tokens?this.parseInline(ar.tokens):ar.text;Fe+1<gi&&Be[Fe+1].type==="text";)ar=Be[++Fe],Zr+=`
|
|
|
`+(ar.tokens?this.parseInline(ar.tokens):ar.text);X+=ie?this.renderer.paragraph(Zr):Zr;continue}default:{var bn='Token with "'+ar.type+'" type was not found.';if(this.options.silent){console.error(bn);return}else throw new Error(bn)}}}return X},Tt.parseInline=function(Be,ie){ie=ie||this.renderer;var X="",Fe,Ne,q=Be.length;for(Fe=0;Fe<q;Fe++){Ne=Be[Fe];switch(Ne.type){case"escape":{X+=ie.text(Ne.text);break}case"html":{X+=ie.html(Ne.text);break}case"link":{X+=ie.link(Ne.href,Ne.title,this.parseInline(Ne.tokens,ie));break}case"image":{X+=ie.image(Ne.href,Ne.title,Ne.text);break}case"strong":{X+=ie.strong(this.parseInline(Ne.tokens,ie));break}case"em":{X+=ie.em(this.parseInline(Ne.tokens,ie));break}case"codespan":{X+=ie.codespan(Ne.text);break}case"br":{X+=ie.br();break}case"del":{X+=ie.del(this.parseInline(Ne.tokens,ie));break}case"text":{X+=ie.text(Ne.text);break}default:{var ht='Token with "'+Ne.type+'" type was not found.';if(this.options.silent){console.error(ht);return}else throw new Error(ht)}}}return X},Ct}(),Qe=U.merge,ot=U.checkSanitizeDeprecation,Je=U.escape,Te=f.getDefaults,et=f.changeDefaults,ze=f.defaults;function nt(Ct,Tt,Dt){if(typeof Ct=="undefined"||Ct===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ct!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ct)+", string expected");if(typeof Tt=="function"&&(Dt=Tt,Tt=null),Tt=Qe({},nt.defaults,Tt||{}),ot(Tt),Dt){var Be=Tt.highlight,ie;try{ie=Q.lex(Ct,Tt)}catch(q){return Dt(q)}var X=function(ht){var Rt;if(!ht)try{Rt=xe.parse(ie,Tt)}catch(ut){ht=ut}return Tt.highlight=Be,ht?Dt(ht):Dt(null,Rt)};if(!Be||Be.length<3)return X();if(delete Tt.highlight,!ie.length)return X();var Fe=0;nt.walkTokens(ie,function(q){q.type==="code"&&(Fe++,setTimeout(function(){Be(q.text,q.lang,function(ht,Rt){if(ht)return X(ht);Rt!=null&&Rt!==q.text&&(q.text=Rt,q.escaped=!0),Fe--,Fe===0&&X()})},0))}),Fe===0&&X();return}try{var Ne=Q.lex(Ct,Tt);return Tt.walkTokens&&nt.walkTokens(Ne,Tt.walkTokens),xe.parse(Ne,Tt)}catch(q){if(q.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Tt.silent)return"<p>An error occurred:</p><pre>"+Je(q.message+"",!0)+"</pre>";throw q}}nt.options=nt.setOptions=function(Ct){return Qe(nt.defaults,Ct),et(nt.defaults),nt},nt.getDefaults=Te,nt.defaults=ze,nt.use=function(Ct){var Tt=Qe({},Ct);if(Ct.renderer&&function(){var Be=nt.defaults.renderer||new de,ie=function(Ne){var q=Be[Ne];Be[Ne]=function(){for(var ht=arguments.length,Rt=new Array(ht),ut=0;ut<ht;ut++)Rt[ut]=arguments[ut];var Xt=Ct.renderer[Ne].apply(Be,Rt);return Xt===!1&&(Xt=q.apply(Be,Rt)),Xt}};for(var X in Ct.renderer)ie(X);Tt.renderer=Be}(),Ct.tokenizer&&function(){var Be=nt.defaults.tokenizer||new ue,ie=function(Ne){var q=Be[Ne];Be[Ne]=function(){for(var ht=arguments.length,Rt=new Array(ht),ut=0;ut<ht;ut++)Rt[ut]=arguments[ut];var Xt=Ct.tokenizer[Ne].apply(Be,Rt);return Xt===!1&&(Xt=q.apply(Be,Rt)),Xt}};for(var X in Ct.tokenizer)ie(X);Tt.tokenizer=Be}(),Ct.walkTokens){var Dt=nt.defaults.walkTokens;Tt.walkTokens=function(Be){Ct.walkTokens(Be),Dt&&Dt(Be)}}nt.setOptions(Tt)},nt.walkTokens=function(Ct,Tt){for(var Dt=w(Ct),Be;!(Be=Dt()).done;){var ie=Be.value;Tt(ie);switch(ie.type){case"table":{for(var X=w(ie.tokens.header),Fe;!(Fe=X()).done;){var Ne=Fe.value;nt.walkTokens(Ne,Tt)}for(var q=w(ie.tokens.cells),ht;!(ht=q()).done;)for(var Rt=ht.value,ut=w(Rt),Xt;!(Xt=ut()).done;){var or=Xt.value;nt.walkTokens(or,Tt)}break}case"list":{nt.walkTokens(ie.items,Tt);break}default:ie.tokens&&nt.walkTokens(ie.tokens,Tt)}}},nt.Parser=xe,nt.parser=xe.parse,nt.Renderer=de,nt.TextRenderer=Ce,nt.Lexer=Q,nt.lexer=Q.lex,nt.Tokenizer=ue,nt.Slugger=Ee,nt.parse=nt;var Ot=nt;return Ot})},"DlR+":function(H,B,d){var O=d("MFOe"),E=O.Global,C=O.trim;H.exports={name:"cookieStorage",read:w,write:f,each:m,remove:c,clearAll:o};var A=E.document;function w(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 m(i){for(var n=A.cookie.split(/; ?/g),e=n.length-1;e>=0;e--){if(!C(n[e]))continue;var s=n[e].split("="),t=unescape(s[0]),a=unescape(s[1]);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(){m(function(i,n){c(n)})}function r(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(A.cookie)}},Ducp:function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("+TT/"),A=d("XpcN"),w=E.Group,m=["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 w),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new w),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(r,i,n,e,s,t,a){var l=this;c.superCall(this,"renderInner",r,i,n,e,s,t,a);var u=this._controllerGroup,h=i.get("pageIconSize",!0);O.isArray(h)||(h=[h,h]),g("pagePrev",0);var p=i.getModel("pageTextStyle");u.add(new E.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),g("pageNext",1);function g(v,y){var x=v+"DataIndex",T=E.createIcon(i.get("pageIcons",!0)[i.getOrient().name][y],{onclick:O.bind(l._pageGo,l,x,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,s,t){var a=this.getSelectorGroup(),l=r.getOrient().index,u=m[l],h=f[l],p=m[1-l],g=f[1-l];s&&C.box("horizontal",a,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),y=a.getBoundingRect(),x=[-y.x,-y.y],T=O.clone(n);s&&(T[u]=n[u]-y[u]-v);var S=this._layoutContentAndController(r,e,T,l,u,p,g);if(s){if(t==="end")x[l]+=S[u]+v;else{var b=y[u]+v;x[l]-=b,S[h]-=b}S[u]+=y[u]+v,x[1-l]+=S[g]+S[p]/2-y[p]/2,S[p]=Math.max(S[p],y[p]),S[g]=Math.min(S[g],y[g]+x[1-l]),a.attr("position",x)}return S},_layoutContentAndController:function(r,i,n,e,s,t,a){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;C.box(r.get("orient"),l,r.get("itemGap"),e?n.width:null,e?null:n.height),C.box("horizontal",h,r.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),g=h.getBoundingRect(),v=this._showController=p[s]>n[s],y=[-p.x,-p.y];i||(y[e]=l.position[e]);var x=[0,0],T=[-g.x,-g.y],S=O.retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var b=r.get("pageButtonPosition",!0);b==="end"?T[e]+=n[s]-g[s]:x[e]+=g[s]+S}T[1-e]+=p[t]/2-g[t]/2,l.attr("position",y),u.attr("position",x),h.attr("position",T);var _={x:0,y:0};if(_[s]=v?n[s]:p[s],_[t]=Math.max(p[t],g[t]),_[a]=Math.min(0,g[a]+T[1-e]),u.__rectSize=n[s],v){var I={x:0,y:0};I[s]=Math.max(n[s]-g[s]-S,0),I[t]=_[t],u.setClipPath(new E.Rect({shape:I})),u.__rectSize=I[s]}else h.eachChild(function(N){N.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(r);return L.pageIndex!=null&&E.updateProps(l,{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"),s=r.get("pageFormatter"),t=i.pageIndex,a=t!=null?t+1:0,l=i.pageCount;e&&s&&e.setStyle("text",O.isString(s)?s.replace("{current}",a).replace("{total}",l):s({current:a,total:l}))},_getPageInfo:function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),e=this._containerGroup.__rectSize,s=r.getOrient().index,t=m[s],a=f[s],l=this._findTargetItemIndex(i),u=n.children(),h=u[l],p=u.length,g=p?1:0,v={contentPosition:n.position.slice(),pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return v;var y=_(h);v.contentPosition[s]=-y.s;for(var x=l+1,T=y,S=y,b=null;x<=p;++x)b=_(u[x]),(!b&&S.e>T.s+e||b&&!I(b,T.s))&&(S.i>T.i?T=S:T=b,T&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=T.i),++v.pageCount)),S=b;for(var x=l-1,T=y,S=y,b=null;x>=-1;--x)b=_(u[x]),(!b||!I(S,b.s))&&T.i<S.i&&(S=T,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=T.i),++v.pageCount,++v.pageIndex),T=b;return v;function _(L){if(L){var N=L.getBoundingRect(),D=N[a]+L.position[s];return{s:D,e:D+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(s,t){var a=s.__legendDataIndex;e==null&&a!=null&&(e=t),a===r&&(i=t)}),i!=null?i:e}}),o=c;H.exports=o},"E/ki":function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},E2g8:function(H,B,d){(function(O,E){/*!
|
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
|
* @license Licensed under MIT license
|
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
|
* @version v4.2.8+1e68dce6
|
|
|
*/(function(C,A){H.exports=A()})(this,function(){"use strict";function C(de){var Ce=typeof de;return de!==null&&(Ce==="object"||Ce==="function")}function A(de){return typeof de=="function"}var w=void 0;Array.isArray?w=Array.isArray:w=function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"};var m=w,f=0,c=void 0,o=void 0,r=function(Ce,Ee){y[f]=Ce,y[f+1]=Ee,f+=2,f===2&&(o?o(x):S())};function i(de){o=de}function n(de){r=de}var e=typeof window!="undefined"?window:void 0,s=e||{},t=s.MutationObserver||s.WebKitMutationObserver,a=typeof self=="undefined"&&typeof O!="undefined"&&{}.toString.call(O)==="[object process]",l=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function u(){return function(){return O.nextTick(x)}}function h(){return typeof c!="undefined"?function(){c(x)}:v()}function p(){var de=0,Ce=new t(x),Ee=document.createTextNode("");return Ce.observe(Ee,{characterData:!0}),function(){Ee.data=de=++de%2}}function g(){var de=new MessageChannel;return de.port1.onmessage=x,function(){return de.port2.postMessage(0)}}function v(){var de=setTimeout;return function(){return de(x,1)}}var y=new Array(1e3);function x(){for(var de=0;de<f;de+=2){var Ce=y[de],Ee=y[de+1];Ce(Ee),y[de]=void 0,y[de+1]=void 0}f=0}function T(){try{var de=Function("return this")().require("vertx");return c=de.runOnLoop||de.runOnContext,h()}catch(Ce){return v()}}var S=void 0;a?S=u():t?S=p():l?S=g():e===void 0&&!0?S=T():S=v();function b(de,Ce){var Ee=this,le=new this.constructor(L);le[I]===void 0&&pe(le);var fe=Ee._state;if(fe){var xe=arguments[fe-1];r(function(){return ge(fe,le,xe,Ee._result)})}else ue(Ee,le,de,Ce);return le}function _(de){var Ce=this;if(de&&typeof de=="object"&&de.constructor===Ce)return de;var Ee=new Ce(L);return V(Ee,de),Ee}var I=Math.random().toString(36).substring(2);function L(){}var N=void 0,D=1,R=2;function P(){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(de,Ce,Ee,le){try{de.call(Ce,Ee,le)}catch(fe){return fe}}function F(de,Ce,Ee){r(function(le){var fe=!1,xe=U(Ee,Ce,function(Qe){if(fe)return;fe=!0,Ce!==Qe?V(le,Qe):Y(le,Qe)},function(Qe){if(fe)return;fe=!0,$(le,Qe)},"Settle: "+(le._label||" unknown promise"));!fe&&xe&&(fe=!0,$(le,xe))},de)}function j(de,Ce){Ce._state===D?Y(de,Ce._result):Ce._state===R?$(de,Ce._result):ue(Ce,void 0,function(Ee){return V(de,Ee)},function(Ee){return $(de,Ee)})}function W(de,Ce,Ee){Ce.constructor===de.constructor&&Ee===b&&Ce.constructor.resolve===_?j(de,Ce):Ee===void 0?Y(de,Ce):A(Ee)?F(de,Ce,Ee):Y(de,Ce)}function V(de,Ce){if(de===Ce)$(de,P());else if(C(Ce)){var Ee=void 0;try{Ee=Ce.then}catch(le){$(de,le);return}W(de,Ce,Ee)}else Y(de,Ce)}function z(de){de._onerror&&de._onerror(de._result),ne(de)}function Y(de,Ce){if(de._state!==N)return;de._result=Ce,de._state=D,de._subscribers.length!==0&&r(ne,de)}function $(de,Ce){if(de._state!==N)return;de._state=R,de._result=Ce,r(z,de)}function ue(de,Ce,Ee,le){var fe=de._subscribers,xe=fe.length;de._onerror=null,fe[xe]=Ce,fe[xe+D]=Ee,fe[xe+R]=le,xe===0&&de._state&&r(ne,de)}function ne(de){var Ce=de._subscribers,Ee=de._state;if(Ce.length===0)return;for(var le=void 0,fe=void 0,xe=de._result,Qe=0;Qe<Ce.length;Qe+=3)le=Ce[Qe],fe=Ce[Qe+Ee],le?ge(Ee,le,fe,xe):fe(xe);de._subscribers.length=0}function ge(de,Ce,Ee,le){var fe=A(Ee),xe=void 0,Qe=void 0,ot=!0;if(fe){try{xe=Ee(le)}catch(Je){ot=!1,Qe=Je}if(Ce===xe){$(Ce,M());return}}else xe=le;Ce._state!==N||(fe&&ot?V(Ce,xe):ot===!1?$(Ce,Qe):de===D?Y(Ce,xe):de===R&&$(Ce,xe))}function Oe(de,Ce){try{Ce(function(le){V(de,le)},function(le){$(de,le)})}catch(Ee){$(de,Ee)}}var De=0;function He(){return De++}function pe(de){de[I]=De++,de._state=void 0,de._result=void 0,de._subscribers=[]}function Ue(){return new Error("Array Methods must be provided an Array")}var oe=function(){function de(Ce,Ee){this._instanceConstructor=Ce,this.promise=new Ce(L),this.promise[I]||pe(this.promise),m(Ee)?(this.length=Ee.length,this._remaining=Ee.length,this._result=new Array(this.length),this.length===0?Y(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ee),this._remaining===0&&Y(this.promise,this._result))):$(this.promise,Ue())}return de.prototype._enumerate=function(Ee){for(var le=0;this._state===N&&le<Ee.length;le++)this._eachEntry(Ee[le],le)},de.prototype._eachEntry=function(Ee,le){var fe=this._instanceConstructor,xe=fe.resolve;if(xe===_){var Qe=void 0,ot=void 0,Je=!1;try{Qe=Ee.then}catch(et){Je=!0,ot=et}if(Qe===b&&Ee._state!==N)this._settledAt(Ee._state,le,Ee._result);else if(typeof Qe!="function")this._remaining--,this._result[le]=Ee;else if(fe===J){var Te=new fe(L);Je?$(Te,ot):W(Te,Ee,Qe),this._willSettleAt(Te,le)}else this._willSettleAt(new fe(function(et){return et(Ee)}),le)}else this._willSettleAt(xe(Ee),le)},de.prototype._settledAt=function(Ee,le,fe){var xe=this.promise;xe._state===N&&(this._remaining--,Ee===R?$(xe,fe):this._result[le]=fe),this._remaining===0&&Y(xe,this._result)},de.prototype._willSettleAt=function(Ee,le){var fe=this;ue(Ee,void 0,function(xe){return fe._settledAt(D,le,xe)},function(xe){return fe._settledAt(R,le,xe)})},de}();function ee(de){return new oe(this,de).promise}function Xe(de){var Ce=this;return m(de)?new Ce(function(Ee,le){for(var fe=de.length,xe=0;xe<fe;xe++)Ce.resolve(de[xe]).then(Ee,le)}):new Ce(function(Ee,le){return le(new TypeError("You must pass an array to race."))})}function se(de){var Ce=this,Ee=new Ce(L);return $(Ee,de),Ee}function Q(){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 J=function(){function de(Ce){this[I]=He(),this._result=this._state=void 0,this._subscribers=[],L!==Ce&&(typeof Ce!="function"&&Q(),this instanceof de?Oe(this,Ce):G())}return de.prototype.catch=function(Ee){return this.then(null,Ee)},de.prototype.finally=function(Ee){var le=this,fe=le.constructor;return A(Ee)?le.then(function(xe){return fe.resolve(Ee()).then(function(){return xe})},function(xe){return fe.resolve(Ee()).then(function(){throw xe})}):le.then(Ee,Ee)},de}();J.prototype.then=b,J.all=ee,J.race=Xe,J.resolve=_,J.reject=se,J._setScheduler=i,J._setAsap=n,J._asap=r;function ve(){var de=void 0;if(typeof E!="undefined")de=E;else if(typeof self!="undefined")de=self;else try{de=Function("return this")()}catch(le){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ce=de.Promise;if(Ce){var Ee=null;try{Ee=Object.prototype.toString.call(Ce.resolve())}catch(le){}if(Ee==="[object Promise]"&&!Ce.cast)return}de.Promise=J}return J.polyfill=ve,J.Promise=J,J})}).call(this,d("Q2Ig"),d("yLpj"))},E4JC:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.StreamCipher,w=E.algo,m=[],f=[],c=[],o=w.Rabbit=A.extend({_doReset:function(){for(var n=this._key.words,e=this.cfg.iv,s=0;s<4;s++)n[s]=(n[s]<<8|n[s]>>>24)&16711935|(n[s]<<24|n[s]>>>8)&4278255360;var t=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],a=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var s=0;s<4;s++)r.call(this);for(var s=0;s<8;s++)a[s]^=t[s+4&7];if(e){var l=e.words,u=l[0],h=l[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,g=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,v=p>>>16|g&4294901760,y=g<<16|p&65535;a[0]^=p,a[1]^=v,a[2]^=g,a[3]^=y,a[4]^=p,a[5]^=v,a[6]^=g,a[7]^=y;for(var s=0;s<4;s++)r.call(this)}},_doProcessBlock:function(n,e){var s=this._X;r.call(this),m[0]=s[0]^s[5]>>>16^s[3]<<16,m[1]=s[2]^s[7]>>>16^s[5]<<16,m[2]=s[4]^s[1]>>>16^s[7]<<16,m[3]=s[6]^s[3]>>>16^s[1]<<16;for(var t=0;t<4;t++)m[t]=(m[t]<<8|m[t]>>>24)&16711935|(m[t]<<24|m[t]>>>8)&4278255360,n[e+t]^=m[t]},blockSize:128/32,ivSize:64/32});function r(){for(var 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 s=i[e]+n[e],t=s&65535,a=s>>>16,l=((t*t>>>17)+t*a>>>15)+a*a,u=((s&4294901760)*s|0)+((s&65535)*s|0);c[e]=l^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}E.Rabbit=A._createHelper(o)}(),O.Rabbit})},E9nw:function(H,B){H.exports=function(){var d=document.getSelection();if(!d.rangeCount)return function(){};for(var O=document.activeElement,E=[],C=0;C<d.rangeCount;C++)E.push(d.getRangeAt(C));switch(O.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":O.blur();break;default:O=null;break}return d.removeAllRanges(),function(){d.type==="Caret"&&d.removeAllRanges(),d.rangeCount||E.forEach(function(A){d.addRange(A)}),O&&O.focus()}}},ELLl:function(H,B,d){(function(O){O(d("VrN/"))})(function(O){var E={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},C=O.Pos;O.defineOption("autoCloseBrackets",!1,function(t,a,l){l&&l!=O.Init&&(t.removeKeyMap(w),t.state.closeBrackets=null),a&&(m(A(a,"pairs")),t.state.closeBrackets=a,t.addKeyMap(w))});function A(t,a){return a=="pairs"&&typeof t=="string"?t:typeof t=="object"&&t[a]!=null?t[a]:E[a]}var w={Backspace:o,Enter:r};function m(t){for(var a=0;a<t.length;a++){var l=t.charAt(a),u="'"+l+"'";w[u]||(w[u]=f(l))}}m(E.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 l=t.getModeAt(t.getCursor());return l.closeBrackets||a}function o(t){var a=c(t);if(!a||t.getOption("disableInput"))return O.Pass;for(var l=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||l.indexOf(p)%2!=0)return O.Pass}for(var h=u.length-1;h>=0;h--){var g=u[h].head;t.replaceRange("",C(g.line,g.ch-1),C(g.line,g.ch+1),"+delete")}}function r(t){var a=c(t),l=a&&A(a,"explode");if(!l||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||l.indexOf(p)%2!=0)return O.Pass}t.operation(function(){var g=t.lineSeparator()||`
|
|
|
`;t.replaceSelection(g+g,null),t.execCommand("goCharLeft"),u=t.listSelections();for(var 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 l=c(t);if(!l||t.getOption("disableInput"))return O.Pass;var u=A(l,"pairs"),h=u.indexOf(a);if(h==-1)return O.Pass;for(var p=A(l,"closeBefore"),g=A(l,"triples"),v=u.charAt(h+1)==a,y=t.listSelections(),x=h%2==0,T,S=0;S<y.length;S++){var b=y[S],_=b.head,I,L=t.getRange(_,C(_.line,_.ch+1));if(x&&!b.empty())I="surround";else if((v||!x)&&L==a)v&&s(t,_)?I="both":g.indexOf(a)>=0&&t.getRange(_,C(_.line,_.ch+3))==a+a+a?I="skipThree":I="skip";else if(v&&_.ch>1&&g.indexOf(a)>=0&&t.getRange(C(_.line,_.ch-2),_)==a+a){if(_.ch>2&&/\bstring/.test(t.getTokenTypeAt(C(_.line,_.ch-2))))return O.Pass;I="addFour"}else if(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(x&&(L.length===0||/\s/.test(L)||p.indexOf(L)>-1))I="both";else return O.Pass;if(!T)T=I;else if(T!=I)return O.Pass}var D=h%2?u.charAt(h-1):a,R=h%2?a:u.charAt(h+1);t.operation(function(){if(T=="skip")t.execCommand("goCharRight");else if(T=="skipThree")for(var P=0;P<3;P++)t.execCommand("goCharRight");else if(T=="surround"){for(var M=t.getSelections(),P=0;P<M.length;P++)M[P]=D+M[P]+R;t.replaceSelections(M,"around"),M=t.listSelections().slice();for(var P=0;P<M.length;P++)M[P]=i(M[P]);t.setSelections(M)}else T=="both"?(t.replaceSelection(D+R,null),t.triggerElectric(D+R),t.execCommand("goCharLeft")):T=="addFour"&&(t.replaceSelection(D+D+D+D,"before"),t.execCommand("goCharRight"))})}function e(t,a){var l=t.getRange(C(a.line,a.ch-1),C(a.line,a.ch+1));return l.length==2?l:null}function s(t,a){var l=t.getTokenAt(C(a.line,a.ch+1));return/\bstring/.test(l.type)&&l.start==a.ch&&(a.ch==0||!/\bstring/.test(t.getTokenTypeAt(a)))}})},ELcG:function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){/** @preserve
|
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
*/return function(E){var C=O,A=C.lib,w=A.WordArray,m=A.Hasher,f=C.algo,c=w.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=w.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),r=w.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),i=w.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),n=w.create([0,1518500249,1859775393,2400959708,2840853838]),e=w.create([1352829926,1548603684,1836072691,2053994217,0]),s=f.RIPEMD160=m.extend({_doReset:function(){this._hash=w.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(v,y){for(var x=0;x<16;x++){var T=y+x,S=v[T];v[T]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var b=this._hash.words,_=n.words,I=e.words,L=c.words,N=o.words,D=r.words,R=i.words,P,M,U,F,j,W,V,z,Y,$;W=P=b[0],V=M=b[1],z=U=b[2],Y=F=b[3],$=j=b[4];for(var ue,x=0;x<80;x+=1)ue=P+v[y+L[x]]|0,x<16?ue+=t(M,U,F)+_[0]:x<32?ue+=a(M,U,F)+_[1]:x<48?ue+=l(M,U,F)+_[2]:x<64?ue+=u(M,U,F)+_[3]:ue+=h(M,U,F)+_[4],ue=ue|0,ue=p(ue,D[x]),ue=ue+j|0,P=j,j=F,F=p(U,10),U=M,M=ue,ue=W+v[y+N[x]]|0,x<16?ue+=h(V,z,Y)+I[0]:x<32?ue+=u(V,z,Y)+I[1]:x<48?ue+=l(V,z,Y)+I[2]:x<64?ue+=a(V,z,Y)+I[3]:ue+=t(V,z,Y)+I[4],ue=ue|0,ue=p(ue,R[x]),ue=ue+$|0,W=$,$=Y,Y=p(z,10),z=V,V=ue;ue=b[1]+U+Y|0,b[1]=b[2]+F+$|0,b[2]=b[3]+j+W|0,b[3]=b[4]+P+V|0,b[4]=b[0]+M+z|0,b[0]=ue},_doFinalize:function(){var v=this._data,y=v.words,x=this._nDataBytes*8,T=v.sigBytes*8;y[T>>>5]|=128<<24-T%32,y[(T+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,v.sigBytes=(y.length+1)*4,this._process();for(var S=this._hash,b=S.words,_=0;_<5;_++){var I=b[_];b[_]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return S},clone:function(){var v=m.clone.call(this);return v._hash=this._hash.clone(),v}});function t(g,v,y){return g^v^y}function a(g,v,y){return g&v|~g&y}function l(g,v,y){return(g|~v)^y}function u(g,v,y){return g&y|v&~y}function h(g,v,y){return g^(v|~y)}function p(g,v){return g<<v|g>>>32-v}C.RIPEMD160=m._createHelper(s),C.HmacRIPEMD160=m._createHmacHelper(s)}(Math),O.RIPEMD160})},EMyp:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("mFDi"),A=d("K4ya"),w=d("qJCg"),m=d("iLNv"),f=d("vZ6x"),c=["inBrush","outOfBrush"],o="__ecBrushSelect",r="__ecInBrushSelectEvent",i=O.PRIORITY.VISUAL.BRUSH;O.registerLayout(i,function(g,v,y){g.eachComponent({mainType:"brush"},function(x){y&&y.type==="takeGlobalCursor"&&x.setBrushOption(y.key==="brush"?y.brushOption:{brushType:!1})}),n(g)});function n(g){g.eachComponent({mainType:"brush"},function(v){var y=v.brushTargetManager=new f(v.option,g);y.setInputRanges(v.areas,g)})}O.registerVisual(i,function(g,v,y){var x=[],T,S;g.eachComponent({mainType:"brush"},function(b,_){var I={brushId:b.id,brushIndex:_,brushName:b.name,areas:E.clone(b.areas),selected:[]};x.push(I);var L=b.option,N=L.brushLink,D=[],R=[],P=[],M=0;_||(T=L.throttleType,S=L.throttleDelay);var U=E.map(b.areas,function(Y){return u(E.defaults({boundingRect:h[Y.brushType](Y)},Y))}),F=A.createVisualMappings(b.option,c,function(Y){Y.mappingMethod="fixed"});E.isArray(N)&&E.each(N,function(Y){D[Y]=1});function j(Y){return N==="all"||D[Y]}function W(Y){return!!Y.length}g.eachSeries(function(Y,$){var ue=P[$]=[];Y.subType==="parallel"?V(Y,$,ue):z(Y,$,ue)});function V(Y,$){var ue=Y.coordinateSystem;M|=ue.hasAxisBrushed(),j($)&&ue.eachActiveState(Y.getData(),function(ne,ge){ne==="active"&&(R[ge]=1)})}function z(Y,$,ue){var ne=a(Y);if(!ne||l(b,$))return;if(E.each(U,function(Oe){ne[Oe.brushType]&&b.brushTargetManager.controlSeries(Oe,Y,g)&&ue.push(Oe),M|=W(ue)}),j($)&&W(ue)){var ge=Y.getData();ge.each(function(Oe){t(ne,ue,ge,Oe)&&(R[Oe]=1)})}}g.eachSeries(function(Y,$){var ue={seriesId:Y.id,seriesIndex:$,seriesName:Y.name,dataIndex:[]};I.selected.push(ue);var ne=a(Y),ge=P[$],Oe=Y.getData(),De=j($)?function(He){return R[He]?(ue.dataIndex.push(Oe.getRawIndex(He)),"inBrush"):"outOfBrush"}:function(He){return t(ne,ge,Oe,He)?(ue.dataIndex.push(Oe.getRawIndex(He)),"inBrush"):"outOfBrush"};(j($)?M:W(ge))&&A.applyVisual(c,F,Oe,De)})}),e(v,T,S,x,y)});function e(g,v,y,x,T){if(!T)return;var S=g.getZr();if(S[r])return;S[o]||(S[o]=s);var b=m.createOrUpdate(S,o,y,v);b(g,x)}function s(g,v){if(!g.isDisposed()){var y=g.getZr();y[r]=!0,g.dispatchAction({type:"brushSelect",batch:v}),y[r]=!1}}function t(g,v,y,x){for(var T=0,S=v.length;T<S;T++){var b=v[T];if(g[b.brushType](x,y,b.selectors,b))return!0}}function a(g){var v=g.brushSelector;if(E.isString(v)){var y=[];return E.each(w,function(T,S){y[S]=function(b,_,I,L){var N=_.getItemLayout(b);return T[v](N,I,L)}}),y}else if(E.isFunction(v)){var x={};return E.each(w,function(T,S){x[S]=v}),x}return v}function l(g,v){var y=g.option.seriesIndex;return y!=null&&y!=="all"&&(E.isArray(y)?E.indexOf(y,v)<0:v!==y)}function u(g){var v=g.selectors={};return E.each(w[g.brushType],function(y,x){v[x]=function(T){return y(T,v,g)}}),g}var h={lineX:E.noop,lineY:E.noop,rect:function(g){return p(g.range)},polygon:function(g){for(var v,y=g.range,x=0,T=y.length;x<T;x++){v=v||[[Infinity,-Infinity],[Infinity,-Infinity]];var S=y[x];S[0]<v[0][0]&&(v[0][0]=S[0]),S[0]>v[0][1]&&(v[0][1]=S[0]),S[1]<v[1][0]&&(v[1][0]=S[1]),S[1]>v[1][1]&&(v[1][1]=S[1])}return v&&p(v)}};function p(g){return new C(g[0][0],g[1][0],g[0][1]-g[0][0],g[1][1]-g[1][0])}B.layoutCovers=n},ERHi:function(H,B,d){var O=d("ProS");d("Z6js"),d("R4Th");var E=d("f5Yq"),C=d("h8O9");O.registerVisual(E("effectScatter","circle")),O.registerLayout(C("effectScatter"))},ETIr:function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.WordArray,w=E.enc,m=w.Base64={stringify:function(o){var r=o.words,i=o.sigBytes,n=this._map;o.clamp();for(var e=[],s=0;s<i;s+=3)for(var t=r[s>>>2]>>>24-s%4*8&255,a=r[s+1>>>2]>>>24-(s+1)%4*8&255,l=r[s+2>>>2]>>>24-(s+2)%4*8&255,u=t<<16|a<<8|l,h=0;h<4&&s+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 s=i.charAt(64);if(s){var t=o.indexOf(s);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 s=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=s|t;i[n>>>2]|=a<<24-n%4*8,n++}return A.create(i,n)}}(),O.enc.Base64})},EXcs:function(H,B,d){"use strict";var O=function(){return{height:0,opacity:0}},E=function(f){return{height:f.scrollHeight,opacity:1}},C=function(f){return{height:f.offsetHeight}},A=function(f,c){return c.propertyName==="height"},w={motionName:"ant-motion-collapse",onAppearStart:O,onEnterStart:O,onAppearActive:E,onEnterActive:E,onLeaveStart:C,onLeaveActive:O,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500};B.a=w},Em2t:function(H,B,d){var O=d("bahg"),E=d("quyA"),C=d("0JQy");function A(w){return E(w)?C(w):O(w)}H.exports=A},Ez2D:function(H,B,d){var O=d("bYtY"),E=d("4NO4");function C(A,w){var m=[],f=A.seriesIndex,c;if(f==null||!(c=w.getSeriesByIndex(f)))return{point:[]};var o=c.getData(),r=E.queryDataIndex(o,A);if(r==null||r<0||O.isArray(r))return{point:[]};var i=o.getItemGraphicEl(r),n=c.coordinateSystem;if(c.getTooltipPosition)m=c.getTooltipPosition(r)||[];else if(n&&n.dataToPoint)m=n.dataToPoint(o.getValues(O.map(n.dimensions,function(s){return o.mapDimension(s)}),r,!0))||[];else if(i){var e=i.getBoundingRect().clone();e.applyTransform(i.transform),m=[e.x+e.width/2,e.y+e.height/2]}return{point:m,el:i}}H.exports=C},"F+F2":function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){return function(){if(typeof ArrayBuffer!="function")return;var E=O,C=E.lib,A=C.WordArray,w=A.init,m=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;w.call(this,o,c)}else w.apply(this,arguments)};m.prototype=A}(),O.lib.WordArray})},F0hE:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("ca2m"),A=d("Qxkt"),w=d("ICMv"),m=C.valueAxis;function f(r,i){return E.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"),s=this.get("axisTick"),t=this.get("axisType"),a=this.get("axisLabel"),l=this.get("name"),u=this.get("name.show"),h=this.get("name.formatter"),p=this.get("nameGap"),g=this.get("triggerEvent"),v=E.map(this.get("indicator")||[],function(y){y.max!=null&&y.max>0&&!y.min?y.min=0:y.min!=null&&y.min<0&&!y.max&&(y.max=0);var x=l;if(y.color!=null&&(x=E.defaults({color:y.color},l)),y=E.merge(E.clone(y),{boundaryGap:r,splitNumber:i,scale:n,axisLine:e,axisTick:s,axisType:t,axisLabel:a,name:y.text,nameLocation:"end",nameGap:p,nameTextStyle:x,triggerEvent:g},!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 S=E.extend(new A(y,null,this.ecModel),w);return S.mainType="radar",S.componentIndex=this.componentIndex,S},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:E.merge({lineStyle:{color:"#bbb"}},m.axisLine),axisLabel:f(m.axisLabel,!1),axisTick:f(m.axisTick,!1),axisType:"interval",splitLine:f(m.splitLine,!0),splitArea:f(m.splitArea,!0),indicator:[]}}),o=c;H.exports=o},F5Ls:function(H,B){var d={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function O(E,C){if(E==="china"){var A=d[C.name];if(A){var w=C.center;w[0]+=A[0]/10.5,w[1]+=-A[1]/(10.5/.75)}}}H.exports=O},F7hV:function(H,B,d){var O=d("MBQ8"),E=O.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var C=this.get("progressiveThreshold"),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=E},F9bG:function(H,B,d){var O=d("bYtY"),E=d("ItGF"),C=d("4NO4"),A=C.makeInner,w=A(),m=O.each;function f(s,t,a){if(E.node)return;var l=t.getZr();w(l).records||(w(l).records={}),c(l,t);var u=w(l).records[s]||(w(l).records[s]={});u.handler=a}function c(s,t){if(w(s).initialized)return;w(s).initialized=!0,a("click",O.curry(i,"click")),a("mousemove",O.curry(i,"mousemove")),a("globalout",r);function a(l,u){s.on(l,function(h){var p=n(t);m(w(s).records,function(g){g&&u(g,h,p.dispatchAction)}),o(p.pendings,t)})}}function o(s,t){var a=s.showTip.length,l=s.hideTip.length,u;a?u=s.showTip[a-1]:l&&(u=s.hideTip[l-1]),u&&(u.dispatchAction=null,t.dispatchAction(u))}function r(s,t,a){s.handler("leave",null,a)}function i(s,t,a,l){t.handler(s,a,l)}function n(s){var t={showTip:[],hideTip:[]},a=function(l){var u=t[l.type];u?u.push(l):(l.dispatchAction=a,s.dispatchAction(l))};return{dispatchAction:a,pendings:t}}function e(s,t){if(E.node)return;var a=t.getZr(),l=(w(a).records||{})[s];l&&(w(a).records[s]=null)}B.register=f,B.unregister=e},FBjb:function(H,B,d){var O=d("bYtY"),E=d("oVpE"),C=E.createSymbol,A=d("IwbS"),w=d("OELB"),m=w.parsePercent,f=d("x3X8"),c=f.getDefaultLabel;function o(p,g,v){A.Group.call(this),this.updateData(p,g,v)}var r=o.prototype,i=o.getSymbolSize=function(p,g){var v=p.getItemVisual(g,"symbolSize");return v instanceof Array?v.slice():[+v,+v]};function n(p){return[p[0]/2,p[1]/2]}function e(p,g){this.parent.drift(p,g)}r._createSymbol=function(p,g,v,y,x){this.removeAll();var T=g.getItemVisual(v,"color"),S=C(p,-1,-1,2,2,T,x);S.attr({z2:100,culling:!0,scale:n(y)}),S.drift=e,this._symbolType=p,this.add(S)},r.stopSymbolAnimation=function(p){this.childAt(0).stopAnimation(p)},r.getSymbolPath=function(){return this.childAt(0)},r.getScale=function(){return this.childAt(0).scale},r.highlight=function(){this.childAt(0).trigger("emphasis")},r.downplay=function(){this.childAt(0).trigger("normal")},r.setZ=function(p,g){var v=this.childAt(0);v.zlevel=p,v.z=g},r.setDraggable=function(p){var g=this.childAt(0);g.draggable=p,g.cursor=p?"move":g.cursor},r.updateData=function(p,g,v){this.silent=!1;var y=p.getItemVisual(g,"symbol")||"circle",x=p.hostModel,T=i(p,g),S=y!==this._symbolType;if(S){var b=p.getItemVisual(g,"symbolKeepAspect");this._createSymbol(y,p,g,T,b)}else{var _=this.childAt(0);_.silent=!1,A.updateProps(_,{scale:n(T)},x,g)}if(this._updateCommon(p,g,T,v),S){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,x,g)}this._seriesModel=x};var s=["itemStyle"],t=["emphasis","itemStyle"],a=["label"],l=["emphasis","label"];r._updateCommon=function(p,g,v,y){var x=this.childAt(0),T=p.hostModel,S=p.getItemVisual(g,"color");x.type!=="image"?x.useStyle({strokeNoScale:!0}):x.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var b=y&&y.itemStyle,_=y&&y.hoverItemStyle,I=y&&y.symbolOffset,L=y&&y.labelModel,N=y&&y.hoverLabelModel,D=y&&y.hoverAnimation,R=y&&y.cursorStyle;if(!y||p.hasItemOption){var P=y&&y.itemModel?y.itemModel:p.getItemModel(g);b=P.getModel(s).getItemStyle(["color"]),_=P.getModel(t).getItemStyle(),I=P.getShallow("symbolOffset"),L=P.getModel(a),N=P.getModel(l),D=P.getShallow("hoverAnimation"),R=P.getShallow("cursor")}else _=O.extend({},_);var M=x.style,U=p.getItemVisual(g,"symbolRotate");x.attr("rotation",(U||0)*Math.PI/180||0),I&&x.attr("position",[m(I[0],v[0]),m(I[1],v[1])]),R&&x.attr("cursor",R),x.setColor(S,y&&y.symbolInnerColor),x.setStyle(b);var F=p.getItemVisual(g,"opacity");F!=null&&(M.opacity=F);var j=p.getItemVisual(g,"liftZ"),W=x.__z2Origin;j!=null?W==null&&(x.__z2Origin=x.z2,x.z2+=j):W!=null&&(x.z2=W,x.__z2Origin=null);var V=y&&y.useNameLabel;A.setLabelStyle(M,_,L,N,{labelFetcher:T,labelDataIndex:g,defaultText:z,isRectText:!0,autoColor:S});function z(Y,$){return V?p.getName(Y):c(p,Y)}x.__symbolOriginalScale=n(v),x.hoverStyle=_,x.highDownOnUpdate=D&&T.isAnimationEnabled()?u:null,A.setHoverStyle(x)};function u(p,g){if(this.incremental||this.useHoverLayer)return;if(g==="emphasis"){var v=this.__symbolOriginalScale,y=v[1]/v[0],x={scale:[Math.max(v[0]*1.1,v[0]+3),Math.max(v[1]*1.1,v[1]+3*y)]};this.animateTo(x,400,"elasticOut")}else g==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}r.fadeOut=function(p,g){var v=this.childAt(0);this.silent=v.silent=!0,!(g&&g.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,B,d){var O=d("ProS"),E=d("IwbS"),C=d("bYtY"),A=d("oVpE");function w(f){return C.isArray(f)||(f=[+f,+f]),f}var m=O.extendChartView({type:"radar",render:function(f,c,o){var r=f.coordinateSystem,i=this.group,n=f.getData(),e=this._data;function s(l,u){var h=l.getItemVisual(u,"symbol")||"circle",p=l.getItemVisual(u,"color");if(h==="none")return;var g=w(l.getItemVisual(u,"symbolSize")),v=A.createSymbol(h,-1,-1,2,2,p);return v.attr({style:{strokeNoScale:!0},z2:100,scale:[g[0]/2,g[1]/2]}),v}function t(l,u,h,p,g,v){h.removeAll();for(var y=0;y<u.length-1;y++){var x=s(p,g);x&&(x.__dimIdx=y,l[y]?(x.attr("position",l[y]),E[v?"initProps":"updateProps"](x,{position:u[y]},f,g)):x.attr("position",u[y]),h.add(x))}}function a(l){return C.map(l,function(u){return[r.cx,r.cy]})}n.diff(e).add(function(l){var u=n.getItemLayout(l);if(!u)return;var h=new E.Polygon,p=new E.Polyline,g={shape:{points:u}};h.shape.points=a(u),p.shape.points=a(u),E.initProps(h,g,f,l),E.initProps(p,g,f,l);var v=new E.Group,y=new E.Group;v.add(p),v.add(h),v.add(y),t(p.shape.points,u,y,n,l,!0),n.setItemGraphicEl(l,v)}).update(function(l,u){var h=e.getItemGraphicEl(u),p=h.childAt(0),g=h.childAt(1),v=h.childAt(2),y={shape:{points:n.getItemLayout(l)}};if(!y.shape.points)return;t(p.shape.points,y.shape.points,v,n,l,!1),E.updateProps(p,y,f),E.updateProps(g,y,f),n.setItemGraphicEl(l,h)}).remove(function(l){i.remove(e.getItemGraphicEl(l))}).execute(),n.eachItemGraphicEl(function(l,u){var h=n.getItemModel(u),p=l.childAt(0),g=l.childAt(1),v=l.childAt(2),y=n.getItemVisual(u,"color");i.add(l),p.useStyle(C.defaults(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),p.hoverStyle=h.getModel("emphasis.lineStyle").getLineStyle();var x=h.getModel("areaStyle"),T=h.getModel("emphasis.areaStyle"),S=x.isEmpty()&&x.parentModel.isEmpty(),b=T.isEmpty()&&T.parentModel.isEmpty();b=b&&S,g.ignore=S,g.useStyle(C.defaults(x.getAreaStyle(),{fill:y,opacity:.7})),g.hoverStyle=T.getAreaStyle();var _=h.getModel("itemStyle").getItemStyle(["color"]),I=h.getModel("emphasis.itemStyle").getItemStyle(),L=h.getModel("label"),N=h.getModel("emphasis.label");v.eachChild(function(D){D.setStyle(_),D.hoverStyle=C.clone(I);var R=n.get(n.dimensions[D.__dimIdx],u);(R==null||isNaN(R))&&(R=""),E.setLabelStyle(D.style,D.hoverStyle,L,N,{labelFetcher:n.hostModel,labelDataIndex:u,labelDimIndex:D.__dimIdx,defaultText:R,autoColor:y,isRectText:!0})}),l.highDownOnUpdate=function(D,R){g.attr("ignore",R==="emphasis"?b:S)},E.setHoverStyle(l)}),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});H.exports=m},FH2Y:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("ZMnZ"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},FJo9:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("8txm"),A=d.n(C),w=d("MXD1")},FNN5:function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("+rIm"),A=d("Znkb"),w=["axisLine","axisTickLabel","axisName"],m=["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(),s=i.getTicksCoords(),t=i.getMinorTicksCoords(),a=e.getExtent()[0],l=i.getExtent(),u=c(n,o,a),h=new C(o,u);O.each(w,h.add,h),this.group.add(h.getGroup()),O.each(m,function(p){o.get(p+".show")&&!i.scale.isBlank()&&this["_"+p](o,n,a,l,s,t)},this)},_splitLine:function(o,r,i,n,e){var s=o.getModel("splitLine"),t=s.getModel("lineStyle"),a=t.get("color"),l=0;a=a instanceof Array?a:[a];for(var u=[],h=0;h<e.length;h++){var p=l++%a.length;u[p]=u[p]||[],u[p].push(new E.Circle({shape:{cx:r.cx,cy:r.cy,r:e[h].coord}}))}for(var h=0;h<u.length;h++)this.group.add(E.mergePath(u[h],{style:O.defaults({stroke:a[h%a.length],fill:null},t.getLineStyle()),silent:!0}))},_minorSplitLine:function(o,r,i,n,e,s){if(!s.length)return;for(var t=o.getModel("minorSplitLine"),a=t.getModel("lineStyle"),l=[],u=0;u<s.length;u++)for(var h=0;h<s[u].length;h++)l.push(new E.Circle({shape:{cx:r.cx,cy:r.cy,r:s[u][h].coord}}));this.group.add(E.mergePath(l,{style:O.defaults({fill:null},a.getLineStyle()),silent:!0}))},_splitArea:function(o,r,i,n,e){if(!e.length)return;var s=o.getModel("splitArea"),t=s.getModel("areaStyle"),a=t.get("color"),l=0;a=a instanceof Array?a:[a];for(var u=[],h=e[0].coord,p=1;p<e.length;p++){var g=l++%a.length;u[g]=u[g]||[],u[g].push(new E.Sector({shape:{cx:r.cx,cy:r.cy,r0: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(E.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,B,d){"use strict";d.d(B,"a",function(){return C});var O=d("q1tI"),E=d.n(O),C=O.createContext(null)},FUi9:function(H,B,d){var O=d("bYtY"),E=d("MwEJ"),C=d("aX7z"),A=d("ICMv"),w=d("Qxkt"),m=d("+TT/"),f=m.getLayoutRect;B.getLayoutRect=m.getLayoutRect;var c=d("7hqr"),o=c.enableDataStack,r=c.isDimensionStacked,i=c.getStackedDimension,n=d("hi0g");B.completeDimensions=n;var e=d("sdST");B.createDimensions=e;var s=d("oVpE");B.createSymbol=s.createSymbol;function t(h){return E(h.getSource(),h)}var a={isDimensionStacked:r,enableDataStack:o,getStackedDimension:i};function l(h,p){var g=p;w.isInstance(p)||(g=new w(p),O.mixin(g,A));var v=C.createScaleByModel(g);return v.setExtent(h[0],h[1]),C.niceScaleExtent(v,g),v}function u(h){O.mixin(h,A)}B.createList=t,B.dataStack=a,B.createScale=l,B.mixinAxisModelCommonMethods=u},"Fa/5":function(H,B,d){var O=d("ProS");d("y2l5"),d("q/+u");var E=d("f5Yq"),C=d("h8O9");d("Ae16"),O.registerVisual(E("scatter","circle")),O.registerLayout(C("scatter"))},FhB9:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},"Fm1+":function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("a7Wl")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="CaretUpOutlined";var c=A.forwardRef(f);B.default=c},Fofx:function(H,B){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var r=new d(6);return E(r),r}function E(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function C(r,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],s=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],l=i[0]*n[4]+i[2]*n[5]+i[4],u=i[1]*n[4]+i[3]*n[5]+i[5];return r[0]=e,r[1]=s,r[2]=t,r[3]=a,r[4]=l,r[5]=u,r}function w(r,i,n){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4]+n[0],r[5]=i[5]+n[1],r}function m(r,i,n){var e=i[0],s=i[2],t=i[4],a=i[1],l=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]=s*p+l*h,r[3]=-s*h+p*l,r[4]=p*t+h*u,r[5]=p*u-h*t,r}function f(r,i,n){var e=n[0],s=n[1];return r[0]=i[0]*e,r[1]=i[1]*s,r[2]=i[2]*e,r[3]=i[3]*s,r[4]=i[4]*e,r[5]=i[5]*s,r}function c(r,i){var n=i[0],e=i[2],s=i[4],t=i[1],a=i[3],l=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*l-a*s)*u,r[5]=(t*s-n*l)*u,r):null}function o(r){var i=O();return C(i,r),i}B.create=O,B.identity=E,B.copy=C,B.mul=A,B.translate=w,B.rotate=m,B.scale=f,B.invert=c,B.clone=o},Fv0C:function(H,B,d){"use strict";function O(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(a){return typeof a}:O=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(s)}Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var E=o(d("Lo0S")),C=d("vewr"),A=o(d("8CQX")),w=f(d("mHUz")),m=o(d("GdRQ"));function f(s){return s&&s.__esModule?s:{default:s}}function c(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return c=function(){return s},s}function o(s){if(s&&s.__esModule)return s;if(s===null||O(s)!=="object"&&typeof s!="function")return{default:s};var t=c();if(t&&t.has(s))return t.get(s);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u)){var h=l?Object.getOwnPropertyDescriptor(s,u):null;h&&(h.get||h.set)?Object.defineProperty(a,u,h):a[u]=s[u]}return a.default=s,t&&t.set(s,a),a}function r(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}function i(s,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function n(s,t,a){return t&&i(s.prototype,t),a&&i(s,a),s}var e=function(){function s(t){r(this,s),this._target=t||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=function(){}}return n(s,[{key:"_sendKeyEvent",value:function(a,l,u){if(u)this._keyDownList[l]=a;else{if(!(l in this._keyDownList))return;delete this._keyDownList[l]}E.Debug("onkeyevent "+(u?"down":"up")+", keysym: "+a,", code: "+l),this.onkeyevent(a,l,u)}},{key:"_getKeyCode",value:function(a){var l=A.getKeycode(a);if(l!=="Unidentified")return l;if(a.keyCode&&a.type!=="keypress"&&a.keyCode!==229)return"Platform"+a.keyCode;if(a.keyIdentifier){if(a.keyIdentifier.substr(0,2)!=="U+")return a.keyIdentifier;var u=parseInt(a.keyIdentifier.substr(2),16),h=String.fromCharCode(u).toUpperCase();return"Platform"+h.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(a){var l=this._getKeyCode(a),u=A.getKeysym(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),l==="AltRight"&&a.timeStamp-this._altGrCtrlTime<50?u=w.default.XK_ISO_Level3_Shift:this._sendKeyEvent(w.default.XK_Control_L,"ControlLeft",!0)),l==="Unidentified"){u&&(this._sendKeyEvent(u,l,!0),this._sendKeyEvent(u,l,!1)),(0,C.stopEvent)(a);return}if(m.isMac()||m.isIOS())switch(u){case w.default.XK_Super_L:u=w.default.XK_Alt_L;break;case w.default.XK_Super_R:u=w.default.XK_Super_L;break;case w.default.XK_Alt_L:u=w.default.XK_Mode_switch;break;case w.default.XK_Alt_R:u=w.default.XK_ISO_Level3_Shift;break}if(l in this._keyDownList&&(u=this._keyDownList[l]),(m.isMac()||m.isIOS())&&l==="CapsLock"){this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!1),(0,C.stopEvent)(a);return}if(!u&&(!a.key||m.isIE()||m.isEdge())){this._pendingKey=l,setTimeout(this._handleKeyPressTimeout.bind(this),10,a);return}if(this._pendingKey=null,(0,C.stopEvent)(a),l==="ControlLeft"&&m.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=a.timeStamp;return}this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyPress",value:function(a){if((0,C.stopEvent)(a),this._pendingKey===null)return;var l=this._getKeyCode(a),u=A.getKeysym(a);if(l!=="Unidentified"&&l!=this._pendingKey)return;if(l=this._pendingKey,this._pendingKey=null,!u){E.Info("keypress with no keysym:",a);return}this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyPressTimeout",value:function(a){if(this._pendingKey===null)return;var l,u=this._pendingKey;if(this._pendingKey=null,a.keyCode>=48&&a.keyCode<=57)l=a.keyCode;else if(a.keyCode>=65&&a.keyCode<=90){var h=String.fromCharCode(a.keyCode);a.shiftKey?h=h.toUpperCase():h=h.toLowerCase(),l=h.charCodeAt()}else l=0;this._sendKeyEvent(l,u,!0)}},{key:"_handleKeyUp",value:function(a){(0,C.stopEvent)(a);var l=this._getKeyCode(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(w.default.XK_Control_L,"ControlLeft",!0)),(m.isMac()||m.isIOS())&&l==="CapsLock"){this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[l],l,!1),m.isWindows()&&(l==="ShiftLeft"||l==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(w.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){E.Debug(">> Keyboard.allKeysUp");for(var a in this._keyDownList)this._sendKeyEvent(this._keyDownList[a],a,!1);E.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(a){if(a.skipCheckAlt)return;if(a.altKey)return;var l=this._target,u=this._keyDownList;["AltLeft","AltRight"].forEach(function(h){if(!(h in u))return;var p=new KeyboardEvent("keyup",{key:u[h],code:h});p.skipCheckAlt=!0,l.dispatchEvent(p)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),m.isWindows()&&m.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(l){return document.addEventListener(l,a,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(m.isWindows()&&m.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(l){return document.removeEventListener(l,a)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),s}();B.default=e},FxDU:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.createSensor=void 0;var O=d("QO+J"),E=d("j5sG"),C=typeof ResizeObserver!="undefined"?E.createSensor:O.createSensor;B.createSensor=C},GGyF:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("wgjA")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="LeftOutlined";var c=A.forwardRef(f);B.default=c},GIiI:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="PoweroffOutlined";var f=B.a=E.forwardRef(m)},GMDS:function(H,B,d){var O=d("bYtY"),E=d("4NgU"),C=d("jkPA"),A=E.prototype,w=E.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});w.create=function(){return new w};var m=w;H.exports=m},GQ8N:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.toUnsigned32bit=O,B.toSigned32bit=E;function O(C){return C>>>0}function E(C){return C|0}},GRuw:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("lPiR"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.WordArray,w=E.algo,m=w.SHA256,f=w.SHA224=m.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=m._doFinalize.call(this);return o.sigBytes-=4,o}});E.SHA224=m._createHelper(f),E.HmacSHA224=m._createHmacHelper(f)}(),O.SHA224})},GUcZ:function(H,B,d){"use strict";var O=d("fWQN"),E=d("mtLc"),C=function(){function jt(){Object(O.a)(this,jt)}return Object(E.a)(jt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Ie,_e){return Ie.__proto__=_e,Ie},Object.assign=Object.assign||function(Ie){if(Ie==null)throw new TypeError("Cannot convert undefined or null to object");for(var _e=Object(Ie),Le=1;Le<arguments.length;Le++){var Ze=arguments[Le];if(Ze!=null)for(var it in Ze)Ze.hasOwnProperty(it)&&(_e[it]=Ze[it])}return _e},typeof self.Promise!="function"&&d("E2g8").polyfill()}}]),jt}();C.install();var A=C,w=d("+qE3"),m=d.n(w),f=function(){function jt(){Object(O.a)(this,jt)}return Object(E.a)(jt,null,[{key:"e",value:function(Ie,_e){(!Ie||jt.FORCE_GLOBAL_TAG)&&(Ie=jt.GLOBAL_TAG);var Le="[".concat(Ie,"] > ").concat(_e);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","error",Le),!jt.ENABLE_ERROR)return;console.error?console.error(Le):console.warn?console.warn(Le):console.log(Le)}},{key:"i",value:function(Ie,_e){(!Ie||jt.FORCE_GLOBAL_TAG)&&(Ie=jt.GLOBAL_TAG);var Le="[".concat(Ie,"] > ").concat(_e);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","info",Le),!jt.ENABLE_INFO)return;console.info?console.info(Le):console.log(Le)}},{key:"w",value:function(Ie,_e){(!Ie||jt.FORCE_GLOBAL_TAG)&&(Ie=jt.GLOBAL_TAG);var Le="[".concat(Ie,"] > ").concat(_e);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","warn",Le),!jt.ENABLE_WARN)return;console.warn?console.warn(Le):console.log(Le)}},{key:"d",value:function(Ie,_e){(!Ie||jt.FORCE_GLOBAL_TAG)&&(Ie=jt.GLOBAL_TAG);var Le="[".concat(Ie,"] > ").concat(_e);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","debug",Le),!jt.ENABLE_DEBUG)return;console.debug?console.debug(Le):console.log(Le)}},{key:"v",value:function(Ie,_e){(!Ie||jt.FORCE_GLOBAL_TAG)&&(Ie=jt.GLOBAL_TAG);var Le="[".concat(Ie,"] > ").concat(_e);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","verbose",Le),!jt.ENABLE_VERBOSE)return;console.log(Le)}}]),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 m.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(E.a)(jt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Ie){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Ie,this._totalBytes+=Ie):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Ie,this._totalBytes+=Ie):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Ie,this._totalBytes+=Ie,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Ie=(this._now()-this._lastCheckpoint)/1e3;return Ie==0&&(Ie=1),this._intervalBytes/Ie/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 Ie=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Ie/1024}}]),jt}(),r=o,i=d("yKVA"),n=d("879j"),e=function(){function jt(St){Object(O.a)(this,jt),this._message=St}return Object(E.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}(),s=function(jt){Object(i.a)(Ie,jt);var St=Object(n.a)(Ie);function Ie(_e){return Object(O.a)(this,Ie),St.call(this,_e)}return Object(E.a)(Ie,[{key:"name",get:function(){return"IllegalStateException"}}]),Ie}(e),t=function(jt){Object(i.a)(Ie,jt);var St=Object(n.a)(Ie);function Ie(_e){return Object(O.a)(this,Ie),St.call(this,_e)}return Object(E.a)(Ie,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Ie}(e),a=function(jt){Object(i.a)(Ie,jt);var St=Object(n.a)(Ie);function Ie(_e){return Object(O.a)(this,Ie),St.call(this,_e)}return Object(E.a)(Ie,[{key:"name",get:function(){return"NotImplementedException"}}]),Ie}(e),l={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},u={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},h=function(){function jt(St){Object(O.a)(this,jt),this._type=St||"undefined",this._status=l.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(E.a)(jt,[{key:"destroy",value:function(){this._status=l.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===l.kConnecting||this._status===l.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(Ie){this._onContentLengthKnown=Ie}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Ie){this._onURLRedirect=Ie}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Ie){this._onDataArrival=Ie}},{key:"onError",get:function(){return this._onError},set:function(Ie){this._onError=Ie}},{key:"onComplete",get:function(){return this._onComplete},set:function(Ie){this._onComplete=Ie}},{key:"open",value:function(Ie,_e){throw new a("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new a("Unimplemented abstract function!")}}]),jt}(),p=d("w4Tj"),g=d("oZsa"),v={};function y(){var jt=self.navigator.userAgent.toLowerCase(),St=/(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)||[],Ie=/(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)||[],_e={browser:St[5]||St[3]||St[1]||"",version:St[2]||St[4]||"0",majorVersion:St[4]||St[2]||"0",platform:Ie[0]||""},Le={};if(_e.browser){Le[_e.browser]=!0;var Ze=_e.majorVersion.split(".");Le.version={major:parseInt(_e.majorVersion,10),string:_e.version},Ze.length>1&&(Le.version.minor=parseInt(Ze[1],10)),Ze.length>2&&(Le.version.build=parseInt(Ze[2],10))}if(_e.platform&&(Le[_e.platform]=!0),(Le.chrome||Le.opr||Le.safari)&&(Le.webkit=!0),Le.rv||Le.iemobile){Le.rv&&delete Le.rv;var it="msie";_e.browser=it,Le[it]=!0}if(Le.edge){delete Le.edge;var ft="msedge";_e.browser=ft,Le[ft]=!0}if(Le.opr){var Nt="opera";_e.browser=Nt,Le[Nt]=!0}if(Le.safari&&Le.android){var Ar="android";_e.browser=Ar,Le[Ar]=!0}Le.name=_e.browser,Le.platform=_e.platform;for(var Mr in v)v.hasOwnProperty(Mr)&&delete v[Mr];Object.assign(v,Le)}y();var x=v,T=function(jt){Object(i.a)(Ie,jt);var St=Object(n.a)(Ie);function Ie(_e,Le){var Ze;return Object(O.a)(this,Ie),Ze=St.call(this,"fetch-stream-loader"),Ze.TAG="FetchStreamLoader",Ze._seekHandler=_e,Ze._config=Le,Ze._needStash=!0,Ze._requestAbort=!1,Ze._contentLength=null,Ze._receivedLength=0,Ze}return Object(E.a)(Ie,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(p.a)(Object(g.a)(Ie.prototype),"destroy",this).call(this)}},{key:"open",value:function(Le,Ze){var it=this;this._dataSource=Le,this._range=Ze;var ft=Le.url;this._config.reuseRedirectedURL&&Le.redirectedURL!=null&&(ft=Le.redirectedURL);var Nt=this._seekHandler.getConfig(ft,Ze),Ar=new self.Headers;if(typeof Nt.headers=="object"){var Mr=Nt.headers;for(var un in Mr)Mr.hasOwnProperty(un)&&Ar.append(un,Mr[un])}var Mt={method:"GET",headers:Ar,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var at in this._config.headers)Ar.append(at,this._config.headers[at]);Le.cors===!1&&(Mt.mode="same-origin"),Le.withCredentials&&(Mt.credentials="include"),Le.referrerPolicy&&(Mt.referrerPolicy=Le.referrerPolicy),this._status=l.kConnecting,self.fetch(Nt.url,Mt).then(function(lt){if(it._requestAbort){it._requestAbort=!1,it._status=l.kIdle;return}if(lt.ok&<.status>=200&<.status<=299){if(lt.url!==Nt.url&&it._onURLRedirect){var rr=it._seekHandler.removeURLParameters(lt.url);it._onURLRedirect(rr)}var Bt=lt.headers.get("Content-Length");return Bt!=null&&(it._contentLength=parseInt(Bt),it._contentLength!==0&&(it._onContentLengthKnown&&it._onContentLengthKnown(it._contentLength))),it._pump.call(it,lt.body.getReader())}else if(it._status=l.kError,it._onError)it._onError(u.HTTP_STATUS_CODE_INVALID,{code:lt.status,msg:lt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+lt.status+" "+lt.statusText)}).catch(function(lt){if(it._status=l.kError,it._onError)it._onError(u.EXCEPTION,{code:-1,msg:lt.message});else throw lt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Le){var Ze=this;return Le.read().then(function(it){if(it.done)if(Ze._contentLength!==null&&Ze._receivedLength<Ze._contentLength){Ze._status=l.kError;var ft=u.EARLY_EOF,Nt={code:-1,msg:"Fetch stream meet Early-EOF"};if(Ze._onError)Ze._onError(ft,Nt);else throw new e(Nt.msg)}else Ze._status=l.kComplete,Ze._onComplete&&Ze._onComplete(Ze._range.from,Ze._range.from+Ze._receivedLength-1);else{if(Ze._requestAbort===!0)return Ze._requestAbort=!1,Ze._status=l.kComplete,Le.cancel();Ze._status=l.kBuffering;var Ar=it.value.buffer,Mr=Ze._range.from+Ze._receivedLength;Ze._receivedLength+=Ar.byteLength,Ze._onDataArrival&&Ze._onDataArrival(Ar,Mr,Ze._receivedLength),Ze._pump(Le)}}).catch(function(it){if(it.code===11&&x.msedge)return;Ze._status=l.kError;var ft=0,Nt=null;if((it.code===19||it.message==="network error")&&(Ze._contentLength===null||Ze._contentLength!==null&&Ze._receivedLength<Ze._contentLength)?(ft=u.EARLY_EOF,Nt={code:it.code,msg:"Fetch stream meet Early-EOF"}):(ft=u.EXCEPTION,Nt={code:it.code,msg:it.message}),Ze._onError)Ze._onError(ft,Nt);else throw new e(Nt.msg)})}}],[{key:"isSupported",value:function(){try{var Le=x.msedge&&x.version.minor>=15048,Ze=x.msedge?Le:!0;return self.fetch&&self.ReadableStream&&Ze}catch(it){return!1}}}]),Ie}(h),S=T,b=function(jt){Object(i.a)(Ie,jt);var St=Object(n.a)(Ie);function Ie(_e,Le){var Ze;return Object(O.a)(this,Ie),Ze=St.call(this,"xhr-moz-chunked-loader"),Ze.TAG="MozChunkedLoader",Ze._seekHandler=_e,Ze._config=Le,Ze._needStash=!0,Ze._xhr=null,Ze._requestAbort=!1,Ze._contentLength=null,Ze._receivedLength=0,Ze}return Object(E.a)(Ie,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Object(p.a)(Object(g.a)(Ie.prototype),"destroy",this).call(this)}},{key:"open",value:function(Le,Ze){this._dataSource=Le,this._range=Ze;var it=Le.url;this._config.reuseRedirectedURL&&Le.redirectedURL!=null&&(it=Le.redirectedURL);var ft=this._seekHandler.getConfig(it,Ze);this._requestURL=ft.url;var Nt=this._xhr=new XMLHttpRequest;if(Nt.open("GET",ft.url,!0),Nt.responseType="moz-chunked-arraybuffer",Nt.onreadystatechange=this._onReadyStateChange.bind(this),Nt.onprogress=this._onProgress.bind(this),Nt.onloadend=this._onLoadEnd.bind(this),Nt.onerror=this._onXhrError.bind(this),Le.withCredentials&&(Nt.withCredentials=!0),typeof ft.headers=="object"){var Ar=ft.headers;for(var Mr in Ar)Ar.hasOwnProperty(Mr)&&Nt.setRequestHeader(Mr,Ar[Mr])}if(typeof this._config.headers=="object"){var un=this._config.headers;for(var Mt in un)un.hasOwnProperty(Mt)&&Nt.setRequestHeader(Mt,un[Mt])}this._status=l.kConnecting,Nt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=l.kComplete}},{key:"_onReadyStateChange",value:function(Le){var Ze=Le.target;if(Ze.readyState===2){if(Ze.responseURL!=null&&Ze.responseURL!==this._requestURL&&this._onURLRedirect){var it=this._seekHandler.removeURLParameters(Ze.responseURL);this._onURLRedirect(it)}if(Ze.status!==0&&(Ze.status<200||Ze.status>299))if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ze.status,msg:Ze.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+Ze.status+" "+Ze.statusText);else this._status=l.kBuffering}}},{key:"_onProgress",value:function(Le){if(this._status===l.kError)return;this._contentLength===null&&(Le.total!==null&&Le.total!==0&&(this._contentLength=Le.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var Ze=Le.target.response,it=this._range.from+this._receivedLength;this._receivedLength+=Ze.byteLength,this._onDataArrival&&this._onDataArrival(Ze,it,this._receivedLength)}},{key:"_onLoadEnd",value:function(Le){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===l.kError)return;this._status=l.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Le){this._status=l.kError;var Ze=0,it=null;if(this._contentLength&&Le.loaded<this._contentLength?(Ze=u.EARLY_EOF,it={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(Ze=u.EXCEPTION,it={code:-1,msg:Le.constructor.name+" "+Le.type}),this._onError)this._onError(Ze,it);else throw new e(it.msg)}}],[{key:"isSupported",value:function(){try{var Le=new XMLHttpRequest;return Le.open("GET","https://example.com",!0),Le.responseType="moz-chunked-arraybuffer",Le.responseType==="moz-chunked-arraybuffer"}catch(Ze){return c.w("MozChunkedLoader",Ze.message),!1}}}]),Ie}(h),_=b,I=function(jt){Object(i.a)(Ie,jt);var St=Object(n.a)(Ie);function Ie(_e,Le){var Ze;return Object(O.a)(this,Ie),Ze=St.call(this,"xhr-msstream-loader"),Ze.TAG="MSStreamLoader",Ze._seekHandler=_e,Ze._config=Le,Ze._needStash=!0,Ze._xhr=null,Ze._reader=null,Ze._totalRange=null,Ze._currentRange=null,Ze._currentRequestURL=null,Ze._currentRedirectedURL=null,Ze._contentLength=null,Ze._receivedLength=0,Ze._bufferLimit=16*1024*1024,Ze._lastTimeBufferSize=0,Ze._isReconnecting=!1,Ze}return Object(E.a)(Ie,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),Object(p.a)(Object(g.a)(Ie.prototype),"destroy",this).call(this)}},{key:"open",value:function(Le,Ze){this._internalOpen(Le,Ze,!1)}},{key:"_internalOpen",value:function(Le,Ze,it){this._dataSource=Le,it?this._currentRange=Ze:this._totalRange=Ze;var ft=Le.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?ft=this._currentRedirectedURL:Le.redirectedURL!=null&&(ft=Le.redirectedURL));var Nt=this._seekHandler.getConfig(ft,Ze);this._currentRequestURL=Nt.url;var Ar=this._reader=new self.MSStreamReader;Ar.onprogress=this._msrOnProgress.bind(this),Ar.onload=this._msrOnLoad.bind(this),Ar.onerror=this._msrOnError.bind(this);var Mr=this._xhr=new XMLHttpRequest;if(Mr.open("GET",Nt.url,!0),Mr.responseType="ms-stream",Mr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Mr.onerror=this._xhrOnError.bind(this),Le.withCredentials&&(Mr.withCredentials=!0),typeof Nt.headers=="object"){var un=Nt.headers;for(var Mt in un)un.hasOwnProperty(Mt)&&Mr.setRequestHeader(Mt,un[Mt])}if(typeof this._config.headers=="object"){var at=this._config.headers;for(var lt in at)at.hasOwnProperty(lt)&&Mr.setRequestHeader(lt,at[lt])}this._isReconnecting?this._isReconnecting=!1:this._status=l.kConnecting,Mr.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=l.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(Le){var Ze=Le.target;if(Ze.readyState===2)if(Ze.status>=200&&Ze.status<=299){if(this._status=l.kBuffering,Ze.responseURL!=null){var it=this._seekHandler.removeURLParameters(Ze.responseURL);Ze.responseURL!==this._currentRequestURL&&it!==this._currentRedirectedURL&&(this._currentRedirectedURL=it,this._onURLRedirect&&this._onURLRedirect(it))}var ft=Ze.getResponseHeader("Content-Length");if(ft!=null&&this._contentLength==null){var Nt=parseInt(ft);Nt>0&&(this._contentLength=Nt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ze.status,msg:Ze.statusText});else throw new e("MSStreamLoader: Http code invalid, "+Ze.status+" "+Ze.statusText);else if(Ze.readyState===3&&(Ze.status>=200&&Ze.status<=299)){this._status=l.kBuffering;var Ar=Ze.response;this._reader.readAsArrayBuffer(Ar)}}},{key:"_xhrOnError",value:function(Le){this._status=l.kError;var Ze=u.EXCEPTION,it={code:-1,msg:Le.constructor.name+" "+Le.type};if(this._onError)this._onError(Ze,it);else throw new e(it.msg)}},{key:"_msrOnProgress",value:function(Le){var Ze=Le.target,it=Ze.result;if(it==null){this._doReconnectIfNeeded();return}var ft=it.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=it.byteLength;var Nt=this._totalRange.from+this._receivedLength;this._receivedLength+=ft.byteLength,this._onDataArrival&&this._onDataArrival(ft,Nt,this._receivedLength),it.byteLength>=this._bufferLimit&&(c.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Nt+ft.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 Le={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Le,!0)}}},{key:"_msrOnLoad",value:function(Le){this._status=l.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Le){this._status=l.kError;var Ze=0,it=null;if(this._contentLength&&this._receivedLength<this._contentLength?(Ze=u.EARLY_EOF,it={code:-1,msg:"MSStream meet Early-Eof"}):(Ze=u.EARLY_EOF,it={code:-1,msg:Le.constructor.name+" "+Le.type}),this._onError)this._onError(Ze,it);else throw new e(it.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Le=new XMLHttpRequest;return Le.open("GET","https://example.com",!0),Le.responseType="ms-stream",Le.responseType==="ms-stream"}catch(Ze){return c.w("MSStreamLoader",Ze.message),!1}}}]),Ie}(h),L=I,N=function(jt){Object(i.a)(Ie,jt);var St=Object(n.a)(Ie);function Ie(_e,Le){var Ze;return Object(O.a)(this,Ie),Ze=St.call(this,"xhr-range-loader"),Ze.TAG="RangeLoader",Ze._seekHandler=_e,Ze._config=Le,Ze._needStash=!1,Ze._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],Ze._currentChunkSizeKB=384,Ze._currentSpeedNormalized=0,Ze._zeroSpeedChunkCount=0,Ze._xhr=null,Ze._speedSampler=new r,Ze._requestAbort=!1,Ze._waitForTotalLength=!1,Ze._totalLengthReceived=!1,Ze._currentRequestURL=null,Ze._currentRedirectedURL=null,Ze._currentRequestRange=null,Ze._totalLength=null,Ze._contentLength=null,Ze._receivedLength=0,Ze._lastTimeLoaded=0,Ze}return Object(E.a)(Ie,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),Object(p.a)(Object(g.a)(Ie.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Le,Ze){this._dataSource=Le,this._range=Ze,this._status=l.kConnecting;var it=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(it=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!it?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Le=this._currentChunkSizeKB*1024,Ze=this._range.from+this._receivedLength,it=Ze+Le;this._contentLength!=null&&(it-this._range.from>=this._contentLength&&(it=this._range.from+this._contentLength-1)),this._currentRequestRange={from:Ze,to:it},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Le,Ze){this._lastTimeLoaded=0;var it=Le.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?it=this._currentRedirectedURL:Le.redirectedURL!=null&&(it=Le.redirectedURL));var ft=this._seekHandler.getConfig(it,Ze);this._currentRequestURL=ft.url;var Nt=this._xhr=new XMLHttpRequest;if(Nt.open("GET",ft.url,!0),Nt.responseType="arraybuffer",Nt.onreadystatechange=this._onReadyStateChange.bind(this),Nt.onprogress=this._onProgress.bind(this),Nt.onload=this._onLoad.bind(this),Nt.onerror=this._onXhrError.bind(this),Le.withCredentials&&(Nt.withCredentials=!0),typeof ft.headers=="object"){var Ar=ft.headers;for(var Mr in Ar)Ar.hasOwnProperty(Mr)&&Nt.setRequestHeader(Mr,Ar[Mr])}if(typeof this._config.headers=="object"){var un=this._config.headers;for(var Mt in un)un.hasOwnProperty(Mt)&&Nt.setRequestHeader(Mt,un[Mt])}Nt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=l.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Le){var Ze=Le.target;if(Ze.readyState===2){if(Ze.responseURL!=null){var it=this._seekHandler.removeURLParameters(Ze.responseURL);Ze.responseURL!==this._currentRequestURL&&it!==this._currentRedirectedURL&&(this._currentRedirectedURL=it,this._onURLRedirect&&this._onURLRedirect(it))}if(Ze.status>=200&&Ze.status<=299){if(this._waitForTotalLength)return;this._status=l.kBuffering}else if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ze.status,msg:Ze.statusText});else throw new e("RangeLoader: Http code invalid, "+Ze.status+" "+Ze.statusText)}}},{key:"_onProgress",value:function(Le){if(this._status===l.kError)return;if(this._contentLength===null){var Ze=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Ze=!0;var it=Le.total;this._internalAbort(),it!=null&it!==0&&(this._totalLength=it)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Ze){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var ft=Le.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Le.loaded,this._speedSampler.addBytes(ft)}},{key:"_normalizeSpeed",value:function(Le){var Ze=this._chunkSizeKBList,it=Ze.length-1,ft=0,Nt=0,Ar=it;if(Le<Ze[0])return Ze[0];for(;Nt<=Ar;){if(ft=Nt+Math.floor((Ar-Nt)/2),ft===it||Le>=Ze[ft]&&Le<Ze[ft+1])return Ze[ft];Ze[ft]<Le?Nt=ft+1:Ar=ft-1}}},{key:"_onLoad",value:function(Le){if(this._status===l.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var Ze=this._speedSampler.lastSecondKBps;if(Ze===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(Ze=this._speedSampler.currentKBps)),Ze!==0){var it=this._normalizeSpeed(Ze);this._currentSpeedNormalized!==it&&(this._currentSpeedNormalized=it,this._currentChunkSizeKB=it)}var ft=Le.target.response,Nt=this._range.from+this._receivedLength;this._receivedLength+=ft.byteLength;var Ar=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Ar=!0,this._onDataArrival&&this._onDataArrival(ft,Nt,this._receivedLength),Ar&&(this._status=l.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Le){this._status=l.kError;var Ze=0,it=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(Ze=u.EARLY_EOF,it={code:-1,msg:"RangeLoader meet Early-Eof"}):(Ze=u.EXCEPTION,it={code:-1,msg:Le.constructor.name+" "+Le.type}),this._onError)this._onError(Ze,it);else throw new e(it.msg)}}],[{key:"isSupported",value:function(){try{var Le=new XMLHttpRequest;return Le.open("GET","https://example.com",!0),Le.responseType="arraybuffer",Le.responseType==="arraybuffer"}catch(Ze){return c.w("RangeLoader",Ze.message),!1}}}]),Ie}(h),D=N,R=function(jt){Object(i.a)(Ie,jt);var St=Object(n.a)(Ie);function Ie(){var _e;return Object(O.a)(this,Ie),_e=St.call(this,"websocket-loader"),_e.TAG="WebSocketLoader",_e._needStash=!0,_e._ws=null,_e._requestAbort=!1,_e._receivedLength=0,_e}return Object(E.a)(Ie,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(p.a)(Object(g.a)(Ie.prototype),"destroy",this).call(this)}},{key:"open",value:function(Le){try{var Ze=this._ws=new self.WebSocket(Le.url);Ze.binaryType="arraybuffer",Ze.onopen=this._onWebSocketOpen.bind(this),Ze.onclose=this._onWebSocketClose.bind(this),Ze.onmessage=this._onWebSocketMessage.bind(this),Ze.onerror=this._onWebSocketError.bind(this),this._status=l.kConnecting}catch(ft){this._status=l.kError;var it={code:ft.code,msg:ft.message};if(this._onError)this._onError(u.EXCEPTION,it);else throw new e(it.msg)}}},{key:"abort",value:function(){var Le=this._ws;Le&&(Le.readyState===0||Le.readyState===1)&&(this._requestAbort=!0,Le.close()),this._ws=null,this._status=l.kComplete}},{key:"_onWebSocketOpen",value:function(Le){this._status=l.kBuffering}},{key:"_onWebSocketClose",value:function(Le){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=l.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Le){var Ze=this;if(Le.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Le.data);else if(Le.data instanceof Blob){var it=new FileReader;it.onload=function(){Ze._dispatchArrayBuffer(it.result)},it.readAsArrayBuffer(Le.data)}else{this._status=l.kError;var ft={code:-1,msg:"Unsupported WebSocket message type: "+Le.data.constructor.name};if(this._onError)this._onError(u.EXCEPTION,ft);else throw new e(ft.msg)}}},{key:"_dispatchArrayBuffer",value:function(Le){var Ze=Le,it=this._receivedLength;this._receivedLength+=Ze.byteLength,this._onDataArrival&&this._onDataArrival(Ze,it,this._receivedLength)}},{key:"_onWebSocketError",value:function(Le){this._status=l.kError;var Ze={code:Le.code,msg:Le.message};if(this._onError)this._onError(u.EXCEPTION,Ze);else throw new e(Ze.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Le){return!1}}}]),Ie}(h),P=R,M=function(){function jt(St){Object(O.a)(this,jt),this._zeroStart=St||!1}return Object(E.a)(jt,[{key:"getConfig",value:function(Ie,_e){var Le={};if(_e.from!==0||_e.to!==-1){var Ze;_e.to!==-1?Ze="bytes=".concat(_e.from.toString(),"-").concat(_e.to.toString()):Ze="bytes=".concat(_e.from.toString(),"-"),Le.Range=Ze}else this._zeroStart&&(Le.Range="bytes=0-");return{url:Ie,headers:Le}}},{key:"removeURLParameters",value:function(Ie){return Ie}}]),jt}(),U=M,F=function(){function jt(St,Ie){Object(O.a)(this,jt),this._startName=St,this._endName=Ie}return Object(E.a)(jt,[{key:"getConfig",value:function(Ie,_e){var Le=Ie;if(_e.from!==0||_e.to!==-1){var Ze=!0;Le.indexOf("?")===-1&&(Le+="?",Ze=!1),Ze&&(Le+="&"),Le+="".concat(this._startName,"=").concat(_e.from.toString()),_e.to!==-1&&(Le+="&".concat(this._endName,"=").concat(_e.to.toString()))}return{url:Le,headers:{}}}},{key:"removeURLParameters",value:function(Ie){var _e=Ie.split("?")[0],Le=void 0,Ze=Ie.indexOf("?");Ze!==-1&&(Le=Ie.substring(Ze+1));var it="";if(Le!=null&&Le.length>0)for(var ft=Le.split("&"),Nt=0;Nt<ft.length;Nt++){var Ar=ft[Nt].split("="),Mr=Nt>0;Ar[0]!==this._startName&&Ar[0]!==this._endName&&(Mr&&(it+="&"),it+=ft[Nt])}return it.length===0?_e:_e+"?"+it}}]),jt}(),j=F,W=function(){function jt(St,Ie,_e){Object(O.a)(this,jt),this.TAG="IOController",this._config=Ie,this._extraData=_e,this._stashInitialSize=1024*384,Ie.stashInitialSize!=null&&Ie.stashInitialSize>0&&(this._stashInitialSize=Ie.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,Ie.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=St,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(St.url),this._refTotalLength=St.filesize?St.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new r,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(E.a)(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(Ie){this._extraData=Ie}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Ie){this._onDataArrival=Ie}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Ie){this._onSeeked=Ie}},{key:"onError",get:function(){return this._onError},set:function(Ie){this._onError=Ie}},{key:"onComplete",get:function(){return this._onComplete},set:function(Ie){this._onComplete=Ie}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Ie){this._onRedirect=Ie}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Ie){this._onRecoveredEarlyEof=Ie}},{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===D?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Ie=this._config;if(Ie.seekType==="range")this._seekHandler=new U(this._config.rangeLoadZeroStart);else if(Ie.seekType==="param"){var _e=Ie.seekParamStart||"bstart",Le=Ie.seekParamEnd||"bend";this._seekHandler=new j(_e,Le)}else if(Ie.seekType==="custom"){if(typeof Ie.customSeekHandler!="function")throw new t("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Ie.customSeekHandler}else throw new t("Invalid seekType in config: ".concat(Ie.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=P;else if(S.isSupported())this._loaderClass=S;else if(_.isSupported())this._loaderClass=_;else if(D.isSupported())this._loaderClass=D;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(Ie){this._currentRange={from:0,to:-1},Ie&&(this._currentRange.from=Ie),this._speedSampler.reset(),Ie||(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 Ie=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Ie,!0)}}},{key:"seek",value:function(Ie){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Ie,!0)}},{key:"_internalSeek",value:function(Ie,_e){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(_e),this._loader.destroy(),this._loader=null;var Le={from:Ie,to:-1};this._currentRange={from:Le.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Le),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Ie){if(!Ie||typeof Ie!="string"||Ie.length===0)throw new t("Url must be a non-empty string!");this._dataSource.url=Ie}},{key:"_expandBuffer",value:function(Ie){for(var _e=this._stashSize;_e+1024*1024*1<Ie;)_e*=2;if(_e+=1024*1024*1,_e===this._bufferSize)return;var Le=new ArrayBuffer(_e);if(this._stashUsed>0){var Ze=new Uint8Array(this._stashBuffer,0,this._stashUsed),it=new Uint8Array(Le,0,_e);it.set(Ze,0)}this._stashBuffer=Le,this._bufferSize=_e}},{key:"_normalizeSpeed",value:function(Ie){var _e=this._speedNormalizeList,Le=_e.length-1,Ze=0,it=0,ft=Le;if(Ie<_e[0])return _e[0];for(;it<=ft;){if(Ze=it+Math.floor((ft-it)/2),Ze===Le||Ie>=_e[Ze]&&Ie<_e[Ze+1])return _e[Ze];_e[Ze]<Ie?it=Ze+1:ft=Ze-1}}},{key:"_adjustStashSize",value:function(Ie){var _e=0;this._config.isLive||Ie<512?_e=Ie:Ie>=512&&Ie<=1024?_e=Math.floor(Ie*1.5):_e=Ie*2,_e>8192&&(_e=8192);var Le=_e*1024+1024*1024*1;this._bufferSize<Le&&this._expandBuffer(Le),this._stashSize=_e*1024}},{key:"_dispatchChunks",value:function(Ie,_e){return this._currentRange.to=_e+Ie.byteLength-1,this._onDataArrival(Ie,_e)}},{key:"_onURLRedirect",value:function(Ie){this._redirectedURL=Ie,this._onRedirect&&this._onRedirect(Ie)}},{key:"_onContentLengthKnown",value:function(Ie){Ie&&this._fullRequestFlag&&(this._totalLength=Ie,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Ie,_e,Le){if(!this._onDataArrival)throw new s("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Ie.byteLength);var Ze=this._speedSampler.lastSecondKBps;if(Ze!==0){var it=this._normalizeSpeed(Ze);this._speedNormalized!==it&&(this._speedNormalized=it,this._adjustStashSize(it))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=_e),this._stashUsed+Ie.byteLength<=this._stashSize){var at=new Uint8Array(this._stashBuffer,0,this._stashSize);at.set(new Uint8Array(Ie),this._stashUsed),this._stashUsed+=Ie.byteLength}else{var lt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var rr=this._stashBuffer.slice(0,this._stashUsed),Bt=this._dispatchChunks(rr,this._stashByteStart);if(Bt<rr.byteLength){if(Bt>0){var _t=new Uint8Array(rr,Bt);lt.set(_t,0),this._stashUsed=_t.byteLength,this._stashByteStart+=Bt}}else this._stashUsed=0,this._stashByteStart+=Bt;this._stashUsed+Ie.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Ie.byteLength),lt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),lt.set(new Uint8Array(Ie),this._stashUsed),this._stashUsed+=Ie.byteLength}else{var Kt=this._dispatchChunks(Ie,_e);if(Kt<Ie.byteLength){var wt=Ie.byteLength-Kt;wt>this._bufferSize&&(this._expandBuffer(wt),lt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),lt.set(new Uint8Array(Ie,Kt),0),this._stashUsed+=wt,this._stashByteStart=_e+Kt}}}else if(this._stashUsed===0){var ft=this._dispatchChunks(Ie,_e);if(ft<Ie.byteLength){var Nt=Ie.byteLength-ft;Nt>this._bufferSize&&this._expandBuffer(Nt);var Ar=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ar.set(new Uint8Array(Ie,ft),0),this._stashUsed+=Nt,this._stashByteStart=_e+ft}}else{this._stashUsed+Ie.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Ie.byteLength);var Mr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Mr.set(new Uint8Array(Ie),this._stashUsed),this._stashUsed+=Ie.byteLength;var un=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(un<this._stashUsed&&un>0){var Mt=new Uint8Array(this._stashBuffer,un);Mr.set(Mt,0)}this._stashUsed-=un,this._stashByteStart+=un}}},{key:"_flushStashBuffer",value:function(Ie){if(this._stashUsed>0){var _e=this._stashBuffer.slice(0,this._stashUsed),Le=this._dispatchChunks(_e,this._stashByteStart),Ze=_e.byteLength-Le;if(Le<_e.byteLength)if(Ie)c.w(this.TAG,"".concat(Ze," bytes unconsumed data remain when flush buffer, dropped"));else{if(Le>0){var it=new Uint8Array(this._stashBuffer,0,this._bufferSize),ft=new Uint8Array(_e,Le);it.set(ft,0),this._stashUsed=ft.byteLength,this._stashByteStart+=Le}return 0}return this._stashUsed=0,this._stashByteStart=0,Ze}return 0}},{key:"_onLoaderComplete",value:function(Ie,_e){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Ie,_e){c.e(this.TAG,"Loader error, code = ".concat(_e.code,", msg = ").concat(_e.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Ie=u.UNRECOVERABLE_EARLY_EOF);switch(Ie){case u.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Le=this._currentRange.to+1;Le<this._totalLength&&(c.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Le,!1));return}Ie=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(Ie,_e);else throw new e("IOException: "+_e.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 Y(){return Object.assign({},z)}var $=function(){function jt(){Object(O.a)(this,jt)}return Object(E.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 Ie=new V({},Y()),_e=Ie.loaderType;return Ie.destroy(),_e=="fetch-stream-loader"||_e=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Ie=new V({},Y()),_e=Ie.loaderType;return Ie.destroy(),_e}},{key:"supportNativeMediaPlayback",value:function(Ie){jt.videoElement==null&&(jt.videoElement=window.document.createElement("video"));var _e=jt.videoElement.canPlayType(Ie);return _e==="probably"||_e=="maybe"}},{key:"getFeatureList",value:function(){var Ie={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Ie.mseFlvPlayback=jt.supportMSEH264Playback(),Ie.networkStreamIO=jt.supportNetworkStreamIO(),Ie.networkLoaderName=jt.getNetworkLoaderTypeName(),Ie.mseLiveFlvPlayback=Ie.mseFlvPlayback&&Ie.networkStreamIO,Ie.nativeMP4H264Playback=jt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Ie.nativeWebmVP8Playback=jt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Ie.nativeWebmVP9Playback=jt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Ie}}]),jt}(),ue=$,ne={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"},ge=ne,Oe=function(){function jt(){Object(O.a)(this,jt)}return Object(E.a)(jt,null,[{key:"forceGlobalTag",get:function(){return c.FORCE_GLOBAL_TAG},set:function(Ie){c.FORCE_GLOBAL_TAG=Ie,jt._notifyChange()}},{key:"globalTag",get:function(){return c.GLOBAL_TAG},set:function(Ie){c.GLOBAL_TAG=Ie,jt._notifyChange()}},{key:"enableAll",get:function(){return c.ENABLE_VERBOSE&&c.ENABLE_DEBUG&&c.ENABLE_INFO&&c.ENABLE_WARN&&c.ENABLE_ERROR},set:function(Ie){c.ENABLE_VERBOSE=Ie,c.ENABLE_DEBUG=Ie,c.ENABLE_INFO=Ie,c.ENABLE_WARN=Ie,c.ENABLE_ERROR=Ie,jt._notifyChange()}},{key:"enableDebug",get:function(){return c.ENABLE_DEBUG},set:function(Ie){c.ENABLE_DEBUG=Ie,jt._notifyChange()}},{key:"enableVerbose",get:function(){return c.ENABLE_VERBOSE},set:function(Ie){c.ENABLE_VERBOSE=Ie,jt._notifyChange()}},{key:"enableInfo",get:function(){return c.ENABLE_INFO},set:function(Ie){c.ENABLE_INFO=Ie,jt._notifyChange()}},{key:"enableWarn",get:function(){return c.ENABLE_WARN},set:function(Ie){c.ENABLE_WARN=Ie,jt._notifyChange()}},{key:"enableError",get:function(){return c.ENABLE_ERROR},set:function(Ie){c.ENABLE_ERROR=Ie,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(Ie){c.GLOBAL_TAG=Ie.globalTag,c.FORCE_GLOBAL_TAG=Ie.forceGlobalTag,c.ENABLE_VERBOSE=Ie.enableVerbose,c.ENABLE_DEBUG=Ie.enableDebug,c.ENABLE_INFO=Ie.enableInfo,c.ENABLE_WARN=Ie.enableWarn,c.ENABLE_ERROR=Ie.enableError,c.ENABLE_CALLBACK=Ie.enableCallback}},{key:"_notifyChange",value:function(){var Ie=jt.emitter;if(Ie.listenerCount("change")>0){var _e=jt.getConfig();Ie.emit("change",_e)}}},{key:"registerListener",value:function(Ie){jt.emitter.addListener("change",Ie)}},{key:"removeListener",value:function(Ie){jt.emitter.removeListener("change",Ie)}},{key:"addLogListener",value:function(Ie){c.emitter.addListener("log",Ie),c.emitter.listenerCount("log")>0&&(c.ENABLE_CALLBACK=!0,jt._notifyChange())}},{key:"removeLogListener",value:function(Ie){c.emitter.removeListener("log",Ie),c.emitter.listenerCount("log")===0&&(c.ENABLE_CALLBACK=!1,jt._notifyChange())}}]),jt}();Oe.emitter=new m.a;var De=Oe,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(E.a)(jt,[{key:"isComplete",value:function(){var Ie=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,_e=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&&Ie&&_e}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Ie){if(this.keyframesIndex==null)return null;var _e=this.keyframesIndex,Le=this._search(_e.times,Ie);return{index:Le,milliseconds:_e.times[Le],fileposition:_e.filepositions[Le]}}},{key:"_search",value:function(Ie,_e){var Le=0,Ze=Ie.length-1,it=0,ft=0,Nt=Ze;for(_e<Ie[0]&&(Le=0,ft=Nt+1);ft<=Nt;)if(it=ft+Math.floor((Nt-ft)/2),it===Ze||_e>=Ie[it]&&_e<Ie[it+1]){Le=it;break}else Ie[it]<_e?ft=it+1:Nt=it-1;return Le}}]),jt}(),pe=He;function Ue(jt,St,Ie){var _e=jt;if(St+Ie<_e.length){for(;Ie--;)if((_e[++St]&192)!==128)return!1;return!0}else return!1}function oe(jt){for(var St=[],Ie=jt,_e=0,Le=jt.length;_e<Le;){if(Ie[_e]<128){St.push(String.fromCharCode(Ie[_e])),++_e;continue}else if(!(Ie[_e]<192)){if(Ie[_e]<224){if(Ue(Ie,_e,1)){var Ze=(Ie[_e]&31)<<6|Ie[_e+1]&63;if(Ze>=128){St.push(String.fromCharCode(Ze&65535)),_e+=2;continue}}}else if(Ie[_e]<240){if(Ue(Ie,_e,2)){var it=(Ie[_e]&15)<<12|(Ie[_e+1]&63)<<6|Ie[_e+2]&63;if(it>=2048&&(it&63488)!==55296){St.push(String.fromCharCode(it&65535)),_e+=3;continue}}}else if(Ie[_e]<248&&Ue(Ie,_e,3)){var ft=(Ie[_e]&7)<<18|(Ie[_e+1]&63)<<12|(Ie[_e+2]&63)<<6|Ie[_e+3]&63;if(ft>65536&&ft<1114112){ft-=65536,St.push(String.fromCharCode(ft>>>10|55296)),St.push(String.fromCharCode(ft&1023|56320)),_e+=4;continue}}}St.push(String.fromCharCode(65533)),++_e}return St.join("")}var ee=oe,Xe=function(){var jt=new ArrayBuffer(2);return new DataView(jt).setInt16(0,256,!0),new Int16Array(jt)[0]===256}(),se=function(){function jt(){Object(O.a)(this,jt)}return Object(E.a)(jt,null,[{key:"parseScriptData",value:function(Ie,_e,Le){var Ze={};try{var it=jt.parseValue(Ie,_e,Le),ft=jt.parseValue(Ie,_e+it.size,Le-it.size);Ze[it.data]=ft.data}catch(Nt){c.e("AMF",Nt.toString())}return Ze}},{key:"parseObject",value:function(Ie,_e,Le){if(Le<3)throw new s("Data not enough when parse ScriptDataObject");var Ze=jt.parseString(Ie,_e,Le),it=jt.parseValue(Ie,_e+Ze.size,Le-Ze.size),ft=it.objectEnd;return{data:{name:Ze.data,value:it.data},size:Ze.size+it.size,objectEnd:ft}}},{key:"parseVariable",value:function(Ie,_e,Le){return jt.parseObject(Ie,_e,Le)}},{key:"parseString",value:function(Ie,_e,Le){if(Le<2)throw new s("Data not enough when parse String");var Ze=new DataView(Ie,_e,Le),it=Ze.getUint16(0,!Xe),ft;return it>0?ft=ee(new Uint8Array(Ie,_e+2,it)):ft="",{data:ft,size:2+it}}},{key:"parseLongString",value:function(Ie,_e,Le){if(Le<4)throw new s("Data not enough when parse LongString");var Ze=new DataView(Ie,_e,Le),it=Ze.getUint32(0,!Xe),ft;return it>0?ft=ee(new Uint8Array(Ie,_e+4,it)):ft="",{data:ft,size:4+it}}},{key:"parseDate",value:function(Ie,_e,Le){if(Le<10)throw new s("Data size invalid when parse Date");var Ze=new DataView(Ie,_e,Le),it=Ze.getFloat64(0,!Xe),ft=Ze.getInt16(8,!Xe);return it+=ft*60*1e3,{data:new Date(it),size:8+2}}},{key:"parseValue",value:function(Ie,_e,Le){if(Le<1)throw new s("Data not enough when parse Value");var Ze=new DataView(Ie,_e,Le),it=1,ft=Ze.getUint8(0),Nt,Ar=!1;try{switch(ft){case 0:Nt=Ze.getFloat64(1,!Xe),it+=8;break;case 1:{var Mr=Ze.getUint8(1);Nt=!!Mr,it+=1;break}case 2:{var un=jt.parseString(Ie,_e+1,Le-1);Nt=un.data,it+=un.size;break}case 3:{Nt={};var Mt=0;for((Ze.getUint32(Le-4,!Xe)&16777215)===9&&(Mt=3);it<Le-4;){var at=jt.parseObject(Ie,_e+it,Le-it-Mt);if(at.objectEnd)break;Nt[at.data.name]=at.data.value,it+=at.size}if(it<=Le-3){var lt=Ze.getUint32(it-1,!Xe)&16777215;lt===9&&(it+=3)}break}case 8:{Nt={},it+=4;var rr=0;for((Ze.getUint32(Le-4,!Xe)&16777215)===9&&(rr=3);it<Le-8;){var Bt=jt.parseVariable(Ie,_e+it,Le-it-rr);if(Bt.objectEnd)break;Nt[Bt.data.name]=Bt.data.value,it+=Bt.size}if(it<=Le-3){var _t=Ze.getUint32(it-1,!Xe)&16777215;_t===9&&(it+=3)}break}case 9:Nt=void 0,it=1,Ar=!0;break;case 10:{Nt=[];var Kt=Ze.getUint32(1,!Xe);it+=4;for(var wt=0;wt<Kt;wt++){var Ut=jt.parseValue(Ie,_e+it,Le-it);Nt.push(Ut.data),it+=Ut.size}break}case 11:{var Sr=jt.parseDate(Ie,_e+1,Le-1);Nt=Sr.data,it+=Sr.size;break}case 12:{var hr=jt.parseString(Ie,_e+1,Le-1);Nt=hr.data,it+=hr.size;break}default:it=Le,c.w("AMF","Unsupported AMF value type "+ft)}}catch(gr){c.e("AMF",gr.toString())}return{data:Nt,size:it,objectEnd:Ar}}}]),jt}(),Q=se,G=function(){function jt(St){Object(O.a)(this,jt),this.TAG="ExpGolomb",this._buffer=St,this._buffer_index=0,this._total_bytes=St.byteLength,this._total_bits=St.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(E.a)(jt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Ie=this._total_bytes-this._buffer_index;if(Ie<=0)throw new s("ExpGolomb: _fillCurrentWord() but no bytes available");var _e=Math.min(4,Ie),Le=new Uint8Array(4);Le.set(this._buffer.subarray(this._buffer_index,this._buffer_index+_e)),this._current_word=new DataView(Le.buffer).getUint32(0,!1),this._buffer_index+=_e,this._current_word_bits_left=_e*8}},{key:"readBits",value:function(Ie){if(Ie>32)throw new t("ExpGolomb: readBits() bits exceeded max 32bits!");if(Ie<=this._current_word_bits_left){var _e=this._current_word>>>32-Ie;return this._current_word<<=Ie,this._current_word_bits_left-=Ie,_e}var Le=this._current_word_bits_left?this._current_word:0;Le=Le>>>32-this._current_word_bits_left;var Ze=Ie-this._current_word_bits_left;this._fillCurrentWord();var it=Math.min(Ze,this._current_word_bits_left),ft=this._current_word>>>32-it;return this._current_word<<=it,this._current_word_bits_left-=it,Le=Le<<it|ft,Le}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Ie;for(Ie=0;Ie<this._current_word_bits_left;Ie++)if((this._current_word&2147483648>>>Ie)!==0)return this._current_word<<=Ie,this._current_word_bits_left-=Ie,Ie;return this._fillCurrentWord(),Ie+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Ie=this._skipLeadingZero();return this.readBits(Ie+1)-1}},{key:"readSEG",value:function(){var Ie=this.readUEG();return Ie&1?Ie+1>>>1:-1*(Ie>>>1)}}]),jt}(),J=G,ve=function(){function jt(){Object(O.a)(this,jt)}return Object(E.a)(jt,null,[{key:"_ebsp2rbsp",value:function(Ie){for(var _e=Ie,Le=_e.byteLength,Ze=new Uint8Array(Le),it=0,ft=0;ft<Le;ft++){if(ft>=2&&(_e[ft]===3&&_e[ft-1]===0&&_e[ft-2]===0))continue;Ze[it]=_e[ft],it++}return new Uint8Array(Ze.buffer,0,it)}},{key:"parseSPS",value:function(Ie){var _e=jt._ebsp2rbsp(Ie),Le=new J(_e);Le.readByte();var Ze=Le.readByte();Le.readByte();var it=Le.readByte();Le.readUEG();var ft=jt.getProfileString(Ze),Nt=jt.getLevelString(it),Ar=1,Mr=420,un=[0,420,422,444],Mt=8;if((Ze===100||Ze===110||Ze===122||Ze===244||Ze===44||Ze===83||Ze===86||Ze===118||Ze===128||Ze===138||Ze===144)&&(Ar=Le.readUEG(),Ar===3&&Le.readBits(1),Ar<=3&&(Mr=un[Ar]),Mt=Le.readUEG()+8,Le.readUEG(),Le.readBits(1),Le.readBool()))for(var at=Ar!==3?8:12,lt=0;lt<at;lt++)Le.readBool()&&(lt<6?jt._skipScalingList(Le,16):jt._skipScalingList(Le,64));Le.readUEG();var rr=Le.readUEG();if(rr===0)Le.readUEG();else if(rr===1){Le.readBits(1),Le.readSEG(),Le.readSEG();for(var Bt=Le.readUEG(),_t=0;_t<Bt;_t++)Le.readSEG()}var Kt=Le.readUEG();Le.readBits(1);var wt=Le.readUEG(),Ut=Le.readUEG(),Sr=Le.readBits(1);Sr===0&&Le.readBits(1),Le.readBits(1);var hr=0,gr=0,Jr=0,$r=0,Pn=Le.readBool();Pn&&(hr=Le.readUEG(),gr=Le.readUEG(),Jr=Le.readUEG(),$r=Le.readUEG());var Dn=1,Zn=1,li=0,Ai=!0,Ii=0,$e=0,Se=Le.readBool();if(Se){if(Le.readBool()){var Re=Le.readByte(),je=[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];Re>0&&Re<16?(Dn=je[Re-1],Zn=Ye[Re-1]):Re===255&&(Dn=Le.readByte()<<8|Le.readByte(),Zn=Le.readByte()<<8|Le.readByte())}if(Le.readBool()&&Le.readBool(),Le.readBool()&&(Le.readBits(4),Le.readBool()&&Le.readBits(24)),Le.readBool()&&(Le.readUEG(),Le.readUEG()),Le.readBool()){var Ve=Le.readBits(32),qe=Le.readBits(32);Ai=Le.readBool(),Ii=qe,$e=Ve*2,li=Ii/$e}}var xt=1;(Dn!==1||Zn!==1)&&(xt=Dn/Zn);var ct=0,Jt=0;if(Ar===0)ct=1,Jt=2-Sr;else{var Rr=Ar===3?1:2,Ir=Ar===1?2:1;ct=Rr,Jt=Ir*(2-Sr)}var Xr=(wt+1)*16,qt=(2-Sr)*((Ut+1)*16);Xr-=(hr+gr)*ct,qt-=(Jr+$r)*Jt;var pn=Math.ceil(Xr*xt);return Le.destroy(),Le=null,{profile_string:ft,level_string:Nt,bit_depth:Mt,ref_frames:Kt,chroma_format:Mr,chroma_format_string:jt.getChromaFormatString(Mr),frame_rate:{fixed:Ai,fps:li,fps_den:$e,fps_num:Ii},sar_ratio:{width:Dn,height:Zn},codec_size:{width:Xr,height:qt},present_size:{width:pn,height:qt}}}},{key:"_skipScalingList",value:function(Ie,_e){for(var Le=8,Ze=8,it=0,ft=0;ft<_e;ft++)Ze!==0&&(it=Ie.readSEG(),Ze=(Le+it+256)%256),Le=Ze===0?Le:Ze}},{key:"getProfileString",value:function(Ie){switch(Ie){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(Ie){return(Ie/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Ie){switch(Ie){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),jt}(),de=ve,Ce={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Ee=Ce;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 xe(jt,St){return jt[St]<<24|jt[St+1]<<16|jt[St+2]<<8|jt[St+3]}var Qe=function(){function jt(St,Ie){Object(O.a)(this,jt),this.TAG="FLVDemuxer",this._config=Ie,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=St.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=St.hasAudioTrack,this._hasVideo=St.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new pe,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 _e=new ArrayBuffer(2);return new DataView(_e).setInt16(0,256,!0),new Int16Array(_e)[0]===256}()}return Object(E.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(Ie){return Ie.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Ie){this._onTrackMetadata=Ie}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Ie){this._onMediaInfo=Ie}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Ie){this._onMetaDataArrived=Ie}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Ie){this._onScriptDataArrived=Ie}},{key:"onError",get:function(){return this._onError},set:function(Ie){this._onError=Ie}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Ie){this._onDataAvailable=Ie}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Ie){this._timestampBase=Ie}},{key:"overridedDuration",get:function(){return this._duration},set:function(Ie){this._durationOverrided=!0,this._duration=Ie,this._mediaInfo.duration=Ie}},{key:"overridedHasAudio",set:function(Ie){this._hasAudioFlagOverrided=!0,this._hasAudio=Ie,this._mediaInfo.hasAudio=Ie}},{key:"overridedHasVideo",set:function(Ie){this._hasVideoFlagOverrided=!0,this._hasVideo=Ie,this._mediaInfo.hasVideo=Ie}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new pe}},{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(Ie,_e){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new s("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Le=0,Ze=this._littleEndian;if(_e===0)if(Ie.byteLength>13){var it=jt.probe(Ie);Le=it.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,_e+Le!==this._dataOffset&&c.w(this.TAG,"First time parsing but chunk byteStart invalid!");var ft=new DataView(Ie,Le),Nt=ft.getUint32(0,!Ze);Nt!==0&&c.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Le+=4}for(;Le<Ie.byteLength;){this._dispatch=!0;var Ar=new DataView(Ie,Le);if(Le+11+4>Ie.byteLength)break;var Mr=Ar.getUint8(0),un=Ar.getUint32(0,!Ze)&16777215;if(Le+11+un+4>Ie.byteLength)break;if(Mr!==8&&Mr!==9&&Mr!==18){c.w(this.TAG,"Unsupported tag type ".concat(Mr,", skipped")),Le+=11+un+4;continue}var Mt=Ar.getUint8(4),at=Ar.getUint8(5),lt=Ar.getUint8(6),rr=Ar.getUint8(7),Bt=lt|at<<8|Mt<<16|rr<<24,_t=Ar.getUint32(7,!Ze)&16777215;_t!==0&&c.w(this.TAG,"Meet tag which has StreamID != 0!");var Kt=Le+11;switch(Mr){case 8:this._parseAudioData(Ie,Kt,un,Bt);break;case 9:this._parseVideoData(Ie,Kt,un,Bt,_e+Le);break;case 18:this._parseScriptData(Ie,Kt,un);break}var wt=Ar.getUint32(11+un,!Ze);wt!==11+un&&c.w(this.TAG,"Invalid PrevTagSize ".concat(wt)),Le+=11+un+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Le}},{key:"_parseScriptData",value:function(Ie,_e,Le){var Ze=Q.parseScriptData(Ie,_e,Le);if(Ze.hasOwnProperty("onMetaData")){if(Ze.onMetaData==null||typeof Ze.onMetaData!="object"){c.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&c.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Ze;var it=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},it)),typeof it.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=it.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof it.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=it.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof it.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=it.audiodatarate),typeof it.videodatarate=="number"&&(this._mediaInfo.videoDataRate=it.videodatarate),typeof it.width=="number"&&(this._mediaInfo.width=it.width),typeof it.height=="number"&&(this._mediaInfo.height=it.height),typeof it.duration=="number"){if(!this._durationOverrided){var ft=Math.floor(it.duration*this._timescale);this._duration=ft,this._mediaInfo.duration=ft}}else this._mediaInfo.duration=0;if(typeof it.framerate=="number"){var Nt=Math.floor(it.framerate*1e3);if(Nt>0){var Ar=Nt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Ar,this._referenceFrameRate.fps_num=Nt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Ar}}if(typeof it.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Mr=it.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Mr),it.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=it,c.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Ze).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Ze)))}},{key:"_parseKeyframesIndex",value:function(Ie){for(var _e=[],Le=[],Ze=1;Ze<Ie.times.length;Ze++){var it=this._timestampBase+Math.floor(Ie.times[Ze]*1e3);_e.push(it),Le.push(Ie.filepositions[Ze])}return{times:_e,filepositions:Le}}},{key:"_parseAudioData",value:function(Ie,_e,Le,Ze){if(Le<=1){c.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var it=this._littleEndian,ft=new DataView(Ie,_e,Le),Nt=ft.getUint8(0),Ar=Nt>>>4;if(Ar!==2&&Ar!==10){this._onError(Ee.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Ar);return}var Mr=0,un=(Nt&12)>>>2;if(un>=0&&un<=4)Mr=this._flvSoundRateTable[un];else{this._onError(Ee.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+un);return}var Mt=(Nt&2)>>>1,at=Nt&1,lt=this._audioMetadata,rr=this._audioTrack;if(lt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),lt=this._audioMetadata={},lt.type="audio",lt.id=rr.id,lt.timescale=this._timescale,lt.duration=this._duration,lt.audioSampleRate=Mr,lt.channelCount=at===0?1:2),Ar===10){var Bt=this._parseAACAudioData(Ie,_e+1,Le-1);if(Bt==null)return;if(Bt.packetType===0){lt.config&&c.w(this.TAG,"Found another AudioSpecificConfig!");var _t=Bt.data;lt.audioSampleRate=_t.samplingRate,lt.channelCount=_t.channelCount,lt.codec=_t.codec,lt.originalCodec=_t.originalCodec,lt.config=_t.config,lt.refSampleDuration=1024/lt.audioSampleRate*lt.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",lt);var Kt=this._mediaInfo;Kt.audioCodec=lt.originalCodec,Kt.audioSampleRate=lt.audioSampleRate,Kt.audioChannelCount=lt.channelCount,Kt.hasVideo?Kt.videoCodec!=null&&(Kt.mimeType='video/x-flv; codecs="'+Kt.videoCodec+","+Kt.audioCodec+'"'):Kt.mimeType='video/x-flv; codecs="'+Kt.audioCodec+'"',Kt.isComplete()&&this._onMediaInfo(Kt)}else if(Bt.packetType===1){var wt=this._timestampBase+Ze,Ut={unit:Bt.data,length:Bt.data.byteLength,dts:wt,pts:wt};rr.samples.push(Ut),rr.length+=Bt.data.length}else c.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Bt.packetType))}else if(Ar===2){if(!lt.codec){var Sr=this._parseMP3AudioData(Ie,_e+1,Le-1,!0);if(Sr==null)return;lt.audioSampleRate=Sr.samplingRate,lt.channelCount=Sr.channelCount,lt.codec=Sr.codec,lt.originalCodec=Sr.originalCodec,lt.refSampleDuration=1152/lt.audioSampleRate*lt.timescale,c.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",lt);var hr=this._mediaInfo;hr.audioCodec=lt.codec,hr.audioSampleRate=lt.audioSampleRate,hr.audioChannelCount=lt.channelCount,hr.audioDataRate=Sr.bitRate,hr.hasVideo?hr.videoCodec!=null&&(hr.mimeType='video/x-flv; codecs="'+hr.videoCodec+","+hr.audioCodec+'"'):hr.mimeType='video/x-flv; codecs="'+hr.audioCodec+'"',hr.isComplete()&&this._onMediaInfo(hr)}var gr=this._parseMP3AudioData(Ie,_e+1,Le-1,!1);if(gr==null)return;var Jr=this._timestampBase+Ze,$r={unit:gr,length:gr.byteLength,dts:Jr,pts:Jr};rr.samples.push($r),rr.length+=gr.length}}},{key:"_parseAACAudioData",value:function(Ie,_e,Le){if(Le<=1){c.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var Ze={},it=new Uint8Array(Ie,_e,Le);return Ze.packetType=it[0],it[0]===0?Ze.data=this._parseAACAudioSpecificConfig(Ie,_e+1,Le-1):Ze.data=it.subarray(1),Ze}},{key:"_parseAACAudioSpecificConfig",value:function(Ie,_e,Le){var Ze=new Uint8Array(Ie,_e,Le),it=null,ft=0,Nt=0,Ar=null,Mr=0,un=null;if(ft=Nt=Ze[0]>>>3,Mr=(Ze[0]&7)<<1|Ze[1]>>>7,Mr<0||Mr>=this._mpegSamplingRates.length){this._onError(Ee.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Mt=this._mpegSamplingRates[Mr],at=(Ze[1]&120)>>>3;if(at<0||at>=8){this._onError(Ee.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}ft===5&&(un=(Ze[1]&7)<<1|Ze[2]>>>7,Ar=(Ze[2]&124)>>>2);var lt=self.navigator.userAgent.toLowerCase();return lt.indexOf("firefox")!==-1?Mr>=6?(ft=5,it=new Array(4),un=Mr-3):(ft=2,it=new Array(2),un=Mr):lt.indexOf("android")!==-1?(ft=2,it=new Array(2),un=Mr):(ft=5,un=Mr,it=new Array(4),Mr>=6?un=Mr-3:at===1&&(ft=2,it=new Array(2),un=Mr)),it[0]=ft<<3,it[0]|=(Mr&15)>>>1,it[1]=(Mr&15)<<7,it[1]|=(at&15)<<3,ft===5&&(it[1]|=(un&15)>>>1,it[2]=(un&1)<<7,it[2]|=2<<2,it[3]=0),{config:it,samplingRate:Mt,channelCount:at,codec:"mp4a.40."+ft,originalCodec:"mp4a.40."+Nt}}},{key:"_parseMP3AudioData",value:function(Ie,_e,Le,Ze){if(Le<4){c.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var it=this._littleEndian,ft=new Uint8Array(Ie,_e,Le),Nt=null;if(Ze){if(ft[0]!==255)return;var Ar=ft[1]>>>3&3,Mr=(ft[1]&6)>>1,un=(ft[2]&240)>>>4,Mt=(ft[2]&12)>>>2,at=ft[3]>>>6&3,lt=at!==3?2:1,rr=0,Bt=0,_t=34,Kt="mp3";switch(Ar){case 0:rr=this._mpegAudioV25SampleRateTable[Mt];break;case 2:rr=this._mpegAudioV20SampleRateTable[Mt];break;case 3:rr=this._mpegAudioV10SampleRateTable[Mt];break}switch(Mr){case 1:_t=34,un<this._mpegAudioL3BitRateTable.length&&(Bt=this._mpegAudioL3BitRateTable[un]);break;case 2:_t=33,un<this._mpegAudioL2BitRateTable.length&&(Bt=this._mpegAudioL2BitRateTable[un]);break;case 3:_t=32,un<this._mpegAudioL1BitRateTable.length&&(Bt=this._mpegAudioL1BitRateTable[un]);break}Nt={bitRate:Bt,samplingRate:rr,channelCount:lt,codec:Kt,originalCodec:Kt}}else Nt=ft;return Nt}},{key:"_parseVideoData",value:function(Ie,_e,Le,Ze,it){if(Le<=1){c.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var ft=new Uint8Array(Ie,_e,Le)[0],Nt=(ft&240)>>>4,Ar=ft&15;if(Ar!==7){this._onError(Ee.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Ar));return}this._parseAVCVideoPacket(Ie,_e+1,Le-1,Ze,it,Nt)}},{key:"_parseAVCVideoPacket",value:function(Ie,_e,Le,Ze,it,ft){if(Le<4){c.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Nt=this._littleEndian,Ar=new DataView(Ie,_e,Le),Mr=Ar.getUint8(0),un=Ar.getUint32(0,!Nt)&16777215,Mt=un<<8>>8;if(Mr===0)this._parseAVCDecoderConfigurationRecord(Ie,_e+4,Le-4);else if(Mr===1)this._parseAVCVideoData(Ie,_e+4,Le-4,Ze,it,ft,Mt);else if(!(Mr===2)){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Mr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Ie,_e,Le){if(Le<7){c.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var Ze=this._videoMetadata,it=this._videoTrack,ft=this._littleEndian,Nt=new DataView(Ie,_e,Le);Ze?typeof Ze.avcc!="undefined"&&c.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Ze=this._videoMetadata={},Ze.type="video",Ze.id=it.id,Ze.timescale=this._timescale,Ze.duration=this._duration);var Ar=Nt.getUint8(0),Mr=Nt.getUint8(1),un=Nt.getUint8(2),Mt=Nt.getUint8(3);if(Ar!==1||Mr===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Nt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ee.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var at=Nt.getUint8(5)&31;if(at===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else at>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(at));for(var lt=6,rr=0;rr<at;rr++){var Bt=Nt.getUint16(lt,!ft);if(lt+=2,Bt===0)continue;var _t=new Uint8Array(Ie,_e+lt,Bt);lt+=Bt;var Kt=de.parseSPS(_t);if(rr!==0)continue;Ze.codecWidth=Kt.codec_size.width,Ze.codecHeight=Kt.codec_size.height,Ze.presentWidth=Kt.present_size.width,Ze.presentHeight=Kt.present_size.height,Ze.profile=Kt.profile_string,Ze.level=Kt.level_string,Ze.bitDepth=Kt.bit_depth,Ze.chromaFormat=Kt.chroma_format,Ze.sarRatio=Kt.sar_ratio,Ze.frameRate=Kt.frame_rate,(Kt.frame_rate.fixed===!1||Kt.frame_rate.fps_num===0||Kt.frame_rate.fps_den===0)&&(Ze.frameRate=this._referenceFrameRate);var wt=Ze.frameRate.fps_den,Ut=Ze.frameRate.fps_num;Ze.refSampleDuration=Ze.timescale*(wt/Ut);for(var Sr=_t.subarray(1,4),hr="avc1.",gr=0;gr<3;gr++){var Jr=Sr[gr].toString(16);Jr.length<2&&(Jr="0"+Jr),hr+=Jr}Ze.codec=hr;var $r=this._mediaInfo;$r.width=Ze.codecWidth,$r.height=Ze.codecHeight,$r.fps=Ze.frameRate.fps,$r.profile=Ze.profile,$r.level=Ze.level,$r.refFrames=Kt.ref_frames,$r.chromaFormat=Kt.chroma_format_string,$r.sarNum=Ze.sarRatio.width,$r.sarDen=Ze.sarRatio.height,$r.videoCodec=hr,$r.hasAudio?$r.audioCodec!=null&&($r.mimeType='video/x-flv; codecs="'+$r.videoCodec+","+$r.audioCodec+'"'):$r.mimeType='video/x-flv; codecs="'+$r.videoCodec+'"',$r.isComplete()&&this._onMediaInfo($r)}var Pn=Nt.getUint8(lt);if(Pn===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Pn>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Pn));lt++;for(var Dn=0;Dn<Pn;Dn++){var Zn=Nt.getUint16(lt,!ft);if(lt+=2,Zn===0)continue;lt+=Zn}Ze.avcc=new Uint8Array(Le),Ze.avcc.set(new Uint8Array(Ie,_e,Le),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",Ze)}},{key:"_parseAVCVideoData",value:function(Ie,_e,Le,Ze,it,ft,Nt){for(var Ar=this._littleEndian,Mr=new DataView(Ie,_e,Le),un=[],Mt=0,at=0,lt=this._naluLengthSize,rr=this._timestampBase+Ze,Bt=ft===1;at<Le;){if(at+4>=Le){c.w(this.TAG,"Malformed Nalu near timestamp ".concat(rr,", offset = ").concat(at,", dataSize = ").concat(Le));break}var _t=Mr.getUint32(at,!Ar);if(lt===3&&(_t>>>=8),_t>Le-lt){c.w(this.TAG,"Malformed Nalus near timestamp ".concat(rr,", NaluSize > DataSize!"));return}var Kt=Mr.getUint8(at+lt)&31;Kt===5&&(Bt=!0);var wt=new Uint8Array(Ie,_e+at,lt+_t),Ut={type:Kt,data:wt};un.push(Ut),Mt+=wt.byteLength,at+=lt+_t}if(un.length){var Sr=this._videoTrack,hr={units:un,length:Mt,isKeyframe:Bt,dts:rr,cts:Nt,pts:rr+Nt};Bt&&(hr.fileposition=it),Sr.samples.push(hr),Sr.length+=Mt}}}],[{key:"probe",value:function(Ie){var _e=new Uint8Array(Ie),Le={match:!1};if(_e[0]!==70||_e[1]!==76||_e[2]!==86||_e[3]!==1)return Le;var Ze=(_e[4]&4)>>>2!==0,it=(_e[4]&1)!==0,ft=xe(_e,5);return ft<9?Le:{match:!0,consumed:ft,dataOffset:ft,hasAudioTrack:Ze,hasVideoTrack:it}}}]),jt}(),ot=Qe,Je=function(){function jt(){Object(O.a)(this,jt)}return Object(E.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 Ie in jt.types)jt.types.hasOwnProperty(Ie)&&(jt.types[Ie]=[Ie.charCodeAt(0),Ie.charCodeAt(1),Ie.charCodeAt(2),Ie.charCodeAt(3)]);var _e=jt.constants={};_e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),_e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),_e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),_e.STSC=_e.STCO=_e.STTS,_e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),_e.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]),_e.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]),_e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),_e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),_e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Ie){for(var _e=8,Le=null,Ze=Array.prototype.slice.call(arguments,1),it=Ze.length,ft=0;ft<it;ft++)_e+=Ze[ft].byteLength;Le=new Uint8Array(_e),Le[0]=_e>>>24&255,Le[1]=_e>>>16&255,Le[2]=_e>>>8&255,Le[3]=_e&255,Le.set(Ie,4);for(var Nt=8,Ar=0;Ar<it;Ar++)Le.set(Ze[Ar],Nt),Nt+=Ze[Ar].byteLength;return Le}},{key:"generateInitSegment",value:function(Ie){var _e=jt.box(jt.types.ftyp,jt.constants.FTYP),Le=jt.moov(Ie),Ze=new Uint8Array(_e.byteLength+Le.byteLength);return Ze.set(_e,0),Ze.set(Le,_e.byteLength),Ze}},{key:"moov",value:function(Ie){var _e=jt.mvhd(Ie.timescale,Ie.duration),Le=jt.trak(Ie),Ze=jt.mvex(Ie);return jt.box(jt.types.moov,_e,Le,Ze)}},{key:"mvhd",value:function(Ie,_e){return jt.box(jt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&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(Ie){return jt.box(jt.types.trak,jt.tkhd(Ie),jt.mdia(Ie))}},{key:"tkhd",value:function(Ie){var _e=Ie.id,Le=Ie.duration,Ze=Ie.presentWidth,it=Ie.presentHeight;return jt.box(jt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,0,0,0,0,Le>>>24&255,Le>>>16&255,Le>>>8&255,Le&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,Ze>>>8&255,Ze&255,0,0,it>>>8&255,it&255,0,0]))}},{key:"mdia",value:function(Ie){return jt.box(jt.types.mdia,jt.mdhd(Ie),jt.hdlr(Ie),jt.minf(Ie))}},{key:"mdhd",value:function(Ie){var _e=Ie.timescale,Le=Ie.duration;return jt.box(jt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,Le>>>24&255,Le>>>16&255,Le>>>8&255,Le&255,85,196,0,0]))}},{key:"hdlr",value:function(Ie){var _e=null;return Ie.type==="audio"?_e=jt.constants.HDLR_AUDIO:_e=jt.constants.HDLR_VIDEO,jt.box(jt.types.hdlr,_e)}},{key:"minf",value:function(Ie){var _e=null;return Ie.type==="audio"?_e=jt.box(jt.types.smhd,jt.constants.SMHD):_e=jt.box(jt.types.vmhd,jt.constants.VMHD),jt.box(jt.types.minf,_e,jt.dinf(),jt.stbl(Ie))}},{key:"dinf",value:function(){var Ie=jt.box(jt.types.dinf,jt.box(jt.types.dref,jt.constants.DREF));return Ie}},{key:"stbl",value:function(Ie){var _e=jt.box(jt.types.stbl,jt.stsd(Ie),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 _e}},{key:"stsd",value:function(Ie){return Ie.type==="audio"?Ie.codec==="mp3"?jt.box(jt.types.stsd,jt.constants.STSD_PREFIX,jt.mp3(Ie)):jt.box(jt.types.stsd,jt.constants.STSD_PREFIX,jt.mp4a(Ie)):jt.box(jt.types.stsd,jt.constants.STSD_PREFIX,jt.avc1(Ie))}},{key:"mp3",value:function(Ie){var _e=Ie.channelCount,Le=Ie.audioSampleRate,Ze=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,_e,0,16,0,0,0,0,Le>>>8&255,Le&255,0,0]);return jt.box(jt.types[".mp3"],Ze)}},{key:"mp4a",value:function(Ie){var _e=Ie.channelCount,Le=Ie.audioSampleRate,Ze=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,_e,0,16,0,0,0,0,Le>>>8&255,Le&255,0,0]);return jt.box(jt.types.mp4a,Ze,jt.esds(Ie))}},{key:"esds",value:function(Ie){var _e=Ie.config||[],Le=_e.length,Ze=new Uint8Array([0,0,0,0,3,23+Le,0,1,0,4,15+Le,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Le]).concat(_e).concat([6,1,2]));return jt.box(jt.types.esds,Ze)}},{key:"avc1",value:function(Ie){var _e=Ie.avcc,Le=Ie.codecWidth,Ze=Ie.codecHeight,it=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Le>>>8&255,Le&255,Ze>>>8&255,Ze&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,it,jt.box(jt.types.avcC,_e))}},{key:"mvex",value:function(Ie){return jt.box(jt.types.mvex,jt.trex(Ie))}},{key:"trex",value:function(Ie){var _e=Ie.id,Le=new Uint8Array([0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return jt.box(jt.types.trex,Le)}},{key:"moof",value:function(Ie,_e){return jt.box(jt.types.moof,jt.mfhd(Ie.sequenceNumber),jt.traf(Ie,_e))}},{key:"mfhd",value:function(Ie){var _e=new Uint8Array([0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255]);return jt.box(jt.types.mfhd,_e)}},{key:"traf",value:function(Ie,_e){var Le=Ie.id,Ze=jt.box(jt.types.tfhd,new Uint8Array([0,0,0,0,Le>>>24&255,Le>>>16&255,Le>>>8&255,Le&255])),it=jt.box(jt.types.tfdt,new Uint8Array([0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255])),ft=jt.sdtp(Ie),Nt=jt.trun(Ie,ft.byteLength+16+16+8+16+8+8);return jt.box(jt.types.traf,Ze,it,Nt,ft)}},{key:"sdtp",value:function(Ie){for(var _e=Ie.samples||[],Le=_e.length,Ze=new Uint8Array(4+Le),it=0;it<Le;it++){var ft=_e[it].flags;Ze[it+4]=ft.isLeading<<6|ft.dependsOn<<4|ft.isDependedOn<<2|ft.hasRedundancy}return jt.box(jt.types.sdtp,Ze)}},{key:"trun",value:function(Ie,_e){var Le=Ie.samples||[],Ze=Le.length,it=12+16*Ze,ft=new Uint8Array(it);_e+=8+it,ft.set([0,0,15,1,Ze>>>24&255,Ze>>>16&255,Ze>>>8&255,Ze&255,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255],0);for(var Nt=0;Nt<Ze;Nt++){var Ar=Le[Nt].duration,Mr=Le[Nt].size,un=Le[Nt].flags,Mt=Le[Nt].cts;ft.set([Ar>>>24&255,Ar>>>16&255,Ar>>>8&255,Ar&255,Mr>>>24&255,Mr>>>16&255,Mr>>>8&255,Mr&255,un.isLeading<<2|un.dependsOn,un.isDependedOn<<6|un.hasRedundancy<<4|un.isNonSync,0,0,Mt>>>24&255,Mt>>>16&255,Mt>>>8&255,Mt&255],12+16*Nt)}return jt.box(jt.types.trun,ft)}},{key:"mdat",value:function(Ie){return jt.box(jt.types.mdat,Ie)}}]),jt}();Je.init();var Te=Je,et=function(){function jt(){Object(O.a)(this,jt)}return Object(E.a)(jt,null,[{key:"getSilentFrame",value:function(Ie,_e){if(Ie==="mp4a.40.2"){if(_e===1)return new Uint8Array([0,200,0,128,35,128]);if(_e===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(_e===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(_e===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(_e===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(_e===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(_e===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(_e===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(_e===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}(),ze=et,nt=Object(E.a)(function jt(St,Ie,_e,Le,Ze){Object(O.a)(this,jt),this.dts=St,this.pts=Ie,this.duration=_e,this.originalDts=Le,this.isSyncPoint=Ze,this.fileposition=null}),Ot=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(E.a)(jt,[{key:"appendSyncPoint",value:function(Ie){Ie.isSyncPoint=!0,this.syncPoints.push(Ie)}}]),jt}(),Ct=function(){function jt(){Object(O.a)(this,jt),this._list=[]}return Object(E.a)(jt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Ie){var _e=this._list;if(Ie.length===0)return;_e.length>0&&Ie[0].originalDts<_e[_e.length-1].originalDts&&this.clear(),Array.prototype.push.apply(_e,Ie)}},{key:"getLastSyncPointBeforeDts",value:function(Ie){if(this._list.length==0)return null;var _e=this._list,Le=0,Ze=_e.length-1,it=0,ft=0,Nt=Ze;for(Ie<_e[0].dts&&(Le=0,ft=Nt+1);ft<=Nt;)if(it=ft+Math.floor((Nt-ft)/2),it===Ze||Ie>=_e[it].dts&&Ie<_e[it+1].dts){Le=it;break}else _e[it].dts<Ie?ft=it+1:Nt=it-1;return this._list[Le]}}]),jt}(),Tt=function(){function jt(St){Object(O.a)(this,jt),this._type=St,this._list=[],this._lastAppendLocation=-1}return Object(E.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(Ie){var _e=this._list;if(_e.length===0)return-2;var Le=_e.length-1,Ze=0,it=0,ft=Le,Nt=0;if(Ie<_e[0].originalBeginDts)return Nt=-1,Nt;for(;it<=ft;)if(Ze=it+Math.floor((ft-it)/2),Ze===Le||Ie>_e[Ze].lastSample.originalDts&&Ie<_e[Ze+1].originalBeginDts){Nt=Ze;break}else _e[Ze].originalBeginDts<Ie?it=Ze+1:ft=Ze-1;return Nt}},{key:"_searchNearestSegmentAfter",value:function(Ie){return this._searchNearestSegmentBefore(Ie)+1}},{key:"append",value:function(Ie){var _e=this._list,Le=Ie,Ze=this._lastAppendLocation,it=0;Ze!==-1&&Ze<_e.length&&Le.originalBeginDts>=_e[Ze].lastSample.originalDts&&(Ze===_e.length-1||Ze<_e.length-1&&Le.originalBeginDts<_e[Ze+1].originalBeginDts)?it=Ze+1:_e.length>0&&(it=this._searchNearestSegmentBefore(Le.originalBeginDts)+1),this._lastAppendLocation=it,this._list.splice(it,0,Le)}},{key:"getLastSegmentBefore",value:function(Ie){var _e=this._searchNearestSegmentBefore(Ie);return _e>=0?this._list[_e]:null}},{key:"getLastSampleBefore",value:function(Ie){var _e=this.getLastSegmentBefore(Ie);return _e!=null?_e.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Ie){for(var _e=this._searchNearestSegmentBefore(Ie),Le=this._list[_e].syncPoints;Le.length===0&&_e>0;)_e--,Le=this._list[_e].syncPoints;return Le.length>0?Le[Le.length-1]:null}}]),jt}(),Dt=function(){function jt(St){Object(O.a)(this,jt),this.TAG="MP4Remuxer",this._config=St,this._isLive=St.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Tt("audio"),this._videoSegmentInfoList=new Tt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661)),this._fillSilentAfterSeek=x.msedge||x.msie,this._mp3UseMpegAudio=!x.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(E.a)(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(Ie){return Ie.onDataAvailable=this.remux.bind(this),Ie.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Ie){this._onInitSegment=Ie}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Ie){this._onMediaSegment=Ie}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Ie){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Ie,_e){if(!this._onMediaSegment)throw new s("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Ie,_e),this._remuxVideo(_e),this._remuxAudio(Ie)}},{key:"_onTrackMetadataReceived",value:function(Ie,_e){var Le=null,Ze="mp4",it=_e.codec;if(Ie==="audio")this._audioMeta=_e,_e.codec==="mp3"&&this._mp3UseMpegAudio?(Ze="mpeg",it="",Le=new Uint8Array):Le=Te.generateInitSegment(_e);else if(Ie==="video")this._videoMeta=_e,Le=Te.generateInitSegment(_e);else return;if(!this._onInitSegment)throw new s("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Ie,{type:Ie,data:Le.buffer,codec:it,container:"".concat(Ie,"/").concat(Ze),mediaDuration:_e.duration})}},{key:"_calculateDtsBase",value:function(Ie,_e){if(this._dtsBaseInited)return;Ie.samples&&Ie.samples.length&&(this._audioDtsBase=Ie.samples[0].dts),_e.samples&&_e.samples.length&&(this._videoDtsBase=_e.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Ie=this._videoStashedLastSample,_e=this._audioStashedLastSample,Le={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Ie!=null&&(Le.samples.push(Ie),Le.length=Ie.length);var Ze={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};_e!=null&&(Ze.samples.push(_e),Ze.length=_e.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Le,!0),this._remuxAudio(Ze,!0)}},{key:"_remuxAudio",value:function(Ie,_e){if(this._audioMeta==null)return;var Le=Ie,Ze=Le.samples,it=void 0,ft=-1,Nt=-1,Ar=-1,Mr=this._audioMeta.refSampleDuration,un=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Mt=this._dtsBaseInited&&this._audioNextDts===void 0,at=!1;if(!Ze||Ze.length===0)return;if(Ze.length===1&&!_e)return;var lt=0,rr=null,Bt=0;un?(lt=0,Bt=Le.length):(lt=8,Bt=8+Le.length);var _t=null;if(Ze.length>1&&(_t=Ze.pop(),Bt-=_t.length),this._audioStashedLastSample!=null){var Kt=this._audioStashedLastSample;this._audioStashedLastSample=null,Ze.unshift(Kt),Bt+=Kt.length}_t!=null&&(this._audioStashedLastSample=_t);var wt=Ze[0].dts-this._dtsBase;if(this._audioNextDts)it=wt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())it=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(at=!0));else{var Ut=this._audioSegmentInfoList.getLastSampleBefore(wt);if(Ut!=null){var Sr=wt-(Ut.originalDts+Ut.duration);Sr<=3&&(Sr=0);var hr=Ut.dts+Ut.duration+Sr;it=wt-hr}else it=0}if(at){var gr=wt-it,Jr=this._videoSegmentInfoList.getLastSegmentBefore(wt);if(Jr!=null&&Jr.beginDts<gr){var $r=ze.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if($r){var Pn=Jr.beginDts,Dn=gr-Jr.beginDts;c.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(Pn,", duration: ").concat(Dn)),Ze.unshift({unit:$r,dts:Pn,pts:Pn}),Bt+=$r.byteLength}}else at=!1}for(var Zn=[],li=0;li<Ze.length;li++){var Ai=Ze[li],Ii=Ai.unit,$e=Ai.dts-this._dtsBase,Se=$e-it;ft===-1&&(ft=Se);var Re=0;if(li!==Ze.length-1){var je=Ze[li+1].dts-this._dtsBase-it;Re=je-Se}else if(_t!=null){var Ye=_t.dts-this._dtsBase-it;Re=Ye-Se}else Zn.length>=1?Re=Zn[Zn.length-1].duration:Re=Math.floor(Mr);var Ve=!1,qe=null;if(Re>Mr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!x.safari){Ve=!0;var xt=Math.abs(Re-Mr),ct=Math.ceil(xt/Mr),Jt=Se+Mr;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(Se+Re," ms, expected: ").concat(Se+Math.round(Mr)," ms, ")+"delta: ".concat(Math.round(xt)," ms, generate: ").concat(ct," frames"));var Rr=ze.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Rr==null&&(c.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Rr=Ii),qe=[];for(var Ir=0;Ir<ct;Ir++){var Xr=Math.round(Jt);if(qe.length>0){var qt=qe[qe.length-1];qt.duration=Xr-qt.dts}var pn={dts:Xr,pts:Xr,cts:0,unit:Rr,size:Rr.byteLength,duration:0,originalDts:$e,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};qe.push(pn),Bt+=pn.size,Jt+=Mr}var fr=qe[qe.length-1];fr.duration=Se+Re-fr.dts,Re=Math.round(Mr)}Zn.push({dts:Se,pts:Se,cts:0,unit:Ai.unit,size:Ai.unit.byteLength,duration:Re,originalDts:$e,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ve&&Zn.push.apply(Zn,qe)}un?rr=new Uint8Array(Bt):(rr=new Uint8Array(Bt),rr[0]=Bt>>>24&255,rr[1]=Bt>>>16&255,rr[2]=Bt>>>8&255,rr[3]=Bt&255,rr.set(Te.types.mdat,4));for(var mn=0;mn<Zn.length;mn++){var en=Zn[mn].unit;rr.set(en,lt),lt+=en.byteLength}var kr=Zn[Zn.length-1];Nt=kr.dts+kr.duration,this._audioNextDts=Nt;var Gn=new Ot;Gn.beginDts=ft,Gn.endDts=Nt,Gn.beginPts=ft,Gn.endPts=Nt,Gn.originalBeginDts=Zn[0].originalDts,Gn.originalEndDts=kr.originalDts+kr.duration,Gn.firstSample=new nt(Zn[0].dts,Zn[0].pts,Zn[0].duration,Zn[0].originalDts,!1),Gn.lastSample=new nt(kr.dts,kr.pts,kr.duration,kr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Gn),Le.samples=Zn,Le.sequenceNumber++;var di=null;un?di=new Uint8Array:di=Te.moof(Le,ft),Le.samples=[],Le.length=0;var _i={type:"audio",data:this._mergeBoxes(di,rr).buffer,sampleCount:Zn.length,info:Gn};un&&Mt&&(_i.timestampOffset=ft),this._onMediaSegment("audio",_i)}},{key:"_remuxVideo",value:function(Ie,_e){if(this._videoMeta==null)return;var Le=Ie,Ze=Le.samples,it=void 0,ft=-1,Nt=-1,Ar=-1,Mr=-1;if(!Ze||Ze.length===0)return;if(Ze.length===1&&!_e)return;var un=8,Mt=null,at=8+Ie.length,lt=null;if(Ze.length>1&&(lt=Ze.pop(),at-=lt.length),this._videoStashedLastSample!=null){var rr=this._videoStashedLastSample;this._videoStashedLastSample=null,Ze.unshift(rr),at+=rr.length}lt!=null&&(this._videoStashedLastSample=lt);var Bt=Ze[0].dts-this._dtsBase;if(this._videoNextDts)it=Bt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())it=0;else{var _t=this._videoSegmentInfoList.getLastSampleBefore(Bt);if(_t!=null){var Kt=Bt-(_t.originalDts+_t.duration);Kt<=3&&(Kt=0);var wt=_t.dts+_t.duration+Kt;it=Bt-wt}else it=0}for(var Ut=new Ot,Sr=[],hr=0;hr<Ze.length;hr++){var gr=Ze[hr],Jr=gr.dts-this._dtsBase,$r=gr.isKeyframe,Pn=Jr-it,Dn=gr.cts,Zn=Pn+Dn;ft===-1&&(ft=Pn,Ar=Zn);var li=0;if(hr!==Ze.length-1){var Ai=Ze[hr+1].dts-this._dtsBase-it;li=Ai-Pn}else if(lt!=null){var Ii=lt.dts-this._dtsBase-it;li=Ii-Pn}else Sr.length>=1?li=Sr[Sr.length-1].duration:li=Math.floor(this._videoMeta.refSampleDuration);if($r){var $e=new nt(Pn,Zn,li,gr.dts,!0);$e.fileposition=gr.fileposition,Ut.appendSyncPoint($e)}Sr.push({dts:Pn,pts:Zn,cts:Dn,units:gr.units,size:gr.length,isKeyframe:$r,duration:li,originalDts:Jr,flags:{isLeading:0,dependsOn:$r?2:1,isDependedOn:$r?1:0,hasRedundancy:0,isNonSync:$r?0:1}})}Mt=new Uint8Array(at),Mt[0]=at>>>24&255,Mt[1]=at>>>16&255,Mt[2]=at>>>8&255,Mt[3]=at&255,Mt.set(Te.types.mdat,4);for(var Se=0;Se<Sr.length;Se++)for(var Re=Sr[Se].units;Re.length;){var je=Re.shift(),Ye=je.data;Mt.set(Ye,un),un+=Ye.byteLength}var Ve=Sr[Sr.length-1];if(Nt=Ve.dts+Ve.duration,Mr=Ve.pts+Ve.duration,this._videoNextDts=Nt,Ut.beginDts=ft,Ut.endDts=Nt,Ut.beginPts=Ar,Ut.endPts=Mr,Ut.originalBeginDts=Sr[0].originalDts,Ut.originalEndDts=Ve.originalDts+Ve.duration,Ut.firstSample=new nt(Sr[0].dts,Sr[0].pts,Sr[0].duration,Sr[0].originalDts,Sr[0].isKeyframe),Ut.lastSample=new nt(Ve.dts,Ve.pts,Ve.duration,Ve.originalDts,Ve.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ut),Le.samples=Sr,Le.sequenceNumber++,this._forceFirstIDR){var qe=Sr[0].flags;qe.dependsOn=2,qe.isNonSync=0}var xt=Te.moof(Le,ft);Le.samples=[],Le.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(xt,Mt).buffer,sampleCount:Sr.length,info:Ut})}},{key:"_mergeBoxes",value:function(Ie,_e){var Le=new Uint8Array(Ie.byteLength+_e.byteLength);return Le.set(Ie,0),Le.set(_e,Ie.byteLength),Le}}]),jt}(),Be=Dt,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,Fe=function(){function jt(St,Ie){Object(O.a)(this,jt),this.TAG="TransmuxingController",this._emitter=new m.a,this._config=Ie,St.segments||(St.segments=[{duration:St.duration,filesize:St.filesize,url:St.url}]),typeof St.cors!="boolean"&&(St.cors=!0),typeof St.withCredentials!="boolean"&&(St.withCredentials=!1),this._mediaDataSource=St,this._currentSegmentIndex=0;var _e=0;this._mediaDataSource.segments.forEach(function(Le){Le.timestampBase=_e,_e+=Le.duration,Le.cors=St.cors,Le.withCredentials=St.withCredentials,Ie.referrerPolicy&&(Le.referrerPolicy=Ie.referrerPolicy)}),!isNaN(_e)&&this._mediaDataSource.duration!==_e&&(this._mediaDataSource.duration=_e),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(E.a)(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(Ie,_e){this._emitter.addListener(Ie,_e)}},{key:"off",value:function(Ie,_e){this._emitter.removeListener(Ie,_e)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Ie,_e){this._currentSegmentIndex=Ie;var Le=this._mediaDataSource.segments[Ie],Ze=this._ioctl=new V(Le,this._config,Ie);Ze.onError=this._onIOException.bind(this),Ze.onSeeked=this._onIOSeeked.bind(this),Ze.onComplete=this._onIOComplete.bind(this),Ze.onRedirect=this._onIORedirect.bind(this),Ze.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),_e?this._demuxer.bindDataSource(this._ioctl):Ze.onDataArrival=this._onInitChunkArrival.bind(this),Ze.open(_e)}},{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(Ie){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var _e=this._searchSegmentIndexContains(Ie);if(_e===this._currentSegmentIndex){var Le=this._mediaInfo.segments[_e];if(Le==null)this._pendingSeekTime=Ie;else{var Ze=Le.getNearestKeyframe(Ie);this._remuxer.seek(Ze.milliseconds),this._ioctl.seek(Ze.fileposition),this._pendingResolveSeekPoint=Ze.milliseconds}}else{var it=this._mediaInfo.segments[_e];if(it==null)this._pendingSeekTime=Ie,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(_e);else{var ft=it.getNearestKeyframe(Ie);this._internalAbort(),this._remuxer.seek(Ie),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[_e].timestampBase,this._loadSegment(_e,ft.fileposition),this._pendingResolveSeekPoint=ft.milliseconds,this._reportSegmentMediaInfo(_e)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Ie){for(var _e=this._mediaDataSource.segments,Le=_e.length-1,Ze=0;Ze<_e.length;Ze++)if(Ie<_e[Ze].timestampBase){Le=Ze-1;break}return Le}},{key:"_onInitChunkArrival",value:function(Ie,_e){var Le=this,Ze=null,it=0;if(_e>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,it=this._demuxer.parseChunks(Ie,_e);else if((Ze=ot.probe(Ie)).match){this._demuxer=new ot(Ze,this._config),this._remuxer||(this._remuxer=new Be(this._config));var ft=this._mediaDataSource;ft.duration!=null&&!isNaN(ft.duration)&&(this._demuxer.overridedDuration=ft.duration),typeof ft.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=ft.hasAudio),typeof ft.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=ft.hasVideo),this._demuxer.timestampBase=ft.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),it=this._demuxer.parseChunks(Ie,_e)}else Ze=null,c.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Le._internalAbort()}),this._emitter.emit(X.DEMUX_ERROR,Ee.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),it=0;return it}},{key:"_onMediaInfo",value:function(Ie){var _e=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Ie),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,pe.prototype));var Le=Object.assign({},Ie);Object.setPrototypeOf(Le,pe.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Le,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var Ze=_e._pendingSeekTime;_e._pendingSeekTime=null,_e.seek(Ze)})}},{key:"_onMetaDataArrived",value:function(Ie){this._emitter.emit(X.METADATA_ARRIVED,Ie)}},{key:"_onScriptDataArrived",value:function(Ie){this._emitter.emit(X.SCRIPTDATA_ARRIVED,Ie)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Ie){var _e=Ie,Le=_e+1;Le<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Le)):(this._remuxer.flushStashedSamples(),this._emitter.emit(X.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Ie){var _e=this._ioctl.extraData;this._mediaDataSource.segments[_e].redirectedURL=Ie}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(X.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Ie,_e){c.e(this.TAG,"IOException: type = ".concat(Ie,", code = ").concat(_e.code,", msg = ").concat(_e.msg)),this._emitter.emit(X.IO_ERROR,Ie,_e),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Ie,_e){c.e(this.TAG,"DemuxException: type = ".concat(Ie,", info = ").concat(_e)),this._emitter.emit(X.DEMUX_ERROR,Ie,_e)}},{key:"_onRemuxerInitSegmentArrival",value:function(Ie,_e){this._emitter.emit(X.INIT_SEGMENT,Ie,_e)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Ie,_e){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(X.MEDIA_SEGMENT,Ie,_e),this._pendingResolveSeekPoint!=null&&Ie==="video"){var Le=_e.info.syncPoints,Ze=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,x.safari&&Le.length>0&&Le[0].originalDts===Ze&&(Ze=Le[0].pts),this._emitter.emit(X.RECOMMEND_SEEKPOINT,Ze)}}},{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(Ie){var _e=this._mediaInfo.segments[Ie],Le=Object.assign({},_e);Le.duration=this._mediaInfo.duration,Le.segmentCount=this._mediaInfo.segmentCount,delete Le.segments,delete Le.keyframesIndex,this._emitter.emit(X.MEDIA_INFO,Le)}},{key:"_reportStatisticsInfo",value:function(){var Ie={};Ie.url=this._ioctl.currentURL,Ie.hasRedirect=this._ioctl.hasRedirect,Ie.hasRedirect&&(Ie.redirectedURL=this._ioctl.currentRedirectedURL),Ie.speed=this._ioctl.currentSpeed,Ie.loaderType=this._ioctl.loaderType,Ie.currentSegmentIndex=this._currentSegmentIndex,Ie.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(X.STATISTICS_INFO,Ie)}}]),jt}(),Ne=Fe,q=function(St){var Ie="TransmuxingWorker",_e=null,Le=Bt.bind(this);A.install(),St.addEventListener("message",function(_t){switch(_t.data.cmd){case"init":_e=new Ne(_t.data.param[0],_t.data.param[1]),_e.on(X.IO_ERROR,at.bind(this)),_e.on(X.DEMUX_ERROR,lt.bind(this)),_e.on(X.INIT_SEGMENT,Ze.bind(this)),_e.on(X.MEDIA_SEGMENT,it.bind(this)),_e.on(X.LOADING_COMPLETE,ft.bind(this)),_e.on(X.RECOVERED_EARLY_EOF,Nt.bind(this)),_e.on(X.MEDIA_INFO,Ar.bind(this)),_e.on(X.METADATA_ARRIVED,Mr.bind(this)),_e.on(X.SCRIPTDATA_ARRIVED,un.bind(this)),_e.on(X.STATISTICS_INFO,Mt.bind(this)),_e.on(X.RECOMMEND_SEEKPOINT,rr.bind(this));break;case"destroy":_e&&(_e.destroy(),_e=null),St.postMessage({msg:"destroyed"});break;case"start":_e.start();break;case"stop":_e.stop();break;case"seek":_e.seek(_t.data.param);break;case"pause":_e.pause();break;case"resume":_e.resume();break;case"logging_config":{var Kt=_t.data.param;De.applyConfig(Kt),Kt.enableCallback===!0?De.addLogListener(Le):De.removeLogListener(Le);break}}});function Ze(_t,Kt){var wt={msg:X.INIT_SEGMENT,data:{type:_t,data:Kt}};St.postMessage(wt,[Kt.data])}function it(_t,Kt){var wt={msg:X.MEDIA_SEGMENT,data:{type:_t,data:Kt}};St.postMessage(wt,[Kt.data])}function ft(){var _t={msg:X.LOADING_COMPLETE};St.postMessage(_t)}function Nt(){var _t={msg:X.RECOVERED_EARLY_EOF};St.postMessage(_t)}function Ar(_t){var Kt={msg:X.MEDIA_INFO,data:_t};St.postMessage(Kt)}function Mr(_t){var Kt={msg:X.METADATA_ARRIVED,data:_t};St.postMessage(Kt)}function un(_t){var Kt={msg:X.SCRIPTDATA_ARRIVED,data:_t};St.postMessage(Kt)}function Mt(_t){var Kt={msg:X.STATISTICS_INFO,data:_t};St.postMessage(Kt)}function at(_t,Kt){St.postMessage({msg:X.IO_ERROR,data:{type:_t,info:Kt}})}function lt(_t,Kt){St.postMessage({msg:X.DEMUX_ERROR,data:{type:_t,info:Kt}})}function rr(_t){St.postMessage({msg:X.RECOMMEND_SEEKPOINT,data:_t})}function Bt(_t,Kt){St.postMessage({msg:"logcat_callback",data:{type:_t,logcat:Kt}})}},ht=q,Rt=function(){function jt(St,Ie){if(Object(O.a)(this,jt),this.TAG="Transmuxer",this._emitter=new m.a,Ie.enableWorker&&typeof Worker!="undefined")try{var _e=d("0r65");this._worker=_e(ht),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[St,Ie]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},De.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:De.getConfig()})}catch(Ze){c.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ne(St,Ie)}else this._controller=new Ne(St,Ie);if(this._controller){var Le=this._controller;Le.on(X.IO_ERROR,this._onIOError.bind(this)),Le.on(X.DEMUX_ERROR,this._onDemuxError.bind(this)),Le.on(X.INIT_SEGMENT,this._onInitSegment.bind(this)),Le.on(X.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Le.on(X.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Le.on(X.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Le.on(X.MEDIA_INFO,this._onMediaInfo.bind(this)),Le.on(X.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Le.on(X.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Le.on(X.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Le.on(X.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(E.a)(jt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),De.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Ie,_e){this._emitter.addListener(Ie,_e)}},{key:"off",value:function(Ie,_e){this._emitter.removeListener(Ie,_e)}},{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(Ie){this._worker?this._worker.postMessage({cmd:"seek",param:Ie}):this._controller.seek(Ie)}},{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(Ie,_e){var Le=this;Promise.resolve().then(function(){Le._emitter.emit(X.INIT_SEGMENT,Ie,_e)})}},{key:"_onMediaSegment",value:function(Ie,_e){var Le=this;Promise.resolve().then(function(){Le._emitter.emit(X.MEDIA_SEGMENT,Ie,_e)})}},{key:"_onLoadingComplete",value:function(){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(X.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(X.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Ie){var _e=this;Promise.resolve().then(function(){_e._emitter.emit(X.MEDIA_INFO,Ie)})}},{key:"_onMetaDataArrived",value:function(Ie){var _e=this;Promise.resolve().then(function(){_e._emitter.emit(X.METADATA_ARRIVED,Ie)})}},{key:"_onScriptDataArrived",value:function(Ie){var _e=this;Promise.resolve().then(function(){_e._emitter.emit(X.SCRIPTDATA_ARRIVED,Ie)})}},{key:"_onStatisticsInfo",value:function(Ie){var _e=this;Promise.resolve().then(function(){_e._emitter.emit(X.STATISTICS_INFO,Ie)})}},{key:"_onIOError",value:function(Ie,_e){var Le=this;Promise.resolve().then(function(){Le._emitter.emit(X.IO_ERROR,Ie,_e)})}},{key:"_onDemuxError",value:function(Ie,_e){var Le=this;Promise.resolve().then(function(){Le._emitter.emit(X.DEMUX_ERROR,Ie,_e)})}},{key:"_onRecommendSeekpoint",value:function(Ie){var _e=this;Promise.resolve().then(function(){_e._emitter.emit(X.RECOMMEND_SEEKPOINT,Ie)})}},{key:"_onLoggingConfigChanged",value:function(Ie){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Ie})}},{key:"_onWorkerMessage",value:function(Ie){var _e=Ie.data,Le=_e.data;if(_e.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(_e.msg){case X.INIT_SEGMENT:case X.MEDIA_SEGMENT:this._emitter.emit(_e.msg,Le.type,Le.data);break;case X.LOADING_COMPLETE:case X.RECOVERED_EARLY_EOF:this._emitter.emit(_e.msg);break;case X.MEDIA_INFO:Object.setPrototypeOf(Le,pe.prototype),this._emitter.emit(_e.msg,Le);break;case X.METADATA_ARRIVED:case X.SCRIPTDATA_ARRIVED:case X.STATISTICS_INFO:this._emitter.emit(_e.msg,Le);break;case X.IO_ERROR:case X.DEMUX_ERROR:this._emitter.emit(_e.msg,Le.type,Le.info);break;case X.RECOMMEND_SEEKPOINT:this._emitter.emit(_e.msg,Le);break;case"logcat_callback":c.emitter.emit("log",Le.type,Le.logcat);break;default:break}}}]),jt}(),ut=Rt,Xt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},or=Xt,Zr=function(){function jt(St){Object(O.a)(this,jt),this.TAG="MSEController",this._config=St,this._emitter=new m.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Ct}return Object(E.a)(jt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Ie,_e){this._emitter.addListener(Ie,_e)}},{key:"off",value:function(Ie,_e){this._emitter.removeListener(Ie,_e)}},{key:"attachMediaElement",value:function(Ie){if(this._mediaSource)throw new s("MediaSource has been attached to an HTMLMediaElement!");var _e=this._mediaSource=new window.MediaSource;_e.addEventListener("sourceopen",this.e.onSourceOpen),_e.addEventListener("sourceended",this.e.onSourceEnded),_e.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Ie,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Ie.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Ie=this._mediaSource;for(var _e in this._sourceBuffers){var Le=this._pendingSegments[_e];Le.splice(0,Le.length),this._pendingSegments[_e]=null,this._pendingRemoveRanges[_e]=null,this._lastInitSegments[_e]=null;var Ze=this._sourceBuffers[_e];if(Ze){if(Ie.readyState!=="closed"){try{Ie.removeSourceBuffer(Ze)}catch(it){c.e(this.TAG,it.message)}Ze.removeEventListener("error",this.e.onSourceBufferError),Ze.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[_e]=null,this._sourceBuffers[_e]=null}}if(Ie.readyState==="open")try{Ie.endOfStream()}catch(it){c.e(this.TAG,it.message)}Ie.removeEventListener("sourceopen",this.e.onSourceOpen),Ie.removeEventListener("sourceended",this.e.onSourceEnded),Ie.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(Ie,_e){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Ie),this._pendingSegments[Ie.type].push(Ie);return}var Le=Ie,Ze="".concat(Le.container);Le.codec&&Le.codec.length>0&&(Ze+=";codecs=".concat(Le.codec));var it=!1;if(c.v(this.TAG,"Received Initialization Segment, mimeType: "+Ze),this._lastInitSegments[Le.type]=Le,Ze!==this._mimeTypes[Le.type]){if(this._mimeTypes[Le.type])c.v(this.TAG,"Notice: ".concat(Le.type," mimeType changed, origin: ").concat(this._mimeTypes[Le.type],", target: ").concat(Ze));else{it=!0;try{var ft=this._sourceBuffers[Le.type]=this._mediaSource.addSourceBuffer(Ze);ft.addEventListener("error",this.e.onSourceBufferError),ft.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Nt){c.e(this.TAG,Nt.message),this._emitter.emit(or.ERROR,{code:Nt.code,msg:Nt.message});return}}this._mimeTypes[Le.type]=Ze}_e||this._pendingSegments[Le.type].push(Le),it||this._sourceBuffers[Le.type]&&!this._sourceBuffers[Le.type].updating&&this._doAppendSegments(),x.safari&&Le.container==="audio/mpeg"&&Le.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Le.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Ie){var _e=Ie;this._pendingSegments[_e.type].push(_e),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Le=this._sourceBuffers[_e.type];Le&&!Le.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Ie){for(var _e in this._sourceBuffers){if(!this._sourceBuffers[_e])continue;var Le=this._sourceBuffers[_e];if(this._mediaSource.readyState==="open")try{Le.abort()}catch(Mr){c.e(this.TAG,Mr.message)}this._idrList.clear();var Ze=this._pendingSegments[_e];if(Ze.splice(0,Ze.length),this._mediaSource.readyState==="closed")continue;for(var it=0;it<Le.buffered.length;it++){var ft=Le.buffered.start(it),Nt=Le.buffered.end(it);this._pendingRemoveRanges[_e].push({start:ft,end:Nt})}if(Le.updating||this._doRemoveRanges(),x.safari){var Ar=this._lastInitSegments[_e];Ar&&(this._pendingSegments[_e].push(Ar),Le.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Ie=this._mediaSource,_e=this._sourceBuffers;if(!Ie||Ie.readyState!=="open"){Ie&&Ie.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}_e.video&&_e.video.updating||_e.audio&&_e.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Ie.endOfStream())}},{key:"getNearestKeyframe",value:function(Ie){return this._idrList.getLastSyncPointBeforeDts(Ie)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Ie=this._mediaElement.currentTime;for(var _e in this._sourceBuffers){var Le=this._sourceBuffers[_e];if(Le){var Ze=Le.buffered;if(Ze.length>=1&&Ie-Ze.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Ie=this._mediaElement.currentTime;for(var _e in this._sourceBuffers){var Le=this._sourceBuffers[_e];if(Le){for(var Ze=Le.buffered,it=!1,ft=0;ft<Ze.length;ft++){var Nt=Ze.start(ft),Ar=Ze.end(ft);if(Nt<=Ie&&Ie<Ar+3){if(Ie-Nt>=this._config.autoCleanupMaxBackwardDuration){it=!0;var Mr=Ie-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[_e].push({start:Nt,end:Mr})}}else Ar<Ie&&(it=!0,this._pendingRemoveRanges[_e].push({start:Nt,end:Ar}))}it&&!Le.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Ie=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Ie.video&&Ie.video.updating||Ie.audio&&Ie.audio.updating)return;var _e=this._mediaSource.duration,Le=this._pendingMediaDuration;Le>0&&(isNaN(_e)||Le>_e)&&(c.v(this.TAG,"Update MediaSource duration from ".concat(_e," to ").concat(Le)),this._mediaSource.duration=Le),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Ie in this._pendingRemoveRanges){if(!this._sourceBuffers[Ie]||this._sourceBuffers[Ie].updating)continue;for(var _e=this._sourceBuffers[Ie],Le=this._pendingRemoveRanges[Ie];Le.length&&!_e.updating;){var Ze=Le.shift();_e.remove(Ze.start,Ze.end)}}}},{key:"_doAppendSegments",value:function(){var Ie=this._pendingSegments;for(var _e in Ie){if(!this._sourceBuffers[_e]||this._sourceBuffers[_e].updating)continue;if(Ie[_e].length>0){var Le=Ie[_e].shift();if(Le.timestampOffset){var Ze=this._sourceBuffers[_e].timestampOffset,it=Le.timestampOffset/1e3,ft=Math.abs(Ze-it);ft>.1&&(c.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(Ze," to ").concat(it)),this._sourceBuffers[_e].timestampOffset=it),delete Le.timestampOffset}if(!Le.data||Le.data.byteLength===0)continue;try{this._sourceBuffers[_e].appendBuffer(Le.data),this._isBufferFull=!1,_e==="video"&&Le.hasOwnProperty("info")&&this._idrList.appendArray(Le.info.syncPoints)}catch(Nt){this._pendingSegments[_e].unshift(Le),Nt.code===22?(this._isBufferFull||this._emitter.emit(or.BUFFER_FULL),this._isBufferFull=!0):(c.e(this.TAG,Nt.message),this._emitter.emit(or.ERROR,{code:Nt.code,msg:Nt.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 Ie=this._pendingSourceBufferInit;Ie.length;){var _e=Ie.shift();this.appendInitSegment(_e,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(or.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 Ie=this._pendingSegments;return Ie.video.length>0||Ie.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Ie=this._pendingRemoveRanges;return Ie.video.length>0||Ie.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(or.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Ie){c.e(this.TAG,"SourceBuffer Error: ".concat(Ie))}}]),jt}(),ar=Zr,dr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},er={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:Ee.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ee.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ee.CODEC_UNSUPPORTED},Ht=function(){function jt(St,Ie){if(Object(O.a)(this,jt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new m.a,this._config=Y(),typeof Ie=="object"&&Object.assign(this._config,Ie),St.type.toLowerCase()!=="flv")throw new t("FlvPlayer requires an flv MediaDataSource input!");St.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=St,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 _e=x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661);this._alwaysSeekKeyframe=!!(_e||x.msedge||x.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(E.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(Ie,_e){var Le=this;Ie===ge.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Le._emitter.emit(ge.MEDIA_INFO,Le.mediaInfo)}):Ie===ge.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Le._emitter.emit(ge.STATISTICS_INFO,Le.statisticsInfo)})),this._emitter.addListener(Ie,_e)}},{key:"off",value:function(Ie,_e){this._emitter.removeListener(Ie,_e)}},{key:"attachMediaElement",value:function(Ie){var _e=this;if(this._mediaElement=Ie,Ie.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Ie.addEventListener("seeking",this.e.onvSeeking),Ie.addEventListener("canplay",this.e.onvCanPlay),Ie.addEventListener("stalled",this.e.onvStalled),Ie.addEventListener("progress",this.e.onvProgress),this._msectl=new ar(this._config),this._msectl.on(or.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(or.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(or.SOURCE_OPEN,function(){_e._mseSourceOpened=!0,_e._hasPendingLoad&&(_e._hasPendingLoad=!1,_e.load())}),this._msectl.on(or.ERROR,function(Le){_e._emitter.emit(ge.ERROR,dr.MEDIA_ERROR,er.MEDIA_MSE_ERROR,Le)}),this._msectl.attachMediaElement(Ie),this._pendingSeekTime!=null)try{Ie.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Le){}}},{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 Ie=this;if(!this._mediaElement)throw new s("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new s("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new ut(this._mediaDataSource,this._config),this._transmuxer.on(X.INIT_SEGMENT,function(_e,Le){Ie._msectl.appendInitSegment(Le)}),this._transmuxer.on(X.MEDIA_SEGMENT,function(_e,Le){if(Ie._msectl.appendMediaSegment(Le),Ie._config.lazyLoad&&!Ie._config.isLive){var Ze=Ie._mediaElement.currentTime;Le.info.endDts>=(Ze+Ie._config.lazyLoadMaxDuration)*1e3&&(Ie._progressChecker==null&&(c.v(Ie.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Ie._suspendTransmuxer()))}}),this._transmuxer.on(X.LOADING_COMPLETE,function(){Ie._msectl.endOfStream(),Ie._emitter.emit(ge.LOADING_COMPLETE)}),this._transmuxer.on(X.RECOVERED_EARLY_EOF,function(){Ie._emitter.emit(ge.RECOVERED_EARLY_EOF)}),this._transmuxer.on(X.IO_ERROR,function(_e,Le){Ie._emitter.emit(ge.ERROR,dr.NETWORK_ERROR,_e,Le)}),this._transmuxer.on(X.DEMUX_ERROR,function(_e,Le){Ie._emitter.emit(ge.ERROR,dr.MEDIA_ERROR,_e,{code:-1,msg:Le})}),this._transmuxer.on(X.MEDIA_INFO,function(_e){Ie._mediaInfo=_e,Ie._emitter.emit(ge.MEDIA_INFO,Object.assign({},_e))}),this._transmuxer.on(X.METADATA_ARRIVED,function(_e){Ie._emitter.emit(ge.METADATA_ARRIVED,_e)}),this._transmuxer.on(X.SCRIPTDATA_ARRIVED,function(_e){Ie._emitter.emit(ge.SCRIPTDATA_ARRIVED,_e)}),this._transmuxer.on(X.STATISTICS_INFO,function(_e){Ie._statisticsInfo=Ie._fillStatisticsInfo(_e),Ie._emitter.emit(ge.STATISTICS_INFO,Object.assign({},Ie._statisticsInfo))}),this._transmuxer.on(X.RECOMMEND_SEEKPOINT,function(_e){Ie._mediaElement&&!Ie._config.accurateSeek&&(Ie._requestSetTime=!0,Ie._mediaElement.currentTime=_e/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(Ie){this._mediaElement.volume=Ie}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Ie){this._mediaElement.muted=Ie}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Ie){this._mediaElement?this._internalSeek(Ie):this._pendingSeekTime=Ie}},{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(Ie){if(Ie.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Ie;var _e=!0,Le=0,Ze=0;if(this._mediaElement.getVideoPlaybackQuality){var it=this._mediaElement.getVideoPlaybackQuality();Le=it.totalVideoFrames,Ze=it.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Le=this._mediaElement.webkitDecodedFrameCount,Ze=this._mediaElement.webkitDroppedFrameCount):_e=!1;return _e&&(Ie.decodedFrames=Le,Ie.droppedFrames=Ze),Ie}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Ie=this._mediaElement.buffered,_e=this._mediaElement.currentTime,Le=0,Ze=0,it=0;it<Ie.length;it++){var ft=Ie.start(it),Nt=Ie.end(it);if(ft<=_e&&_e<Nt){Le=ft,Ze=Nt;break}}Ze>=_e+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 Ie=this._mediaElement.currentTime,_e=this._mediaElement.buffered,Le=!1,Ze=0;Ze<_e.length;Ze++){var it=_e.start(Ze),ft=_e.end(Ze);if(Ie>=it&&Ie<ft){Ie>=ft-this._config.lazyLoadRecoverDuration&&(Le=!0);break}}Le&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Le&&(c.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Ie){for(var _e=this._mediaElement.buffered,Le=0;Le<_e.length;Le++){var Ze=_e.start(Le),it=_e.end(Le);if(Ie>=Ze&&Ie<it)return!0}return!1}},{key:"_internalSeek",value:function(Ie){var _e=this._isTimepointBuffered(Ie),Le=!1,Ze=0;if(Ie<1&&this._mediaElement.buffered.length>0){var it=this._mediaElement.buffered.start(0);(it<1&&Ie<it||x.safari)&&(Le=!0,Ze=x.safari?.1:it)}if(Le)this._requestSetTime=!0,this._mediaElement.currentTime=Ze;else if(_e){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Ie;else{var ft=this._msectl.getNearestKeyframe(Math.floor(Ie*1e3));this._requestSetTime=!0,ft!=null?this._mediaElement.currentTime=ft.dts/1e3:this._mediaElement.currentTime=Ie}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Ie),this._transmuxer.seek(Math.floor(Ie*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ie)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Ie=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Ie)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Ie),this._transmuxer.seek(Math.floor(Ie*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ie))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Ie){var _e=this._mediaElement;if(Ie||!this._receivedCanPlay||_e.readyState<2){var Le=_e.buffered;Le.length>0&&_e.currentTime<Le.start(0)&&(c.w(this.TAG,"Playback seems stuck at ".concat(_e.currentTime,", seek to ").concat(Le.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Le.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Ie){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Ie){var _e=this._mediaElement.currentTime,Le=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(_e<1&&Le.length>0){var Ze=Le.start(0);if(Ze<1&&_e<Ze||x.safari){this._requestSetTime=!0,this._mediaElement.currentTime=x.safari?.1:Ze;return}}if(this._isTimepointBuffered(_e)){if(this._alwaysSeekKeyframe){var it=this._msectl.getNearestKeyframe(Math.floor(_e*1e3));it!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=it.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:_e,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Ie){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Ie){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Ie){this._checkAndResumeStuckPlayback()}}]),jt}(),dt=Ht,Hr=function(){function jt(St,Ie){if(Object(O.a)(this,jt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new m.a,this._config=Y(),typeof Ie=="object"&&Object.assign(this._config,Ie),St.type.toLowerCase()==="flv")throw new t("NativePlayer does't support flv MediaDataSource input!");if(St.hasOwnProperty("segments"))throw new t("NativePlayer(".concat(St.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=St,this._mediaElement=null}return Object(E.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(Ie,_e){var Le=this;Ie===ge.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Le._emitter.emit(ge.MEDIA_INFO,Le.mediaInfo)}):Ie===ge.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Le._emitter.emit(ge.STATISTICS_INFO,Le.statisticsInfo)})),this._emitter.addListener(Ie,_e)}},{key:"off",value:function(Ie,_e){this._emitter.removeListener(Ie,_e)}},{key:"attachMediaElement",value:function(Ie){if(this._mediaElement=Ie,Ie.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Ie.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(_e){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new s("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Ie){this._mediaElement.volume=Ie}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Ie){this._mediaElement.muted=Ie}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Ie){this._mediaElement?this._mediaElement.currentTime=Ie:this._pendingSeekTime=Ie}},{key:"mediaInfo",get:function(){var Ie=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",_e={mimeType:Ie+this._mediaDataSource.type};return this._mediaElement&&(_e.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(_e.width=this._mediaElement.videoWidth,_e.height=this._mediaElement.videoHeight)),_e}},{key:"statisticsInfo",get:function(){var Ie={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Ie;var _e=!0,Le=0,Ze=0;if(this._mediaElement.getVideoPlaybackQuality){var it=this._mediaElement.getVideoPlaybackQuality();Le=it.totalVideoFrames,Ze=it.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Le=this._mediaElement.webkitDecodedFrameCount,Ze=this._mediaElement.webkitDroppedFrameCount):_e=!1;return _e&&(Ie.decodedFrames=Le,Ie.droppedFrames=Ze),Ie}},{key:"_onvLoadedMetadata",value:function(Ie){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(ge.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(ge.STATISTICS_INFO,this.statisticsInfo)}}]),jt}(),dn=Hr;A.install();function Nn(jt,St){var Ie=jt;if(Ie==null||typeof Ie!="object")throw new t("MediaDataSource must be an javascript object!");if(!Ie.hasOwnProperty("type"))throw new t("MediaDataSource must has type field to indicate video file type!");switch(Ie.type){case"flv":return new dt(Ie,St);default:return new dn(Ie,St)}}function Vn(){return ue.supportMSEH264Playback()}function gi(){return ue.getFeatureList()}var bn={};bn.createPlayer=Nn,bn.isSupported=Vn,bn.getFeatureList=gi,bn.BaseLoader=h,bn.LoaderStatus=l,bn.LoaderErrors=u,bn.Events=ge,bn.ErrorTypes=dr,bn.ErrorDetails=er,bn.FlvPlayer=dt,bn.NativePlayer=dn,bn.LoggingControl=De,Object.defineProperty(bn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Mn=B.a=bn},GVMX:function(H,B,d){var O=d("JEkh"),E=O.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});H.exports=E},GdRQ:function(H,B,d){"use strict";function O(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(S){return typeof S}:O=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},O(x)}Object.defineProperty(B,"__esModule",{value:!0}),B.isMac=l,B.isWindows=u,B.isIOS=h,B.isSafari=p,B.isIE=g,B.isEdge=v,B.isFirefox=y,B.hasScrollbarGutter=B.supportsImageMetadata=B.supportsCursorURIs=B.dragThreshold=B.isTouchDevice=void 0;var E=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var x=new WeakMap;return C=function(){return x},x}function A(x){if(x&&x.__esModule)return x;if(x===null||O(x)!=="object"&&typeof x!="function")return{default:x};var T=C();if(T&&T.has(x))return T.get(x);var S={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in x)if(Object.prototype.hasOwnProperty.call(x,_)){var I=b?Object.getOwnPropertyDescriptor(x,_):null;I&&(I.get||I.set)?Object.defineProperty(S,_,I):S[_]=x[_]}return S.default=x,T&&T.set(x,S),S}var w="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;B.isTouchDevice=w,window.addEventListener("touchstart",function x(){B.isTouchDevice=w=!0,window.removeEventListener("touchstart",x,!1)},!1);var m=10*(window.devicePixelRatio||1);B.dragThreshold=m;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?(E.Info("Data URI scheme cursor supported"),f=!0):E.Warn("Data URI scheme cursor not supported")}catch(x){E.Error("Data URI scheme cursor test exception: "+x)}var o=f;B.supportsCursorURIs=o;var r=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),r=!0}catch(x){}var i=r;B.supportsImageMetadata=i;var n=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var s=document.createElement("div");e.appendChild(s);var t=e.offsetWidth-s.offsetWidth;e.parentNode.removeChild(e),n=t!=0}catch(x){E.Error("Scrollbar test exception: "+x)}var a=n;B.hasScrollbarGutter=a;function l(){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 g(){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,B,d){var O=d("bYtY"),E=d("6Ic6"),C=d("IwbS"),A=d("y+Vt"),w=d("sK/D"),m=w.createClipPath,f=["itemStyle"],c=["emphasis","itemStyle"],o=["color","color0","borderColor","borderColor0"],r=E.extend({type:"candlestick",render:function(p,g,v){this.group.removeClipPath(),this._updateDrawMode(p),this._isLargeDraw?this._renderLarge(p):this._renderNormal(p)},incrementalPrepareRender:function(p,g,v){this._clear(),this._updateDrawMode(p)},incrementalRender:function(p,g,v,y){this._isLargeDraw?this._incrementalRenderLarge(p,g):this._incrementalRenderNormal(p,g)},_updateDrawMode:function(p){var g=p.pipelineContext.large;(this._isLargeDraw==null||g^this._isLargeDraw)&&(this._isLargeDraw=g,this._clear())},_renderNormal:function(p){var g=p.getData(),v=this._data,y=this.group,x=g.getLayout("isSimpleBox"),T=p.get("clip",!0),S=p.coordinateSystem,b=S.getArea&&S.getArea();this._data||y.removeAll(),g.diff(v).add(function(_){if(g.hasValue(_)){var I,L=g.getItemLayout(_);if(T&&e(b,L))return;I=n(L,_,!0),C.initProps(I,{shape:{points:L.ends}},p,_),s(I,g,_,x),y.add(I),g.setItemGraphicEl(_,I)}}).update(function(_,I){var L=v.getItemGraphicEl(I);if(!g.hasValue(_)){y.remove(L);return}var N=g.getItemLayout(_);if(T&&e(b,N)){y.remove(L);return}L?C.updateProps(L,{shape:{points:N.ends}},p,_):L=n(N,_),s(L,g,_,x),y.add(L),g.setItemGraphicEl(_,L)}).remove(function(_){var I=v.getItemGraphicEl(_);I&&y.remove(I)}).execute(),this._data=g},_renderLarge:function(p){this._clear(),l(p,this.group);var g=p.get("clip",!0)?m(p.coordinateSystem,!1,p):null;g?this.group.setClipPath(g):this.group.removeClipPath()},_incrementalRenderNormal:function(p,g){for(var v=g.getData(),y=v.getLayout("isSimpleBox"),x;(x=p.next())!=null;){var T,S=v.getItemLayout(x);T=n(S,x),s(T,v,x,y),T.incremental=!0,this.group.add(T)}},_incrementalRenderLarge:function(p,g){l(g,this.group,!0)},remove:function(p){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:O.noop}),i=A.extend({type:"normalCandlestickBox",shape:{},buildPath:function(p,g){var v=g.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,g,v){var y=p.ends;return new i({shape:{points:v?t(y,p):y},z2:100})}function e(p,g){for(var v=!0,y=0;y<g.ends.length;y++)if(p.contain(g.ends[y][0],g.ends[y][1])){v=!1;break}return v}function s(p,g,v,y){var x=g.getItemModel(v),T=x.getModel(f),S=g.getItemVisual(v,"color"),b=g.getItemVisual(v,"borderColor")||S,_=T.getItemStyle(o);p.useStyle(_),p.style.strokeNoScale=!0,p.style.fill=S,p.style.stroke=b,p.__simpleBox=y;var I=x.getModel(c).getItemStyle();C.setHoverStyle(p,I)}function t(p,g){return O.map(p,function(v){return v=v.slice(),v[1]=g.initBaseline,v})}var a=A.extend({type:"largeCandlestickBox",shape:{},buildPath:function(p,g){for(var v=g.points,y=0;y<v.length;)if(this.__sign===v[y++]){var x=v[y++];p.moveTo(x,v[y++]),p.lineTo(x,v[y++])}else y+=3}});function l(p,g,v){var y=p.getData(),x=y.getLayout("largePoints"),T=new a({shape:{points:x},__sign:1});g.add(T);var S=new a({shape:{points:x},__sign:-1});g.add(S),u(1,T,p,y),u(-1,S,p,y),v&&(T.incremental=!0,S.incremental=!0)}function u(p,g,v,y){var x=p>0?"P":"N",T=y.getVisual("borderColor"+x)||y.getVisual("color"+x),S=v.getModel(f).getItemStyle(o);g.useStyle(S),g.style.fill=null,g.style.stroke=T}var h=r;H.exports=h},Gev7:function(H,B,d){var O=d("bYtY"),E=d("K2GJ"),C=d("1bdT"),A=d("ni6a");function w(f){f=f||{},C.call(this,f);for(var c in f)f.hasOwnProperty(c)&&c!=="style"&&(this[c]=f[c]);this.style=new E(f.style,this),this._rect=null,this.__clipPaths=null}w.prototype={constructor:w,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(c){},afterBrush:function(c){},brush:function(c,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 E(c,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(w,C),O.mixin(w,A);var m=w;H.exports=m},GrNh:function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("6Ic6");function A(r,i,n,e){var s=i.getData(),t=this.dataIndex,a=s.getName(t),l=i.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:r,name:a,seriesId:i.id}),s.each(function(u){w(s.getItemGraphicEl(u),s.getItemLayout(u),i.isSelected(s.getName(u)),l,n)})}function w(r,i,n,e,s){var t=(i.startAngle+i.endAngle)/2,a=Math.cos(t),l=Math.sin(t),u=n?e:0,h=[a*u,l*u];s?r.animate().when(200,{position:h}).start("bounceOut"):r.attr("position",h)}function m(r,i){E.Group.call(this);var n=new E.Sector({z2:2}),e=new E.Polyline,s=new E.Text;this.add(n),this.add(e),this.add(s),this.updateData(r,i,!0)}var f=m.prototype;f.updateData=function(r,i,n){var e=this.childAt(0),s=this.childAt(1),t=this.childAt(2),a=r.hostModel,l=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 g=a.getShallow("animationType");g==="scale"?(e.shape.r=u.r0,E.initProps(e,{shape:{r:u.r}},a,i)):(e.shape.endAngle=u.startAngle,E.updateProps(e,{shape:{endAngle:u.endAngle}},a,i))}else p==="expansion"?e.setShape(h):E.updateProps(e,{shape:h},a,i);var v=r.getItemVisual(i,"color");e.useStyle(O.defaults({lineJoin:"bevel",fill:v},l.getModel("itemStyle").getItemStyle())),e.hoverStyle=l.getModel("emphasis.itemStyle").getItemStyle();var y=l.getShallow("cursor");y&&e.attr("cursor",y),w(this,r.getItemLayout(i),a.isSelected(r.getName(i)),a.get("selectedOffset"),a.get("animation"));var x=!n&&p==="transition";this._updateLabel(r,i,x),this.highDownOnUpdate=a.get("silent")?null:function(T,S){var b=a.isAnimationEnabled()&&l.get("hoverAnimation");S==="emphasis"?(s.ignore=s.hoverIgnore,t.ignore=t.hoverIgnore,b&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r+a.get("hoverOffset")}},300,"elasticOut"))):(s.ignore=s.normalIgnore,t.ignore=t.normalIgnore,b&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r}},300,"elasticOut")))},E.setHoverStyle(this)},f._updateLabel=function(r,i,n){var e=this.childAt(1),s=this.childAt(2),t=r.hostModel,a=r.getItemModel(i),l=r.getItemLayout(i),u=l.label,h=r.getItemVisual(i,"color");if(!u||isNaN(u.x)||isNaN(u.y)){s.ignore=s.normalIgnore=s.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var p={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},g={x:u.x,y:u.y};n?(E.updateProps(e,{shape:p},t,i),E.updateProps(s,{style:g},t,i)):(e.attr({shape:p}),s.attr({style:g})),s.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var v=a.getModel("label"),y=a.getModel("emphasis.label"),x=a.getModel("labelLine"),T=a.getModel("emphasis.labelLine"),h=r.getItemVisual(i,"color");E.setLabelStyle(s.style,s.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")}),s.ignore=s.normalIgnore=!v.get("show"),s.hoverIgnore=!y.get("show"),e.ignore=e.normalIgnore=!x.get("show"),e.hoverIgnore=!T.get("show"),e.setStyle({stroke:h,opacity:r.getItemVisual(i,"opacity")}),e.setStyle(x.getModel("lineStyle").getLineStyle()),e.hoverStyle=T.getModel("lineStyle").getLineStyle();var S=x.get("smooth");S&&S===!0&&(S=.4),e.setShape({smooth:S})},O.inherits(m,E.Group);var c=C.extend({type:"pie",init:function(){var r=new E.Group;this._sectorGroup=r},render:function(r,i,n,e){if(e&&e.from===this.uid)return;var s=r.getData(),t=this._data,a=this.group,l=i.get("animation"),u=!t,h=r.get("animationType"),p=r.get("animationTypeUpdate"),g=O.curry(A,this.uid,r,l,n),v=r.get("selectedMode");if(s.diff(t).add(function(b){var _=new m(s,b);u&&h!=="scale"&&_.eachChild(function(I){I.stopAnimation(!0)}),v&&_.on("click",g),s.setItemGraphicEl(b,_),a.add(_)}).update(function(b,_){var I=t.getItemGraphicEl(_);!u&&p!=="transition"&&I.eachChild(function(L){L.stopAnimation(!0)}),I.updateData(s,b),I.off("click"),v&&I.on("click",g),a.add(I),s.setItemGraphicEl(b,I)}).remove(function(b){var _=t.getItemGraphicEl(b);a.remove(_)}).execute(),l&&s.count()>0&&(u?h!=="scale":p!=="transition")){for(var y=s.getItemLayout(0),x=1;isNaN(y.startAngle)&&x<s.count();++x)y=s.getItemLayout(x);var T=Math.max(n.getWidth(),n.getHeight())/2,S=O.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(y.cx,y.cy,T,y.startAngle,y.clockwise,S,r,u))}else a.removeClipPath();this._data=s},dispose:function(){},_createClipPath:function(r,i,n,e,s,t,a,l){var u=new E.Sector({shape:{cx:r,cy:i,r0:0,r:n,startAngle:e,endAngle:e,clockwise:s}}),h=l?E.initProps:E.updateProps;return h(u,{shape:{endAngle:e+(s?1:-1)*Math.PI*2}},a,t),u},containPoint:function(r,i){var n=i.getData(),e=n.getItemLayout(0);if(e){var s=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(s*s+t*t);return a<=e.r&&a>=e.r0}}}),o=c;H.exports=o},Gytx:function(H,B){H.exports=function(O,E,C,A){var w=C?C.call(A,O,E):void 0;if(w!==void 0)return!!w;if(O===E)return!0;if(typeof O!="object"||!O||typeof E!="object"||!E)return!1;var m=Object.keys(O),f=Object.keys(E);if(m.length!==f.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(E),o=0;o<m.length;o++){var r=m[o];if(!c(r))return!1;var i=O[r],n=E[r];if(w=C?C.call(A,i,n,r):void 0,w===!1||w===void 0&&i!==n)return!1}return!0}},GzdX:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("q1tI"),A=d.n(C),w=d("rePB"),m=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),s=d("4IlW");function t(U){var F=U.pageXOffset,j="scrollLeft";if(typeof F!="number"){var W=U.document;F=W.documentElement[j],typeof F!="number"&&(F=W.body[j])}return F}function a(U){var F,j,W=U.ownerDocument,V=W.body,z=W&&W.documentElement,Y=U.getBoundingClientRect();return F=Y.left,j=Y.top,F-=z.clientLeft||V.clientLeft||0,j-=z.clientTop||V.clientTop||0,{left:F,top:j}}function l(U){var F=a(U),j=U.ownerDocument,W=j.defaultView||j.parentWindow;return F.left+=t(W),F.left}function u(U){var F=h();return function(){var W=Object(r.a)(U),V;if(F){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 F=u(j);function j(){var W;return Object(m.a)(this,j),W=F.apply(this,arguments),W.onHover=function(V){var z=W.props,Y=z.onHover,$=z.index;Y(V,$)},W.onClick=function(V){var z=W.props,Y=z.onClick,$=z.index;Y(V,$)},W.onKeyDown=function(V){var z=W.props,Y=z.onClick,$=z.index;V.keyCode===13&&Y(V,$)},W}return Object(f.a)(j,[{key:"getClassName",value:function(){var V=this.props,z=V.prefixCls,Y=V.index,$=V.value,ue=V.allowHalf,ne=V.focused,ge=Y+1,Oe=z;return $===0&&Y===0&&ne?Oe+=" ".concat(z,"-focused"):ue&&$+.5>=ge&&$<ge?(Oe+=" ".concat(z,"-half ").concat(z,"-active"),ne&&(Oe+=" ".concat(z,"-focused"))):(Oe+=ge<=$?" ".concat(z,"-full"):" ".concat(z,"-zero"),ge===$&&ne&&(Oe+=" ".concat(z,"-focused"))),Oe}},{key:"render",value:function(){var V=this.onHover,z=this.onClick,Y=this.onKeyDown,$=this.props,ue=$.disabled,ne=$.prefixCls,ge=$.character,Oe=$.characterRender,De=$.index,He=$.count,pe=$.value,Ue=typeof ge=="function"?ge(this.props):ge,oe=A.a.createElement("li",{className:this.getClassName()},A.a.createElement("div",{onClick:ue?null:z,onKeyDown:ue?null:Y,onMouseMove:ue?null:V,role:"radio","aria-checked":pe>De?"true":"false","aria-posinset":De+1,"aria-setsize":He,tabIndex:ue?-1:0},A.a.createElement("div",{className:"".concat(ne,"-first")},Ue),A.a.createElement("div",{className:"".concat(ne,"-second")},Ue)));return Oe&&(oe=Oe(oe,this.props)),oe}}]),j}(A.a.Component);function g(U,F){var j=Object.keys(U);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(U);F&&(W=W.filter(function(V){return Object.getOwnPropertyDescriptor(U,V).enumerable})),j.push.apply(j,W)}return j}function v(U){for(var F=1;F<arguments.length;F++){var j=arguments[F]!=null?arguments[F]:{};F%2?g(Object(j),!0).forEach(function(W){Object(w.a)(U,W,j[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(j)):g(Object(j)).forEach(function(W){Object.defineProperty(U,W,Object.getOwnPropertyDescriptor(j,W))})}return U}function y(U){var F=x();return function(){var W=Object(r.a)(U),V;if(F){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 x(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(U){return!1}}function T(){}var S=function(U){Object(c.a)(j,U);var F=y(j);function j(W){var V;Object(m.a)(this,j),V=F.call(this,W),V.onHover=function(Y,$){var ue=V.props.onHoverChange,ne=V.getStarValue($,Y.pageX),ge=V.state.cleanedValue;ne!==ge&&V.setState({hoverValue:ne,cleanedValue:null}),ue(ne)},V.onMouseLeave=function(){var Y=V.props.onHoverChange;V.setState({hoverValue:void 0,cleanedValue:null}),Y(void 0)},V.onClick=function(Y,$){var ue=V.props.allowClear,ne=V.state.value,ge=V.getStarValue($,Y.pageX),Oe=!1;ue&&(Oe=ge===ne),V.onMouseLeave(),V.changeValue(Oe?0:ge),V.setState({cleanedValue:Oe?ge:null})},V.onFocus=function(){var Y=V.props.onFocus;V.setState({focused:!0}),Y&&Y()},V.onBlur=function(){var Y=V.props.onBlur;V.setState({focused:!1}),Y&&Y()},V.onKeyDown=function(Y){var $=Y.keyCode,ue=V.props,ne=ue.count,ge=ue.allowHalf,Oe=ue.onKeyDown,De=ue.direction,He=De==="rtl",pe=V.state.value;$===s.a.RIGHT&&pe<ne&&!He?(ge?pe+=.5:pe+=1,V.changeValue(pe),Y.preventDefault()):$===s.a.LEFT&&pe>0&&!He||$===s.a.RIGHT&&pe>0&&He?(ge?pe-=.5:pe-=1,V.changeValue(pe),Y.preventDefault()):$===s.a.LEFT&&pe<ne&&He&&(ge?pe+=.5:pe+=1,V.changeValue(pe),Y.preventDefault()),Oe&&Oe(Y)},V.saveRef=function(Y){return function($){V.stars[Y]=$}},V.saveRate=function(Y){V.rate=Y};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,Y=V.disabled;z&&!Y&&this.focus()}},{key:"getStarDOM",value:function(V){return Object(i.a)(this.stars[V])}},{key:"getStarValue",value:function(V,z){var Y=this.props,$=Y.allowHalf,ue=Y.direction,ne=ue==="rtl",ge=V+1;if($){var Oe=this.getStarDOM(V),De=l(Oe),He=Oe.clientWidth;(ne&&z-De>He/2||!ne&&z-De<He/2)&&(ge-=.5)}return ge}},{key:"focus",value:function(){var V=this.props.disabled;V||this.rate.focus()}},{key:"blur",value:function(){var V=this.props.disabled;V||this.rate.blur()}},{key:"changeValue",value:function(V){var z=this.props.onChange;"value"in this.props||this.setState({value:V}),z(V)}},{key:"render",value:function(){for(var V=this.props,z=V.count,Y=V.allowHalf,$=V.style,ue=V.prefixCls,ne=V.disabled,ge=V.className,Oe=V.character,De=V.characterRender,He=V.tabIndex,pe=V.direction,Ue=this.state,oe=Ue.value,ee=Ue.hoverValue,Xe=Ue.focused,se=[],Q=ne?"".concat(ue,"-disabled"):"",G=0;G<z;G+=1)se.push(A.a.createElement(p,{ref:this.saveRef(G),index:G,count:z,disabled:ne,prefixCls:"".concat(ue,"-star"),allowHalf:Y,value:ee===void 0?oe:ee,onClick:this.onClick,onHover:this.onHover,key:G,character:Oe,characterRender:De,focused:Xe}));var J=e()(ue,Q,ge,Object(w.a)({},"".concat(ue,"-rtl"),pe==="rtl"));return A.a.createElement("ul",{className:J,style:$,onMouseLeave:ne?null:this.onMouseLeave,tabIndex:ne?-1:He,onFocus:ne?null:this.onFocus,onBlur:ne?null:this.onBlur,onKeyDown:ne?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},se)}}],[{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);S.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:T,character:"\u2605",onHoverChange:T,tabIndex:0,direction:"ltr"};var b=S,_=b,I=d("Lerx"),L=d.n(I),N=d("3S7+"),D=d("H84U"),R=function(U,F){var j={};for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&F.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++)F.indexOf(W[V])<0&&Object.prototype.propertyIsEnumerable.call(U,W[V])&&(j[W[V]]=U[W[V]]);return j},P=C.forwardRef(function(U,F){var j=U.prefixCls,W=U.tooltips,V=R(U,["prefixCls","tooltips"]),z=function(Oe,De){var He=De.index;return W?C.createElement(N.a,{title:W[He]},Oe):Oe},Y=C.useContext(D.b),$=Y.getPrefixCls,ue=Y.direction,ne=$("rate",j);return C.createElement(_,E()({ref:F,characterRender:z},V,{prefixCls:ne,direction:ue}))});P.displayName="Rate",P.defaultProps={character:C.createElement(L.a,null)};var M=B.a=P},H6uX:function(H,B){var d=Array.prototype.slice,O=function(m){this._$handlers={},this._$eventProcessor=m};O.prototype={constructor:O,one:function(m,f,c,o){return C(this,m,f,c,o,!0)},on:function(m,f,c,o){return C(this,m,f,c,o,!1)},isSilent:function(m){var f=this._$handlers;return!f[m]||!f[m].length},off:function(m,f){var c=this._$handlers;if(!m)return this._$handlers={},this;if(f){if(c[m]){for(var o=[],r=0,i=c[m].length;r<i;r++)c[m][r].h!==f&&o.push(c[m][r]);c[m]=o}c[m]&&c[m].length===0&&delete c[m]}else delete c[m];return this},trigger:function(m){var f=this._$handlers[m],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(m,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(m),this},triggerWithContext:function(m){var f=this._$handlers[m],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 s=f[e];if(c&&c.filter&&s.query!=null&&!c.filter(m,s.query)){e++;continue}switch(r){case 1:s.h.call(i);break;case 2:s.h.call(i,o[1]);break;case 3:s.h.call(i,o[1],o[2]);break;default:s.h.apply(i,o);break}s.one?(f.splice(e,1),n--):e++}}return c&&c.afterTrigger&&c.afterTrigger(m),this}};function E(w,m){var f=w._$eventProcessor;return m!=null&&f&&f.normalizeQuery&&(m=f.normalizeQuery(m)),m}function C(w,m,f,c,o,r){var i=w._$handlers;if(typeof f=="function"&&(o=c,c=f,f=null),!c||!m)return w;f=E(w,f),i[m]||(i[m]=[]);for(var n=0;n<i[m].length;n++)if(i[m][n].h===c)return w;var e={h:c,one:r,query:f,ctx:o||w,callAtLast:c.zrEventfulCallAtLast},s=i[m].length-1,t=i[m][s];return t&&t.callAtLast?i[m].splice(s,0,e):i[m].push(e),w}var A=O;H.exports=A},H7XF:function(H,B,d){"use strict";B.byteLength=c,B.toByteArray=r,B.fromByteArray=e;for(var O=[],E=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0,m=A.length;w<m;++w)O[w]=A[w],E[A.charCodeAt(w)]=w;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function f(s){var t=s.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=s.indexOf("=");a===-1&&(a=t);var l=a===t?0:4-a%4;return[a,l]}function c(s){var t=f(s),a=t[0],l=t[1];return(a+l)*3/4-l}function o(s,t,a){return(t+a)*3/4-a}function r(s){var t,a=f(s),l=a[0],u=a[1],h=new C(o(s,l,u)),p=0,g=u>0?l-4:l,v;for(v=0;v<g;v+=4)t=E[s.charCodeAt(v)]<<18|E[s.charCodeAt(v+1)]<<12|E[s.charCodeAt(v+2)]<<6|E[s.charCodeAt(v+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=E[s.charCodeAt(v)]<<2|E[s.charCodeAt(v+1)]>>4,h[p++]=t&255),u===1&&(t=E[s.charCodeAt(v)]<<10|E[s.charCodeAt(v+1)]<<4|E[s.charCodeAt(v+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function i(s){return O[s>>18&63]+O[s>>12&63]+O[s>>6&63]+O[s&63]}function n(s,t,a){for(var l,u=[],h=t;h<a;h+=3)l=(s[h]<<16&16711680)+(s[h+1]<<8&65280)+(s[h+2]&255),u.push(i(l));return u.join("")}function e(s){for(var t,a=s.length,l=a%3,u=[],h=16383,p=0,g=a-l;p<g;p+=h)u.push(n(s,p,p+h>g?g:p+h));return l===1?(t=s[a-1],u.push(O[t>>2]+O[t<<4&63]+"==")):l===2&&(t=(s[a-2]<<8)+s[a-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},HBhm:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},HDXh:function(H,B,d){"use strict";(function(O){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var E=d("H7XF"),C=d("kVK+"),A=d("49sm");B.Buffer=c,B.SlowBuffer=u,B.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:w(),B.kMaxLength=m();function w(){try{var se=new Uint8Array(1);return se.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},se.foo()===42&&typeof se.subarray=="function"&&se.subarray(1,1).byteLength===0}catch(Q){return!1}}function m(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(se,Q){if(m()<Q)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(se=new Uint8Array(Q),se.__proto__=c.prototype):(se===null&&(se=new c(Q)),se.length=Q),se}function c(se,Q,G){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(se,Q,G);if(typeof se=="number"){if(typeof Q=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,se)}return o(this,se,Q,G)}c.poolSize=8192,c._augment=function(se){return se.__proto__=c.prototype,se};function o(se,Q,G,J){if(typeof Q=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Q instanceof ArrayBuffer?t(se,Q,G,J):typeof Q=="string"?e(se,Q,G):a(se,Q)}c.from=function(se,Q,G){return o(null,se,Q,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(se){if(typeof se!="number")throw new TypeError('"size" argument must be a number');if(se<0)throw new RangeError('"size" argument must not be negative')}function i(se,Q,G,J){return r(Q),Q<=0?f(se,Q):G!==void 0?typeof J=="string"?f(se,Q).fill(G,J):f(se,Q).fill(G):f(se,Q)}c.alloc=function(se,Q,G){return i(null,se,Q,G)};function n(se,Q){if(r(Q),se=f(se,Q<0?0:l(Q)|0),!c.TYPED_ARRAY_SUPPORT)for(var G=0;G<Q;++G)se[G]=0;return se}c.allocUnsafe=function(se){return n(null,se)},c.allocUnsafeSlow=function(se){return n(null,se)};function e(se,Q,G){if((typeof G!="string"||G==="")&&(G="utf8"),!c.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var J=h(Q,G)|0;se=f(se,J);var ve=se.write(Q,G);return ve!==J&&(se=se.slice(0,ve)),se}function s(se,Q){var G=Q.length<0?0:l(Q.length)|0;se=f(se,G);for(var J=0;J<G;J+=1)se[J]=Q[J]&255;return se}function t(se,Q,G,J){if(Q.byteLength,G<0||Q.byteLength<G)throw new RangeError("'offset' is out of bounds");if(Q.byteLength<G+(J||0))throw new RangeError("'length' is out of bounds");return G===void 0&&J===void 0?Q=new Uint8Array(Q):J===void 0?Q=new Uint8Array(Q,G):Q=new Uint8Array(Q,G,J),c.TYPED_ARRAY_SUPPORT?(se=Q,se.__proto__=c.prototype):se=s(se,Q),se}function a(se,Q){if(c.isBuffer(Q)){var G=l(Q.length)|0;return se=f(se,G),se.length===0||Q.copy(se,0,0,G),se}if(Q){if(typeof ArrayBuffer!="undefined"&&Q.buffer instanceof ArrayBuffer||"length"in Q)return typeof Q.length!="number"||Xe(Q.length)?f(se,0):s(se,Q);if(Q.type==="Buffer"&&A(Q.data))return s(se,Q.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(se){if(se>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return se|0}function u(se){return+se!=se&&(se=0),c.alloc(+se)}c.isBuffer=function(Q){return!!(Q!=null&&Q._isBuffer)},c.compare=function(Q,G){if(!c.isBuffer(Q)||!c.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(Q===G)return 0;for(var J=Q.length,ve=G.length,de=0,Ce=Math.min(J,ve);de<Ce;++de)if(Q[de]!==G[de]){J=Q[de],ve=G[de];break}return J<ve?-1:ve<J?1:0},c.isEncoding=function(Q){switch(String(Q).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(Q,G){if(!A(Q))throw new TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return c.alloc(0);var J;if(G===void 0)for(G=0,J=0;J<Q.length;++J)G+=Q[J].length;var ve=c.allocUnsafe(G),de=0;for(J=0;J<Q.length;++J){var Ce=Q[J];if(!c.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(ve,de),de+=Ce.length}return ve};function h(se,Q){if(c.isBuffer(se))return se.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(se)||se instanceof ArrayBuffer))return se.byteLength;typeof se!="string"&&(se=""+se);var G=se.length;if(G===0)return 0;for(var J=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return He(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return oe(se).length;default:if(J)return He(se).length;Q=(""+Q).toLowerCase(),J=!0}}c.byteLength=h;function p(se,Q,G){var J=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,Q>>>=0,G<=Q)return"";for(se||(se="utf8");;)switch(se){case"hex":return U(this,Q,G);case"utf8":case"utf-8":return N(this,Q,G);case"ascii":return P(this,Q,G);case"latin1":case"binary":return M(this,Q,G);case"base64":return L(this,Q,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Q,G);default:if(J)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),J=!0}}c.prototype._isBuffer=!0;function g(se,Q,G){var J=se[Q];se[Q]=se[G],se[G]=J}c.prototype.swap16=function(){var Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<Q;G+=2)g(this,G,G+1);return this},c.prototype.swap32=function(){var Q=this.length;if(Q%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<Q;G+=4)g(this,G,G+3),g(this,G+1,G+2);return this},c.prototype.swap64=function(){var Q=this.length;if(Q%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<Q;G+=8)g(this,G,G+7),g(this,G+1,G+6),g(this,G+2,G+5),g(this,G+3,G+4);return this},c.prototype.toString=function(){var Q=this.length|0;return Q===0?"":arguments.length===0?N(this,0,Q):p.apply(this,arguments)},c.prototype.equals=function(Q){if(!c.isBuffer(Q))throw new TypeError("Argument must be a Buffer");return this===Q?!0:c.compare(this,Q)===0},c.prototype.inspect=function(){var Q="",G=B.INSPECT_MAX_BYTES;return this.length>0&&(Q=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(Q+=" ... ")),"<Buffer "+Q+">"},c.prototype.compare=function(Q,G,J,ve,de){if(!c.isBuffer(Q))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),J===void 0&&(J=Q?Q.length:0),ve===void 0&&(ve=0),de===void 0&&(de=this.length),G<0||J>Q.length||ve<0||de>this.length)throw new RangeError("out of range index");if(ve>=de&&G>=J)return 0;if(ve>=de)return-1;if(G>=J)return 1;if(G>>>=0,J>>>=0,ve>>>=0,de>>>=0,this===Q)return 0;for(var Ce=de-ve,Ee=J-G,le=Math.min(Ce,Ee),fe=this.slice(ve,de),xe=Q.slice(G,J),Qe=0;Qe<le;++Qe)if(fe[Qe]!==xe[Qe]){Ce=fe[Qe],Ee=xe[Qe];break}return Ce<Ee?-1:Ee<Ce?1:0};function v(se,Q,G,J,ve){if(se.length===0)return-1;if(typeof G=="string"?(J=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=ve?0:se.length-1),G<0&&(G=se.length+G),G>=se.length){if(ve)return-1;G=se.length-1}else if(G<0)if(ve)G=0;else return-1;if(typeof Q=="string"&&(Q=c.from(Q,J)),c.isBuffer(Q))return Q.length===0?-1:y(se,Q,G,J,ve);if(typeof Q=="number")return Q=Q&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(se,Q,G):Uint8Array.prototype.lastIndexOf.call(se,Q,G):y(se,[Q],G,J,ve);throw new TypeError("val must be string, number or Buffer")}function y(se,Q,G,J,ve){var de=1,Ce=se.length,Ee=Q.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(se.length<2||Q.length<2)return-1;de=2,Ce/=2,Ee/=2,G/=2}function le(Je,Te){return de===1?Je[Te]:Je.readUInt16BE(Te*de)}var fe;if(ve){var xe=-1;for(fe=G;fe<Ce;fe++)if(le(se,fe)===le(Q,xe===-1?0:fe-xe)){if(xe===-1&&(xe=fe),fe-xe+1===Ee)return xe*de}else xe!==-1&&(fe-=fe-xe),xe=-1}else for(G+Ee>Ce&&(G=Ce-Ee),fe=G;fe>=0;fe--){for(var Qe=!0,ot=0;ot<Ee;ot++)if(le(se,fe+ot)!==le(Q,ot)){Qe=!1;break}if(Qe)return fe}return-1}c.prototype.includes=function(Q,G,J){return this.indexOf(Q,G,J)!==-1},c.prototype.indexOf=function(Q,G,J){return v(this,Q,G,J,!0)},c.prototype.lastIndexOf=function(Q,G,J){return v(this,Q,G,J,!1)};function x(se,Q,G,J){G=Number(G)||0;var ve=se.length-G;J?(J=Number(J),J>ve&&(J=ve)):J=ve;var de=Q.length;if(de%2!==0)throw new TypeError("Invalid hex string");J>de/2&&(J=de/2);for(var Ce=0;Ce<J;++Ce){var Ee=parseInt(Q.substr(Ce*2,2),16);if(isNaN(Ee))return Ce;se[G+Ce]=Ee}return Ce}function T(se,Q,G,J){return ee(He(Q,se.length-G),se,G,J)}function S(se,Q,G,J){return ee(pe(Q),se,G,J)}function b(se,Q,G,J){return S(se,Q,G,J)}function _(se,Q,G,J){return ee(oe(Q),se,G,J)}function I(se,Q,G,J){return ee(Ue(Q,se.length-G),se,G,J)}c.prototype.write=function(Q,G,J,ve){if(G===void 0)ve="utf8",J=this.length,G=0;else if(J===void 0&&typeof G=="string")ve=G,J=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(J)?(J=J|0,ve===void 0&&(ve="utf8")):(ve=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var de=this.length-G;if((J===void 0||J>de)&&(J=de),Q.length>0&&(J<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Ce=!1;;)switch(ve){case"hex":return x(this,Q,G,J);case"utf8":case"utf-8":return T(this,Q,G,J);case"ascii":return S(this,Q,G,J);case"latin1":case"binary":return b(this,Q,G,J);case"base64":return _(this,Q,G,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,Q,G,J);default:if(Ce)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ce=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(se,Q,G){return Q===0&&G===se.length?E.fromByteArray(se):E.fromByteArray(se.slice(Q,G))}function N(se,Q,G){G=Math.min(se.length,G);for(var J=[],ve=Q;ve<G;){var de=se[ve],Ce=null,Ee=de>239?4:de>223?3:de>191?2:1;if(ve+Ee<=G){var le,fe,xe,Qe;switch(Ee){case 1:de<128&&(Ce=de);break;case 2:le=se[ve+1],(le&192)===128&&(Qe=(de&31)<<6|le&63,Qe>127&&(Ce=Qe));break;case 3:le=se[ve+1],fe=se[ve+2],(le&192)===128&&(fe&192)===128&&(Qe=(de&15)<<12|(le&63)<<6|fe&63,Qe>2047&&(Qe<55296||Qe>57343)&&(Ce=Qe));break;case 4:le=se[ve+1],fe=se[ve+2],xe=se[ve+3],(le&192)===128&&(fe&192)===128&&(xe&192)===128&&(Qe=(de&15)<<18|(le&63)<<12|(fe&63)<<6|xe&63,Qe>65535&&Qe<1114112&&(Ce=Qe))}}Ce===null?(Ce=65533,Ee=1):Ce>65535&&(Ce-=65536,J.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),J.push(Ce),ve+=Ee}return R(J)}var D=4096;function R(se){var Q=se.length;if(Q<=D)return String.fromCharCode.apply(String,se);for(var G="",J=0;J<Q;)G+=String.fromCharCode.apply(String,se.slice(J,J+=D));return G}function P(se,Q,G){var J="";G=Math.min(se.length,G);for(var ve=Q;ve<G;++ve)J+=String.fromCharCode(se[ve]&127);return J}function M(se,Q,G){var J="";G=Math.min(se.length,G);for(var ve=Q;ve<G;++ve)J+=String.fromCharCode(se[ve]);return J}function U(se,Q,G){var J=se.length;(!Q||Q<0)&&(Q=0),(!G||G<0||G>J)&&(G=J);for(var ve="",de=Q;de<G;++de)ve+=De(se[de]);return ve}function F(se,Q,G){for(var J=se.slice(Q,G),ve="",de=0;de<J.length;de+=2)ve+=String.fromCharCode(J[de]+J[de+1]*256);return ve}c.prototype.slice=function(Q,G){var J=this.length;Q=~~Q,G=G===void 0?J:~~G,Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),G<0?(G+=J,G<0&&(G=0)):G>J&&(G=J),G<Q&&(G=Q);var ve;if(c.TYPED_ARRAY_SUPPORT)ve=this.subarray(Q,G),ve.__proto__=c.prototype;else{var de=G-Q;ve=new c(de,void 0);for(var Ce=0;Ce<de;++Ce)ve[Ce]=this[Ce+Q]}return ve};function j(se,Q,G){if(se%1!==0||se<0)throw new RangeError("offset is not uint");if(se+Q>G)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(Q,G,J){Q=Q|0,G=G|0,J||j(Q,G,this.length);for(var ve=this[Q],de=1,Ce=0;++Ce<G&&(de*=256);)ve+=this[Q+Ce]*de;return ve},c.prototype.readUIntBE=function(Q,G,J){Q=Q|0,G=G|0,J||j(Q,G,this.length);for(var ve=this[Q+--G],de=1;G>0&&(de*=256);)ve+=this[Q+--G]*de;return ve},c.prototype.readUInt8=function(Q,G){return G||j(Q,1,this.length),this[Q]},c.prototype.readUInt16LE=function(Q,G){return G||j(Q,2,this.length),this[Q]|this[Q+1]<<8},c.prototype.readUInt16BE=function(Q,G){return G||j(Q,2,this.length),this[Q]<<8|this[Q+1]},c.prototype.readUInt32LE=function(Q,G){return G||j(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},c.prototype.readUInt32BE=function(Q,G){return G||j(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},c.prototype.readIntLE=function(Q,G,J){Q=Q|0,G=G|0,J||j(Q,G,this.length);for(var ve=this[Q],de=1,Ce=0;++Ce<G&&(de*=256);)ve+=this[Q+Ce]*de;return de*=128,ve>=de&&(ve-=Math.pow(2,8*G)),ve},c.prototype.readIntBE=function(Q,G,J){Q=Q|0,G=G|0,J||j(Q,G,this.length);for(var ve=G,de=1,Ce=this[Q+--ve];ve>0&&(de*=256);)Ce+=this[Q+--ve]*de;return de*=128,Ce>=de&&(Ce-=Math.pow(2,8*G)),Ce},c.prototype.readInt8=function(Q,G){return G||j(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},c.prototype.readInt16LE=function(Q,G){G||j(Q,2,this.length);var J=this[Q]|this[Q+1]<<8;return J&32768?J|4294901760:J},c.prototype.readInt16BE=function(Q,G){G||j(Q,2,this.length);var J=this[Q+1]|this[Q]<<8;return J&32768?J|4294901760:J},c.prototype.readInt32LE=function(Q,G){return G||j(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},c.prototype.readInt32BE=function(Q,G){return G||j(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},c.prototype.readFloatLE=function(Q,G){return G||j(Q,4,this.length),C.read(this,Q,!0,23,4)},c.prototype.readFloatBE=function(Q,G){return G||j(Q,4,this.length),C.read(this,Q,!1,23,4)},c.prototype.readDoubleLE=function(Q,G){return G||j(Q,8,this.length),C.read(this,Q,!0,52,8)},c.prototype.readDoubleBE=function(Q,G){return G||j(Q,8,this.length),C.read(this,Q,!1,52,8)};function W(se,Q,G,J,ve,de){if(!c.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>ve||Q<de)throw new RangeError('"value" argument is out of bounds');if(G+J>se.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(Q,G,J,ve){if(Q=+Q,G=G|0,J=J|0,!ve){var de=Math.pow(2,8*J)-1;W(this,Q,G,J,de,0)}var Ce=1,Ee=0;for(this[G]=Q&255;++Ee<J&&(Ce*=256);)this[G+Ee]=Q/Ce&255;return G+J},c.prototype.writeUIntBE=function(Q,G,J,ve){if(Q=+Q,G=G|0,J=J|0,!ve){var de=Math.pow(2,8*J)-1;W(this,Q,G,J,de,0)}var Ce=J-1,Ee=1;for(this[G+Ce]=Q&255;--Ce>=0&&(Ee*=256);)this[G+Ce]=Q/Ee&255;return G+J},c.prototype.writeUInt8=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,1,255,0),c.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),this[G]=Q&255,G+1};function V(se,Q,G,J){Q<0&&(Q=65535+Q+1);for(var ve=0,de=Math.min(se.length-G,2);ve<de;++ve)se[G+ve]=(Q&255<<8*(J?ve:1-ve))>>>(J?ve:1-ve)*8}c.prototype.writeUInt16LE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8):V(this,Q,G,!0),G+2},c.prototype.writeUInt16BE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>8,this[G+1]=Q&255):V(this,Q,G,!1),G+2};function z(se,Q,G,J){Q<0&&(Q=4294967295+Q+1);for(var ve=0,de=Math.min(se.length-G,4);ve<de;++ve)se[G+ve]=Q>>>(J?ve:3-ve)*8&255}c.prototype.writeUInt32LE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G+3]=Q>>>24,this[G+2]=Q>>>16,this[G+1]=Q>>>8,this[G]=Q&255):z(this,Q,G,!0),G+4},c.prototype.writeUInt32BE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>24,this[G+1]=Q>>>16,this[G+2]=Q>>>8,this[G+3]=Q&255):z(this,Q,G,!1),G+4},c.prototype.writeIntLE=function(Q,G,J,ve){if(Q=+Q,G=G|0,!ve){var de=Math.pow(2,8*J-1);W(this,Q,G,J,de-1,-de)}var Ce=0,Ee=1,le=0;for(this[G]=Q&255;++Ce<J&&(Ee*=256);)Q<0&&le===0&&this[G+Ce-1]!==0&&(le=1),this[G+Ce]=(Q/Ee>>0)-le&255;return G+J},c.prototype.writeIntBE=function(Q,G,J,ve){if(Q=+Q,G=G|0,!ve){var de=Math.pow(2,8*J-1);W(this,Q,G,J,de-1,-de)}var Ce=J-1,Ee=1,le=0;for(this[G+Ce]=Q&255;--Ce>=0&&(Ee*=256);)Q<0&&le===0&&this[G+Ce+1]!==0&&(le=1),this[G+Ce]=(Q/Ee>>0)-le&255;return G+J},c.prototype.writeInt8=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,1,127,-128),c.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),Q<0&&(Q=255+Q+1),this[G]=Q&255,G+1},c.prototype.writeInt16LE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8):V(this,Q,G,!0),G+2},c.prototype.writeInt16BE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>8,this[G+1]=Q&255):V(this,Q,G,!1),G+2},c.prototype.writeInt32LE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8,this[G+2]=Q>>>16,this[G+3]=Q>>>24):z(this,Q,G,!0),G+4},c.prototype.writeInt32BE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),c.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>24,this[G+1]=Q>>>16,this[G+2]=Q>>>8,this[G+3]=Q&255):z(this,Q,G,!1),G+4};function Y(se,Q,G,J,ve,de){if(G+J>se.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function $(se,Q,G,J,ve){return ve||Y(se,Q,G,4,34028234663852886e22,-34028234663852886e22),C.write(se,Q,G,J,23,4),G+4}c.prototype.writeFloatLE=function(Q,G,J){return $(this,Q,G,!0,J)},c.prototype.writeFloatBE=function(Q,G,J){return $(this,Q,G,!1,J)};function ue(se,Q,G,J,ve){return ve||Y(se,Q,G,8,17976931348623157e292,-17976931348623157e292),C.write(se,Q,G,J,52,8),G+8}c.prototype.writeDoubleLE=function(Q,G,J){return ue(this,Q,G,!0,J)},c.prototype.writeDoubleBE=function(Q,G,J){return ue(this,Q,G,!1,J)},c.prototype.copy=function(Q,G,J,ve){if(J||(J=0),!ve&&ve!==0&&(ve=this.length),G>=Q.length&&(G=Q.length),G||(G=0),ve>0&&ve<J&&(ve=J),ve===J)return 0;if(Q.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),Q.length-G<ve-J&&(ve=Q.length-G+J);var de=ve-J,Ce;if(this===Q&&J<G&&G<ve)for(Ce=de-1;Ce>=0;--Ce)Q[Ce+G]=this[Ce+J];else if(de<1e3||!c.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<de;++Ce)Q[Ce+G]=this[Ce+J];else Uint8Array.prototype.set.call(Q,this.subarray(J,J+de),G);return de},c.prototype.fill=function(Q,G,J,ve){if(typeof Q=="string"){if(typeof G=="string"?(ve=G,G=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),Q.length===1){var de=Q.charCodeAt(0);de<256&&(Q=de)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!c.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof Q=="number"&&(Q=Q&255);if(G<0||this.length<G||this.length<J)throw new RangeError("Out of range index");if(J<=G)return this;G=G>>>0,J=J===void 0?this.length:J>>>0,Q||(Q=0);var Ce;if(typeof Q=="number")for(Ce=G;Ce<J;++Ce)this[Ce]=Q;else{var Ee=c.isBuffer(Q)?Q:He(new c(Q,ve).toString()),le=Ee.length;for(Ce=0;Ce<J-G;++Ce)this[Ce+G]=Ee[Ce%le]}return this};var ne=/[^+\/0-9A-Za-z-_]/g;function ge(se){if(se=Oe(se).replace(ne,""),se.length<2)return"";for(;se.length%4!==0;)se=se+"=";return se}function Oe(se){return se.trim?se.trim():se.replace(/^\s+|\s+$/g,"")}function De(se){return se<16?"0"+se.toString(16):se.toString(16)}function He(se,Q){Q=Q||Infinity;for(var G,J=se.length,ve=null,de=[],Ce=0;Ce<J;++Ce){if(G=se.charCodeAt(Ce),G>55295&&G<57344){if(!ve){if(G>56319){(Q-=3)>-1&&de.push(239,191,189);continue}else if(Ce+1===J){(Q-=3)>-1&&de.push(239,191,189);continue}ve=G;continue}if(G<56320){(Q-=3)>-1&&de.push(239,191,189),ve=G;continue}G=(ve-55296<<10|G-56320)+65536}else ve&&((Q-=3)>-1&&de.push(239,191,189));if(ve=null,G<128){if((Q-=1)<0)break;de.push(G)}else if(G<2048){if((Q-=2)<0)break;de.push(G>>6|192,G&63|128)}else if(G<65536){if((Q-=3)<0)break;de.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((Q-=4)<0)break;de.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return de}function pe(se){for(var Q=[],G=0;G<se.length;++G)Q.push(se.charCodeAt(G)&255);return Q}function Ue(se,Q){for(var G,J,ve,de=[],Ce=0;Ce<se.length&&!((Q-=2)<0);++Ce)G=se.charCodeAt(Ce),J=G>>8,ve=G%256,de.push(ve),de.push(J);return de}function oe(se){return E.toByteArray(ge(se))}function ee(se,Q,G,J){for(var ve=0;ve<J&&!(ve+G>=Q.length||ve>=se.length);++ve)Q[ve+G]=se[ve];return ve}function Xe(se){return se!==se}}).call(this,d("yLpj"))},"HF/U":function(H,B,d){var O=d("QBsz");function E(A){var w=A.coordinateSystem;if(w&&w.type!=="view")return;var m=A.getGraph();m.eachNode(function(f){var c=f.getModel();f.setLayout([+c.get("x"),+c.get("y")])}),C(m)}function C(A){A.eachEdge(function(w){var m=w.getModel().get("lineStyle.curveness")||0,f=O.clone(w.node1.getLayout()),c=O.clone(w.node2.getLayout()),o=[f,c];+m&&o.push([(f[0]+c[0])/2-(f[1]-c[1])*m,(f[1]+c[1])/2-(c[0]-f[0])*m]),w.setLayout(o)})}B.simpleLayout=E,B.simpleLayoutEdge=C},"HM/N":function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("/SeX"),w=d("OELB"),m=w.parsePercent,f=d("aX7z"),c=f.createScaleByModel,o=f.niceScaleExtent,r=d("IDmD"),i=d("7hqr"),n=i.getStackedDimension;d("ePAk");function e(l,u,h){var p=u.get("center"),g=h.getWidth(),v=h.getHeight();l.cx=m(p[0],g),l.cy=m(p[1],v);var y=l.getRadiusAxis(),x=Math.min(g,v)/2,T=u.get("radius");T==null?T=[0,"100%"]:C.isArray(T)||(T=[0,T]),T=[m(T[0],x),m(T[1],x)],y.inverse?y.setExtent(T[1],T[0]):y.setExtent(T[0],T[1])}function s(l,u){var h=this,p=h.getAngleAxis(),g=h.getRadiusAxis();if(p.scale.setExtent(Infinity,-Infinity),g.scale.setExtent(Infinity,-Infinity),l.eachSeries(function(x){if(x.coordinateSystem===h){var T=x.getData();C.each(T.mapDimension("radius",!0),function(S){g.scale.unionExtentFromData(T,n(T,S))}),C.each(T.mapDimension("angle",!0),function(S){p.scale.unionExtentFromData(T,n(T,S))})}}),o(p.scale,p.model),o(g.scale,g.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(l,u){if(l.type=u.get("type"),l.scale=c(u),l.onBand=u.get("boundaryGap")&&l.type==="category",l.inverse=u.get("inverse"),u.mainType==="angleAxis"){l.inverse^=u.get("clockwise");var h=u.get("startAngle");l.setExtent(h,h+(l.inverse?-360:360))}u.axis=l,l.model=u}var a={dimensions:A.prototype.dimensions,create:function(l,u){var h=[];return l.eachComponent("polar",function(p,g){var v=new A(g);v.update=s;var y=v.getRadiusAxis(),x=v.getAngleAxis(),T=p.findAxisModel("radiusAxis"),S=p.findAxisModel("angleAxis");t(y,T),t(x,S),e(v,p,u),h.push(v),p.coordinateSystem=v,v.model=p}),l.eachSeries(function(p){if(p.get("coordinateSystem")==="polar"){var g=l.queryComponents({mainType:"polar",index:p.get("polarIndex"),id:p.get("polarId")})[0];p.coordinateSystem=g.coordinateSystem}}),h}};r.register("polar",a)},HQEm:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("Sj0X"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},HjIi:function(H,B,d){var O=d("bYtY"),E=d("OELB"),C=E.parsePercent,A=d("7hqr"),w=A.isDimensionStacked;function m(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 s={},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 l=a.getData(),u=a.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),g=m(a),v=t[p][g],y=v.offset,x=v.width,T=u.getOtherAxis(h),S=a.coordinateSystem.cx,b=a.coordinateSystem.cy,_=a.get("barMinHeight")||0,I=a.get("barMinAngle")||0;s[g]=s[g]||[];for(var L=l.mapDimension(T.dim),N=l.mapDimension(h.dim),D=w(l,L),R=h.dim!=="radius"||!a.get("roundCap",!0),P=T.getExtent()[0],M=0,U=l.count();M<U;M++){var F=l.get(L,M),j=l.get(N,M),W=F>=0?"p":"n",V=P;D&&(s[g][j]||(s[g][j]={p:P,n:P}),V=s[g][j][W]);var z,Y,$,ue;if(T.dim==="radius"){var ne=T.dataToRadius(F)-P,ge=h.dataToAngle(j);Math.abs(ne)<_&&(ne=(ne<0?-1:1)*_),z=V,Y=V+ne,$=ge-y,ue=$-x,D&&(s[g][j][W]=Y)}else{var Oe=T.dataToAngle(F,R)-P,De=h.dataToRadius(j);Math.abs(Oe)<I&&(Oe=(Oe<0?-1:1)*I),z=De+y,Y=z+x,$=V,ue=V+Oe,D&&(s[g][j][W]=ue)}l.setItemLayout(M,{cx:S,cy:b,r0:z,r:Y,startAngle:-$*Math.PI/180,endAngle:-ue*Math.PI/180})}},this)}function o(i,n){var e={};O.each(i,function(t,a){var l=t.getData(),u=t.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),g=h.getExtent(),v=h.type==="category"?h.getBandWidth():Math.abs(g[1]-g[0])/l.count(),y=e[p]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},x=y.stacks;e[p]=y;var T=m(t);x[T]||y.autoWidthCount++,x[T]=x[T]||{width:0,maxWidth:0};var S=C(t.get("barWidth"),v),b=C(t.get("barMaxWidth"),v),_=t.get("barGap"),I=t.get("barCategoryGap");S&&!x[T].width&&(S=Math.min(y.remainedWidth,S),x[T].width=S,y.remainedWidth-=S),b&&(x[T].maxWidth=b),_!=null&&(y.gap=_),I!=null&&(y.categoryGap=I)});var s={};return O.each(e,function(t,a){s[a]={};var l=t.stacks,u=t.bandWidth,h=C(t.categoryGap,u),p=C(t.gap,1),g=t.remainedWidth,v=t.autoWidthCount,y=(g-h)/(v+(v-1)*p);y=Math.max(y,0),O.each(l,function(b,_){var I=b.maxWidth;I&&I<y&&(I=Math.min(I,g),b.width&&(I=Math.min(I,b.width)),g-=I,b.width=I,v--)}),y=(g-h)/(v+(v-1)*p),y=Math.max(y,0);var x=0,T;O.each(l,function(b,_){b.width||(b.width=y),T=b,x+=b.width*(1+p)}),T&&(x-=T.width*p);var S=-x/2;O.each(l,function(b,_){s[a][_]=s[a][_]||{offset:S,width:b.width},S+=b.width*(1+p)})}),s}var r=c;H.exports=r},HjOm:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},E=O;B.default=E},Hw7h:function(H,B,d){var O=d("y+Vt"),E=O.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(C,A){var w=Math.cos,m=Math.sin,f=A.r,c=A.width,o=A.angle,r=A.x-w(o)*c*(c>=f/3?1:2),i=A.y-m(o)*c*(c>=f/3?1:2);o=A.angle-Math.PI/2,C.moveTo(r,i),C.lineTo(A.x+w(o)*c,A.y+m(o)*c),C.lineTo(A.x+w(A.angle)*f,A.y+m(A.angle)*f),C.lineTo(A.x-w(o)*c,A.y-m(o)*c),C.lineTo(r,i);return}});H.exports=E},Hxpc:function(H,B,d){var O=d("bYtY"),E=d("4NO4"),C=d("bLfw"),A=d("Qxkt"),w=d("cCMj"),m=d("7uqq"),f=C.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(o){C.prototype.init.apply(this,arguments),E.defaultEmphasis(o,"label",["show"])},optionUpdated:function(){var o=this.option,r=this;o.regions=m.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,w);var c=f;H.exports=c},"I+77":function(H,B,d){var O=d("ProS");d("h54F"),d("lwQL"),d("10cm");var E=d("Z1r0"),C=d("f5Yq"),A=d("KUOm"),w=d("3m61"),m=d("01d+"),f=d("rdor"),c=d("WGYa"),o=d("ewwo");O.registerProcessor(E),O.registerVisual(C("graph","circle",null)),O.registerVisual(A),O.registerVisual(w),O.registerLayout(m),O.registerLayout(O.PRIORITY.VISUAL.POST_CHART_LAYOUT,f),O.registerLayout(c),O.registerCoordinateSystem("graphView",{create:o})},"I+Bx":function(H,B,d){var O=d("bYtY"),E=d("eIcI"),C=d("ieMj"),A=d("OELB"),w=d("aX7z"),m=w.getScaleExtent,f=w.niceScaleExtent,c=d("IDmD"),o=d("jCoz");function r(n,e,s){this._model=n,this.dimensions=[],this._indicatorAxes=O.map(n.getIndicatorModels(),function(t,a){var l="indicator_"+a,u=new E(l,t.get("axisType")==="log"?new o:new C);return u.name=t.get("name"),u.model=t,t.axis=u,this.dimensions.push(l),u},this),this.resize(n,s),this.cx,this.cy,this.r,this.r0,this.startAngle}r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(n,e){var s=this._indicatorAxes[e];return this.coordToPoint(s.dataToCoord(n),e)},r.prototype.coordToPoint=function(n,e){var s=this._indicatorAxes[e],t=s.angle,a=this.cx+n*Math.cos(t),l=this.cy-n*Math.sin(t);return[a,l]},r.prototype.pointToData=function(n){var e=n[0]-this.cx,s=n[1]-this.cy,t=Math.sqrt(e*e+s*s);e/=t,s/=t;for(var a=Math.atan2(-s,e),l=Infinity,u,h=-1,p=0;p<this._indicatorAxes.length;p++){var g=this._indicatorAxes[p],v=Math.abs(a-g.angle);v<l&&(u=g,h=p,l=v)}return[h,+(u&&u.coordToData(t))]},r.prototype.resize=function(n,e){var s=n.get("center"),t=e.getWidth(),a=e.getHeight(),l=Math.min(t,a)/2;this.cx=A.parsePercent(s[0],t),this.cy=A.parsePercent(s[1],a),this.startAngle=n.get("startAngle")*Math.PI/180;var u=n.get("radius");(typeof u=="string"||typeof u=="number")&&(u=[0,u]),this.r0=A.parsePercent(u[0],l),this.r=A.parsePercent(u[1],l),O.each(this._indicatorAxes,function(h,p){h.setExtent(this.r0,this.r);var g=this.startAngle+p*Math.PI*2/this._indicatorAxes.length;g=Math.atan2(Math.sin(g),Math.cos(g)),h.angle=g},this)},r.prototype.update=function(n,e){var s=this._indicatorAxes,t=this._model;O.each(s,function(u){u.scale.setExtent(Infinity,-Infinity)}),n.eachSeriesByType("radar",function(u,h){if(u.get("coordinateSystem")!=="radar"||n.getComponent("radar",u.get("radarIndex"))!==t)return;var p=u.getData();O.each(s,function(g){g.scale.unionExtentFromData(p,p.mapDimension(g.dim))})},this);var a=t.get("splitNumber");function l(u){var 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(s,function(u,h){var p=m(u.scale,u.model).extent;f(u.scale,u.model);var g=u.model,v=u.scale,y=g.getMin(),x=g.getMax(),T=v.getInterval();if(y!=null&&x!=null)v.setExtent(+y,+x),v.setInterval((x-y)/a);else if(y!=null){var S;do S=y+T*a,v.setExtent(+y,S),v.setInterval(T),T=l(T);while(S<p[1]&&isFinite(S)&&isFinite(p[1]))}else if(x!=null){var b;do b=x-T*a,v.setExtent(b,+x),v.setInterval(T),T=l(T);while(b>p[0]&&isFinite(b)&&isFinite(p[0]))}else{var _=v.getTicks().length-1;_>a&&(T=l(T));var S=Math.ceil(p[1]/T)*T,b=A.round(S-T*a);v.setExtent(b,S),v.setInterval(T)}})},r.dimensions=[],r.create=function(n,e){var s=[];return n.eachComponent("radar",function(t){var a=new r(t,n,e);s.push(a),t.coordinateSystem=a}),n.eachSeriesByType("radar",function(t){t.get("coordinateSystem")==="radar"&&(t.coordinateSystem=s[t.get("radarIndex")||0])}),s},c.register("radar",r);var i=r;H.exports=i},"I3/A":function(H,B,d){var O=d("bYtY"),E=d("YXkt"),C=d("c2i1"),A=d("Mdki"),w=d("sdST"),m=d("IDmD"),f=d("MwEJ");function c(o,r,i,n,e){for(var s=new C(n),t=0;t<o.length;t++)s.addNode(O.retrieve(o[t].id,o[t].name,t),t);for(var a=[],l=[],u=0,t=0;t<r.length;t++){var h=r[t],p=h.source,g=h.target;s.addEdge(p,g,u)&&(l.push(h),a.push(O.retrieve(h.id,p+" > "+g)),u++)}var v=i.get("coordinateSystem"),y;if(v==="cartesian2d"||v==="polar")y=f(o,i);else{var x=m.get(v),T=x&&x.type!=="view"?x.dimensions||[]:[];O.indexOf(T,"value")<0&&T.concat(["value"]);var S=w(o,{coordDimensions:T});y=new E(S,i),y.initData(o)}var b=new E(["value"],i);return b.initData(l,a),e&&e(y,b),A({mainData:y,struct:s,structAttr:"graph",datas:{node:y,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),s.update(),s}H.exports=c},I8Z2:function(H,B,d){"use strict";d.d(B,"a",function(){return A}),d.d(B,"b",function(){return e}),d.d(B,"c",function(){return t});var O=d("q1tI"),E=function(){var a=function(u,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])},a(u,h)};return function(l,u){a(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),C=O.createContext(null),A=function(a){E(l,a);function l(){return a!==null&&a.apply(this,arguments)||this}return l.prototype.render=function(){return O.createElement(C.Provider,{value:this.props.store},this.props.children)},l}(O.Component),w=d("Gytx"),m=d.n(w),f=d("2mql"),c=d.n(f),o=function(){var a=function(u,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])},a(u,h)};return function(l,u){a(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),r=function(){return r=Object.assign||function(a){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(a[p]=l[p])}return a},r.apply(this,arguments)};function i(a){return a.displayName||a.name||"Component"}var n=function(){return{}};function e(a,l){l===void 0&&(l={});var u=!!a,h=a||n;return function(g){var v=function(x){o(T,x);function T(S,b){var _=x.call(this,S,b)||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(),S),store:_.store,props:S},_}return T.getDerivedStateFromProps=function(S,b){return a&&a.length===2&&S!==b.props?{subscribed:h(b.store.getState(),S),props:S}:{props:S}},T.prototype.componentDidMount=function(){this.trySubscribe()},T.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},T.prototype.shouldComponentUpdate=function(S,b){return!m()(this.props,S)||!m()(this.state.subscribed,b.subscribed)},T.prototype.trySubscribe=function(){u&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},T.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},T.prototype.render=function(){var S=r(r(r({},this.props),this.state.subscribed),{store:this.store});return O.createElement(g,r({},S,{ref:this.props.miniStoreForwardedRef}))},T.displayName="Connect("+i(g)+")",T.contextType=C,T}(O.Component);if(l.forwardRef){var y=O.forwardRef(function(x,T){return O.createElement(v,r({},x,{miniStoreForwardedRef:T}))});return c()(y,g)}return c()(v,g)}}var s=function(){return s=Object.assign||function(a){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(a[p]=l[p])}return a},s.apply(this,arguments)};function t(a){var l=a,u=[];function h(v){l=s(s({},l),v);for(var y=0;y<u.length;y++)u[y]()}function p(){return l}function g(v){return u.push(v),function(){var x=u.indexOf(v);u.splice(x,1)}}return{setState:h,getState:p,subscribe:g}}},"I9Y+":function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("4xFK")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="DoubleRightOutlined";var c=A.forwardRef(f);B.default=c},ICMv:function(H,B,d){var O=d("bYtY"),E={getMin:function(C){var A=this.option,w=!C&&A.rangeStart!=null?A.rangeStart:A.min;return this.axis&&w!=null&&w!=="dataMin"&&typeof w!="function"&&!O.eqNaN(w)&&(w=this.axis.scale.parse(w)),w},getMax:function(C){var A=this.option,w=!C&&A.rangeEnd!=null?A.rangeEnd:A.max;return this.axis&&w!=null&&w!=="dataMax"&&typeof w!="function"&&!O.eqNaN(w)&&(w=this.axis.scale.parse(w)),w},getNeedCrossZero:function(){var C=this.option;return C.rangeStart!=null||C.rangeEnd!=null?!1:!C.scale},getCoordSysModel:O.noop,setRange:function(C,A){this.option.rangeStart=C,this.option.rangeEnd=A},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};H.exports=E},IDmD:function(H,B,d){var O=d("bYtY"),E={};function C(){this._coordinateSystems=[]}C.prototype={constructor:C,create:function(w,m){var f=[];O.each(E,function(c,o){var r=c.create(w,m);f=f.concat(r||[])}),this._coordinateSystems=f},update:function(w,m){O.each(this._coordinateSystems,function(f){f.update&&f.update(w,m)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},C.register=function(w,m){E[w]=m},C.get=function(w){return E[w]};var A=C;H.exports=A},IMiH:function(H,B,d){var O=d("Sj9i"),E=d("QBsz"),C=d("4mN7"),A=d("mFDi"),w=d("LPTA"),m=w.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,s=Math.cos,t=Math.sin,a=Math.sqrt,l=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,x){x=x||0,this._ux=l(x/m/v)||0,this._uy=l(x/m/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 x=l(v-this._xi)>this._ux||l(y-this._yi)>this._uy||this._len<5;return this.addData(f.L,v,y),this._ctx&&x&&(this._needsDash()?this._dashedLineTo(v,y):this._ctx.lineTo(v,y)),x&&(this._xi=v,this._yi=y),this},bezierCurveTo:function(v,y,x,T,S,b){return this.addData(f.C,v,y,x,T,S,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(v,y,x,T,S,b):this._ctx.bezierCurveTo(v,y,x,T,S,b)),this._xi=S,this._yi=b,this},quadraticCurveTo:function(v,y,x,T){return this.addData(f.Q,v,y,x,T),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(v,y,x,T):this._ctx.quadraticCurveTo(v,y,x,T)),this._xi=x,this._yi=T,this},arc:function(v,y,x,T,S,b){return this.addData(f.A,v,y,x,x,T,S-T,0,b?0:1),this._ctx&&this._ctx.arc(v,y,x,T,S,b),this._xi=s(S)*x+v,this._yi=t(S)*x+y,this},arcTo:function(v,y,x,T,S){return this._ctx&&this._ctx.arcTo(v,y,x,T,S),this},rect:function(v,y,x,T){return this._ctx&&this._ctx.rect(v,y,x,T),this.addData(f.R,v,y,x,T),this},closePath:function(){this.addData(f.Z);var v=this._ctx,y=this._x0,x=this._y0;return v&&(this._needsDash()&&this._dashedLineTo(y,x),v.closePath()),this._xi=y,this._yi=x,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,x=0;x<v.length;x++)y+=v[x];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 x=0;x<y;x++)this.data[x]=v[x];this._len=y},appendPath:function(v){v instanceof Array||(v=[v]);for(var y=v.length,x=0,T=this._len,S=0;S<y;S++)x+=v[S].len();u&&this.data instanceof Float32Array&&(this.data=new Float32Array(T+x));for(var S=0;S<y;S++)for(var b=v[S].data,_=0;_<b.length;_++)this.data[T++]=b[_];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 x=0;x<arguments.length;x++)y[this._len++]=arguments[x];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 x=this._dashSum,T=this._dashOffset,S=this._lineDash,b=this._ctx,_=this._xi,I=this._yi,L=v-_,N=y-I,D=a(L*L+N*N),R=_,P=I,M,U=S.length,F;for(L/=D,N/=D,T<0&&(T=x+T),T%=x,R-=T*L,P-=T*N;L>0&&R<=v||L<0&&R>=v||L===0&&(N>0&&P<=y||N<0&&P>=y);){if(F=this._dashIdx,M=S[F],R+=L*M,P+=N*M,this._dashIdx=(F+1)%U,L>0&&R<_||L<0&&R>_||N>0&&P<I||N<0&&P>I)continue;b[F%2?"moveTo":"lineTo"](L>=0?n(R,v):e(R,v),N>=0?n(P,y):e(P,y))}L=R-v,N=P-y,this._dashOffset=-a(L*L+N*N)},_dashedBezierTo:function(v,y,x,T,S,b){var _=this._dashSum,I=this._dashOffset,L=this._lineDash,N=this._ctx,D=this._xi,R=this._yi,P,M,U,F=O.cubicAt,j=0,W=this._dashIdx,V=L.length,z,Y,$=0;for(I<0&&(I=_+I),I%=_,P=0;P<1;P+=.1)M=F(D,v,x,S,P+.1)-F(D,v,x,S,P),U=F(R,y,T,b,P+.1)-F(R,y,T,b,P),j+=a(M*M+U*U);for(;W<V&&!($+=L[W],$>I);W++);for(P=($-I)/j;P<=1;)z=F(D,v,x,S,P),Y=F(R,y,T,b,P),W%2?N.moveTo(z,Y):N.lineTo(z,Y),P+=L[W]/j,W=(W+1)%V;W%2!==0&&N.lineTo(S,b),M=S-z,U=b-Y,this._dashOffset=-a(M*M+U*U)},_dashedQuadraticTo:function(v,y,x,T){var S=x,b=T;x=(x+2*v)/3,T=(T+2*y)/3,v=(this._xi+2*v)/3,y=(this._yi+2*y)/3,this._dashedBezierTo(v,y,x,T,S,b)},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,x=0,T=0,S=0,b=0;b<v.length;){var _=v[b++];b===1&&(y=v[b],x=v[b+1],T=y,S=x);switch(_){case f.M:T=v[b++],S=v[b++],y=T,x=S,r[0]=T,r[1]=S,i[0]=T,i[1]=S;break;case f.L:C.fromLine(y,x,v[b],v[b+1],r,i),y=v[b++],x=v[b++];break;case f.C:C.fromCubic(y,x,v[b++],v[b++],v[b++],v[b++],v[b],v[b+1],r,i),y=v[b++],x=v[b++];break;case f.Q:C.fromQuadratic(y,x,v[b++],v[b++],v[b],v[b+1],r,i),y=v[b++],x=v[b++];break;case f.A:var I=v[b++],L=v[b++],N=v[b++],D=v[b++],R=v[b++],P=v[b++]+R;b+=1;var M=1-v[b++];b===1&&(T=s(R)*N+I,S=t(R)*D+L),C.fromArc(I,L,N,D,R,P,M,r,i),y=s(P)*N+I,x=t(P)*D+L;break;case f.R:T=y=v[b++],S=x=v[b++];var U=v[b++],F=v[b++];C.fromLine(T,S,T+U,S+F,r,i);break;case f.Z:y=T,x=S;break}E.min(c,c,r),E.max(o,o,i)}return b===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,x,T,S,b,_,I,L=this._ux,N=this._uy,D=this._len,R=0;R<D;){var P=y[R++];R===1&&(S=y[R],b=y[R+1],x=S,T=b);switch(P){case f.M:x=S=y[R++],T=b=y[R++],v.moveTo(S,b);break;case f.L:_=y[R++],I=y[R++],(l(_-S)>L||l(I-b)>N||R===D-1)&&(v.lineTo(_,I),S=_,b=I);break;case f.C:v.bezierCurveTo(y[R++],y[R++],y[R++],y[R++],y[R++],y[R++]),S=y[R-2],b=y[R-1];break;case f.Q:v.quadraticCurveTo(y[R++],y[R++],y[R++],y[R++]),S=y[R-2],b=y[R-1];break;case f.A:var M=y[R++],U=y[R++],F=y[R++],j=y[R++],W=y[R++],V=y[R++],z=y[R++],Y=y[R++],$=F>j?F:j,ue=F>j?1:F/j,ne=F>j?j/F:1,ge=Math.abs(F-j)>.001,Oe=W+V;ge?(v.translate(M,U),v.rotate(z),v.scale(ue,ne),v.arc(0,0,$,W,Oe,1-Y),v.scale(1/ue,1/ne),v.rotate(-z),v.translate(-M,-U)):v.arc(M,U,$,W,Oe,1-Y),R===1&&(x=s(W)*F+M,T=t(W)*j+U),S=s(Oe)*F+M,b=t(Oe)*j+U;break;case f.R:x=S=y[R],T=b=y[R+1],v.rect(y[R++],y[R++],y[R++],y[R++]);break;case f.Z:v.closePath(),S=x,b=T}}}},h.CMD=f;var p=h;H.exports=p},IUWy:function(H,B){var d={};function O(C,A){d[C]=A}function E(C){return d[C]}B.register=O,B.get=E},IWNH:function(H,B,d){var O=d("T4UG"),E=d("Bsck"),C=d("7aKB"),A=C.encodeHTML,w=d("Qxkt"),m=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 w(o,this,this.ecModel),i=E.createTree(c,this,{},n);function n(a){a.wrapMethod("getItemModel",function(l,u){var h=i.getNodeByDataIndex(u);return(!h.children.length||!h.isExpand)&&(l.parentModel=r),l})}var e=0;i.eachNode("preorder",function(a){a.depth>e&&(e=a.depth)});var s=f.expandAndCollapse,t=s&&f.initialTreeDepth>=0?f.initialTreeDepth:e;return i.root.eachNode("preorder",function(a){var l=a.hostTree.data.getRawDataItem(a.dataIndex);a.isExpand=l&&l.collapsed!=null?!l.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=m},IWp7:function(H,B,d){var O=d("bYtY"),E=d("OELB"),C=d("7aKB"),A=d("lE7J"),w=d("ieMj"),m=w.prototype,f=Math.ceil,c=Math.floor,o=1e3,r=o*60,i=r*60,n=i*24,e=function(l,u,h,p){for(;h<p;){var g=h+p>>>1;l[g][1]<u?h=g+1:p=g}return h},s=w.extend({type:"time",getLabel:function(l){var u=this._stepLvl,h=new Date(l);return C.formatTime(u[0],h,this.getSetting("useUTC"))},niceExtent:function(l){var u=this._extent;if(u[0]===u[1]&&(u[0]-=n,u[1]+=n),u[1]===-Infinity&&u[0]===Infinity){var h=new Date;u[1]=+new Date(h.getFullYear(),h.getMonth(),h.getDate()),u[0]=u[1]-n}this.niceTicks(l.splitNumber,l.minInterval,l.maxInterval);var p=this._interval;l.fixMin||(u[0]=E.round(c(u[0]/p)*p)),l.fixMax||(u[1]=E.round(f(u[1]/p)*p))},niceTicks:function(l,u,h){l=l||10;var p=this._extent,g=p[1]-p[0],v=g/l;u!=null&&v<u&&(v=u),h!=null&&v>h&&(v=h);var y=t.length,x=e(t,v,0,y),T=t[Math.min(x,y-1)],S=T[1];if(T[0]==="year"){var b=g/S,_=E.nice(b/l,!0);S*=_}var I=this.getSetting("useUTC")?0:new Date(+p[0]||+p[1]).getTimezoneOffset()*60*1e3,L=[Math.round(f((p[0]-I)/S)*S+I),Math.round(c((p[1]-I)/S)*S+I)];A.fixExtent(L,p),this._stepLvl=T,this._interval=S,this._niceExtent=L},parse:function(l){return+E.parseDate(l)}});O.each(["contain","normalize"],function(l){s.prototype[l]=function(u){return m[l].call(this,this.parse(u))}});var t=[["hh:mm:ss",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]];s.create=function(l){return new s({useUTC:l.ecModel.get("useUTC")})};var a=s;H.exports=a},IXuL:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("MwEJ"),A=d("T4UG"),w=A.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(m,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=w},IXyC:function(H,B,d){var O=d("bYtY"),E=d("bLfw");d("3zoK");var C=E.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){E.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(A){var w=this.option;A&&O.merge(w,A,!0),this._initDimensions()},contains:function(A,w){var m=A.get("parallelIndex");return m!=null&&w.getComponent("parallel",m)===this},setAxisExpand:function(A){O.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(w){A.hasOwnProperty(w)&&(this.option[w]=A[w])},this)},_initDimensions:function(){var A=this.dimensions=[],w=this.parallelAxisIndex=[],m=O.filter(this.dependentModels.parallelAxis,function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this);O.each(m,function(f){A.push("dim"+f.get("dim")),w.push(f.componentIndex)})}});H.exports=C},Ib8C:function(H,B,d){(function(O){(function(E,C){H.exports=B=C()})(this,function(){var E=E||function(C,A){var w;if(typeof window!="undefined"&&window.crypto&&(w=window.crypto),typeof self!="undefined"&&self.crypto&&(w=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(w=globalThis.crypto),!w&&typeof window!="undefined"&&window.msCrypto&&(w=window.msCrypto),!w&&typeof O!="undefined"&&O.crypto&&(w=O.crypto),!w&&!0)try{w=d(4)}catch(h){}var m=function(){if(w){if(typeof w.getRandomValues=="function")try{return w.getRandomValues(new Uint32Array(1))[0]}catch(p){}if(typeof w.randomBytes=="function")try{return w.randomBytes(4).readInt32LE()}catch(p){}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function h(){}return function(p){var g;return h.prototype=p,g=new h,h.prototype=null,g}}(),c={},o=c.lib={},r=o.Base=function(){return{extend:function(p){var g=f(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),i=o.WordArray=r.extend({init:function(p,g){p=this.words=p||[],g!=A?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||e).stringify(this)},concat:function(p){var g=this.words,v=p.words,y=this.sigBytes,x=p.sigBytes;if(this.clamp(),y%4)for(var T=0;T<x;T++){var S=v[T>>>2]>>>24-T%4*8&255;g[y+T>>>2]|=S<<24-(y+T)%4*8}else for(var b=0;b<x;b+=4)g[y+b>>>2]=v[b>>>2];return this.sigBytes+=x,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=C.ceil(g/4)},clone:function(){var p=r.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],v=0;v<p;v+=4)g.push(m());return new i.init(g,p)}}),n=c.enc={},e=n.Hex={stringify:function(p){for(var g=p.words,v=p.sigBytes,y=[],x=0;x<v;x++){var T=g[x>>>2]>>>24-x%4*8&255;y.push((T>>>4).toString(16)),y.push((T&15).toString(16))}return y.join("")},parse:function(p){for(var g=p.length,v=[],y=0;y<g;y+=2)v[y>>>3]|=parseInt(p.substr(y,2),16)<<24-y%8*4;return new i.init(v,g/2)}},s=n.Latin1={stringify:function(p){for(var g=p.words,v=p.sigBytes,y=[],x=0;x<v;x++){var T=g[x>>>2]>>>24-x%4*8&255;y.push(String.fromCharCode(T))}return y.join("")},parse:function(p){for(var g=p.length,v=[],y=0;y<g;y++)v[y>>>2]|=(p.charCodeAt(y)&255)<<24-y%4*8;return new i.init(v,g)}},t=n.Utf8={stringify:function(p){try{return decodeURIComponent(escape(s.stringify(p)))}catch(g){throw new Error("Malformed UTF-8 data")}},parse:function(p){return s.parse(unescape(encodeURIComponent(p)))}},a=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 g,v=this._data,y=v.words,x=v.sigBytes,T=this.blockSize,S=T*4,b=x/S;p?b=C.ceil(b):b=C.max((b|0)-this._minBufferSize,0);var _=b*T,I=C.min(_*4,x);if(_){for(var L=0;L<_;L+=T)this._doProcessBlock(y,L);g=y.splice(0,_),v.sigBytes-=I}return new i.init(g,I)},clone:function(){var p=r.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),l=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 g=this._doFinalize();return g},blockSize:512/32,_createHelper:function(p){return function(g,v){return new p.init(v).finalize(g)}},_createHmacHelper:function(p){return function(g,v){return new u.HMAC.init(p,v).finalize(g)}}}),u=c.algo={};return c}(Math);return E})}).call(this,d("yLpj"))},ItGF:function(H,B){var d={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?d={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?d={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?d={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:d=E(navigator.userAgent);var O=d;function E(C){var A={},w={},m=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 m&&(w.firefox=!0,w.version=m[1]),f&&(w.ie=!0,w.version=f[1]),c&&(w.edge=!0,w.version=c[1]),o&&(w.weChat=!0),{browser:w,os:A,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!w.ie&&!w.edge,pointerEventsSupported:"onpointerdown"in window&&(w.edge||w.ie&&w.version>=11),domSupported:typeof document!="undefined"}}H.exports=O},ItS6:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=d("eP3c"),E=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 w(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 m(c,o,r){return o&&w(c.prototype,o),r&&w(c,r),c}var f=function(){function c(){A(this,c),this.strm=new E.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.inflateInit)(this.strm,this.windowBits)}return m(c,[{key:"setInput",value:function(r){r?(this.strm.input=r,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(r){r>this.chunkSize&&(this.chunkSize=r,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=r;var 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}();B.default=f},Itpr:function(H,B,d){var O=d("+TT/");function E(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a=[t],l,u;l=a.pop();)if(u=l.children,l.isExpand&&u.length)for(var h=u.length,p=h-1;p>=0;p--){var g=u[p];g.hierNode={defaultAncestor:null,ancestor:g,prelim:0,modifier:0,change:0,shift:0,i:p,thread:null},a.push(g)}}function C(t,a){var l=t.isExpand?t.children:[],u=t.parentNode.children,h=t.hierNode.i?u[t.hierNode.i-1]:null;if(l.length){c(t);var p=(l[0].hierNode.prelim+l[l.length-1].hierNode.prelim)/2;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 w(t){return arguments.length?t:s}function m(t,a){var l={};return t-=Math.PI/2,l.x=a*Math.cos(t),l.y=a*Math.sin(t),l}function f(t,a){return O.getLayoutRect(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function c(t){for(var a=t.children,l=a.length,u=0,h=0;--l>=0;){var p=a[l];p.hierNode.prelim+=u,p.hierNode.modifier+=u,h+=p.hierNode.change,u+=p.hierNode.shift+h}}function o(t,a,l,u){if(a){for(var h=t,p=t,g=p.parentNode.children[0],v=a,y=h.hierNode.modifier,x=p.hierNode.modifier,T=g.hierNode.modifier,S=v.hierNode.modifier;v=r(v),p=i(p),v&&p;){h=r(h),g=i(g),h.hierNode.ancestor=t;var b=v.hierNode.prelim+S-p.hierNode.prelim-x+u(v,p);b>0&&(e(n(v,t,l),t,b),x+=b,y+=b),S+=v.hierNode.modifier,x+=p.hierNode.modifier,y+=h.hierNode.modifier,T+=g.hierNode.modifier}v&&!r(h)&&(h.hierNode.thread=v,h.hierNode.modifier+=S-y),p&&!i(g)&&(g.hierNode.thread=p,g.hierNode.modifier+=x-T,l=t)}return l}function r(t){var a=t.children;return a.length&&t.isExpand?a[a.length-1]:t.hierNode.thread}function i(t){var a=t.children;return a.length&&t.isExpand?a[0]:t.hierNode.thread}function n(t,a,l){return t.hierNode.ancestor.parentNode===a.parentNode?t.hierNode.ancestor:l}function e(t,a,l){var u=l/(a.hierNode.i-t.hierNode.i);a.hierNode.change-=u,a.hierNode.shift+=l,a.hierNode.modifier+=l,a.hierNode.prelim+=l,t.hierNode.change+=u}function s(t,a){return t.parentNode===a.parentNode?1:2}B.init=E,B.firstWalk=C,B.secondWalk=A,B.separation=w,B.radialCoordinate=m,B.getViewRect=f},IwbS:function(H,B,d){var O=d("bYtY"),E=d("NC18"),C=d("Qe9p"),A=d("Fofx"),w=d("QBsz"),m=d("y+Vt"),f=d("DN4a"),c=d("Dagg");B.Image=c;var o=d("4fz+");B.Group=o;var r=d("dqUG");B.Text=r;var i=d("2fw6");B.Circle=i;var n=d("SqI9");B.Sector=n;var e=d("RXMa");B.Ring=e;var s=d("h7HQ");B.Polygon=s;var t=d("1Jh7");B.Polyline=t;var a=d("x6Kt");B.Rect=a;var l=d("yxFR");B.Line=l;var u=d("rA99");B.BezierCurve=u;var h=d("jTL6");B.Arc=h;var p=d("1MYJ");B.CompoundPath=p;var g=d("SKnc");B.LinearGradient=g;var v=d("3e3G");B.RadialGradient=v;var y=d("mFDi");B.BoundingRect=y;var x=d("OS9S");B.IncrementalDisplayable=x;var T=d("nPnh"),S=Math.max,b=Math.min,_={},I=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},N="emphasis",D="normal",R=1,P={},M={};function U(Ht){return m.extend(Ht)}function F(Ht,dt){return E.extendFromString(Ht,dt)}function j(Ht,dt){M[Ht]=dt}function W(Ht){if(M.hasOwnProperty(Ht))return M[Ht]}function V(Ht,dt,Hr,dn){var Nn=E.createFromString(Ht,dt);return Hr&&(dn==="center"&&(Hr=Y(Hr,Nn.getBoundingRect())),ue(Nn,Hr)),Nn}function z(Ht,dt,Hr){var dn=new c({style:{image:Ht,x:dt.x,y:dt.y,width:dt.width,height:dt.height},onload:function(Nn){if(Hr==="center"){var Vn={width:Nn.width,height:Nn.height};dn.setStyle(Y(dt,Vn))}}});return dn}function Y(Ht,dt){var Hr=dt.width/dt.height,dn=Ht.height*Hr,Nn;dn<=Ht.width?Nn=Ht.height:(dn=Ht.width,Nn=dn/Hr);var Vn=Ht.x+Ht.width/2,gi=Ht.y+Ht.height/2;return{x:Vn-dn/2,y:gi-Nn/2,width:dn,height:Nn}}var $=E.mergePath;function ue(Ht,dt){if(!Ht.applyTransform)return;var Hr=Ht.getBoundingRect(),dn=Hr.calculateTransform(dt);Ht.applyTransform(dn)}function ne(Ht){return T.subPixelOptimizeLine(Ht.shape,Ht.shape,Ht.style),Ht}function ge(Ht){return T.subPixelOptimizeRect(Ht.shape,Ht.shape,Ht.style),Ht}var Oe=T.subPixelOptimize;function De(Ht){return Ht!=null&&Ht!=="none"}var He=O.createHashMap(),pe=0;function Ue(Ht){if(typeof Ht!="string")return Ht;var dt=He.get(Ht);return dt||(dt=C.lift(Ht,-.1),pe<1e4&&(He.set(Ht,dt),pe++)),dt}function oe(Ht){if(!Ht.__hoverStlDirty)return;Ht.__hoverStlDirty=!1;var dt=Ht.__hoverStl;if(!dt){Ht.__cachedNormalStl=Ht.__cachedNormalZ2=null;return}var Hr=Ht.__cachedNormalStl={};Ht.__cachedNormalZ2=Ht.z2;var dn=Ht.style;for(var Nn in dt)dt[Nn]!=null&&(Hr[Nn]=dn[Nn]);Hr.fill=dn.fill,Hr.stroke=dn.stroke}function ee(Ht){var dt=Ht.__hoverStl;if(!dt||Ht.__highlighted)return;var Hr=Ht.__zr,dn=Ht.useHoverLayer&&Hr&&Hr.painter.type==="canvas";if(Ht.__highlighted=dn?"layer":"plain",Ht.isGroup||!Hr&&Ht.useHoverLayer)return;var Nn=Ht,Vn=Ht.style;dn&&(Nn=Hr.addHover(Ht),Vn=Nn.style),Dt(Vn),dn||oe(Nn),Vn.extendFrom(dt),Xe(Vn,dt,"fill"),Xe(Vn,dt,"stroke"),Tt(Vn),dn||(Ht.dirty(!1),Ht.z2+=I)}function Xe(Ht,dt,Hr){!De(dt[Hr])&&De(Ht[Hr])&&(Ht[Hr]=Ue(Ht[Hr]))}function se(Ht){var dt=Ht.__highlighted;if(!dt)return;if(Ht.__highlighted=!1,Ht.isGroup)return;if(dt==="layer")Ht.__zr&&Ht.__zr.removeHover(Ht);else{var Hr=Ht.style,dn=Ht.__cachedNormalStl;dn&&(Dt(Hr),Ht.setStyle(dn),Tt(Hr));var Nn=Ht.__cachedNormalZ2;Nn!=null&&Ht.z2-Nn===I&&(Ht.z2=Nn)}}function Q(Ht,dt,Hr){var dn=D,Nn=D,Vn;Ht.__highlighted&&(dn=N,Vn=!0),dt(Ht,Hr),Ht.__highlighted&&(Nn=N,Vn=!0),Ht.isGroup&&Ht.traverse(function(gi){!gi.isGroup&&dt(gi,Hr)}),Vn&&Ht.__highDownOnUpdate&&Ht.__highDownOnUpdate(dn,Nn)}function G(Ht,dt){dt=Ht.__hoverStl=dt!==!1&&(Ht.hoverStyle||dt||{}),Ht.__hoverStlDirty=!0,Ht.__highlighted&&(Ht.__cachedNormalStl=null,se(Ht),ee(Ht))}function J(Ht){!Ee(this,Ht)&&!this.__highByOuter&&Q(this,ee)}function ve(Ht){!Ee(this,Ht)&&!this.__highByOuter&&Q(this,se)}function de(Ht){this.__highByOuter|=1<<(Ht||0),Q(this,ee)}function Ce(Ht){!(this.__highByOuter&=~(1<<(Ht||0)))&&Q(this,se)}function Ee(Ht,dt){return Ht.__highDownSilentOnTouch&&dt.zrByTouch}function le(Ht,dt){fe(Ht,!0),Q(Ht,G,dt)}function fe(Ht,dt){var Hr=dt===!1;if(Ht.__highDownSilentOnTouch=Ht.highDownSilentOnTouch,Ht.__highDownOnUpdate=Ht.highDownOnUpdate,!Hr||Ht.__highDownDispatcher){var dn=Hr?"off":"on";Ht[dn]("mouseover",J)[dn]("mouseout",ve),Ht[dn]("emphasis",de)[dn]("normal",Ce),Ht.__highByOuter=Ht.__highByOuter||0,Ht.__highDownDispatcher=!Hr}}function xe(Ht){return!!(Ht&&Ht.__highDownDispatcher)}function Qe(Ht){var dt=P[Ht];return dt==null&&R<=32&&(dt=P[Ht]=R++),dt}function ot(Ht,dt,Hr,dn,Nn,Vn,gi){Nn=Nn||_;var bn=Nn.labelFetcher,Mn=Nn.labelDataIndex,jt=Nn.labelDimIndex,St=Nn.labelProp,Ie=Hr.getShallow("show"),_e=dn.getShallow("show"),Le;(Ie||_e)&&(bn&&(Le=bn.getFormattedLabel(Mn,"normal",null,jt,St)),Le==null&&(Le=O.isFunction(Nn.defaultText)?Nn.defaultText(Mn,Nn):Nn.defaultText));var Ze=Ie?Le:null,it=_e?O.retrieve2(bn?bn.getFormattedLabel(Mn,"emphasis",null,jt,St):null,Le):null;(Ze!=null||it!=null)&&(Te(Ht,Hr,Vn,Nn),Te(dt,dn,gi,Nn,!0)),Ht.text=Ze,dt.text=it}function Je(Ht,dt,Hr){var dn=Ht.style;dt&&(Dt(dn),Ht.setStyle(dt),Tt(dn)),dn=Ht.__hoverStl,Hr&&dn&&(Dt(dn),O.extend(dn,Hr),Tt(dn))}function Te(Ht,dt,Hr,dn,Nn){return ze(Ht,dt,dn,Nn),Hr&&O.extend(Ht,Hr),Ht}function et(Ht,dt,Hr){var dn={isRectText:!0},Nn;Hr===!1?Nn=!0:dn.autoColor=Hr,ze(Ht,dt,dn,Nn)}function ze(Ht,dt,Hr,dn){if(Hr=Hr||_,Hr.isRectText){var Nn;Hr.getTextPosition?Nn=Hr.getTextPosition(dt,dn):(Nn=dt.getShallow("position")||(dn?null:"inside"),Nn==="outside"&&(Nn="top")),Ht.textPosition=Nn,Ht.textOffset=dt.getShallow("offset");var Vn=dt.getShallow("rotate");Vn!=null&&(Vn*=Math.PI/180),Ht.textRotation=Vn,Ht.textDistance=O.retrieve2(dt.getShallow("distance"),dn?null:5)}var gi=dt.ecModel,bn=gi&&gi.option.textStyle,Mn=nt(dt),jt;if(Mn){jt={};for(var St in Mn)if(Mn.hasOwnProperty(St)){var Ie=dt.getModel(["rich",St]);Ot(jt[St]={},Ie,bn,Hr,dn)}}return Ht.rich=jt,Ot(Ht,dt,bn,Hr,dn,!0),Hr.forceRich&&!Hr.textStyle&&(Hr.textStyle={}),Ht}function nt(Ht){for(var dt;Ht&&Ht!==Ht.ecModel;){var Hr=(Ht.option||_).rich;if(Hr){dt=dt||{};for(var dn in Hr)Hr.hasOwnProperty(dn)&&(dt[dn]=1)}Ht=Ht.parentModel}return dt}function Ot(Ht,dt,Hr,dn,Nn,Vn){Hr=!Nn&&Hr||_,Ht.textFill=Ct(dt.getShallow("color"),dn)||Hr.color,Ht.textStroke=Ct(dt.getShallow("textBorderColor"),dn)||Hr.textBorderColor,Ht.textStrokeWidth=O.retrieve2(dt.getShallow("textBorderWidth"),Hr.textBorderWidth),Nn||(Vn&&(Ht.insideRollbackOpt=dn,Tt(Ht)),Ht.textFill==null&&(Ht.textFill=dn.autoColor)),Ht.fontStyle=dt.getShallow("fontStyle")||Hr.fontStyle,Ht.fontWeight=dt.getShallow("fontWeight")||Hr.fontWeight,Ht.fontSize=dt.getShallow("fontSize")||Hr.fontSize,Ht.fontFamily=dt.getShallow("fontFamily")||Hr.fontFamily,Ht.textAlign=dt.getShallow("align"),Ht.textVerticalAlign=dt.getShallow("verticalAlign")||dt.getShallow("baseline"),Ht.textLineHeight=dt.getShallow("lineHeight"),Ht.textWidth=dt.getShallow("width"),Ht.textHeight=dt.getShallow("height"),Ht.textTag=dt.getShallow("tag"),(!Vn||!dn.disableBox)&&(Ht.textBackgroundColor=Ct(dt.getShallow("backgroundColor"),dn),Ht.textPadding=dt.getShallow("padding"),Ht.textBorderColor=Ct(dt.getShallow("borderColor"),dn),Ht.textBorderWidth=dt.getShallow("borderWidth"),Ht.textBorderRadius=dt.getShallow("borderRadius"),Ht.textBoxShadowColor=dt.getShallow("shadowColor"),Ht.textBoxShadowBlur=dt.getShallow("shadowBlur"),Ht.textBoxShadowOffsetX=dt.getShallow("shadowOffsetX"),Ht.textBoxShadowOffsetY=dt.getShallow("shadowOffsetY")),Ht.textShadowColor=dt.getShallow("textShadowColor")||Hr.textShadowColor,Ht.textShadowBlur=dt.getShallow("textShadowBlur")||Hr.textShadowBlur,Ht.textShadowOffsetX=dt.getShallow("textShadowOffsetX")||Hr.textShadowOffsetX,Ht.textShadowOffsetY=dt.getShallow("textShadowOffsetY")||Hr.textShadowOffsetY}function Ct(Ht,dt){return Ht!=="auto"?Ht:dt&&dt.autoColor?dt.autoColor:null}function Tt(Ht){var dt=Ht.textPosition,Hr=Ht.insideRollbackOpt,dn;if(Hr&&Ht.textFill==null){var Nn=Hr.autoColor,Vn=Hr.isRectText,gi=Hr.useInsideStyle,bn=gi!==!1&&(gi===!0||Vn&&dt&&typeof dt=="string"&&dt.indexOf("inside")>=0),Mn=!bn&&Nn!=null;(bn||Mn)&&(dn={textFill:Ht.textFill,textStroke:Ht.textStroke,textStrokeWidth:Ht.textStrokeWidth}),bn&&(Ht.textFill="#fff",Ht.textStroke==null&&(Ht.textStroke=Nn,Ht.textStrokeWidth==null&&(Ht.textStrokeWidth=2))),Mn&&(Ht.textFill=Nn)}Ht.insideRollback=dn}function Dt(Ht){var dt=Ht.insideRollback;dt&&(Ht.textFill=dt.textFill,Ht.textStroke=dt.textStroke,Ht.textStrokeWidth=dt.textStrokeWidth,Ht.insideRollback=null)}function Be(Ht,dt){var Hr=dt&&dt.getModel("textStyle");return O.trim([Ht.fontStyle||Hr&&Hr.getShallow("fontStyle")||"",Ht.fontWeight||Hr&&Hr.getShallow("fontWeight")||"",(Ht.fontSize||Hr&&Hr.getShallow("fontSize")||12)+"px",Ht.fontFamily||Hr&&Hr.getShallow("fontFamily")||"sans-serif"].join(" "))}function ie(Ht,dt,Hr,dn,Nn,Vn){typeof Nn=="function"&&(Vn=Nn,Nn=null);var gi=dn&&dn.isAnimationEnabled();if(gi){var bn=Ht?"Update":"",Mn=dn.getShallow("animationDuration"+bn),jt=dn.getShallow("animationEasing"+bn),St=dn.getShallow("animationDelay"+bn);typeof St=="function"&&(St=St(Nn,dn.getAnimationDelayParams?dn.getAnimationDelayParams(dt,Nn):null)),typeof Mn=="function"&&(Mn=Mn(Nn)),Mn>0?dt.animateTo(Hr,Mn,St||0,jt,Vn,!!Vn):(dt.stopAnimation(),dt.attr(Hr),Vn&&Vn())}else dt.stopAnimation(),dt.attr(Hr),Vn&&Vn()}function X(Ht,dt,Hr,dn,Nn){ie(!0,Ht,dt,Hr,dn,Nn)}function Fe(Ht,dt,Hr,dn,Nn){ie(!1,Ht,dt,Hr,dn,Nn)}function Ne(Ht,dt){for(var Hr=A.identity([]);Ht&&Ht!==dt;)A.mul(Hr,Ht.getLocalTransform(),Hr),Ht=Ht.parent;return Hr}function q(Ht,dt,Hr){return dt&&!O.isArrayLike(dt)&&(dt=f.getLocalTransform(dt)),Hr&&(dt=A.invert([],dt)),w.applyTransform([],Ht,dt)}function ht(Ht,dt,Hr){var dn=dt[4]===0||dt[5]===0||dt[0]===0?1:Math.abs(2*dt[4]/dt[0]),Nn=dt[4]===0||dt[5]===0||dt[2]===0?1:Math.abs(2*dt[4]/dt[2]),Vn=[Ht==="left"?-dn:Ht==="right"?dn:0,Ht==="top"?-Nn:Ht==="bottom"?Nn:0];return Vn=q(Vn,dt,Hr),Math.abs(Vn[0])>Math.abs(Vn[1])?Vn[0]>0?"right":"left":Vn[1]>0?"bottom":"top"}function Rt(Ht,dt,Hr,dn){if(!Ht||!dt)return;function Nn(bn){var Mn={};return bn.traverse(function(jt){!jt.isGroup&&jt.anid&&(Mn[jt.anid]=jt)}),Mn}function Vn(bn){var Mn={position:w.clone(bn.position),rotation:bn.rotation};return bn.shape&&(Mn.shape=O.extend({},bn.shape)),Mn}var gi=Nn(Ht);dt.traverse(function(bn){if(!bn.isGroup&&bn.anid){var Mn=gi[bn.anid];if(Mn){var jt=Vn(bn);bn.attr(Vn(Mn)),X(bn,jt,Hr,bn.dataIndex)}}})}function ut(Ht,dt){return O.map(Ht,function(Hr){var dn=Hr[0];dn=S(dn,dt.x),dn=b(dn,dt.x+dt.width);var Nn=Hr[1];return Nn=S(Nn,dt.y),Nn=b(Nn,dt.y+dt.height),[dn,Nn]})}function Xt(Ht,dt){var Hr=S(Ht.x,dt.x),dn=b(Ht.x+Ht.width,dt.x+dt.width),Nn=S(Ht.y,dt.y),Vn=b(Ht.y+Ht.height,dt.y+dt.height);if(dn>=Hr&&Vn>=Nn)return{x:Hr,y:Nn,width:dn-Hr,height:Vn-Nn}}function or(Ht,dt,Hr){dt=O.extend({rectHover:!0},dt);var dn=dt.style={strokeNoScale:!0};if(Hr=Hr||{x:-1,y:-1,width:2,height:2},Ht)return Ht.indexOf("image://")===0?(dn.image=Ht.slice(8),O.defaults(dn,Hr),new c(dt)):V(Ht.replace("path://",""),dt,Hr,"center")}function Zr(Ht,dt,Hr,dn,Nn){for(var Vn=0,gi=Nn[Nn.length-1];Vn<Nn.length;Vn++){var bn=Nn[Vn];if(ar(Ht,dt,Hr,dn,bn[0],bn[1],gi[0],gi[1]))return!0;gi=bn}}function ar(Ht,dt,Hr,dn,Nn,Vn,gi,bn){var Mn=Hr-Ht,jt=dn-dt,St=gi-Nn,Ie=bn-Vn,_e=dr(St,Ie,Mn,jt);if(er(_e))return!1;var Le=Ht-Nn,Ze=dt-Vn,it=dr(Le,Ze,Mn,jt)/_e;if(it<0||it>1)return!1;var ft=dr(Le,Ze,St,Ie)/_e;return!(ft<0||ft>1)}function dr(Ht,dt,Hr,dn){return Ht*dn-Hr*dt}function er(Ht){return Ht<=1e-6&&Ht>=-1e-6}j("circle",i),j("sector",n),j("ring",e),j("polygon",s),j("polyline",t),j("rect",a),j("line",l),j("bezierCurve",u),j("arc",h),B.Z2_EMPHASIS_LIFT=I,B.CACHED_LABEL_STYLE_PROPERTIES=L,B.extendShape=U,B.extendPath=F,B.registerShape=j,B.getShapeClass=W,B.makePath=V,B.makeImage=z,B.mergePath=$,B.resizePath=ue,B.subPixelOptimizeLine=ne,B.subPixelOptimizeRect=ge,B.subPixelOptimize=Oe,B.setElementHoverStyle=G,B.setHoverStyle=le,B.setAsHighDownDispatcher=fe,B.isHighDownDispatcher=xe,B.getHighlightDigit=Qe,B.setLabelStyle=ot,B.modifyLabelStyle=Je,B.setTextStyle=Te,B.setText=et,B.getFont=Be,B.updateProps=X,B.initProps=Fe,B.getTransform=Ne,B.applyTransform=q,B.transformDirection=ht,B.groupTransition=Rt,B.clipPointsByRect=ut,B.clipRectByRect=Xt,B.createIcon=or,B.linePolygonIntersect=Zr,B.lineLineIntersect=ar},IyUQ:function(H,B,d){var O=d("bYtY"),E=d("YH21"),C=d("IwbS"),A=d("iLNv"),w=d("fc+c"),m=d("OELB"),f=d("+TT/"),c=d("72pK"),o=C.Rect,r=m.linearMap,i=m.asc,n=O.bind,e=O.each,s=7,t=1,a=30,l="horizontal",u="vertical",h=5,p=["line","bar","candlestick","scatter"],g=w.extend({type:"dataZoom.slider",init:function(T,S){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=S},render:function(T,S,b,_){if(g.superApply(this,"render",arguments),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(){g.superApply(this,"remove",arguments),A.clear(this,"_dispatchZoomAction")},dispose:function(){g.superApply(this,"dispose",arguments),A.clear(this,"_dispatchZoomAction")},_buildView:function(){var T=this.group;T.removeAll(),this._resetLocation(),this._resetInterval();var S=this._displayables.barGroup=new C.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),T.add(S),this._positionGroup()},_resetLocation:function(){var T=this.dataZoomModel,S=this.api,b=this._findCoordRect(),_={width:S.getWidth(),height:S.getHeight()},I=this._orient===l?{right:_.width-b.x-b.width,top:_.height-a-s,width:b.width,height:a}:{right:s,top:b.y,width:a,height:b.height},L=f.getLayoutParams(T.option);O.each(["right","top","width","height"],function(D){L[D]==="ph"&&(L[D]=I[D])});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,S=this._location,b=this._orient,_=this.dataZoomModel.getFirstTargetAxisModel(),I=_&&_.get("inverse"),L=this._displayables.barGroup,N=(this._dataShadowInfo||{}).otherAxisInverse;L.attr(b===l&&!I?{scale:N?[1,1]:[1,-1]}:b===l&&I?{scale:N?[-1,1]:[-1,-1]}:b===u&&!I?{scale:N?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:N?[-1,-1]:[-1,1],rotation:Math.PI/2});var D=T.getBoundingRect([L]);T.attr("position",[S.x-D.x,S.y-D.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var T=this.dataZoomModel,S=this._size,b=this._displayables.barGroup;b.add(new o({silent:!0,shape:{x:0,y:0,width:S[0],height:S[1]},style:{fill:T.get("backgroundColor")},z2:-40})),b.add(new o({shape:{x:0,y:0,width:S[0],height:S[1]},style:{fill:"transparent"},z2:0,onclick:O.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var T=this._dataShadowInfo=this._prepareDataShadowInfo();if(!T)return;var S=this._size,b=T.series,_=b.getRawData(),I=b.getShadowDim?b.getShadowDim():T.otherDim;if(I==null)return;var L=_.getDataExtent(I),N=(L[1]-L[0])*.3;L=[L[0]-N,L[1]+N];var D=[0,S[1]],R=[0,S[0]],P=[[S[0],0],[0,0]],M=[],U=R[1]/(_.count()-1),F=0,j=Math.round(_.count()/S[0]),W;_.each([I],function(z,Y){if(j>0&&Y%j){F+=U;return}var $=z==null||isNaN(z)||z==="",ue=$?0:r(z,L,D,!0);$&&!W&&Y?(P.push([P[P.length-1][0],0]),M.push([M[M.length-1][0],0])):!$&&W&&(P.push([F,0]),M.push([F,0])),P.push([F,ue]),M.push([F,ue]),F+=U,W=$});var V=this.dataZoomModel;this._displayables.barGroup.add(new C.Polygon({shape:{points:P},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,S=T.get("showDataShadow");if(S===!1)return;var b,_=this.ecModel;return T.eachTargetAxis(function(I,L){var N=T.getAxisProxy(I.name,L).getTargetSeriesModels();O.each(N,function(D){if(b)return;if(S!==!0&&O.indexOf(p,D.get("type"))<0)return;var R=_.getComponent(I.axis,L).axis,P=v(I.name),M,U=D.coordinateSystem;P!=null&&U.getOtherAxis&&(M=U.getOtherAxis(R).inverse),P=D.getData().mapDimension(P),b={thisAxis:R,series:D,thisDim:I.name,otherDim:P,otherAxisInverse:M}},this)},this),b},_renderHandle:function(){var T=this._displayables,S=T.handles=[],b=T.handleLabels=[],_=this._displayables.barGroup,I=this._size,L=this.dataZoomModel;_.add(T.filler=new 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 D=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}),R=D.getBoundingRect();this._handleHeight=m.parsePercent(L.get("handleSize"),this._size[1]),this._handleWidth=R.width/R.height*this._handleHeight,D.setStyle(L.getModel("handleStyle").getItemStyle());var P=L.get("handleColor");P!=null&&(D.style.fill=P),_.add(S[N]=D);var M=L.textStyleModel;this.group.add(b[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(),S=this._getViewExtent();this._handleEnds=[r(T[0],[0,100],S,!0),r(T[1],[0,100],S,!0)]},_updateInterval:function(T,S){var b=this.dataZoomModel,_=this._handleEnds,I=this._getViewExtent(),L=b.findRepresentativeAxisProxy().getMinMaxSpan(),N=[0,100];c(S,_,I,b.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 D=this._range,R=this._range=i([r(_[0],I,N,!0),r(_[1],I,N,!0)]);return!D||D[0]!==R[0]||D[1]!==R[1]},_updateView:function(T){var S=this._displayables,b=this._handleEnds,_=i(b.slice()),I=this._size;e([0,1],function(L){var N=S.handles[L],D=this._handleHeight;N.attr({scale:[D/2,D/2],position:[b[L],I[1]/2-D/2]})},this),S.filler.setShape({x:_[0],y:0,width:_[1]-_[0],height:I[1]}),this._updateDataInfo(T)},_updateDataInfo:function(T){var S=this.dataZoomModel,b=this._displayables,_=b.handleLabels,I=this._orient,L=["",""];if(S.get("showDetail")){var N=S.findRepresentativeAxisProxy();if(N){var D=N.getAxisModel().axis,R=this._range,P=T?N.calculateDataWindow({start:R[0],end:R[1]}).valueWindow:N.getDataValueWindow();L=[this._formatLabel(P[0],D),this._formatLabel(P[1],D)]}}var M=i(this._handleEnds.slice());U.call(this,0),U.call(this,1);function U(F){var j=C.getTransform(b.handles[F].parent,this.group),W=C.transformDirection(F===0?"right":"left",j),V=this._handleWidth/2+h,z=C.applyTransform([M[F]+(F===0?-V:V),this._size[1]/2],j);_[F].setStyle({x:z[0],y:z[1],textVerticalAlign:I===l?"middle":W,textAlign:I===l?W:"center",text:L[F]})}},_formatLabel:function(T,S){var b=this.dataZoomModel,_=b.get("labelFormatter"),I=b.get("labelPrecision");(I==null||I==="auto")&&(I=S.getPixelPrecision());var L=T==null||isNaN(T)?"":S.type==="category"||S.type==="time"?S.scale.getLabel(Math.round(T)):T.toFixed(Math.min(I,20));return O.isFunction(_)?_(T,L):O.isString(_)?_.replace("{value}",L):L},_showDataInfo:function(T){T=this._dragging||T;var S=this._displayables.handleLabels;S[0].attr("invisible",!T),S[1].attr("invisible",!T)},_onDragMove:function(T,S,b,_){this._dragging=!0,E.stop(_.event);var I=this._displayables.barGroup.getLocalTransform(),L=C.applyTransform([S,b],I,!0),N=this._updateInterval(T,L[0]),D=this.dataZoomModel.get("realtime");this._updateView(!D),N&&D&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var T=this.dataZoomModel.get("realtime");!T&&this._dispatchZoomAction()},_onClickPanelClick:function(T){var S=this._size,b=this._displayables.barGroup.transformCoordToLocal(T.offsetX,T.offsetY);if(b[0]<0||b[0]>S[0]||b[1]<0||b[1]>S[1])return;var _=this._handleEnds,I=(_[0]+_[1])/2,L=this._updateInterval("all",b[0]-I);this._updateView(),L&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var T=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:T[0],end:T[1]})},_findCoordRect:function(){var T;if(e(this.getTargetCoordInfo(),function(_){if(!T&&_.length){var I=_[0].model.coordinateSystem;T=I.getRect&&I.getRect()}}),!T){var S=this.api.getWidth(),b=this.api.getHeight();T={x:S*.2,y:b*.2,width:S*.6,height:b*.6}}return T}});function v(T){var S={x:"y",y:"x",radius:"angle",angle:"radius"};return S[T]}function y(T){return T==="vertical"?"ns-resize":"ew-resize"}var x=g;H.exports=x},IzEo:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("lnY3"),A=d.n(C),w=d("Znn+"),m=d("14J3"),f=d("jCWc")},J66h:function(H,B,d){(function(O){var E,C;(function(A,w){H.exports=w(A)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof O!="undefined"?O:this,function(A){"use strict";A=A||{};var w=A.Base64,m="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(D){for(var R={},P=0,M=D.length;P<M;P++)R[D.charAt(P)]=P;return R}(f),o=String.fromCharCode,r=function(R){if(R.length<2){var P=R.charCodeAt(0);return P<128?R:P<2048?o(192|P>>>6)+o(128|P&63):o(224|P>>>12&15)+o(128|P>>>6&63)+o(128|P&63)}else{var P=65536+(R.charCodeAt(0)-55296)*1024+(R.charCodeAt(1)-56320);return o(240|P>>>18&7)+o(128|P>>>12&63)+o(128|P>>>6&63)+o(128|P&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,n=function(R){return R.replace(i,r)},e=function(R){var P=[0,2,1][R.length%3],M=R.charCodeAt(0)<<16|(R.length>1?R.charCodeAt(1):0)<<8|(R.length>2?R.charCodeAt(2):0),U=[f.charAt(M>>>18),f.charAt(M>>>12&63),P>=2?"=":f.charAt(M>>>6&63),P>=1?"=":f.charAt(M&63)];return U.join("")},s=A.btoa&&typeof A.btoa=="function"?function(D){return A.btoa(D)}:function(D){if(D.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return D.replace(/[\s\S]{1,3}/g,e)},t=function(R){return s(n(String(R)))},a=function(R){return R.replace(/[+\/]/g,function(P){return P=="+"?"-":"_"}).replace(/=/g,"")},l=function(R,P){return P?a(t(R)):t(R)},u=function(R){return l(R,!0)},h;A.Uint8Array&&(h=function(R,P){for(var M="",U=0,F=R.length;U<F;U+=3){var j=R[U],W=R[U+1],V=R[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 P?a(M):M});var p=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,g=function(R){switch(R.length){case 4:var P=(7&R.charCodeAt(0))<<18|(63&R.charCodeAt(1))<<12|(63&R.charCodeAt(2))<<6|63&R.charCodeAt(3),M=P-65536;return o((M>>>10)+55296)+o((M&1023)+56320);case 3:return o((15&R.charCodeAt(0))<<12|(63&R.charCodeAt(1))<<6|63&R.charCodeAt(2));default:return o((31&R.charCodeAt(0))<<6|63&R.charCodeAt(1))}},v=function(R){return R.replace(p,g)},y=function(R){var P=R.length,M=P%4,U=(P>0?c[R.charAt(0)]<<18:0)|(P>1?c[R.charAt(1)]<<12:0)|(P>2?c[R.charAt(2)]<<6:0)|(P>3?c[R.charAt(3)]:0),F=[o(U>>>16),o(U>>>8&255),o(U&255)];return F.length-=[0,0,2,1][M],F.join("")},x=A.atob&&typeof A.atob=="function"?function(D){return A.atob(D)}:function(D){return D.replace(/\S{1,4}/g,y)},T=function(R){return x(String(R).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(R){return v(x(R))},b=function(R){return String(R).replace(/[-_]/g,function(P){return P=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_=function(R){return S(b(R))},I;A.Uint8Array&&(I=function(R){return Uint8Array.from(T(b(R)),function(P){return P.charCodeAt(0)})});var L=function(){var R=A.Base64;return A.Base64=w,R};if(A.Base64={VERSION:m,atob:T,btoa:s,fromBase64:_,toBase64:l,utob:n,encode:l,encodeURI:u,btou:v,decode:_,noConflict:L,fromUint8Array:h,toUint8Array:I},typeof Object.defineProperty=="function"){var N=function(R){return{value:R,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(D){return l(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",N(function(){return l(this,!0)}))}}return A.Meteor&&(Base64=A.Base64),H.exports?H.exports.Base64=A.Base64:!(E=[],C=function(){return A.Base64}.apply(B,E),C!==void 0&&(H.exports=C)),{Base64:A.Base64}})}).call(this,d("yLpj"))},JEkh:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("ItGF"),m=d("4NO4"),f=d("7aKB"),c=d("OKJ2"),o=f.addCommas,r=f.encodeHTML;function i(s){m.defaultEmphasis(s,"label",["show"])}var n=C.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(s,t,a){this.mergeDefaultAndTheme(s,a),this._mergeOption(s,a,!1,!0)},isAnimationEnabled:function(){if(w.node)return!1;var s=this.__hostSeries;return this.getShallow("animation")&&s&&s.isAnimationEnabled()},mergeOption:function(s,t){this._mergeOption(s,t,!1,!1)},_mergeOption:function(s,t,a,l){var u=this.constructor,h=this.mainType+"Model";a||t.eachSeries(function(p){var g=p.get(this.mainType,!0),v=p[h];if(!g||!g.data){p[h]=null;return}v?v._mergeOption(g,t,!0):(l&&i(g),A.each(g.data,function(y){y instanceof Array?(i(y[0]),i(y[1])):i(y)}),v=new u(g,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(s){var t=this.getData(),a=this.getRawValue(s),l=A.isArray(a)?A.map(a,o).join(", "):o(a),u=t.getName(s),h=r(this.name);return(a!=null||u)&&(h+="<br />"),u&&(h+=r(u),a!=null&&(h+=" : ")),a!=null&&(h+=r(l)),h},getData:function(){return this._data},setData:function(s){this._data=s}});A.mixin(n,c);var e=n;H.exports=e},JGo8:function(H,B,d){},JLnu:function(H,B,d){var O=d("+TT/"),E=d("OELB"),C=E.parsePercent,A=E.linearMap;function w(o,r){return O.getLayoutRect(o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function m(o,r){for(var i=o.mapDimension("value"),n=o.mapArray(i,function(l){return l}),e=[],s=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(l,u){return s?n[l]-n[u]:n[u]-n[l]}),e}function f(o){o.each(function(r){var i=o.getItemModel(r),n=i.getModel("label"),e=n.get("position"),s=i.getModel("labelLine"),t=o.getItemLayout(r),a=t.points,l=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",u,h,p,g;if(l)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"),g=[[h,p],[h,p]];else{var v,y,x,T=s.get("length");e==="left"?(v=(a[3][0]+a[0][0])/2,y=(a[3][1]+a[0][1])/2,x=v-T,h=x-5,u="right"):e==="right"?(v=(a[1][0]+a[2][0])/2,y=(a[1][1]+a[2][1])/2,x=v+T,h=x+5,u="left"):e==="rightTop"?(v=a[1][0],y=a[1][1],x=v+T,h=x+5,u="top"):e==="rightBottom"?(v=a[2][0],y=a[2][1],x=v+T,h=x+5,u="bottom"):e==="leftTop"?(v=a[0][0],y=a[1][1],x=v-T,h=x-5,u="right"):e==="leftBottom"?(v=a[3][0],y=a[2][1],x=v-T,h=x-5,u="right"):(v=(a[1][0]+a[2][0])/2,y=(a[1][1]+a[2][1])/2,x=v+T,h=x+5,u="left");var S=y;g=[[v,y],[x,S]],p=S}t.label={linePoints:g,x:h,y:p,verticalAlign:"middle",textAlign:u,inside:l}})}function c(o,r,i){o.eachSeriesByType("funnel",function(n){var e=n.getData(),s=e.mapDimension("value"),t=n.get("sort"),a=w(n,r),l=m(e,t),u=[C(n.get("minSize"),a.width),C(n.get("maxSize"),a.width)],h=e.getDataExtent(s),p=n.get("min"),g=n.get("max");p==null&&(p=Math.min(h[0],0)),g==null&&(g=h[1]);var v=n.get("funnelAlign"),y=n.get("gap"),x=(a.height-y*(e.count()-1))/e.count(),T=a.y,S=function(P,M){var U=e.get(s,P)||0,F=A(U,[p,g],u,!0),j;switch(v){case"left":j=a.x;break;case"center":j=a.x+(a.width-F)/2;break;case"right":j=a.x+a.width-F;break}return[[j,M],[j+F,M]]};t==="ascending"&&(x=-x,y=-y,T+=a.height,l=l.reverse());for(var b=0;b<l.length;b++){var _=l[b],I=l[b+1],L=e.getItemModel(_),N=L.get("itemStyle.height");N==null?N=x:(N=C(N,a.height),t==="ascending"&&(N=-N));var D=S(_,T),R=S(I,T+N);T+=N+y,e.setItemLayout(_,{points:D.concat(R.slice().reverse())})}f(e)})}H.exports=c},JSwD:function(H,B,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(B,"__esModule",{value:!0}),B.default=t;var E=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 l=C();if(l&&l.has(a))return l.get(a);var u={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if(Object.prototype.hasOwnProperty.call(a,p)){var g=h?Object.getOwnPropertyDescriptor(a,p):null;g&&(g.get||g.set)?Object.defineProperty(u,p,g):u[p]=a[p]}return u.default=a,l&&l.set(a,u),u}var w=15,m=852,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],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function t(a,l,u,h,p,g,v,y){var x=y.bits,T=0,S=0,b=0,_=0,I=0,L=0,N=0,D=0,R=0,P=0,M,U,F,j,W,V=null,z=0,Y,$=new E.Buf16(w+1),ue=new E.Buf16(w+1),ne=null,ge=0,Oe,De,He;for(T=0;T<=w;T++)$[T]=0;for(S=0;S<h;S++)$[l[u+S]]++;for(I=x,_=w;_>=1&&!($[_]!==0);_--);if(I>_&&(I=_),_===0)return p[g++]=1<<24|64<<16|0,p[g++]=1<<24|64<<16|0,y.bits=1,0;for(b=1;b<_&&!($[b]!==0);b++);for(I<b&&(I=b),D=1,T=1;T<=w;T++)if(D<<=1,D-=$[T],D<0)return-1;if(D>0&&(a===c||_!==1))return-1;for(ue[1]=0,T=1;T<w;T++)ue[T+1]=ue[T]+$[T];for(S=0;S<h;S++)l[u+S]!==0&&(v[ue[l[u+S]]++]=S);if(a===c?(V=ne=v,Y=19):a===o?(V=i,z-=257,ne=n,ge-=257,Y=256):(V=e,ne=s,Y=-1),P=0,S=0,T=b,W=g,L=I,N=0,F=-1,R=1<<I,j=R-1,a===o&&R>m||a===r&&R>f)return 1;for(;;){Oe=T-N,v[S]<Y?(De=0,He=v[S]):v[S]>Y?(De=ne[ge+v[S]],He=V[z+v[S]]):(De=32+64,He=0),M=1<<T-N,U=1<<L,b=U;do U-=M,p[W+(P>>N)+U]=Oe<<24|De<<16|He|0;while(U!==0);for(M=1<<T-1;P&M;)M>>=1;if(M!==0?(P&=M-1,P+=M):P=0,S++,--$[T]===0){if(T===_)break;T=l[u+v[S]]}if(T>I&&(P&j)!==F){for(N===0&&(N=I),W+=b,L=T-N,D=1<<L;L+N<_&&!(D-=$[L+N],D<=0);)L++,D<<=1;if(R+=1<<L,a===o&&R>m||a===r&&R>f)return 1;F=P&j,p[F]=I<<24|L<<16|W-g|0}}return P!==0&&(p[W+P]=T-N<<24|64<<16|0),y.bits=I,0}},JVwQ:function(H,B,d){var O=d("ProS"),E=d("1NG9"),C=E.Polygon,A=d("IwbS"),w=d("bYtY"),m=w.bind,f=w.extend,c=d("gPAo"),o=O.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(i,n,e){var s=i.getData(),t=this.group,a=i.getLayerSeries(),l=s.getLayout("layoutInfo"),u=l.rect,h=l.boundaryGap;t.attr("position",[0,u.y+h[0]]);function p(x){return x.name}var g=new c(this._layersSeries||[],a,p,p),v={};g.add(m(y,this,"add")).update(m(y,this,"update")).remove(m(y,this,"remove")).execute();function y(x,T,S){var b=this._layers;if(x==="remove"){t.remove(b[T]);return}for(var _=[],I=[],L,N=a[T].indices,D=0;D<N.length;D++){var R=s.getItemLayout(N[D]),P=R.x,M=R.y0,U=R.y;_.push([P,M]),I.push([P,M+U]),L=s.getItemVisual(N[D],"color")}var F,j,W=s.getItemLayout(N[0]),V=s.getItemModel(N[D-1]),z=V.getModel("label"),Y=z.get("margin");if(x==="add"){var $=v[T]=new A.Group;F=new C({shape:{points:_,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),j=new A.Text({style:{x:W.x-Y,y:W.y0+W.y/2}}),$.add(F),$.add(j),t.add($),F.setClipPath(r(F.getBoundingRect(),i,function(){F.removeClipPath()}))}else{var $=b[S];F=$.childAt(0),j=$.childAt(1),t.add($),v[T]=$,A.updateProps(F,{shape:{points:_,stackedOnPoints:I}},i),A.updateProps(j,{style:{x:W.x-Y,y:W.y0+W.y/2}},i)}var ue=V.getModel("emphasis.itemStyle"),ne=V.getModel("itemStyle");A.setTextStyle(j.style,z,{text:z.get("show")?i.getFormattedLabel(N[D-1],"normal")||s.getName(N[D-1]):null,textVerticalAlign:"middle"}),F.setStyle(f({fill:L},ne.getItemStyle(["color"]))),A.setHoverStyle(F,ue.getItemStyle())}this._layersSeries=a,this._layers=v},dispose:function(){}});function r(i,n,e){var s=new A.Rect({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}});return A.initProps(s,{shape:{width:i.width+20,height:i.height+20}},n,e),s}H.exports=o},JgUQ:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},JsLm:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d("i8i4"),l=d("TSYQ"),u=d.n(l),h=d("zT1h"),p=d("cDf5"),g=d.n(p),v=d("BGR+"),y=d("VTBJ"),x=d("1OyB"),T=d("vuIU"),S=d("Ji7U"),b=d("LK+K"),_=d("m+aA"),I=d("Zm9Q"),L=d("Kwbf"),N=d("c+Xe"),D=d("bdgK"),R="rc-observer-key",P=function(ot){Object(S.a)(Te,ot);var Je=Object(b.a)(Te);function Te(){var et;return Object(x.a)(this,Te),et=Je.apply(this,arguments),et.resizeObserver=null,et.childNode=null,et.currentElement=null,et.state={width:0,height:0,offsetHeight:0,offsetWidth:0},et.onResize=function(ze){var nt=et.props.onResize,Ot=ze[0].target,Ct=Ot.getBoundingClientRect(),Tt=Ct.width,Dt=Ct.height,Be=Ot.offsetWidth,ie=Ot.offsetHeight,X=Math.floor(Tt),Fe=Math.floor(Dt);if(et.state.width!==X||et.state.height!==Fe||et.state.offsetWidth!==Be||et.state.offsetHeight!==ie){var Ne={width:X,height:Fe,offsetWidth:Be,offsetHeight:ie};et.setState(Ne),nt&&Promise.resolve().then(function(){nt(Object(y.a)(Object(y.a)({},Ne),{},{offsetWidth:Be,offsetHeight:ie}))})}},et.setChildNode=function(ze){et.childNode=ze},et}return Object(T.a)(Te,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var ze=this.props.disabled;if(ze){this.destroyObserver();return}var nt=Object(_.a)(this.childNode||this),Ot=nt!==this.currentElement;Ot&&(this.destroyObserver(),this.currentElement=nt),!this.resizeObserver&&nt&&(this.resizeObserver=new D.default(this.onResize),this.resizeObserver.observe(nt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var ze=this.props.children,nt=Object(I.a)(ze);if(nt.length>1)Object(L.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(nt.length===0)return Object(L.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Ot=nt[0];if(t.isValidElement(Ot)&&Object(N.c)(Ot)){var Ct=Ot.ref;nt[0]=t.cloneElement(Ot,{ref:Object(N.a)(Ct,this.setChildNode)})}return nt.length===1?nt[0]:nt.map(function(Tt,Dt){return!t.isValidElement(Tt)||"key"in Tt&&Tt.key!==null?Tt:t.cloneElement(Tt,{key:"".concat(R,"-").concat(Dt)})})}}]),Te}(t.Component);P.displayName="ResizeObserver";var M=P,U=d("H84U"),F=d("RIqP"),j=d.n(F),W=d("xEkU"),V=d.n(W);function z(ot){var Je,Te=function(nt){return function(){Je=null,ot.apply(void 0,j()(nt))}},et=function(){if(Je==null){for(var nt=arguments.length,Ot=new Array(nt),Ct=0;Ct<nt;Ct++)Ot[Ct]=arguments[Ct];Je=V()(Te(Ot))}};return et.cancel=function(){return V.a.cancel(Je)},et}function Y(){return function(ot,Je,Te){var et=Te.value,ze=!1;return{configurable:!0,get:function(){if(ze||this===ot.prototype||this.hasOwnProperty(Je))return et;var Ot=z(et.bind(this));return ze=!0,Object.defineProperty(this,Je,{value:Ot,configurable:!0,writable:!0}),ze=!1,Ot}}}}function $(ot){return ot!==window?ot.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ue(ot,Je,Te){return Te!==void 0&&Je.top>ot.top-Te?Te+Je.top:void 0}function ne(ot,Je,Te){if(Te!==void 0&&Je.bottom<ot.bottom+Te){var et=window.innerHeight-Je.bottom;return Te+et}return}var ge=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],Oe=[];function De(){return Oe}function He(ot,Je){if(!ot)return;var Te=Oe.find(function(et){return et.target===ot});Te?Te.affixList.push(Je):(Te={target:ot,affixList:[Je],eventHandlers:{}},Oe.push(Te),ge.forEach(function(et){Te.eventHandlers[et]=Object(h.a)(ot,et,function(){Te.affixList.forEach(function(ze){ze.lazyUpdatePosition()})})}))}function pe(ot){var Je=Oe.find(function(Te){var et=Te.affixList.some(function(ze){return ze===ot});return et&&(Te.affixList=Te.affixList.filter(function(ze){return ze!==ot})),et});Je&&Je.affixList.length===0&&(Oe=Oe.filter(function(Te){return Te!==Je}),ge.forEach(function(Te){var et=Je.eventHandlers[Te];et&&et.remove&&et.remove()}))}var Ue=function(ot,Je,Te,et){var ze=arguments.length,nt=ze<3?Je:et===null?et=Object.getOwnPropertyDescriptor(Je,Te):et,Ot;if((typeof Reflect=="undefined"?"undefined":g()(Reflect))==="object"&&typeof Reflect.decorate=="function")nt=Reflect.decorate(ot,Je,Te,et);else for(var Ct=ot.length-1;Ct>=0;Ct--)(Ot=ot[Ct])&&(nt=(ze<3?Ot(nt):ze>3?Ot(Je,Te,nt):Ot(Je,Te))||nt);return ze>3&&nt&&Object.defineProperty(Je,Te,nt),nt};function oe(){return typeof window!="undefined"?window:null}var ee;(function(ot){ot[ot.None=0]="None",ot[ot.Prepare=1]="Prepare"})(ee||(ee={}));var Xe=function(ot){n()(Te,ot);var Je=s()(Te);function Te(){var et;return m()(this,Te),et=Je.apply(this,arguments),et.state={status:ee.None,lastAffix:!1,prevTarget:null},et.getOffsetTop=function(){var ze=et.props.offsetBottom,nt=et.props.offsetTop;return ze===void 0&&nt===void 0&&(nt=0),nt},et.getOffsetBottom=function(){return et.props.offsetBottom},et.savePlaceholderNode=function(ze){et.placeholderNode=ze},et.saveFixedNode=function(ze){et.fixedNode=ze},et.measure=function(){var ze=et.state,nt=ze.status,Ot=ze.lastAffix,Ct=et.props.onChange,Tt=et.getTargetFunc();if(nt!==ee.Prepare||!et.fixedNode||!et.placeholderNode||!Tt)return;var Dt=et.getOffsetTop(),Be=et.getOffsetBottom(),ie=Tt();if(!ie)return;var X={status:ee.None},Fe=$(ie),Ne=$(et.placeholderNode),q=ue(Ne,Fe,Dt),ht=ne(Ne,Fe,Be);q!==void 0?(X.affixStyle={position:"fixed",top:q,width:Ne.width,height:Ne.height},X.placeholderStyle={width:Ne.width,height:Ne.height}):ht!==void 0&&(X.affixStyle={position:"fixed",bottom:ht,width:Ne.width,height:Ne.height},X.placeholderStyle={width:Ne.width,height:Ne.height}),X.lastAffix=!!X.affixStyle,Ct&&Ot!==X.lastAffix&&Ct(X.lastAffix),et.setState(X)},et.prepareMeasure=function(){if(et.setState({status:ee.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var ze},et.render=function(){var ze=et.context.getPrefixCls,nt=et.state,Ot=nt.affixStyle,Ct=nt.placeholderStyle,Tt=et.props,Dt=Tt.prefixCls,Be=Tt.children,ie=u()(A()({},ze("affix",Dt),Ot)),X=Object(v.default)(et.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return t.createElement(M,{onResize:function(){et.updatePosition()}},t.createElement("div",E()({},X,{ref:et.savePlaceholderNode}),Ot&&t.createElement("div",{style:Ct,"aria-hidden":"true"}),t.createElement("div",{className:ie,ref:et.saveFixedNode,style:Ot},t.createElement(M,{onResize:function(){et.updatePosition()}},Be))))},et}return c()(Te,[{key:"getTargetFunc",value:function(){var ze=this.context.getTargetContainer,nt=this.props.target;return nt!==void 0?nt:ze||oe}},{key:"componentDidMount",value:function(){var ze=this,nt=this.getTargetFunc();nt&&(this.timeout=setTimeout(function(){He(nt(),ze),ze.updatePosition()}))}},{key:"componentDidUpdate",value:function(ze){var nt=this.state.prevTarget,Ot=this.getTargetFunc(),Ct=null;Ot&&(Ct=Ot()||null),nt!==Ct&&(pe(this),Ct&&(He(Ct,this),this.updatePosition()),this.setState({prevTarget:Ct})),(ze.offsetTop!==this.props.offsetTop||ze.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),pe(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var ze=this.getTargetFunc(),nt=this.state.affixStyle;if(ze&&nt){var Ot=this.getOffsetTop(),Ct=this.getOffsetBottom(),Tt=ze();if(Tt&&this.placeholderNode){var Dt=$(Tt),Be=$(this.placeholderNode),ie=ue(Be,Dt,Ot),X=ne(Be,Dt,Ct);if(ie!==void 0&&nt.top===ie||X!==void 0&&nt.bottom===X)return}}this.prepareMeasure()}}]),Te}(t.Component);Xe.contextType=U.b,Ue([Y()],Xe.prototype,"updatePosition",null),Ue([Y()],Xe.prototype,"lazyUpdatePosition",null);var se=Xe,Q=d("zAh6"),G=d("i6bk"),J=t.createContext(null),ve=J;function de(){return window}function Ce(ot,Je){if(!ot.getClientRects().length)return 0;var Te=ot.getBoundingClientRect();return Te.width||Te.height?Je===window?(Je=ot.ownerDocument.documentElement,Te.top-Je.clientTop):Te.top-Je.getBoundingClientRect().top:Te.top}var Ee=/#(\S+)$/,le=function(ot){n()(Te,ot);var Je=s()(Te);function Te(){var et;return m()(this,Te),et=Je.apply(this,arguments),et.state={activeLink:null},et.links=[],et.registerLink=function(ze){et.links.includes(ze)||et.links.push(ze)},et.unregisterLink=function(ze){var nt=et.links.indexOf(ze);nt!==-1&&et.links.splice(nt,1)},et.getContainer=function(){var ze=et.context.getTargetContainer,nt=et.props.getContainer,Ot=nt||ze||de;return Ot()},et.handleScrollTo=function(ze){var nt=et.props,Ot=nt.offsetTop,Ct=nt.targetOffset;et.setCurrentActiveLink(ze);var Tt=et.getContainer(),Dt=Object(G.a)(Tt,!0),Be=Ee.exec(ze);if(!Be)return;var ie=document.getElementById(Be[1]);if(!ie)return;var X=Ce(ie,Tt),Fe=Dt+X;Fe-=Ct!==void 0?Ct:Ot||0,et.animating=!0,Object(Q.a)(Fe,{callback:function(){et.animating=!1},getContainer:et.getContainer})},et.saveInkNode=function(ze){et.inkNode=ze},et.setCurrentActiveLink=function(ze){var nt=et.state.activeLink,Ot=et.props.onChange;nt!==ze&&(et.setState({activeLink:ze}),Ot&&Ot(ze))},et.handleScroll=function(){if(et.animating)return;var ze=et.props,nt=ze.offsetTop,Ot=ze.bounds,Ct=ze.targetOffset,Tt=et.getCurrentAnchor(Ct!==void 0?Ct:nt||0,Ot);et.setCurrentActiveLink(Tt)},et.updateInk=function(){var ze=r()(et),nt=ze.prefixCls,Ot=a.findDOMNode(r()(et)),Ct=Ot.getElementsByClassName("".concat(nt,"-link-title-active"))[0];Ct&&(et.inkNode.style.top="".concat(Ct.offsetTop+Ct.clientHeight/2-4.5,"px"))},et.render=function(){var ze=et.context,nt=ze.getPrefixCls,Ot=ze.direction,Ct=et.props,Tt=Ct.prefixCls,Dt=Ct.className,Be=Dt===void 0?"":Dt,ie=Ct.style,X=Ct.offsetTop,Fe=Ct.affix,Ne=Ct.showInkInFixed,q=Ct.children,ht=et.state.activeLink,Rt=nt("anchor",Tt);et.prefixCls=Rt;var ut=u()("".concat(Rt,"-ink-ball"),{visible:ht}),Xt=u()(Be,"".concat(Rt,"-wrapper"),A()({},"".concat(Rt,"-rtl"),Ot==="rtl")),or=u()(Rt,{fixed:!Fe&&!Ne}),Zr=E()({maxHeight:X?"calc(100vh - ".concat(X,"px)"):"100vh"},ie),ar=t.createElement("div",{className:Xt,style:Zr},t.createElement("div",{className:or},t.createElement("div",{className:"".concat(Rt,"-ink")},t.createElement("span",{className:ut,ref:et.saveInkNode})),q));return t.createElement(ve.Provider,{value:{registerLink:et.registerLink,unregisterLink:et.unregisterLink,activeLink:et.state.activeLink,scrollTo:et.handleScrollTo,onClick:et.props.onClick}},Fe?t.createElement(se,{offsetTop:X,target:et.getContainer},ar):ar)},et}return c()(Te,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(h.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var ze=this.getContainer();this.scrollContainer!==ze&&(this.scrollContainer=ze,this.scrollEvent.remove(),this.scrollEvent=Object(h.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ot=this.props.getCurrentAnchor;if(typeof Ot=="function")return Ot();var Ct=[],Tt=this.getContainer();if(this.links.forEach(function(Be){var ie=Ee.exec(Be.toString());if(!ie)return;var X=document.getElementById(ie[1]);if(X){var Fe=Ce(X,Tt);Fe<ze+nt&&Ct.push({link:Be,top:Fe})}}),Ct.length){var Dt=Ct.reduce(function(Be,ie){return ie.top>Be.top?ie:Be});return Dt.link}return""}}]),Te}(t.Component);le.defaultProps={affix:!0,showInkInFixed:!1},le.contextType=U.b;var fe=function(ot){n()(Te,ot);var Je=s()(Te);function Te(){var et;return m()(this,Te),et=Je.apply(this,arguments),et.handleClick=function(ze){var nt=et.context,Ot=nt.scrollTo,Ct=nt.onClick,Tt=et.props,Dt=Tt.href,Be=Tt.title;Ct&&Ct(ze,{title:Be,href:Dt}),Ot(Dt)},et.renderAnchorLink=function(ze){var nt=ze.getPrefixCls,Ot=et.props,Ct=Ot.prefixCls,Tt=Ot.href,Dt=Ot.title,Be=Ot.children,ie=Ot.className,X=Ot.target,Fe=nt("anchor",Ct),Ne=et.context.activeLink===Tt,q=u()(ie,"".concat(Fe,"-link"),A()({},"".concat(Fe,"-link-active"),Ne)),ht=u()("".concat(Fe,"-link-title"),A()({},"".concat(Fe,"-link-title-active"),Ne));return t.createElement("div",{className:q},t.createElement("a",{className:ht,href:Tt,title:typeof Dt=="string"?Dt:"",target:X,onClick:et.handleClick},Dt),Be)},et}return c()(Te,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(ze){var nt=ze.href,Ot=this.props.href;nt!==Ot&&(this.context.unregisterLink(nt),this.context.registerLink(Ot))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return t.createElement(U.a,null,this.renderAnchorLink)}}]),Te}(t.Component);fe.defaultProps={href:"#"},fe.contextType=ve;var xe=fe;le.Link=xe;var Qe=B.a=le},JuEJ:function(H,B,d){var O=d("bYtY"),E=d("4NO4"),C=O.each,A=O.isObject,w=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function m(t){var a=t&&t.itemStyle;if(!a)return;for(var l=0,u=w.length;l<u;l++){var h=w[l],p=a.normal,g=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),g&&g[h]&&(t[h]=t[h]||{},t[h].emphasis?O.merge(t[h].emphasis,g[h]):t[h].emphasis=g[h],g[h]=null)}}function f(t,a,l){if(t&&t[a]&&(t[a].normal||t[a].emphasis)){var u=t[a].normal,h=t[a].emphasis;u&&(l?(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 l=A(t)&&t[a],u=A(l)&&l.textStyle;if(u)for(var h=0,p=E.TEXT_STYLE_OPTIONS.length;h<p;h++){var a=E.TEXT_STYLE_OPTIONS[h];u.hasOwnProperty(a)&&(l[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;m(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&&(m(a),r(a));var l=t.markLine;l&&(m(l),r(l));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 g=0;g<p.length;g++)r(p[g]);O.each(t.categories,function(x){c(x)})}if(h&&!O.isTypedArray(h))for(var g=0;g<h.length;g++)r(h[g]);var a=t.markPoint;if(a&&a.data)for(var v=a.data,g=0;g<v.length;g++)r(v[g]);var l=t.markLine;if(l&&l.data)for(var y=l.data,g=0;g<y.length;g++)O.isArray(y[g])?(r(y[g][0]),r(y[g][1])):r(y[g]);t.type==="gauge"?(o(t,"axisLabel"),o(t,"title"),o(t,"detail")):t.type==="treemap"?(f(t.breadcrumb,"itemStyle"),O.each(t.levels,function(x){c(x)})):t.type==="tree"&&c(t.leaves)}function n(t){return O.isArray(t)?t:t?[t]:[]}function e(t){return(O.isArray(t)?t[0]:t)||{}}function s(t,a){C(n(t.series),function(u){A(u)&&i(u)});var l=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];a&&l.push("valueAxis","categoryAxis","logAxis","timeAxis"),C(l,function(u){C(n(t[u]),function(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=s},K2GJ:function(H,B,d){var O=d("fW2E"),E=d("gut8"),C=E.ContextCachedBy,A=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],w=function(e){this.extendFrom(e,!1)};function m(n,e,s){var t=e.x==null?0:e.x,a=e.x2==null?1:e.x2,l=e.y==null?0:e.y,u=e.y2==null?0:e.y2;e.global||(t=t*s.width+s.x,a=a*s.width+s.x,l=l*s.height+s.y,u=u*s.height+s.y),t=isNaN(t)?0:t,a=isNaN(a)?1:a,l=isNaN(l)?0:l,u=isNaN(u)?0:u;var h=n.createLinearGradient(t,l,a,u);return h}function f(n,e,s){var t=s.width,a=s.height,l=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+s.x,h=h*a+s.y,p=p*l);var g=n.createRadialGradient(u,h,0,u,h,p);return g}w.prototype={constructor:w,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,s,t){var a=this,l=t&&t.style,u=!l||e.__attrCachedBy!==C.STYLE_BIND;e.__attrCachedBy=C.STYLE_BIND;for(var h=0;h<A.length;h++){var p=A[h],g=p[0];(u||a[g]!==l[g])&&(e[g]=O(e,g,a[g]||p[1]))}if((u||a.fill!==l.fill)&&(e.fillStyle=a.fill),(u||a.stroke!==l.stroke)&&(e.strokeStyle=a.stroke),(u||a.opacity!==l.opacity)&&(e.globalAlpha=a.opacity==null?1:a.opacity),(u||a.blend!==l.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var v=a.lineWidth;e.lineWidth=v/(this.strokeNoScale&&s&&s.getLineScale?s.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,s){if(e)for(var t in e)e.hasOwnProperty(t)&&(s===!0||(s===!1?!this.hasOwnProperty(t):e[t]!=null))&&(this[t]=e[t])},set:function(e,s){typeof e=="string"?this[e]=s:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,s,t){for(var a=s.type==="radial"?f:m,l=a(e,s,t),u=s.colorStops,h=0;h<u.length;h++)l.addColorStop(u[h].offset,u[h].color);return l}};for(var c=w.prototype,o=0;o<A.length;o++){var r=A[o];r[0]in c||(c[r[0]]=r[1])}w.getGradient=c.getGradient;var i=w;H.exports=i},K3mO:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.Base,w=C.WordArray,m=E.algo,f=m.MD5,c=m.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,s=e.hasher.create(),t=w.create(),a=t.words,l=e.keySize,u=e.iterations;a.length<l;){n&&s.update(n),n=s.update(r).finalize(i),s.reset();for(var h=1;h<u;h++)n=s.finalize(n),s.reset();t.concat(n)}return t.sigBytes=l*4,t}});E.EvpKDF=function(o,r,i){return c.create(i).compute(o,r)}}(),O.EvpKDF})},K4ya:function(H,B,d){var O=d("bYtY"),E=d("XxSj"),C=O.each;function A(o){if(o){for(var r in o)if(o.hasOwnProperty(r))return!0}}function w(o,r,i){var n={};return C(r,function(s){var t=n[s]=e();C(o[s],function(a,l){if(!E.isValidType(l))return;var u={type:l,visual:a};i&&i(u,s),t[l]=new E(u),l==="opacity"&&(u=O.clone(u),u.type="colorAlpha",t.__hidden.__alphaForOpacity=new E(u))})}),n;function e(){var s=function(){};s.prototype.__hidden=s.prototype;var t=new s;return t}}function m(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,s){var t={};O.each(o,function(p){var g=E.prepareVisualTypes(r[p]);t[p]=g});var a;function l(p){return i.getItemVisual(a,p)}function u(p,g){i.setItemVisual(a,p,g)}s==null?i.each(h):i.each([s],h);function h(p,g){a=s==null?p:g;var v=i.getRawDataItem(a);if(v&&v.visualMap===!1)return;for(var y=n.call(e,p),x=r[y],T=t[y],S=0,b=T.length;S<b;S++){var _=T[S];x[_]&&x[_].applyVisual(p,l,u)}}}function c(o,r,i,n){var e={};O.each(o,function(t){var a=E.prepareVisualTypes(r[t]);e[t]=a});function s(t,a){n!=null&&(n=a.getDimension(n));function l(_){return a.getItemVisual(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 g=n!=null?a.get(n,h,!0):h,v=i(g),y=r[v],x=e[v],T=0,S=x.length;T<S;T++){var b=x[T];y[b]&&y[b].applyVisual(g,l,u)}}}return{progress:s}}B.createVisualMappings=w,B.replaceVisualOption=m,B.applyVisual=f,B.incrementalApplyVisual=c},KCsZ:function(H,B,d){var O=d("bYtY");function E(C){for(var A=0;A<C.length;A++)C[A][1]||(C[A][1]=C[A][0]);return function(w,m,f){for(var c={},o=0;o<C.length;o++){var r=C[o][1];if(m&&O.indexOf(m,r)>=0||f&&O.indexOf(f,r)<0)continue;var i=w.getShallow(r);i!=null&&(c[C[o][0]]=i)}return c}}H.exports=E},KPFz:function(H,B,d){},KQeH:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},KS52:function(H,B,d){var O=d("OELB"),E=O.parsePercent,C=O.linearMap,A=d("+TT/"),w=d("u3DP"),m=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,s){n.eachSeriesByType(i,function(t){var a=t.getData(),l=a.mapDimension("value"),u=o(t,e),h=t.get("center"),p=t.get("radius");m.isArray(p)||(p=[0,p]),m.isArray(h)||(h=[h,h]);var g=E(u.width,e.getWidth()),v=E(u.height,e.getHeight()),y=Math.min(g,v),x=E(h[0],g)+u.x,T=E(h[1],v)+u.y,S=E(p[0],y/2),b=E(p[1],y/2),_=-t.get("startAngle")*c,I=t.get("minAngle")*c,L=0;a.each(l,function(Y){!isNaN(Y)&&L++});var N=a.getSum(l),D=Math.PI/(N||L)*2,R=t.get("clockwise"),P=t.get("roseType"),M=t.get("stillShowZeroSum"),U=a.getDataExtent(l);U[0]=0;var F=f,j=0,W=_,V=R?1:-1;if(a.each(l,function(Y,$){var ue;if(isNaN(Y)){a.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:R,cx:x,cy:T,r0:S,r:P?NaN:b,viewRect:u});return}P!=="area"?ue=N===0&&M?D:Y*D:ue=f/L,ue<I?(ue=I,F-=I):j+=Y;var ne=W+V*ue;a.setItemLayout($,{angle:ue,startAngle:W,endAngle:ne,clockwise:R,cx:x,cy:T,r0:S,r:P?C(Y,U,[S,b]):b,viewRect:u}),W=ne}),F<f&&L)if(F<=.001){var z=f/L;a.each(l,function(Y,$){if(!isNaN(Y)){var ue=a.getItemLayout($);ue.angle=z,ue.startAngle=_+V*$*z,ue.endAngle=_+V*($+1)*z}})}else D=F/j,W=_,a.each(l,function(Y,$){if(!isNaN(Y)){var ue=a.getItemLayout($),ne=ue.angle===I?I:Y*D;ue.startAngle=W,ue.endAngle=W+V*ne,W+=V*ne}});w(t,b,u.width,u.height,u.x,u.y)})}H.exports=r},KUOm:function(H,B){function d(O){var E={};O.eachSeriesByType("graph",function(C){var A=C.getCategoriesData(),w=C.getData(),m={};A.each(function(f){var c=A.getName(f);m["ec-"+c]=f;var o=A.getItemModel(f),r=o.get("itemStyle.color")||C.getColorFromPalette(c,E);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()&&w.each(function(f){var c=w.getItemModel(f),o=c.getShallow("category");if(o!=null){typeof o=="string"&&(o=m["ec-"+o]);for(var r=["color","opacity","symbol","symbolSize","symbolKeepAspect"],i=0;i<r.length;i++)w.getItemVisual(f,r[i],!0)==null&&w.setItemVisual(f,r[i],A.getItemVisual(o,r[i]))}})})}H.exports=d},Kagy:function(H,B){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,B,d){var O=d("ProS"),E=d("szbU");d("vF/C"),d("qwVE"),d("BuqR"),d("AE9C"),d("1u/T"),O.registerPreprocessor(E)},KmBX:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("CP8R")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="FilterFilled";var c=A.forwardRef(f);B.default=c},KmYQ:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.ZeroPadding={pad:function(C,A){var w=A*4;C.clamp(),C.sigBytes+=w-(C.sigBytes%w||w)},unpad:function(C){for(var A=C.words,w=C.sigBytes-1,w=C.sigBytes-1;w>=0;w--)if(A[w>>>2]>>>24-w%4*8&255){C.sigBytes=w+1;break}}},O.pad.ZeroPadding})},"KpQ+":function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("E/ki")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="ClockCircleOutlined";var c=A.forwardRef(f);B.default=c},KrTs:function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("cDf5"),A=d.n(C),w=d("pVnL"),m=d.n(w),f=d("q1tI"),c=d("UmKh"),o=d("TSYQ"),r=d.n(o),i=d("J4zp"),n=d.n(i),e=d("H84U"),s=d("0n0R"),t=function(b,_){var I={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&_.indexOf(L)<0&&(I[L]=b[L]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,L=Object.getOwnPropertySymbols(b);N<L.length;N++)_.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(b,L[N])&&(I[L[N]]=b[L[N]]);return I};function a(b){return b?b.toString().split("").reverse().map(function(_){var I=Number(_);return isNaN(I)?_:I}):[]}function l(b,_){for(var I=[],L=0;L<30;L++)I.push(f.createElement("p",{key:L.toString(),className:r()(_,{current:b===L})},L%10));return I}var u=function(_){var I=_.prefixCls,L=_.count,N=_.className,D=_.style,R=_.title,P=_.component,M=P===void 0?"sup":P,U=_.displayComponent,F=_.onAnimated,j=F===void 0?function(){}:F,W=t(_,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),V=f.useState(!0),z=n()(V,2),Y=z[0],$=z[1],ue=f.useState(L),ne=n()(ue,2),ge=ne[0],Oe=ne[1],De=f.useState(L),He=n()(De,2),pe=He[0],Ue=He[1],oe=f.useState(L),ee=n()(oe,2),Xe=ee[0],se=ee[1],Q=f.useContext(e.b),G=Q.getPrefixCls,J=G("scroll-number",I);pe!==L&&($(!0),Ue(L)),f.useEffect(function(){se(ge);var le;return Y&&(le=setTimeout(function(){$(!1),Oe(L),j()})),function(){le&&clearTimeout(le)}},[Y,L,j]);var ve=function(fe,xe){var Qe=Math.abs(Number(ge)),ot=Math.abs(Number(Xe)),Je=Math.abs(a(ge)[xe]),Te=Math.abs(a(ot)[xe]);return Y?10+fe:Qe>ot?Je>=Te?10+fe:20+fe:Je<=Te?10+fe:fe},de=function(fe,xe){if(typeof fe=="number"){var Qe=ve(fe,xe),ot=Y||a(Xe)[xe]===void 0;return f.createElement("span",{className:"".concat(J,"-only"),style:{transition:ot?"none":void 0,msTransform:"translateY(".concat(-Qe*100,"%)"),WebkitTransform:"translateY(".concat(-Qe*100,"%)"),transform:"translateY(".concat(-Qe*100,"%)")},key:xe},l(Qe,"".concat(J,"-only-unit")))}return f.createElement("span",{key:"symbol",className:"".concat(J,"-symbol")},fe)},Ce=function(){return ge&&Number(ge)%1===0?a(ge).map(function(fe,xe){return de(fe,xe)}).reverse():ge},Ee=m()(m()({},W),{style:D,className:r()(J,N),title:R});return D&&D.borderColor&&(Ee.style=m()(m()({},D),{boxShadow:"0 0 0 1px ".concat(D.borderColor," inset")})),U?Object(s.a)(U,{className:r()("".concat(J,"-custom-component"),U.props&&U.props.className)}):f.createElement(M,Ee,Ce())},h=u,p=d("09Wf");function g(b){return p.a.indexOf(b)!==-1}var v=function(_){var I,L=_.className,N=_.prefixCls,D=_.style,R=_.color,P=_.children,M=_.text,U=_.placement,F=U===void 0?"end":U,j=f.useContext(e.b),W=j.getPrefixCls,V=j.direction,z=W("ribbon",N),Y=g(R),$=r()(z,L,"".concat(z,"-placement-").concat(F),(I={},E()(I,"".concat(z,"-rtl"),V==="rtl"),E()(I,"".concat(z,"-color-").concat(R),Y),I)),ue={},ne={};return R&&!Y&&(ue.background=R,ne.color=R),f.createElement("div",{className:"".concat(z,"-wrapper")},P,f.createElement("div",{className:$,style:m()(m()({},ue),D)},M,f.createElement("div",{className:"".concat(z,"-corner"),style:ne})))},y=v,x=function(b,_){var I={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&_.indexOf(L)<0&&(I[L]=b[L]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,L=Object.getOwnPropertySymbols(b);N<L.length;N++)_.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(b,L[N])&&(I[L[N]]=b[L[N]]);return I},T=function(_){var I,L,N=_.prefixCls,D=_.scrollNumberPrefixCls,R=_.children,P=_.status,M=_.text,U=_.color,F=_.count,j=F===void 0?null:F,W=_.overflowCount,V=W===void 0?99:W,z=_.dot,Y=z===void 0?!1:z,$=_.size,ue=$===void 0?"default":$,ne=_.title,ge=_.offset,Oe=_.style,De=_.className,He=_.showZero,pe=He===void 0?!1:He,Ue=x(_,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),oe=f.useContext(e.b),ee=oe.getPrefixCls,Xe=oe.direction,se=ee("badge",N),Q=function(){var Ot=j>V?"".concat(V,"+"):j;return Ot},G=function(){return!!P||!!U},J=function(){var Ot=Q();return Ot==="0"||Ot===0},ve=function(){return Y&&!J()||G()},de=function(){return ve()?"":Q()},Ce=function(){return ne||(typeof j=="string"||typeof j=="number"?j:void 0)},Ee=function(){return Xe==="rtl"?ge?m()({left:parseInt(ge[0],10),marginTop:ge[1]},Oe):Oe:ge?m()({right:-parseInt(ge[0],10),marginTop:ge[1]},Oe):Oe},le=function(){var Ot=de(),Ct=Ot==null||Ot==="";return(Ct||J()&&!pe)&&!ve()},fe=function(){var Ot=le();return Ot||!M?null:f.createElement("span",{className:"".concat(se,"-status-text")},M)},xe=function(){var Ot=j;return!Ot||A()(Ot)!=="object"?void 0:Object(s.a)(Ot,{style:m()(m()({},Ee()),Ot.props&&Ot.props.style)})},Qe=function(){var Ot,Ct=ee("scroll-number",D),Tt=de(),Dt=ve(),Be=le(),ie=r()((Ot={},E()(Ot,"".concat(se,"-dot"),Dt),E()(Ot,"".concat(se,"-count"),!Dt),E()(Ot,"".concat(se,"-count-sm"),ue==="small"),E()(Ot,"".concat(se,"-multiple-words"),!Dt&&j&&j.toString&&j.toString().length>1),E()(Ot,"".concat(se,"-status-").concat(P),!!P),E()(Ot,"".concat(se,"-status-").concat(U),g(U)),Ot)),X=Ee();return U&&!g(U)&&(X=X||{},X.background=U),Be?null:f.createElement(h,{prefixCls:Ct,"data-show":!Be,className:ie,count:Tt,displayComponent:xe(),title:Ce(),style:X,key:"scrollNumber"})},ot=r()((I={},E()(I,"".concat(se,"-status-dot"),G()),E()(I,"".concat(se,"-status-").concat(P),!!P),E()(I,"".concat(se,"-status-").concat(U),g(U)),I)),Je={};U&&!g(U)&&(Je.background=U);var Te=r()(De,se,(L={},E()(L,"".concat(se,"-status"),G()),E()(L,"".concat(se,"-not-a-wrapper"),!R),E()(L,"".concat(se,"-rtl"),Xe==="rtl"),L));if(!R&&G()){var et=Ee(),ze=et&&et.color;return f.createElement("span",m()({},Ue,{className:Te,style:et}),f.createElement("span",{className:ot,style:Je}),f.createElement("span",{style:{color:ze},className:"".concat(se,"-status-text")},M))}return f.createElement("span",m()({},Ue,{className:Te}),R,f.createElement(c.a,{component:"",showProp:"data-show",transitionName:R?"".concat(se,"-zoom"):"",transitionAppear:!0},Qe()),fe())};T.Ribbon=y;var S=B.a=T},Kvyg:function(H,B,d){},KxBF:function(H,B){function d(O,E,C){var A=-1,w=O.length;E<0&&(E=-E>w?0:w+E),C=C>w?w:C,C<0&&(C+=w),w=E>C?0:C-E>>>0,E>>>=0;for(var m=Array(w);++A<w;)m[A]=O[A+E];return m}H.exports=d},KxFI:function(H,B,d){},KxfA:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=C.isTypedArray,w=C.extend,m=C.assert,f=C.each,c=C.isObject,o=d("4NO4"),r=o.getDataItemValue,i=o.isDataItemOption,n=d("OELB"),e=n.parseDate,s=d("7G+c"),t=d("k9D9"),a=t.SOURCE_FORMAT_TYPED_ARRAY,l=t.SOURCE_FORMAT_ARRAY_ROWS,u=t.SOURCE_FORMAT_ORIGINAL,h=t.SOURCE_FORMAT_OBJECT_ROWS;function p(R,P){s.isInstance(R)||(R=s.seriesDataToSource(R)),this._source=R;var M=this._data=R.data,U=R.sourceFormat;U===a&&(this._offset=0,this._dimSize=P,this._data=M);var F=v[U===l?U+"_"+R.seriesLayoutBy:U];w(this,F)}var g=p.prototype;g.pure=!1,g.persistent=!0,g.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(R){return this._data[R+this._source.startIndex]},appendData:T},arrayRows_row:{pure:!0,count:function(){var R=this._data[0];return R?Math.max(0,R.length-this._source.startIndex):0},getItem:function(R){R+=this._source.startIndex;for(var P=[],M=this._data,U=0;U<M.length;U++){var F=M[U];P.push(F?F[R]:null)}return P},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:y,getItem:x,appendData:T},keyedColumns:{pure:!0,count:function(){var R=this._source.dimensionsDefine[0].name,P=this._data[R];return P?P.length:0},getItem:function(R){for(var P=[],M=this._source.dimensionsDefine,U=0;U<M.length;U++){var F=this._data[M[U].name];P.push(F?F[R]:null)}return P},appendData:function(R){var P=this._data;f(R,function(M,U){for(var F=P[U]||(P[U]=[]),j=0;j<(M||[]).length;j++)F.push(M[j])})}},original:{count:y,getItem:x,appendData:T},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(R,P){R=R-this._offset,P=P||[];for(var M=this._dimSize*R,U=0;U<this._dimSize;U++)P[U]=this._data[M+U];return P},appendData:function(R){this._data=R},clean:function(){this._offset+=this.count(),this._data=null}}};function y(){return this._data.length}function x(R){return this._data[R]}function T(R){for(var P=0;P<R.length;P++)this._data.push(R[P])}var S={arrayRows:b,objectRows:function(R,P,M,U){return M!=null?R[U]:R},keyedColumns:b,original:function(R,P,M,U){var F=r(R);return M==null||!(F instanceof Array)?F:F[M]},typedArray:b};function b(R,P,M,U){return M!=null?R[M]:R}var _={arrayRows:I,objectRows:function(R,P,M,U){return L(R[P],this._dimensionInfos[P])},keyedColumns:I,original:function(R,P,M,U){var F=R&&(R.value==null?R:R.value);return!this._rawData.pure&&i(R)&&(this.hasItemOption=!0),L(F instanceof Array?F[U]:F,this._dimensionInfos[P])},typedArray:function(R,P,M,U){return R[U]}};function I(R,P,M,U){return L(R[U],this._dimensionInfos[P])}function L(R,P){var M=P&&P.type;if(M==="ordinal"){var U=P&&P.ordinalMeta;return U?U.parseAndCollect(R):R}return M==="time"&&typeof R!="number"&&R!=null&&R!=="-"&&(R=+e(R)),R==null||R===""?NaN:+R}function N(R,P,M){if(!R)return;var U=R.getRawDataItem(P);if(U==null)return;var F=R.getProvider().getSource().sourceFormat,j,W,V=R.getDimensionInfo(M);return V&&(j=V.name,W=V.index),S[F](U,P,W,j)}function D(R,P,M){if(!R)return;var U=R.getProvider().getSource().sourceFormat;if(U!==u&&U!==h)return;var F=R.getRawDataItem(P);if(U===u&&!c(F)&&(F=null),F)return F[M]}B.DefaultDataProvider=p,B.defaultDimValueGetters=_,B.retrieveRawValue=N,B.retrieveRawAttr=D},L0Ub:function(H,B,d){var O=d("bYtY"),E=O.each,C=O.createHashMap,A=O.assert,w=d("Tghj"),m=w.__DEV__,f=C(["tooltip","label","itemName","itemId","seriesName"]);function c(n){var e={},s=e.encode={},t=C(),a=[],l=[],u=e.userOutput={dimensionNames:n.dimensions.slice(),encode:{}};E(n.dimensions,function(y){var x=n.getDimensionInfo(y),T=x.coordDim;if(T){var S=x.coordDimIndex;o(s,T)[S]=y,x.isExtraCoord||(t.set(T,1),i(x.type)&&(a[0]=y),o(u.encode,T)[S]=x.index),x.defaultTooltip&&l.push(y)}f.each(function(b,_){var I=o(s,_),L=x.otherDims[_];L!=null&&L!==!1&&(I[L]=x.name)})});var h=[],p={};t.each(function(y,x){var T=s[x];p[x]=T[0],h=h.concat(T)}),e.dataDimsOnCoord=h,e.encodeFirstDimNotExtra=p;var g=s.label;g&&g.length&&(a=g.slice());var v=s.tooltip;return v&&v.length?l=v.slice():l.length||(l=a.slice()),s.defaultedLabel=a,s.defaultedTooltip=l,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")}B.OTHER_DIMENSIONS=f,B.summarizeDimensions=c,B.getDimensionTypeByAxis=r},L3Oj:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("HjIi");d("HM/N"),d("9eas"),d("eS4l"),d("y4/Y"),d("as94"),O.registerLayout(E.curry(C,"bar")),O.extendComponentView({type:"polar"})},L41K:function(H,B,d){"use strict";d.d(B,"a",function(){return j});var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),s=d.n(e),t=d("BGR+"),a=d("VTBJ"),l=d("rePB"),u=d("Ff2n"),h=d("1OyB"),p=d("vuIU"),g=d("Ji7U"),v=d("LK+K"),y=d("Zm9Q"),x=d("TSYQ"),T=d.n(x),S=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function b(W){return typeof W=="string"}var _=function(W){Object(g.a)(z,W);var V=Object(v.a)(z);function z(){var Y;return Object(h.a)(this,z),Y=V.apply(this,arguments),Y.onClick=function(){var $=Y.props,ue=$.onClick,ne=$.onStepClick,ge=$.stepIndex;ue&&ue.apply(void 0,arguments),ne(ge)},Y}return Object(p.a)(z,[{key:"renderIconNode",value:function(){var $,ue=this.props,ne=ue.prefixCls,ge=ue.progressDot,Oe=ue.stepIcon,De=ue.stepNumber,He=ue.status,pe=ue.title,Ue=ue.description,oe=ue.icon,ee=ue.iconPrefix,Xe=ue.icons,se,Q=T()("".concat(ne,"-icon"),"".concat(ee,"icon"),($={},Object(l.a)($,"".concat(ee,"icon-").concat(oe),oe&&b(oe)),Object(l.a)($,"".concat(ee,"icon-check"),!oe&&He==="finish"&&(Xe&&!Xe.finish||!Xe)),Object(l.a)($,"".concat(ee,"icon-cross"),!oe&&He==="error"&&(Xe&&!Xe.error||!Xe)),$)),G=e.createElement("span",{className:"".concat(ne,"-icon-dot")});return ge?typeof ge=="function"?se=e.createElement("span",{className:"".concat(ne,"-icon")},ge(G,{index:De-1,status:He,title:pe,description:Ue})):se=e.createElement("span",{className:"".concat(ne,"-icon")},G):oe&&!b(oe)?se=e.createElement("span",{className:"".concat(ne,"-icon")},oe):Xe&&Xe.finish&&He==="finish"?se=e.createElement("span",{className:"".concat(ne,"-icon")},Xe.finish):Xe&&Xe.error&&He==="error"?se=e.createElement("span",{className:"".concat(ne,"-icon")},Xe.error):oe||He==="finish"||He==="error"?se=e.createElement("span",{className:Q}):se=e.createElement("span",{className:"".concat(ne,"-icon")},De),Oe&&(se=Oe({index:De-1,status:He,title:pe,description:Ue,node:se})),se}},{key:"render",value:function(){var $,ue=this.props,ne=ue.className,ge=ue.prefixCls,Oe=ue.style,De=ue.active,He=ue.status,pe=He===void 0?"wait":He,Ue=ue.iconPrefix,oe=ue.icon,ee=ue.wrapperStyle,Xe=ue.stepNumber,se=ue.disabled,Q=ue.description,G=ue.title,J=ue.subTitle,ve=ue.progressDot,de=ue.stepIcon,Ce=ue.tailContent,Ee=ue.icons,le=ue.stepIndex,fe=ue.onStepClick,xe=ue.onClick,Qe=Object(u.a)(ue,S),ot=T()("".concat(ge,"-item"),"".concat(ge,"-item-").concat(pe),ne,($={},Object(l.a)($,"".concat(ge,"-item-custom"),oe),Object(l.a)($,"".concat(ge,"-item-active"),De),Object(l.a)($,"".concat(ge,"-item-disabled"),se===!0),$)),Je=Object(a.a)({},Oe),Te={};return fe&&!se&&(Te.role="button",Te.tabIndex=0,Te.onClick=this.onClick),e.createElement("div",Object.assign({},Qe,{className:ot,style:Je}),e.createElement("div",Object.assign({onClick:xe},Te,{className:"".concat(ge,"-item-container")}),e.createElement("div",{className:"".concat(ge,"-item-tail")},Ce),e.createElement("div",{className:"".concat(ge,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(ge,"-item-content")},e.createElement("div",{className:"".concat(ge,"-item-title")},G,J&&e.createElement("div",{title:typeof J=="string"?J:void 0,className:"".concat(ge,"-item-subtitle")},J)),Q&&e.createElement("div",{className:"".concat(ge,"-item-description")},Q))))}}]),z}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],L=function(W){Object(g.a)(z,W);var V=Object(v.a)(z);function z(){var Y;return Object(h.a)(this,z),Y=V.apply(this,arguments),Y.onStepClick=function($){var ue=Y.props,ne=ue.onChange,ge=ue.current;ne&&ge!==$&&ne($)},Y}return Object(p.a)(z,[{key:"render",value:function(){var $,ue=this,ne=this.props,ge=ne.prefixCls,Oe=ne.style,De=Oe===void 0?{}:Oe,He=ne.className,pe=ne.children,Ue=ne.direction,oe=ne.type,ee=ne.labelPlacement,Xe=ne.iconPrefix,se=ne.status,Q=ne.size,G=ne.current,J=ne.progressDot,ve=ne.stepIcon,de=ne.initial,Ce=ne.icons,Ee=ne.onChange,le=Object(u.a)(ne,I),fe=oe==="navigation",xe=J?"vertical":ee,Qe=T()(ge,"".concat(ge,"-").concat(Ue),He,($={},Object(l.a)($,"".concat(ge,"-").concat(Q),Q),Object(l.a)($,"".concat(ge,"-label-").concat(xe),Ue==="horizontal"),Object(l.a)($,"".concat(ge,"-dot"),!!J),Object(l.a)($,"".concat(ge,"-navigation"),fe),$));return s.a.createElement("div",Object.assign({className:Qe,style:De},le),Object(y.a)(pe).map(function(ot,Je){var Te=de+Je,et=Object(a.a)({stepNumber:"".concat(Te+1),stepIndex:Te,key:Te,prefixCls:ge,iconPrefix:Xe,wrapperStyle:De,progressDot:J,stepIcon:ve,icons:Ce,onStepClick:Ee&&ue.onStepClick},ot.props);return se==="error"&&Je===G-1&&(et.className="".concat(ge,"-next-error")),ot.props.status||(Te===G?et.status=se:Te<G?et.status="finish":et.status="wait"),et.active=Te===G,Object(e.cloneElement)(ot,et)}))}}]),z}(s.a.Component);L.Step=_,L.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var N=L,D=d("NAnI"),R=d.n(D),P=d("V/uB"),M=d.n(P),U=d("H84U"),F=d("CFYs"),j=function(W){r()(z,W);var V=n()(z);function z(){var Y;return m()(this,z),Y=V.apply(this,arguments),Y.renderSteps=function($){var ue=$.getPrefixCls,ne=$.direction,ge=ue("steps",Y.props.prefixCls),Oe=ue("",Y.props.iconPrefix),De=Y.props,He=De.percent,pe=De.size,Ue=T()(Y.props.className,A()({},"".concat(ge,"-rtl"),ne==="rtl")),oe={finish:e.createElement(R.a,{className:"".concat(ge,"-finish-icon")}),error:e.createElement(M.a,{className:"".concat(ge,"-error-icon")})},ee=function(se){var Q=se.node,G=se.status;if(G==="process"&&He!==void 0){var J=pe==="small"?32:40,ve=e.createElement("div",{className:"".concat(ge,"-progress-icon")},e.createElement(F.a,{type:"circle",percent:He,width:J,strokeWidth:4,format:function(){return null}}),Q);return ve}return Q};return e.createElement(N,E()({icons:oe},Object(t.default)(Y.props,["progress"]),{stepIcon:ee,prefixCls:ge,iconPrefix:Oe,className:Ue}))},Y}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,B){var d=["itemStyle","borderColor"];function O(E,C){var A=E.get("color");E.eachRawSeriesByType("boxplot",function(w){var m=A[w.seriesIndex%A.length],f=w.getData();f.setVisual({legendSymbol:"roundRect",color:w.get(d)||m}),E.isSeriesFiltered(w)||f.each(function(c){var o=f.getItemModel(c);f.setItemVisual(c,{color:o.get(d,!0)})})})}H.exports=O},LBfv:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=E.createHashMap,A=E.each;O.registerProcessor({getTargetSeries:function(w){var m=C();return w.eachComponent("dataZoom",function(f){f.eachTargetAxis(function(c,o,r){var i=r.getAxisProxy(c.name,o);A(i.getTargetSeriesModels(),function(n){m.set(n.uid,n)})})}),m},modifyOutputEnd:!0,overallReset:function(w,m){w.eachComponent("dataZoom",function(f){f.eachTargetAxis(function(c,o,r){r.getAxisProxy(c.name,o).reset(r,m)}),f.eachTargetAxis(function(c,o,r){r.getAxisProxy(c.name,o).filterData(r,m)})}),w.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,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function O(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function E(p,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function C(p,g,v){return g&&E(p.prototype,g),v&&E(p,v),p}var A=0,w=1,m=2,f=4,c=8,o=16,r=32,i=64,n=127,e=50,s=90,t=250,a=1e3,l=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 x=0;x<v.changedTouches.length;x++){var T=v.changedTouches[x];y.call(this,T.identifier,T.clientX,T.clientY)}}},{key:"_touchStart",value:function(v,y,x){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:x,lastX:y,lastY:x,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(w|c|o),this._stopLongpressTimeout();break;case 3:this._state&=~(m|r|i);break;default:this._state=A}}},{key:"_touchMove",value:function(v,y,x){var T=this._tracked.find(function(N){return N.id===v});if(T===void 0)return;T.lastX=y,T.lastY=x;var S=y-T.firstX,b=x-T.firstY;if((T.firstX!==T.lastX||T.firstY!==T.lastY)&&(T.angle=Math.atan2(b,S)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(S,b)<e)return;if(this._state&=~(w|m|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>s?this._state&=~r:this._state&=~i,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(v,y,x){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&=~(m|f);break;case 2:this._state&=~(w|f);break}}if(this._waitingRelease){Date.now()-this._releaseStart>t&&(this._state=A),this._tracked.some(function(b){return Date.now()-b.started>a})&&(this._state=A);var T=this._tracked.find(function(b){return b.id===v});if(T.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==A)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var S=0;S<this._tracked.length;S++)this._tracked[S].active&&this._ignored.push(this._tracked[S].id);this._tracked=[],this._state=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&(w|m|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()},l)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=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),x=Math.abs(v.y),T=this._getAverageDistance(),S=Math.abs(Math.hypot(T.first.x,T.first.y)-Math.hypot(T.last.x,T.last.y));x<S&&y<S?this._state=i:this._state=r,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(v){var y={type:this._stateToGesture(this._state)},x=this._getPosition(),T=x.last;v==="gesturestart"&&(T=x.first);switch(this._state){case r:case i:T=x.first;break}if(y.clientX=T.x,y.clientY=T.y,this._state===i){var S=this._getAverageDistance();v==="gesturestart"?(y.magnitudeX=S.first.x,y.magnitudeY=S.first.y):(y.magnitudeX=S.last.x,y.magnitudeY=S.last.y)}else if(this._state===r)if(v==="gesturestart")y.magnitudeX=0,y.magnitudeY=0;else{var b=this._getAverageMovement();y.magnitudeX=b.x,y.magnitudeY=b.y}var _=new CustomEvent(v,{detail:y});this._target.dispatchEvent(_)}},{key:"_stateToGesture",value:function(v){switch(v){case w:return"onetap";case m: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,x=0,T=0,S=0,b=0;b<this._tracked.length;b++)y+=this._tracked[b].firstX,x+=this._tracked[b].firstY,T+=this._tracked[b].lastX,S+=this._tracked[b].lastY;return{first:{x:y/v,y:x/v},last:{x:T/v,y:S/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 x=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/x,y:y/x}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var v=this._tracked[0],y=this._tracked[this._tracked.length-1],x=Math.abs(y.firstX-v.firstX),T=Math.abs(y.firstY-v.firstY),S=Math.abs(y.lastX-v.lastX),b=Math.abs(y.lastY-v.lastY);return{first:{x,y:T},last:{x:S,y:b}}}}]),p}();B.default=h},LPTA:function(H,B){var d=1;typeof window!="undefined"&&(d=Math.max(window.devicePixelRatio||1,1));var O=0,E=d;B.debugMode=O,B.devicePixelRatio=E},LPzL:function(H,B,d){var O=d("ProS");d("QzjZ"),d("vL6D"),d("xiyX"),d("y4/Y"),d("8Th4"),O.extendComponentView({type:"single"})},LSTS:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var O=function(){function n(e,s){for(var t=0;t<s.length;t++){var a=s[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,s,t){return s&&n(e.prototype,s),t&&n(e,t),e}}(),E=d("q1tI"),C=m(E),A=d("17x9"),w=m(A);function m(n){return n&&n.__esModule?n:{default:n}}function f(n,e){var s={};for(var t in n){if(e.indexOf(t)>=0)continue;if(!Object.prototype.hasOwnProperty.call(n,t))continue;s[t]=n[t]}return s}function c(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function 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(s){c(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s));return t.scrollListener=t.scrollListener.bind(t),t.eventListenerOptions=t.eventListenerOptions.bind(t),t.mousewheelListener=t.mousewheelListener.bind(t),t}return O(e,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var t=!1,a={get passive(){t=!0}};try{document.addEventListener("test",null,a),document.removeEventListener("test",null,a)}catch(l){}return t}},{key:"eventListenerOptions",value:function(){var t=this.props.useCapture;return this.isPassiveSupported()&&(t={useCapture:this.props.useCapture,passive:!0}),t}},{key:"setDefaultLoader",value:function(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(t){var a=this.props.getScrollParent&&this.props.getScrollParent();return a!=null?a:t&&t.parentNode}},{key:"filterProps",value:function(t){return t}},{key:"attachScrollListener",value:function(){var t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;var a=window;this.props.useWindow===!1&&(a=t),a.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),a.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}},{key:"scrollListener",value:function(){var t=this.scrollComponent,a=window,l=this.getParentElement(t),u=void 0;if(this.props.useWindow){var 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=l.scrollTop:u=t.scrollHeight-l.scrollTop-l.clientHeight;u<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=l.scrollHeight,this.beforeScrollTop=l.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(t,a){return t?this.calculateTopPosition(t)+(t.offsetHeight-a-window.innerHeight):0}},{key:"calculateTopPosition",value:function(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}},{key:"render",value:function(){var t=this,a=this.filterProps(this.props),l=a.children,u=a.element,h=a.hasMore,p=a.initialLoad,g=a.isReverse,v=a.loader,y=a.loadMore,x=a.pageStart,T=a.ref,S=a.threshold,b=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(D){t.scrollComponent=D,T&&T(D)};var N=[l];return h&&(v?g?N.unshift(v):N.push(v):this.defaultLoader&&(g?N.unshift(this.defaultLoader):N.push(this.defaultLoader))),C.default.createElement(u,L,N)}}]),e}(E.Component);i.propTypes={children:w.default.node.isRequired,element:w.default.node,hasMore:w.default.bool,initialLoad:w.default.bool,isReverse:w.default.bool,loader:w.default.node,loadMore:w.default.func.isRequired,pageStart:w.default.number,ref:w.default.func,getScrollParent:w.default.func,threshold:w.default.number,useCapture:w.default.bool,useWindow:w.default.bool},i.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},B.default=i,H.exports=B.default},Lerx:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("Mds0"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},Llu2:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="DeliveredProcedureOutlined";var f=B.a=E.forwardRef(m)},Lo0S:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.initLogging=m,B.getLogging=f,B.Error=B.Warn=B.Info=B.Debug=void 0;var O="warn",E=function(){};B.Debug=E;var C=function(){};B.Info=C;var A=function(){};B.Warn=A;var w=function(){};B.Error=w;function m(c){if(typeof c=="undefined"?c=O:O=c,B.Debug=E=B.Info=C=B.Warn=A=B.Error=w=function(){},typeof window.console!="undefined")switch(c){case"debug":B.Debug=E=console.debug.bind(window.console);case"info":B.Info=C=console.info.bind(window.console);case"warn":B.Warn=A=console.warn.bind(window.console);case"error":B.Error=w=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+c+"'")}}function f(){return O}m()},LtfV:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="InboxOutlined";var f=B.a=E.forwardRef(m)},Lyp1:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="QuestionCircleOutlined";var f=B.a=E.forwardRef(m)},LzGr:function(H,B,d){var O=d("ProS"),E=d("rnVJ");d("EMyp"),d("8x+h"),d("wt3j"),d("uOyE"),d("/stD"),O.registerPreprocessor(E)},MBQ8:function(H,B,d){var O=d("T4UG"),E=d("MwEJ"),C=O.extend({type:"series.__base_bar__",getInitialData:function(A,w){return E(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(A){var w=this.coordinateSystem;if(w){var m=w.dataToPoint(w.clampData(A)),f=this.getData(),c=f.getLayout("offset"),o=f.getLayout("size"),r=w.getBaseAxis().isHorizontal()?0:1;return m[r]+=c+o/2,m}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});H.exports=C},MEGo:function(H,B,d){var O=d("4fz+"),E=d("Dagg"),C=d("dqUG"),A=d("2fw6"),w=d("x6Kt"),m=d("rmlV"),f=d("yxFR"),c=d("y+Vt"),o=d("h7HQ"),r=d("1Jh7"),i=d("SKnc"),n=d("K2GJ"),e=d("Fofx"),s=d("NC18"),t=s.createFromString,a=d("bYtY"),l=a.isString,u=a.extend,h=a.defaults,p=a.trim,g=a.each,v=/[\s,]+/;function y(V){if(l(V)){var z=new DOMParser;V=z.parseFromString(V,"text/xml")}for(V.nodeType===9&&(V=V.firstChild);V.nodeName.toLowerCase()!=="svg"||V.nodeType!==1;)V=V.nextSibling;return V}function x(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}x.prototype.parse=function(V,z){z=z||{};var Y=y(V);if(!Y)throw new Error("Illegal svg");var $=new O;this._root=$;var ue=Y.getAttribute("viewBox")||"",ne=parseFloat(Y.getAttribute("width")||z.width),ge=parseFloat(Y.getAttribute("height")||z.height);isNaN(ne)&&(ne=null),isNaN(ge)&&(ge=null),N(Y,$,null,!0);for(var Oe=Y.firstChild;Oe;)this._parseNode(Oe,$),Oe=Oe.nextSibling;var De,He;if(ue){var pe=p(ue).split(v);pe.length>=4&&(De={x:parseFloat(pe[0]||0),y:parseFloat(pe[1]||0),width:parseFloat(pe[2]),height:parseFloat(pe[3])})}if(De&&ne!=null&&ge!=null&&(He=j(De,ne,ge),!z.ignoreViewBox)){var Ue=$;$=new O,$.add(Ue),Ue.scale=He.scale.slice(),Ue.position=He.position.slice()}return!z.ignoreRootClip&&ne!=null&&ge!=null&&$.setClipPath(new w({shape:{x:0,y:0,width:ne,height:ge}})),{root:$,width:ne,height:ge,viewBoxRect:De,viewBoxTransform:He}},x.prototype._parseNode=function(V,z){var Y=V.nodeName.toLowerCase();Y==="defs"?this._isDefine=!0:Y==="text"&&(this._isText=!0);var $;if(this._isDefine){var ue=S[Y];if(ue){var ne=ue.call(this,V),ge=V.getAttribute("id");ge&&(this._defs[ge]=ne)}}else{var ue=T[Y];ue&&($=ue.call(this,V,z),z.add($))}for(var Oe=V.firstChild;Oe;)Oe.nodeType===1&&this._parseNode(Oe,$),Oe.nodeType===3&&this._isText&&this._parseText(Oe,$),Oe=Oe.nextSibling;Y==="defs"?this._isDefine=!1:Y==="text"&&(this._isText=!1)},x.prototype._parseText=function(V,z){if(V.nodeType===1){var Y=V.getAttribute("dx")||0,$=V.getAttribute("dy")||0;this._textX+=parseFloat(Y),this._textY+=parseFloat($)}var ue=new C({style:{text:V.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});_(z,ue),N(V,ue,this._defs);var ne=ue.style.fontSize;ne&&ne<9&&(ue.style.fontSize=9,ue.scale=ue.scale||[1,1],ue.scale[0]*=ne/9,ue.scale[1]*=ne/9);var ge=ue.getBoundingRect();return this._textX+=ge.width,z.add(ue),ue};var T={g:function(z,Y){var $=new O;return _(Y,$),N(z,$,this._defs),$},rect:function(z,Y){var $=new w;return _(Y,$),N(z,$,this._defs),$.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)}),$},circle:function(z,Y){var $=new A;return _(Y,$),N(z,$,this._defs),$.setShape({cx:parseFloat(z.getAttribute("cx")||0),cy:parseFloat(z.getAttribute("cy")||0),r:parseFloat(z.getAttribute("r")||0)}),$},line:function(z,Y){var $=new f;return _(Y,$),N(z,$,this._defs),$.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)}),$},ellipse:function(z,Y){var $=new m;return _(Y,$),N(z,$,this._defs),$.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)}),$},polygon:function(z,Y){var $=z.getAttribute("points");$&&($=I($));var ue=new o({shape:{points:$||[]}});return _(Y,ue),N(z,ue,this._defs),ue},polyline:function(z,Y){var $=new c;_(Y,$),N(z,$,this._defs);var ue=z.getAttribute("points");ue&&(ue=I(ue));var ne=new r({shape:{points:ue||[]}});return ne},image:function(z,Y){var $=new E;return _(Y,$),N(z,$,this._defs),$.setStyle({image:z.getAttribute("xlink:href"),x:z.getAttribute("x"),y:z.getAttribute("y"),width:z.getAttribute("width"),height:z.getAttribute("height")}),$},text:function(z,Y){var $=z.getAttribute("x")||0,ue=z.getAttribute("y")||0,ne=z.getAttribute("dx")||0,ge=z.getAttribute("dy")||0;this._textX=parseFloat($)+parseFloat(ne),this._textY=parseFloat(ue)+parseFloat(ge);var Oe=new O;return _(Y,Oe),N(z,Oe,this._defs),Oe},tspan:function(z,Y){var $=z.getAttribute("x"),ue=z.getAttribute("y");$!=null&&(this._textX=parseFloat($)),ue!=null&&(this._textY=parseFloat(ue));var ne=z.getAttribute("dx")||0,ge=z.getAttribute("dy")||0,Oe=new O;return _(Y,Oe),N(z,Oe,this._defs),this._textX+=ne,this._textY+=ge,Oe},path:function(z,Y){var $=z.getAttribute("d")||"",ue=t($);return _(Y,ue),N(z,ue,this._defs),ue}},S={lineargradient:function(z){var Y=parseInt(z.getAttribute("x1")||0,10),$=parseInt(z.getAttribute("y1")||0,10),ue=parseInt(z.getAttribute("x2")||10,10),ne=parseInt(z.getAttribute("y2")||0,10),ge=new i(Y,$,ue,ne);return b(z,ge),ge},radialgradient:function(z){}};function b(V,z){for(var Y=V.firstChild;Y;){if(Y.nodeType===1){var $=Y.getAttribute("offset");$.indexOf("%")>0?$=parseInt($,10)/100:$?$=parseFloat($):$=0;var ue=Y.getAttribute("stop-color")||"#000000";z.addColorStop($,ue)}Y=Y.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),Y=[],$=0;$<z.length;$+=2){var ue=parseFloat(z[$]),ne=parseFloat(z[$+1]);Y.push([ue,ne])}return Y}var L={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function N(V,z,Y,$){var ue=z.__inheritedStyle||{},ne=z.type==="text";if(V.nodeType===1&&(M(V,z),u(ue,F(V)),!$)){for(var ge in L)if(L.hasOwnProperty(ge)){var Oe=V.getAttribute(ge);Oe!=null&&(ue[L[ge]]=Oe)}}var De=ne?"textFill":"fill",He=ne?"textStroke":"stroke";z.style=z.style||new n;var pe=z.style;ue.fill!=null&&pe.set(De,R(ue.fill,Y)),ue.stroke!=null&&pe.set(He,R(ue.stroke,Y)),g(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Ue){var oe=Ue==="lineWidth"&&ne?"textStrokeWidth":Ue;ue[Ue]!=null&&pe.set(oe,parseFloat(ue[Ue]))}),(!ue.textBaseline||ue.textBaseline==="auto")&&(ue.textBaseline="alphabetic"),ue.textBaseline==="alphabetic"&&(ue.textBaseline="bottom"),ue.textAlign==="start"&&(ue.textAlign="left"),ue.textAlign==="end"&&(ue.textAlign="right"),g(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Ue){ue[Ue]!=null&&pe.set(Ue,ue[Ue])}),ue.lineDash&&(z.style.lineDash=p(ue.lineDash).split(v)),pe[He]&&pe[He]!=="none"&&(z[He]=!0),z.__inheritedStyle=ue}var D=/url\(\s*#(.*?)\)/;function R(V,z){var Y=z&&V&&V.match(D);if(Y){var $=p(Y[1]),ue=z[$];return ue}return V}var P=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function M(V,z){var Y=V.getAttribute("transform");if(Y){Y=Y.replace(/,/g," ");var $=null,ue=[];Y.replace(P,function(De,He,pe){ue.push(He,pe)});for(var ne=ue.length-1;ne>0;ne-=2){var ge=ue[ne],Oe=ue[ne-1];$=$||e.create();switch(Oe){case"translate":ge=p(ge).split(v),e.translate($,$,[parseFloat(ge[0]),parseFloat(ge[1]||0)]);break;case"scale":ge=p(ge).split(v),e.scale($,$,[parseFloat(ge[0]),parseFloat(ge[1]||ge[0])]);break;case"rotate":ge=p(ge).split(v),e.rotate($,$,parseFloat(ge[0]));break;case"skew":ge=p(ge).split(v),console.warn("Skew transform is not supported yet");break;case"matrix":var ge=p(ge).split(v);$[0]=parseFloat(ge[0]),$[1]=parseFloat(ge[1]),$[2]=parseFloat(ge[2]),$[3]=parseFloat(ge[3]),$[4]=parseFloat(ge[4]),$[5]=parseFloat(ge[5]);break}}z.setLocalTransform($)}}var U=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(V){var z=V.getAttribute("style"),Y={};if(!z)return Y;var $={};U.lastIndex=0;for(var ue;(ue=U.exec(z))!=null;)$[ue[1]]=ue[2];for(var ne in L)L.hasOwnProperty(ne)&&$[ne]!=null&&(Y[L[ne]]=$[ne]);return Y}function j(V,z,Y){var $=z/V.width,ue=Y/V.height,ne=Math.min($,ue),ge=[ne,ne],Oe=[-(V.x+V.width/2)*ne+z/2,-(V.y+V.height/2)*ne+Y/2];return{scale:ge,position:Oe}}function W(V,z){var Y=new x;return Y.parse(V,z)}B.parseXML=y,B.makeViewBoxTransform=j,B.parseSVG=W},MFOe:function(H,B,d){(function(O){var E=m(),C=f(),A=c(),w=typeof window!="undefined"?window:O;H.exports={assign:E,create:C,trim:A,bind:o,slice:r,each:i,map:n,pluck:e,isList:s,isFunction:t,isObject:a,Global:w};function m(){return Object.assign?Object.assign:function(u,h,p,g){for(var v=1;v<arguments.length;v++)i(Object(arguments[v]),function(y,x){u[x]=y});return u}}function f(){if(Object.create)return function(h,p,g,v){var y=r(arguments,1);return E.apply(this,[Object.create(h)].concat(y))};var l=function(){};return function(h,p,g,v){var y=r(arguments,1);return l.prototype=h,E.apply(this,[new l].concat(y))}}function c(){return String.prototype.trim?function(u){return String.prototype.trim.call(u)}:function(u){return u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function o(l,u){return function(){return u.apply(l,Array.prototype.slice.call(arguments,0))}}function r(l,u){return Array.prototype.slice.call(l,u||0)}function i(l,u){e(l,function(h,p){return u(h,p),!1})}function n(l,u){var h=s(l)?[]:{};return e(l,function(p,g){return h[g]=u(p,g),!1}),h}function e(l,u){if(s(l)){for(var h=0;h<l.length;h++)if(u(l[h],h))return l[h]}else for(var p in l)if(l.hasOwnProperty(p)&&u(l[p],p))return l[p]}function s(l){return l!=null&&typeof l!="function"&&typeof l.length=="number"}function t(l){return l&&{}.toString.call(l)==="[object Function]"}function a(l){return l&&{}.toString.call(l)==="[object Object]"}}).call(this,d("yLpj"))},MH26:function(H,B,d){var O=d("bYtY"),E=d("YXkt"),C=d("OELB"),A=d("kj2x"),w=d("c8qY"),m=d("iPDy"),f=d("7hqr"),c=f.getStackedDimension,o=function(a,l,u,h){var p=a.getData(),g=h.type;if(!O.isArray(h)&&(g==="min"||g==="max"||g==="average"||g==="median"||h.xAxis!=null||h.yAxis!=null)){var v,y;if(h.yAxis!=null||h.xAxis!=null)v=l.getAxis(h.yAxis!=null?"y":"x"),y=O.retrieve(h.yAxis,h.xAxis);else{var x=A.getAxisInfo(h,p,l,a);v=x.valueAxis;var T=c(p,x.valueDataDim);y=A.numCalculate(p,T,g)}var S=v.dim==="x"?0:1,b=1-S,_=O.clone(h),I={};_.type=null,_.coord=[],I.coord=[],_.coord[b]=-Infinity,I.coord[b]=Infinity;var L=u.get("precision");L>=0&&typeof y=="number"&&(y=+y.toFixed(Math.min(L,20))),_.coord[S]=I.coord[S]=y,h=[_,I,{type:g,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,l,u,h){var p=1-a,g=h.dimensions[a];return r(l[p])&&r(u[p])&&l[a]===u[a]&&h.getAxis(g).containData(l[a])}function n(a,l){if(a.type==="cartesian2d"){var u=l[0].coord,h=l[1].coord;if(u&&h&&(i(1,u,h,a)||i(0,u,h,a)))return!0}return A.dataFilter(a,l[0])&&A.dataFilter(a,l[1])}function e(a,l,u,h,p){var g=h.coordinateSystem,v=a.getItemModel(l),y,x=C.parsePercent(v.get("x"),p.getWidth()),T=C.parsePercent(v.get("y"),p.getHeight());if(!isNaN(x)&&!isNaN(T))y=[x,T];else{if(h.getMarkerPosition)y=h.getMarkerPosition(a.getValues(a.dimensions,l));else{var S=g.dimensions,b=a.get(S[0],l),_=a.get(S[1],l);y=g.dataToPoint([b,_])}if(g.type==="cartesian2d"){var I=g.getAxis("x"),L=g.getAxis("y"),S=g.dimensions;r(a.get(S[0],l))?y[0]=I.toGlobalCoord(I.getExtent()[u?0:1]):r(a.get(S[1],l))&&(y[1]=L.toGlobalCoord(L.getExtent()[u?0:1]))}isNaN(x)||(y[0]=x),isNaN(T)||(y[1]=T)}a.setItemLayout(l,y)}var s=m.extend({type:"markLine",updateTransform:function(a,l,u){l.eachSeries(function(h){var p=h.markLineModel;if(p){var g=p.getData(),v=p.__from,y=p.__to;v.each(function(x){e(v,x,!0,h,u),e(y,x,!1,h,u)}),g.each(function(x){g.setItemLayout(x,[v.getItemLayout(x),y.getItemLayout(x)])}),this.markerGroupMap.get(h.id).updateLayout()}},this)},renderSeries:function(a,l,u,h){var p=a.coordinateSystem,g=a.id,v=a.getData(),y=this.markerGroupMap,x=y.get(g)||y.set(g,new w);this.group.add(x.group);var T=t(p,a,l),S=T.from,b=T.to,_=T.line;l.__from=S,l.__to=b,l.setData(_);var I=l.get("symbol"),L=l.get("symbolSize");O.isArray(I)||(I=[I,I]),typeof L=="number"&&(L=[L,L]),T.from.each(function(D){N(S,D,!0),N(b,D,!1)}),_.each(function(D){var R=_.getItemModel(D).get("lineStyle.color");_.setItemVisual(D,{color:R||S.getItemVisual(D,"color")}),_.setItemLayout(D,[S.getItemLayout(D),b.getItemLayout(D)]),_.setItemVisual(D,{fromSymbolSize:S.getItemVisual(D,"symbolSize"),fromSymbol:S.getItemVisual(D,"symbol"),toSymbolSize:b.getItemVisual(D,"symbolSize"),toSymbol:b.getItemVisual(D,"symbol")})}),x.updateData(_),T.line.eachItemGraphicEl(function(D,R){D.traverse(function(P){P.dataModel=l})});function N(D,R,P){var M=D.getItemModel(R);e(D,R,P,a,h),D.setItemVisual(R,{symbolSize:M.get("symbolSize")||L[P?0:1],symbol:M.get("symbol",!0)||I[P?0:1],color:M.get("itemStyle.color")||v.getVisual("color")})}x.__keep=!0,x.group.silent=l.get("silent")||a.get("silent")}});function t(a,l,u){var h;a?h=O.map(a&&a.dimensions,function(T){var S=l.getData().getDimensionInfo(l.getData().mapDimension(T))||{};return O.defaults({name:T},S)}):h=[{name:"value",type:"float"}];var p=new E(h,u),g=new E(h,u),v=new E([],u),y=O.map(u.get("data"),O.curry(o,l,a,u));a&&(y=O.filter(y,O.curry(n,a)));var x=a?A.dimValueGetter:function(T){return T.value};return p.initData(O.map(y,function(T){return T[0]}),null,x),g.initData(O.map(y,function(T){return T[1]}),null,x),v.initData(O.map(y,function(T){return T[2]})),v.hasItemOption=!0,{from:p,to:g,line:v}}H.exports=s},MHoB:function(H,B,d){var O=d("bYtY"),E=d("6uqw"),C=d("OELB"),A=[20,140],w=E.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(c,o){w.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){w.superApply(this,"resetItemSize",arguments);var c=this.itemSize;this._orient==="horizontal"&&c.reverse(),(c[0]==null||isNaN(c[0]))&&(c[0]=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(){E.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,s){c[0]<=e&&e<=c[1]&&i.push(s)},this),o.push({seriesId:r.id,dataIndex:i})},this),o},getVisualMeta:function(c){var o=m(this,"outOfRange",this.getExtent()),r=m(this,"inRange",this.option.range.slice()),i=[];function n(h,p){i.push({value:h,color:c(h,p)})}for(var e=0,s=0,t=r.length,a=o.length;s<a&&(!r.length||o[s]<=r[0]);s++)o[s]<r[e]&&n(o[s],"outOfRange");for(var l=1;e<t;e++,l=0)l&&i.length&&n(r[e],"outOfRange"),n(r[e],"inRange");for(var l=1;s<a;s++)(!r.length||r[r.length-1]<o[s])&&(l&&(i.length&&n(i[i.length-1].value,"outOfRange"),l=0),n(o[s],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}}});function m(c,o,r){if(r[0]===r[1])return r.slice();for(var i=200,n=(r[1]-r[0])/i,e=r[0],s=[],t=0;t<=i&&e<r[1];t++)s.push(e),e+=n;return s.push(r[1]),s}var f=w;H.exports=f},MHtr:function(H,B,d){var O=d("bYtY");function E(A,w){var m=this.getAxis(),f=w instanceof Array?w[0]:w,c=(A instanceof Array?A[0]:A)/2;return m.type==="category"?m.getBandWidth():Math.abs(m.dataToCoord(f-c)-m.dataToCoord(f+c))}function C(A){var w=A.getRect();return{coordSys:{type:"singleAxis",x:w.x,y:w.y,width:w.width,height:w.height},api:{coord:function(m){return A.dataToPoint(m)},size:O.bind(E,A)}}}H.exports=C},MJZm:function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("q1tI"),m=d("rePB"),f=d("VTBJ"),c=d("KQm4"),o=d("1OyB"),r=d("vuIU"),i=d("Ji7U"),n=d("LK+K"),e=d("4IlW"),s=d("Kwbf"),t=d("TSYQ"),a=d.n(t),l=d("FTAc"),u=d("wPhX"),h=d("c3jg"),p=d("ODXe"),g=d("Ff2n"),v=d("+nKL"),y=d("HTfv"),x=d("lr6o"),T=function(Tt,Dt){var Be=Tt.className,ie=Tt.style,X=Tt.motion,Fe=Tt.motionNodes,Ne=Tt.motionType,q=Tt.onMotionStart,ht=Tt.onMotionEnd,Rt=Tt.active,ut=Tt.treeNodeRequiredProps,Xt=Object(g.a)(Tt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),or=w.useState(!0),Zr=Object(p.a)(or,2),ar=Zr[0],dr=Zr[1],er=w.useContext(l.a),Ht=er.prefixCls,dt=w.useRef(!1),Hr=function(){dt.current||ht(),dt.current=!0};return Object(w.useEffect)(function(){Fe&&Ne==="hide"&&ar&&dr(!1)},[Fe]),Object(w.useEffect)(function(){return Fe&&q(),function(){Fe&&Hr()}},[]),Fe?w.createElement(y.default,Object.assign({ref:Dt,visible:ar},X,{motionAppear:Ne==="show",onAppearEnd:Hr,onLeaveEnd:Hr}),function(dn,Nn){var Vn=dn.className,gi=dn.style;return w.createElement("div",{ref:Nn,className:a()("".concat(Ht,"-treenode-motion"),Vn),style:gi},Fe.map(function(bn){var Mn=bn.data,jt=Mn.key,St=Object(g.a)(Mn,["key"]),Ie=bn.isStart,_e=bn.isEnd;delete St.children;var Le=Object(h.f)(jt,ut);return w.createElement(x.a,Object.assign({},St,Le,{active:Rt,data:bn.data,key:jt,isStart:Ie,isEnd:_e}))}))}):w.createElement(x.a,Object.assign({domRef:Dt,className:Be,style:ie},Xt,{active:Rt}))};T.displayName="MotionTreeNode";var S=w.forwardRef(T),b=S;function _(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Dt=Ct.length,Be=Tt.length;if(Math.abs(Dt-Be)!==1)return{add:!1,key:null};function ie(X,Fe){var Ne=new Map;X.forEach(function(ht){Ne.set(ht,!0)});var q=Fe.filter(function(ht){return!Ne.has(ht)});return q.length===1?q[0]:null}return Dt<Be?{add:!0,key:ie(Ct,Tt)}:{add:!1,key:ie(Tt,Ct)}}function I(Ct,Tt,Dt){var Be=Ct.findIndex(function(Ne){var q=Ne.data;return q.key===Dt}),ie=Ct[Be+1],X=Tt.findIndex(function(Ne){var q=Ne.data;return q.key===Dt});if(ie){var Fe=Tt.findIndex(function(Ne){var q=Ne.data;return q.key===ie.data.key});return Tt.slice(X+1,Fe)}return Tt.slice(X+1)}var L={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},N=function(){},D="RC_TREE_MOTION_".concat(Math.random()),R={key:D},P={key:D,level:0,index:0,pos:"0",node:R},M={parent:null,children:[],pos:P.pos,data:R,isStart:[],isEnd:[]};function U(Ct,Tt,Dt,Be){return Tt===!1||!Dt?Ct:Ct.slice(0,Math.ceil(Dt/Be)+1)}function F(Ct){var Tt=Ct.data.key,Dt=Ct.pos;return Object(h.e)(Tt,Dt)}function j(Ct){for(var Tt=String(Ct.data.key),Dt=Ct;Dt.parent;)Dt=Dt.parent,Tt="".concat(Dt.data.key," > ").concat(Tt);return Tt}var W=function(Tt,Dt){var Be=Tt.prefixCls,ie=Tt.data,X=Tt.selectable,Fe=Tt.checkable,Ne=Tt.expandedKeys,q=Tt.selectedKeys,ht=Tt.checkedKeys,Rt=Tt.loadedKeys,ut=Tt.loadingKeys,Xt=Tt.halfCheckedKeys,or=Tt.keyEntities,Zr=Tt.disabled,ar=Tt.dragging,dr=Tt.dragOverNodeKey,er=Tt.dropPosition,Ht=Tt.motion,dt=Tt.height,Hr=Tt.itemHeight,dn=Tt.virtual,Nn=Tt.focusable,Vn=Tt.activeItem,gi=Tt.focused,bn=Tt.tabIndex,Mn=Tt.onKeyDown,jt=Tt.onFocus,St=Tt.onBlur,Ie=Tt.onActiveChange,_e=Tt.onListChangeStart,Le=Tt.onListChangeEnd,Ze=Object(g.a)(Tt,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),it=w.useRef(null);w.useImperativeHandle(Dt,function(){return{scrollTo:function(Ii){it.current.scrollTo(Ii)}}});var ft=w.useState(Ne),Nt=Object(p.a)(ft,2),Ar=Nt[0],Mr=Nt[1],un=w.useState(ie),Mt=Object(p.a)(un,2),at=Mt[0],lt=Mt[1],rr=w.useState(ie),Bt=Object(p.a)(rr,2),_t=Bt[0],Kt=Bt[1],wt=w.useState([]),Ut=Object(p.a)(wt,2),Sr=Ut[0],hr=Ut[1],gr=w.useState(null),Jr=Object(p.a)(gr,2),$r=Jr[0],Pn=Jr[1];function Dn(){lt(ie),Kt(ie),hr([]),Pn(null),Le()}w.useEffect(function(){Mr(Ne);var Ai=_(Ar,Ne);if(Ai.key!==null)if(Ai.add){var Ii=at.findIndex(function(Ve){var qe=Ve.data.key;return qe===Ai.key}),$e=U(I(at,ie,Ai.key),dn,dt,Hr),Se=at.slice();Se.splice(Ii+1,0,M),Kt(Se),hr($e),Pn("show")}else{var Re=ie.findIndex(function(Ve){var qe=Ve.data.key;return qe===Ai.key}),je=U(I(ie,at,Ai.key),dn,dt,Hr),Ye=ie.slice();Ye.splice(Re+1,0,M),Kt(Ye),hr(je),Pn("hide")}else at!==ie&&(lt(ie),Kt(ie))},[Ne,ie]),w.useEffect(function(){ar||Dn()},[ar]);var Zn=Ht?_t:ie,li={expandedKeys:Ne,selectedKeys:q,loadedKeys:Rt,loadingKeys:ut,checkedKeys:ht,halfCheckedKeys:Xt,dragOverNodeKey:dr,dropPosition:er,keyEntities:or};return w.createElement(w.Fragment,null,gi&&Vn&&w.createElement("span",{style:L,"aria-live":"assertive"},j(Vn)),w.createElement("div",{role:"tree"},w.createElement("input",{style:L,disabled:Nn===!1||Zr,tabIndex:Nn!==!1?bn:null,onKeyDown:Mn,onFocus:jt,onBlur:St,value:"",onChange:N})),w.createElement(v.a,Object.assign({},Ze,{data:Zn,itemKey:F,height:dt,fullHeight:!1,virtual:dn,itemHeight:Hr,prefixCls:"".concat(Be,"-list"),ref:it}),function(Ai){var Ii=Ai.pos,$e=Ai.data,Se=$e.key,Re=Object(g.a)($e,["key"]),je=Ai.isStart,Ye=Ai.isEnd,Ve=Object(h.e)(Se,Ii);delete Re.children;var qe=Object(h.f)(Ve,li);return w.createElement(b,Object.assign({},Re,qe,{active:Vn&&Se===Vn.data.key,pos:Ii,data:Ai.data,isStart:je,isEnd:Ye,motion:Ht,motionNodes:Se===D?Sr:null,motionType:$r,onMotionStart:_e,onMotionEnd:Dn,treeNodeRequiredProps:li,onMouseMove:function(){Ie(null)}}))}))},V=w.forwardRef(W);V.displayName="NodeList";var z=V,Y=d("qOx5"),$=function(Ct){Object(i.a)(Dt,Ct);var Tt=Object(n.a)(Dt);function Dt(){var Be;return Object(o.a)(this,Dt),Be=Tt.apply(this,arguments),Be.destroyed=!1,Be.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},Be.listRef=w.createRef(),Be.onNodeDragStart=function(ie,X){var Fe=Be.state,Ne=Fe.expandedKeys,q=Fe.keyEntities,ht=Be.props.onDragStart,Rt=X.props.eventKey;Be.dragNode=X;var ut=Object(u.b)(Ne,Rt);Be.setState({dragging:!0,dragNodesKeys:Object(u.g)(Rt,q)}),Be.setExpandedKeys(ut),ht&&ht({event:ie,node:Object(h.b)(X.props)})},Be.onNodeDragEnter=function(ie,X){var Fe=Be.state,Ne=Fe.expandedKeys,q=Fe.keyEntities,ht=Fe.dragNodesKeys,Rt=Be.props.onDragEnter,ut=X.props,Xt=ut.pos,or=ut.eventKey;if(!Be.dragNode||ht.indexOf(or)!==-1)return;var Zr=Object(u.c)(ie,X);if(Be.dragNode.props.eventKey===or&&Zr===0){Be.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Be.setState({dragOverNodeKey:or,dropPosition:Zr}),Be.delayedDragEnterLogic||(Be.delayedDragEnterLogic={}),Object.keys(Be.delayedDragEnterLogic).forEach(function(ar){clearTimeout(Be.delayedDragEnterLogic[ar])}),Be.delayedDragEnterLogic[Xt]=window.setTimeout(function(){if(!Be.state.dragging)return;var ar=Object(c.a)(Ne),dr=q[or];dr&&(dr.children||[]).length&&(ar=Object(u.a)(Ne,or)),"expandedKeys"in Be.props||Be.setExpandedKeys(ar),Rt&&Rt({event:ie,node:Object(h.b)(X.props),expandedKeys:ar})},400)},0)},Be.onNodeDragOver=function(ie,X){var Fe=Be.state.dragNodesKeys,Ne=Be.props.onDragOver,q=X.props.eventKey;if(Fe.indexOf(q)!==-1)return;if(Be.dragNode&&q===Be.state.dragOverNodeKey){var ht=Object(u.c)(ie,X);if(ht===Be.state.dropPosition)return;Be.setState({dropPosition:ht})}Ne&&Ne({event:ie,node:Object(h.b)(X.props)})},Be.onNodeDragLeave=function(ie,X){var Fe=Be.props.onDragLeave;Be.setState({dragOverNodeKey:""}),Fe&&Fe({event:ie,node:Object(h.b)(X.props)})},Be.onNodeDragEnd=function(ie,X){var Fe=Be.props.onDragEnd;Be.setState({dragOverNodeKey:""}),Be.cleanDragState(),Fe&&Fe({event:ie,node:Object(h.b)(X.props)}),Be.dragNode=null},Be.onNodeDrop=function(ie,X){var Fe=Be.state,Ne=Fe.dragNodesKeys,q=Ne===void 0?[]:Ne,ht=Fe.dropPosition,Rt=Be.props.onDrop,ut=X.props,Xt=ut.eventKey,or=ut.pos;if(Be.setState({dragOverNodeKey:""}),Be.cleanDragState(),q.indexOf(Xt)!==-1){Object(s.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Zr=Object(u.k)(or),ar={event:ie,node:Object(h.b)(X.props),dragNode:Be.dragNode?Object(h.b)(Be.dragNode.props):null,dragNodesKeys:q.slice(),dropPosition:ht+Number(Zr[Zr.length-1]),dropToGap:!1};ht!==0&&(ar.dropToGap=!0),Rt&&Rt(ar),Be.dragNode=null},Be.cleanDragState=function(){var ie=Be.state.dragging;ie&&Be.setState({dragging:!1})},Be.onNodeClick=function(ie,X){var Fe=Be.props.onClick;Fe&&Fe(ie,X)},Be.onNodeDoubleClick=function(ie,X){var Fe=Be.props.onDoubleClick;Fe&&Fe(ie,X)},Be.onNodeSelect=function(ie,X){var Fe=Be.state.selectedKeys,Ne=Be.state.keyEntities,q=Be.props,ht=q.onSelect,Rt=q.multiple,ut=X.selected,Xt=X.key,or=!ut;or?Rt?Fe=Object(u.a)(Fe,Xt):Fe=[Xt]:Fe=Object(u.b)(Fe,Xt);var Zr=Fe.map(function(ar){var dr=Ne[ar];return dr?dr.node:null}).filter(function(ar){return ar});Be.setUncontrolledState({selectedKeys:Fe}),ht&&ht(Fe,{event:"select",selected:or,node:X,selectedNodes:Zr,nativeEvent:ie.nativeEvent})},Be.onNodeCheck=function(ie,X,Fe){var Ne=Be.state,q=Ne.keyEntities,ht=Ne.checkedKeys,Rt=Ne.halfCheckedKeys,ut=Be.props,Xt=ut.checkStrictly,or=ut.onCheck,Zr=X.key,ar,dr={event:"check",node:X,checked:Fe,nativeEvent:ie.nativeEvent};if(Xt){var er=Fe?Object(u.a)(ht,Zr):Object(u.b)(ht,Zr),Ht=Object(u.b)(Rt,Zr);ar={checked:er,halfChecked:Ht},dr.checkedNodes=er.map(function(gi){return q[gi]}).filter(function(gi){return gi}).map(function(gi){return gi.node}),Be.setUncontrolledState({checkedKeys:er})}else{var dt=Object(Y.a)([].concat(Object(c.a)(ht),[Zr]),!0,q),Hr=dt.checkedKeys,dn=dt.halfCheckedKeys;if(!Fe){var Nn=new Set(Hr);Nn.delete(Zr);var Vn=Object(Y.a)(Array.from(Nn),{checked:!1,halfCheckedKeys:dn},q);Hr=Vn.checkedKeys,dn=Vn.halfCheckedKeys}ar=Hr,dr.checkedNodes=[],dr.checkedNodesPositions=[],dr.halfCheckedKeys=dn,Hr.forEach(function(gi){var bn=q[gi];if(!bn)return;var Mn=bn.node,jt=bn.pos;dr.checkedNodes.push(Mn),dr.checkedNodesPositions.push({node:Mn,pos:jt})}),Be.setUncontrolledState({checkedKeys:Hr},!1,{halfCheckedKeys:dn})}or&&or(ar,dr)},Be.onNodeLoad=function(ie){return new Promise(function(X){Be.setState(function(Fe){var Ne=Fe.loadedKeys,q=Ne===void 0?[]:Ne,ht=Fe.loadingKeys,Rt=ht===void 0?[]:ht,ut=Be.props,Xt=ut.loadData,or=ut.onLoad,Zr=ie.key;if(!Xt||q.indexOf(Zr)!==-1||Rt.indexOf(Zr)!==-1)return{};var ar=Xt(ie);return ar.then(function(){var dr=Be.state,er=dr.loadedKeys,Ht=dr.loadingKeys,dt=Object(u.a)(er,Zr),Hr=Object(u.b)(Ht,Zr);or&&or(dt,{event:"load",node:ie}),Be.setUncontrolledState({loadedKeys:dt}),Be.setState({loadingKeys:Hr}),X()}),{loadingKeys:Object(u.a)(Rt,Zr)}})})},Be.onNodeMouseEnter=function(ie,X){var Fe=Be.props.onMouseEnter;Fe&&Fe({event:ie,node:X})},Be.onNodeMouseLeave=function(ie,X){var Fe=Be.props.onMouseLeave;Fe&&Fe({event:ie,node:X})},Be.onNodeContextMenu=function(ie,X){var Fe=Be.props.onRightClick;Fe&&(ie.preventDefault(),Fe({event:ie,node:X}))},Be.onFocus=function(){var ie=Be.props.onFocus;Be.setState({focused:!0}),ie&&ie.apply(void 0,arguments)},Be.onBlur=function(){var ie=Be.props.onBlur;Be.setState({focused:!1}),Be.onActiveChange(null),ie&&ie.apply(void 0,arguments)},Be.getTreeNodeRequiredProps=function(){var ie=Be.state,X=ie.expandedKeys,Fe=ie.selectedKeys,Ne=ie.loadedKeys,q=ie.loadingKeys,ht=ie.checkedKeys,Rt=ie.halfCheckedKeys,ut=ie.dragOverNodeKey,Xt=ie.dropPosition,or=ie.keyEntities;return{expandedKeys:X||[],selectedKeys:Fe||[],loadedKeys:Ne||[],loadingKeys:q||[],checkedKeys:ht||[],halfCheckedKeys:Rt||[],dragOverNodeKey:ut,dropPosition:Xt,keyEntities:or}},Be.setExpandedKeys=function(ie){var X=Be.state.treeData,Fe=Object(h.d)(X,ie);Be.setUncontrolledState({expandedKeys:ie,flattenNodes:Fe},!0)},Be.onNodeExpand=function(ie,X){var Fe=Be.state.expandedKeys,Ne=Be.state.listChanging,q=Be.props,ht=q.onExpand,Rt=q.loadData,ut=X.key,Xt=X.expanded;if(Ne)return;var or=Fe.indexOf(ut),Zr=!Xt;if(Object(s.a)(Xt&&or!==-1||!Xt&&or===-1,"Expand state not sync with index check"),Zr?Fe=Object(u.a)(Fe,ut):Fe=Object(u.b)(Fe,ut),Be.setExpandedKeys(Fe),ht&&ht(Fe,{node:X,expanded:Zr,nativeEvent:ie.nativeEvent}),Zr&&Rt){var ar=Be.onNodeLoad(X);ar&&ar.then(function(){var dr=Object(h.d)(Be.state.treeData,Fe);Be.setUncontrolledState({flattenNodes:dr})})}},Be.onListChangeStart=function(){Be.setUncontrolledState({listChanging:!0})},Be.onListChangeEnd=function(){setTimeout(function(){Be.setUncontrolledState({listChanging:!1})})},Be.onActiveChange=function(ie){var X=Be.state.activeKey,Fe=Be.props.onActiveChange;if(X===ie)return;Be.setState({activeKey:ie}),ie!==null&&Be.scrollTo({key:ie}),Fe&&Fe(ie)},Be.getActiveItem=function(){var ie=Be.state,X=ie.activeKey,Fe=ie.flattenNodes;return X===null?null:Fe.find(function(Ne){var q=Ne.data.key;return q===X})||null},Be.offsetActiveKey=function(ie){var X=Be.state,Fe=X.flattenNodes,Ne=X.activeKey,q=Fe.findIndex(function(ut){var Xt=ut.data.key;return Xt===Ne});q===-1&&ie<0&&(q=Fe.length),q=(q+ie+Fe.length)%Fe.length;var ht=Fe[q];if(ht){var Rt=ht.data.key;Be.onActiveChange(Rt)}else Be.onActiveChange(null)},Be.onKeyDown=function(ie){var X=Be.state,Fe=X.activeKey,Ne=X.expandedKeys,q=X.checkedKeys,ht=Be.props,Rt=ht.onKeyDown,ut=ht.checkable,Xt=ht.selectable;switch(ie.which){case e.a.UP:{Be.offsetActiveKey(-1),ie.preventDefault();break}case e.a.DOWN:{Be.offsetActiveKey(1),ie.preventDefault();break}}var or=Be.getActiveItem();if(or&&or.data){var Zr=Be.getTreeNodeRequiredProps(),ar=or.data.isLeaf===!1||!!(or.data.children||[]).length,dr=Object(h.b)(Object(f.a)(Object(f.a)({},Object(h.f)(Fe,Zr)),{},{data:or.data,active:!0}));switch(ie.which){case e.a.LEFT:{ar&&Ne.includes(Fe)?Be.onNodeExpand({},dr):or.parent&&Be.onActiveChange(or.parent.data.key),ie.preventDefault();break}case e.a.RIGHT:{ar&&!Ne.includes(Fe)?Be.onNodeExpand({},dr):or.children&&or.children.length&&Be.onActiveChange(or.children[0].data.key),ie.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ut&&!dr.disabled&&dr.checkable!==!1&&!dr.disableCheckbox?Be.onNodeCheck({},dr,!q.includes(Fe)):!ut&&Xt&&!dr.disabled&&dr.selectable!==!1&&Be.onNodeSelect({},dr);break}}}Rt&&Rt(ie)},Be.setUncontrolledState=function(ie){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Be.destroyed)return;var Ne=!1,q=!0,ht={};Object.keys(ie).forEach(function(Rt){if(Rt in Be.props){q=!1;return}Ne=!0,ht[Rt]=ie[Rt]}),Ne&&(!X||q)&&Be.setState(Object(f.a)(Object(f.a)({},ht),Fe))},Be.scrollTo=function(ie){Be.listRef.current.scrollTo(ie)},Be}return Object(r.a)(Dt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ie,X=this.state,Fe=X.focused,Ne=X.flattenNodes,q=X.keyEntities,ht=X.dragging,Rt=X.activeKey,ut=this.props,Xt=ut.prefixCls,or=ut.className,Zr=ut.style,ar=ut.showLine,dr=ut.focusable,er=ut.tabIndex,Ht=er===void 0?0:er,dt=ut.selectable,Hr=ut.showIcon,dn=ut.icon,Nn=ut.switcherIcon,Vn=ut.draggable,gi=ut.checkable,bn=ut.checkStrictly,Mn=ut.disabled,jt=ut.motion,St=ut.loadData,Ie=ut.filterTreeNode,_e=ut.height,Le=ut.itemHeight,Ze=ut.virtual,it=ut.titleRender,ft=ut.onContextMenu,Nt=Object(u.f)(this.props);return w.createElement(l.a.Provider,{value:{prefixCls:Xt,selectable:dt,showIcon:Hr,icon:dn,switcherIcon:Nn,draggable:Vn,checkable:gi,checkStrictly:bn,disabled:Mn,keyEntities:q,loadData:St,filterTreeNode:Ie,titleRender:it,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},w.createElement("div",{className:a()(Xt,or,(ie={},Object(m.a)(ie,"".concat(Xt,"-show-line"),ar),Object(m.a)(ie,"".concat(Xt,"-focused"),Fe),Object(m.a)(ie,"".concat(Xt,"-active-focused"),Rt!==null),ie))},w.createElement(z,Object.assign({ref:this.listRef,prefixCls:Xt,style:Zr,data:Ne,disabled:Mn,selectable:dt,checkable:!!gi,motion:jt,dragging:ht,height:_e,itemHeight:Le,virtual:Ze,focusable:dr,focused:Fe,tabIndex:Ht,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ft},this.getTreeNodeRequiredProps(),Nt))))}}],[{key:"getDerivedStateFromProps",value:function(ie,X){var Fe=X.prevProps,Ne={prevProps:ie};function q(dn){return!Fe&&dn in ie||Fe&&Fe[dn]!==ie[dn]}var ht;if(q("treeData")?ht=ie.treeData:q("children")&&(Object(s.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ht=Object(h.c)(ie.children)),ht){Ne.treeData=ht;var Rt=Object(h.a)(ht);Ne.keyEntities=Object(f.a)(Object(m.a)({},D,P),Rt.keyEntities)}var ut=Ne.keyEntities||X.keyEntities;if(q("expandedKeys")||Fe&&q("autoExpandParent"))Ne.expandedKeys=ie.autoExpandParent||!Fe&&ie.defaultExpandParent?Object(u.e)(ie.expandedKeys,ut):ie.expandedKeys;else if(!Fe&&ie.defaultExpandAll){var Xt=Object(f.a)({},ut);delete Xt[D],Ne.expandedKeys=Object.keys(Xt).map(function(dn){return Xt[dn].key})}else!Fe&&ie.defaultExpandedKeys&&(Ne.expandedKeys=ie.autoExpandParent||ie.defaultExpandParent?Object(u.e)(ie.defaultExpandedKeys,ut):ie.defaultExpandedKeys);if(Ne.expandedKeys||delete Ne.expandedKeys,ht||Ne.expandedKeys){var or=Object(h.d)(ht||X.treeData,Ne.expandedKeys||X.expandedKeys);Ne.flattenNodes=or}if(ie.selectable&&(q("selectedKeys")?Ne.selectedKeys=Object(u.d)(ie.selectedKeys,ie):!Fe&&ie.defaultSelectedKeys&&(Ne.selectedKeys=Object(u.d)(ie.defaultSelectedKeys,ie))),ie.checkable){var Zr;if(q("checkedKeys")?Zr=Object(u.j)(ie.checkedKeys)||{}:!Fe&&ie.defaultCheckedKeys?Zr=Object(u.j)(ie.defaultCheckedKeys)||{}:ht&&(Zr=Object(u.j)(ie.checkedKeys)||{checkedKeys:X.checkedKeys,halfCheckedKeys:X.halfCheckedKeys}),Zr){var ar=Zr,dr=ar.checkedKeys,er=dr===void 0?[]:dr,Ht=ar.halfCheckedKeys,dt=Ht===void 0?[]:Ht;if(!ie.checkStrictly){var Hr=Object(Y.a)(er,!0,ut);er=Hr.checkedKeys,dt=Hr.halfCheckedKeys}Ne.checkedKeys=er,Ne.halfCheckedKeys=dt}}return q("loadedKeys")&&(Ne.loadedKeys=ie.loadedKeys),Ne}}]),Dt}(w.Component);$.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:[]},$.TreeNode=x.a;var ue=$,ne=ue,ge=d("RIqP"),Oe=d.n(ge),De=d("J4zp"),He=d.n(De),pe=d("sEfC"),Ue=d.n(pe),oe=d("vk+C"),ee=d.n(oe),Xe=d("Vy0f"),se=d.n(Xe),Q=d("kGiB"),G=d.n(Q),J=d("H84U"),ve;(function(Ct){Ct[Ct.None=0]="None",Ct[Ct.Start=1]="Start",Ct[Ct.End=2]="End"})(ve||(ve={}));function de(Ct,Tt){function Dt(Be){var ie=Be.key,X=Be.children;Tt(ie,Be)!==!1&&de(X||[],Tt)}Ct.forEach(Dt)}function Ce(Ct){var Tt=Ct.treeData,Dt=Ct.expandedKeys,Be=Ct.startKey,ie=Ct.endKey,X=[],Fe=ve.None;if(Be&&Be===ie)return[Be];if(!Be||!ie)return[];function Ne(q){return q===Be||q===ie}return de(Tt,function(q){if(Fe===ve.End)return!1;if(Ne(q)){if(X.push(q),Fe===ve.None)Fe=ve.Start;else if(Fe===ve.Start)return Fe=ve.End,!1}else Fe===ve.Start&&X.push(q);return!(Dt.indexOf(q)===-1)}),X}function Ee(Ct,Tt){var Dt=Oe()(Tt),Be=[];return de(Ct,function(ie,X){var Fe=Dt.indexOf(ie);return Fe!==-1&&(Be.push(X),Dt.splice(Fe,1)),!!Dt.length}),Be}var le=function(Ct,Tt){var Dt={};for(var Be in Ct)Object.prototype.hasOwnProperty.call(Ct,Be)&&Tt.indexOf(Be)<0&&(Dt[Be]=Ct[Be]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,Be=Object.getOwnPropertySymbols(Ct);ie<Be.length;ie++)Tt.indexOf(Be[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ct,Be[ie])&&(Dt[Be[ie]]=Ct[Be[ie]]);return Dt};function fe(Ct){var Tt=Ct.isLeaf,Dt=Ct.expanded;return Tt?w.createElement(ee.a,null):Dt?w.createElement(se.a,null):w.createElement(G.a,null)}function xe(Ct){var Tt=Ct.treeData,Dt=Ct.children;return Tt||Object(h.c)(Dt)}var Qe=function(Tt,Dt){var Be=Tt.defaultExpandAll,ie=Tt.defaultExpandParent,X=Tt.defaultExpandedKeys,Fe=le(Tt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),Ne=w.useRef(),q=w.useRef(),ht=w.createRef();w.useImperativeHandle(Dt,function(){return ht.current});var Rt=function(){var ft=Object(h.a)(xe(Fe)),Nt=ft.keyEntities,Ar;return Be?Ar=Object.keys(Nt):ie?Ar=Object(u.e)(Fe.expandedKeys||X,Nt):Ar=Fe.expandedKeys||X,Ar},ut=w.useState(Fe.selectedKeys||Fe.defaultSelectedKeys||[]),Xt=He()(ut,2),or=Xt[0],Zr=Xt[1],ar=w.useState(Rt()),dr=He()(ar,2),er=dr[0],Ht=dr[1];w.useEffect(function(){"selectedKeys"in Fe&&Zr(Fe.selectedKeys)},[Fe.selectedKeys]),w.useEffect(function(){"expandedKeys"in Fe&&Ht(Fe.expandedKeys)},[Fe.expandedKeys]);var dt=function(ft,Nt){var Ar=Nt.isLeaf;if(Ar||ft.shiftKey||ft.metaKey||ft.ctrlKey)return;ht.current.onNodeExpand(ft,Nt)},Hr=Ue()(dt,200,{leading:!0}),dn=function(ft,Nt){return"expandedKeys"in Fe||Ht(ft),Fe.onExpand?Fe.onExpand(ft,Nt):void 0},Nn=function(ft,Nt){var Ar=Fe.expandAction;Ar==="click"&&Hr(ft,Nt),Fe.onClick&&Fe.onClick(ft,Nt)},Vn=function(ft,Nt){var Ar=Fe.expandAction;Ar==="doubleClick"&&Hr(ft,Nt),Fe.onDoubleClick&&Fe.onDoubleClick(ft,Nt)},gi=function(ft,Nt){var Ar=Fe.multiple,Mr=Nt.node,un=Nt.nativeEvent,Mt=Mr.key,at=Mt===void 0?"":Mt,lt=xe(Fe),rr=A()(A()({},Nt),{selected:!0}),Bt=un.ctrlKey||un.metaKey,_t=un.shiftKey,Kt;Ar&&Bt?(Kt=ft,Ne.current=at,q.current=Kt,rr.selectedNodes=Ee(lt,Kt)):Ar&&_t?(Kt=Array.from(new Set([].concat(Oe()(q.current||[]),Oe()(Ce({treeData:lt,expandedKeys:er,startKey:at,endKey:Ne.current}))))),rr.selectedNodes=Ee(lt,Kt)):(Kt=[at],Ne.current=at,q.current=Kt,rr.selectedNodes=Ee(lt,Kt)),Fe.onSelect&&Fe.onSelect(Kt,rr),"selectedKeys"in Fe||Zr(Kt)},bn=w.useContext(J.b),Mn=bn.getPrefixCls,jt=bn.direction,St=Fe.prefixCls,Ie=Fe.className,_e=le(Fe,["prefixCls","className"]),Le=Mn("tree",St),Ze=a()("".concat(Le,"-directory"),Ie,E()({},"".concat(Le,"-directory-rtl"),jt==="rtl"));return w.createElement(nt,A()({icon:fe,ref:ht,blockNode:!0},_e,{prefixCls:Le,className:Ze,expandedKeys:er,selectedKeys:or,onSelect:gi,onClick:Nn,onDoubleClick:Vn,onExpand:dn}))},ot=w.forwardRef(Qe);ot.displayName="DirectoryTree",ot.defaultProps={showIcon:!0,expandAction:"click"};var Je=ot,Te=d("EXcs"),et=d("2jpz"),ze=w.forwardRef(function(Ct,Tt){var Dt,Be=w.useContext(J.b),ie=Be.getPrefixCls,X=Be.direction,Fe=Be.virtual,Ne=Ct.prefixCls,q=Ct.className,ht=Ct.showIcon,Rt=Ct.showLine,ut=Ct.switcherIcon,Xt=Ct.blockNode,or=Ct.children,Zr=Ct.checkable,ar=A()(A()({},Ct),{showLine:Boolean(Rt)}),dr=ie("tree",Ne);return w.createElement(ne,A()({itemHeight:20,ref:Tt,virtual:Fe},ar,{prefixCls:dr,className:a()(q,(Dt={},E()(Dt,"".concat(dr,"-icon-hide"),!ht),E()(Dt,"".concat(dr,"-block-node"),Xt),E()(Dt,"".concat(dr,"-rtl"),X==="rtl"),Dt)),checkable:Zr&&w.createElement("span",{className:"".concat(dr,"-checkbox-inner")}),switcherIcon:function(Ht){return Object(et.a)(dr,ut,Rt,Ht)}}),or)});ze.TreeNode=x.a,ze.DirectoryTree=Je,ze.defaultProps={checkable:!1,showIcon:!1,motion:A()(A()({},Te.a),{motionAppear:!1}),blockNode:!1};var nt=ze,Ot=B.a=nt},MKOG:function(H,B,d){var O=d("bYtY"),E=d("YH21"),C=E.Dispatcher,A=d("mLcG"),w=d("Bq2U"),m=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)};m.prototype={constructor:m,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=[],s=[],t=0;t<n;t++){var a=i[t],l=a.step(o,r);l&&(e.push(l),s.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++)s[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 w(o,r.loop,r.getter,r.setter);return this.addAnimator(i),i}},O.mixin(m,C);var f=m;H.exports=f},MRoa:function(H,B,d){var O=d("ProS");d("0Bwj"),d("W2nI"),d("vcCh");var E=d("gawk"),C=d("Dg8C");O.registerLayout(E),O.registerVisual(C)},MT78:function(H,B,d){var O=d("ProS");(function(){for(var C in O){if(O==null||!O.hasOwnProperty(C)||C==="default"||C==="__esModule")return;B[C]=O[C]}})();var E=d("txkQ");(function(){for(var C in E){if(E==null||!E.hasOwnProperty(C)||C==="default"||C==="__esModule")return;B[C]=E[C]}})(),d("A1Ka"),d("75ce"),d("lLGD"),d("wDdD"),d("Fa/5"),d("jett"),d("Z1wy"),d("75ev"),d("2uGb"),d("I+77"),d("B+YJ"),d("pLH3"),d("CBdT"),d("MRoa"),d("+lIL"),d("CF2D"),d("ERHi"),d("p+If"),d("XOKv"),d("qt/9"),d("bBL8"),d("1xaR"),d("4Feb"),d("zRKj"),d("L3Oj"),d("0HBW"),d("LPzL"),d("8waO"),d("k5C7"),d("f1nB"),d("sRwP"),d("AH3D"),d("y4/Y"),d("LzGr"),d("Ynxi"),d("7pVf"),d("2w7y"),d("laiN"),d("fjKi"),d("C0tN"),d("0o9m"),d("Cm0C"),d("f3JH"),d("5NHt"),d("VFCP"),d("dBmv"),d("KamJ"),d("8XDt"),d("juDX")},MXD1:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("Kvyg"),A=d.n(C)},MZdM:function(H,B,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(B,"__esModule",{value:!0}),B.default=void 0;var E=c(d("Lo0S")),C=m(d("N/zr")),A=d("GdRQ"),w=d("GQ8N");function m(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 s=f();if(s&&s.has(e))return s.get(e);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=a?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(t,l,u):t[l]=e[l]}return t.default=e,s&&s.set(e,t),t}function o(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function r(e,s){for(var t=0;t<s.length;t++){var a=s[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,s,t){return s&&r(e.prototype,s),t&&r(e,t),e}var n=function(){function e(s){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,E.Debug(">> Display.constructor"),this._target=s,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},E.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),E.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return i(e,[{key:"viewportChangePos",value:function(t,a){var l=this._viewportLoc;t=Math.floor(t),a=Math.floor(a),this._clipViewport||(t=-l.w,a=-l.h);var u=l.x+l.w-1,h=l.y+l.h-1;if(t<0&&l.x+t<0&&(t=-l.x),u+t>=this._fbWidth&&(t-=u+t-this._fbWidth+1),l.y+a<0&&(a=-l.y),h+a>=this._fbHeight&&(a-=h+a-this._fbHeight+1),t===0&&a===0)return;E.Debug("viewportChange deltaX: "+t+", deltaY: "+a),l.x+=t,l.y+=a,this._damage(l.x,l.y,l.w,l.h),this.flip()}},{key:"viewportChangeSize",value:function(t,a){(!this._clipViewport||typeof t=="undefined"||typeof a=="undefined")&&(E.Debug("Setting viewport to full display region"),t=this._fbWidth,a=this._fbHeight),t=Math.floor(t),a=Math.floor(a),t>this._fbWidth&&(t=this._fbWidth),a>this._fbHeight&&(a=this._fbHeight);var l=this._viewportLoc;if(l.w!==t||l.h!==a){l.w=t,l.h=a;var u=this._target;u.width=t,u.height=a,this.viewportChangePos(0,0),this._damage(l.x,l.y,l.w,l.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,w.toSigned32bit)(t/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(t){return this._scale===0?0:(0,w.toSigned32bit)(t/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(t,a){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=a;var l=this._backbuffer;if(l.width!==t||l.height!==a){var u=null;l.width>0&&l.height>0&&(u=this._drawCtx.getImageData(0,0,l.width,l.height)),l.width!==t&&(l.width=t),l.height!==a&&(l.height=a),u&&this._drawCtx.putImageData(u,0,0)}var h=this._viewportLoc;this.viewportChangeSize(h.w,h.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(t,a,l,u){t<this._damageBounds.left&&(this._damageBounds.left=t),a<this._damageBounds.top&&(this._damageBounds.top=a),t+l>this._damageBounds.right&&(this._damageBounds.right=t+l),a+u>this._damageBounds.bottom&&(this._damageBounds.bottom=a+u)}},{key:"flip",value:function(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{var a=this._damageBounds.left,l=this._damageBounds.top,u=this._damageBounds.right-a,h=this._damageBounds.bottom-l,p=a-this._viewportLoc.x,g=l-this._viewportLoc.y;p<0&&(u+=p,a-=p,p=0),g<0&&(h+=g,l-=g,g=0),p+u>this._viewportLoc.w&&(u=this._viewportLoc.w-p),g+h>this._viewportLoc.h&&(h=this._viewportLoc.h-g),u>0&&h>0&&this._targetCtx.drawImage(this._backbuffer,a,l,u,h,p,g,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,l,u,h,p){this._renderQ.length!==0&&!p?this._renderQPush({type:"fill",x:t,y:a,width:l,height:u,color:h}):(this._setFillColor(h),this._drawCtx.fillRect(t,a,l,u),this._damage(t,a,l,u))}},{key:"copyImage",value:function(t,a,l,u,h,p,g){this._renderQ.length!==0&&!g?this._renderQPush({type:"copy",oldX:t,oldY:a,x:l,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,l,u,h,p),this._damage(l,u,h,p))}},{key:"imageRect",value:function(t,a,l,u,h,p){if(l===0||u===0)return;var g=new Image;g.src="data: "+h+";base64,"+C.default.encode(p),this._renderQPush({type:"img",img:g,x:t,y:a,width:l,height:u})}},{key:"startTile",value:function(t,a,l,u,h){this._tileX=t,this._tileY=a,l===16&&u===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(l,u);for(var p=h[2],g=h[1],v=h[0],y=this._tile.data,x=0;x<l*u*4;x+=4)y[x]=p,y[x+1]=g,y[x+2]=v,y[x+3]=255}},{key:"subTile",value:function(t,a,l,u,h){for(var p=h[2],g=h[1],v=h[0],y=t+l,x=a+u,T=this._tile.data,S=this._tile.width,b=a;b<x;b++)for(var _=t;_<y;_++){var I=(_+b*S)*4;T[I]=p,T[I+1]=g,T[I+2]=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,l,u,h,p,g){if(this._renderQ.length!==0&&!g){var v=new Uint8Array(l*u*4);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blit",data:v,x:t,y:a,width:l,height:u})}else this._bgrxImageData(t,a,l,u,h,p)}},{key:"blitRgbImage",value:function(t,a,l,u,h,p,g){if(this._renderQ.length!==0&&!g){var v=new Uint8Array(l*u*3);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blitRgb",data:v,x:t,y:a,width:l,height:u})}else this._rgbImageData(t,a,l,u,h,p)}},{key:"blitRgbxImage",value:function(t,a,l,u,h,p,g){if(this._renderQ.length!==0&&!g){var v=new Uint8Array(l*u*4);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blitRgbx",data:v,x:t,y:a,width:l,height:u})}else this._rgbxImageData(t,a,l,u,h,p)}},{key:"drawImage",value:function(t,a,l){this._drawCtx.drawImage(t,a,l),this._damage(a,l,t.width,t.height)}},{key:"autoscale",value:function(t,a){var l;if(t===0||a===0)l=0;else{var u=this._viewportLoc,h=t/a,p=u.w/u.h;p>=h?l=t/u.w:l=a/u.h}this._rescale(l)}},{key:"_rescale",value:function(t){this._scale=t;var a=this._viewportLoc,l=t*a.w+"px",u=t*a.h+"px";(this._target.style.width!==l||this._target.style.height!==u)&&(this._target.style.width=l,this._target.style.height=u)}},{key:"_setFillColor",value:function(t){var a="rgb("+t[2]+","+t[1]+","+t[0]+")";a!==this._prevDrawStyle&&(this._drawCtx.fillStyle=a,this._prevDrawStyle=a)}},{key:"_rgbImageData",value:function(t,a,l,u,h,p){for(var g=this._drawCtx.createImageData(l,u),v=g.data,y=0,x=p;y<l*u*4;y+=4,x+=3)v[y]=h[x],v[y+1]=h[x+1],v[y+2]=h[x+2],v[y+3]=255;this._drawCtx.putImageData(g,t,a),this._damage(t,a,g.width,g.height)}},{key:"_bgrxImageData",value:function(t,a,l,u,h,p){for(var g=this._drawCtx.createImageData(l,u),v=g.data,y=0,x=p;y<l*u*4;y+=4,x+=4)v[y]=h[x+2],v[y+1]=h[x+1],v[y+2]=h[x],v[y+3]=255;this._drawCtx.putImageData(g,t,a),this._damage(t,a,g.width,g.height)}},{key:"_rgbxImageData",value:function(t,a,l,u,h,p){var g;A.supportsImageMetadata?g=new ImageData(new Uint8ClampedArray(h.buffer,h.byteOffset,l*u*4),l,u):(g=this._drawCtx.createImageData(l,u),g.data.set(new Uint8ClampedArray(h.buffer,h.byteOffset,l*u*4))),this._drawCtx.putImageData(g,t,a),this._damage(t,a,g.width,g.height)}},{key:"_renderQPush",value:function(t){this._renderQ.push(t),this._renderQ.length===1&&this._scanRenderQ()}},{key:"_resumeRenderQ",value:function(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}},{key:"_scanRenderQ",value:function(){for(var t=!0;t&&this._renderQ.length>0;){var a=this._renderQ[0];switch(a.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(a.oldX,a.oldY,a.x,a.y,a.width,a.height,!0);break;case"fill":this.fillRect(a.x,a.y,a.width,a.height,a.color,!0);break;case"blit":this.blitImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"blitRgb":this.blitRgbImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"img":if(a.img.complete&&a.img.width!==0&&a.img.height!==0){if(a.img.width!==a.width||a.img.height!==a.height){E.Error("Decoded image has incorrect dimensions. Got "+a.img.width+"x"+a.img.height+". Expected "+a.width+"x"+a.height+".");return}this.drawImage(a.img,a.x,a.y)}else a.img._noVNCDisplay=this,a.img.addEventListener("load",this._resumeRenderQ),t=!1;break}t&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(t){this._rescale(t)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(t){this._clipViewport=t;var a=this._viewportLoc;this.viewportChangeSize(a.w,a.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();B.default=n},Mdki:function(H,B,d){var O=d("bYtY"),E=O.each,C="\0__link_datas",A="\0__link_mainData";function w(s){var t=s.mainData,a=s.datas;a||(a={main:t},s.datasAttr={main:"data"}),s.datas=s.mainData=null,i(t,a,s),E(a,function(l){E(t.TRANSFERABLE_METHODS,function(u){l.wrapMethod(u,O.curry(m,s))})}),t.wrapMethod("cloneShallow",O.curry(c,s)),E(t.CHANGABLE_METHODS,function(l){t.wrapMethod(l,O.curry(f,s))}),O.assert(a[t.dataType]===t)}function m(s,t){if(r(this)){var a=O.extend({},this[C]);a[this.dataType]=t,i(t,a,s)}else n(t,this.dataType,this[A],s);return t}function f(s,t){return s.struct&&s.struct.update(this),t}function c(s,t){return E(t[C],function(a,l){a!==t&&n(a.cloneShallow(),l,t,s)}),t}function o(s){var t=this[A];return s==null||t==null?t:t[C][s]}function r(s){return s[A]===s}function i(s,t,a){s[C]={},E(t,function(l,u){n(l,u,s,a)})}function n(s,t,a,l){a[C][t]=s,s[A]=a,s.dataType=t,l.struct&&(s[l.structAttr]=l.struct,l.struct[l.datasAttr[t]]=s),s.getLinkedData=o}var e=w;H.exports=e},Mds0:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("8IMR")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="StarFilled";var c=A.forwardRef(f);B.default=c},Mgri:function(H,B,d){for(var O=d("bYtY"),E=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]]],w=0;w<A.length;w++)for(var m=0;m<A[w].length;m++)A[w][m][0]/=10.5,A[w][m][1]/=-10.5/.75,A[w][m][0]+=C[0],A[w][m][1]+=C[1];function f(c,o){c==="china"&&o.push(new E("\u5357\u6D77\u8BF8\u5C9B",O.map(A,function(r){return{type:"polygon",exterior:r}}),C))}H.exports=f},MlIO:function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){return function(E){var C=O,A=C.lib,w=A.Base,m=A.WordArray,f=C.x64={},c=f.Word=w.extend({init:function(i,n){this.high=i,this.low=n}}),o=f.WordArray=w.extend({init:function(i,n){i=this.words=i||[],n!=E?this.sigBytes=n:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,n=i.length,e=[],s=0;s<n;s++){var t=i[s];e.push(t.high),e.push(t.low)}return m.create(e,this.sigBytes)},clone:function(){for(var i=w.clone.call(this),n=i.words=this.words.slice(0),e=n.length,s=0;s<e;s++)n[s]=n[s].clone();return i}})}(),O})},Mmt2:function(H,B,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(B,"__esModule",{value:!0}),B.default=void 0;var E=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={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=s?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 w(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function m(i,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function f(i,n,e){return n&&m(i.prototype,n),e&&m(i,e),i}var c=!1,o=40*1024*1024,r=function(){function i(){w(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 s=0,t=e-1;t>=0;t--)s+=this._rQ[this._rQi++]<<t*8;return s}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var s="",t=0;t<e;t+=4096){var a=this.rQshiftBytes(Math.min(4096,e-t));s+=String.fromCharCode.apply(null,a)}return s}},{key:"rQshiftBytes",value:function(e){return typeof e=="undefined"&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}},{key:"rQshiftTo",value:function(e,s){s===void 0&&(s=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,s)),this._rQi+=s}},{key:"rQslice",value:function(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,s-e)}},{key:"rQwait",value:function(e,s,t){if(this.rQlen<s){if(t){if(this._rQi<t)throw new Error("rQwait cannot backup "+t+" bytes");this._rQi-=t}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}},{key:"sendString",value:function(e){this.send(e.split("").map(function(s){return s.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,s){this._eventHandlers[e]=s}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,s){var t=this;this.init(),this._websocket=new WebSocket(e,s),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){E.Debug(">> WebSock.onopen"),t._websocket.protocol&&E.Info("Server choose sub-protocol: "+t._websocket.protocol),t._eventHandlers.open(),E.Debug("<< WebSock.onopen")},this._websocket.onclose=function(a){E.Debug(">> WebSock.onclose"),t._eventHandlers.close(a),E.Debug("<< WebSock.onclose")},this._websocket.onerror=function(a){E.Debug(">> WebSock.onerror: "+a),t._eventHandlers.error(a),E.Debug("<< WebSock.onerror: "+a)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(E.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(e){var s=(this._rQlen-this._rQi+e)*8,t=this._rQbufferSize<s;if(t&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,s)),this._rQbufferSize>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 s=new Uint8Array(e);s.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(s.length),this._rQ.set(s,this._rQlen),this._rQlen+=s.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):E.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(e){this._rQi=e}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),i}();B.default=r},MqEG:function(H,B,d){var O=d("bYtY"),E=d("fc+c"),C=d("72pK"),A=d("VXYp"),w=O.bind,m=E.extend({type:"dataZoom.inside",init:function(i,n){this._range},render:function(i,n,e,s){m.superApply(this,"render",arguments),this._range=i.getPercentRange(),O.each(this.getTargetCoordInfo(),function(t,a){var l=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(g){p[g]=w(f[g],this,u,a)},this),A.register(e,{coordId:A.generateCoordId(h),allCoordIds:l,containsPoint:function(g,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),m.superApply(this,"dispose",arguments),this._range=null}}),f={zoom:function(i,n,e,s){var t=this._range,a=t.slice(),l=i.axisModels[0];if(!l)return;var u=o[n](null,[s.originX,s.originY],l,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/s.scale,0);a[0]=(a[0]-h)*p+h,a[1]=(a[1]-h)*p+h;var g=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(C(0,a,[0,100],0,g.minSpan,g.maxSpan),this._range=a,t[0]!==a[0]||t[1]!==a[1])return a},pan:c(function(i,n,e,s,t,a){var l=o[s]([a.oldX,a.oldY],[a.newX,a.newY],n,t,e);return l.signal*(i[1]-i[0])*l.pixel/l.pixelLength}),scrollMove:c(function(i,n,e,s,t,a){var l=o[s]([0,0],[a.scrollDelta,a.scrollDelta],n,t,e);return l.signal*(i[1]-i[0])*a.scrollDelta})};function c(i){return function(n,e,s,t){var a=this._range,l=a.slice(),u=n.axisModels[0];if(!u)return;var h=i(l,u,n,e,s,t);if(C(h,l,[0,100],"all"),this._range=l,a[0]!==l[0]||a[1]!==l[1])return l}}var o={grid:function(i,n,e,s,t){var a=e.axis,l={},u=t.model.coordinateSystem.getRect();return i=i||[0,0],a.dim==="x"?(l.pixel=n[0]-i[0],l.pixelLength=u.width,l.pixelStart=u.x,l.signal=a.inverse?1:-1):(l.pixel=n[1]-i[1],l.pixelLength=u.height,l.pixelStart=u.y,l.signal=a.inverse?-1:1),l},polar:function(i,n,e,s,t){var a=e.axis,l={},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"?(l.pixel=n[0]-i[0],l.pixelLength=h[1]-h[0],l.pixelStart=h[0],l.signal=a.inverse?1:-1):(l.pixel=n[1]-i[1],l.pixelLength=p[1]-p[0],l.pixelStart=p[0],l.signal=a.inverse?-1:1),l},singleAxis:function(i,n,e,s,t){var a=e.axis,l=t.model.coordinateSystem.getRect(),u={};return i=i||[0,0],a.orient==="horizontal"?(u.pixel=n[0]-i[0],u.pixelLength=l.width,u.pixelStart=l.x,u.signal=a.inverse?1:-1):(u.pixel=n[1]-i[1],u.pixelLength=l.height,u.pixelStart=l.y,u.signal=a.inverse?-1:1),u}},r=m;H.exports=r},MwEJ:function(H,B,d){var O=d("bYtY"),E=d("YXkt"),C=d("sdST"),A=d("k9D9"),w=A.SOURCE_FORMAT_ORIGINAL,m=d("L0Ub"),f=m.getDimensionTypeByAxis,c=d("4NO4"),o=c.getDataItemValue,r=d("IDmD"),i=d("i38C"),n=i.getCoordSysInfoBySeries,e=d("7G+c"),s=d("7hqr"),t=s.enableDataStack,a=d("D5nY"),l=a.makeSeriesEncodeForAxisCoordSys;function u(v,y,x){x=x||{},e.isInstance(v)||(v=e.seriesDataToSource(v));var T=y.get("coordinateSystem"),S=r.get(T),b=n(y),_;b&&(_=O.map(b.coordSysDims,function(M){var U={name:M},F=b.axisMap.get(M);if(F){var j=F.get("type");U.type=f(j)}return U})),_||(_=S&&(S.getDimensionsInfo?S.getDimensionsInfo():S.dimensions.slice())||["x","y"]);var I=C(v,{coordDimensions:_,generateCoord:x.generateCoord,encodeDefaulter:x.useEncodeDefaulter?O.curry(l,_,y):null}),L,N;b&&O.each(I,function(M,U){var F=M.coordDim,j=b.categoryAxisMap.get(F);j&&(L==null&&(L=U),M.ordinalMeta=j.getOrdinalMeta()),M.otherDims.itemName!=null&&(N=!0)}),!N&&L!=null&&(I[L].otherDims.itemName=0);var D=t(y,I),R=new E(I,y);R.setCalculationInfo(D);var P=L!=null&&h(v)?function(M,U,F,j){return j===L?F:this.defaultDimValueGetter(M,U,F,j)}:null;return R.hasItemOption=!1,R.initData(v,null,P),R}function h(v){if(v.sourceFormat===w){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 g=u;H.exports=g},Mylv:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),A=d("oVpE"),w=A.createSymbol,m=d("OELB"),f=m.parsePercent,c=m.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,s=O.extendChartView({type:"pictorialBar",render:function(W,V,z){var Y=this.group,$=W.getData(),ue=this._data,ne=W.coordinateSystem,ge=ne.getBaseAxis(),Oe=!!ge.isHorizontal(),De=ne.grid.getRect(),He={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:W,coordSys:ne,coordSysExtent:[[De.x,De.x+De.width],[De.y,De.y+De.height]],isHorizontal:Oe,valueDim:n[+Oe],categoryDim:n[1-Oe]};return $.diff(ue).add(function(pe){if(!$.hasValue(pe))return;var Ue=S($,pe),oe=t($,pe,Ue,He),ee=L($,He,oe);$.setItemGraphicEl(pe,ee),Y.add(ee),U(ee,He,oe)}).update(function(pe,Ue){var oe=ue.getItemGraphicEl(Ue);if(!$.hasValue(pe)){Y.remove(oe);return}var ee=S($,pe),Xe=t($,pe,ee,He),se=R($,Xe);oe&&se!==oe.__pictorialShapeStr&&(Y.remove(oe),$.setItemGraphicEl(pe,null),oe=null),oe?N(oe,He,Xe):oe=L($,He,Xe,!0),$.setItemGraphicEl(pe,oe),oe.__pictorialSymbolMeta=Xe,Y.add(oe),U(oe,He,Xe)}).remove(function(pe){var Ue=ue.getItemGraphicEl(pe);Ue&&D(ue,pe,Ue.__pictorialSymbolMeta.animationModel,Ue)}).execute(),this._data=$,this.group},dispose:E.noop,remove:function(W,V){var z=this.group,Y=this._data;W.get("animation")?Y&&Y.eachItemGraphicEl(function($){D(Y,$.dataIndex,W,$)}):z.removeAll()}});function t(W,V,z,Y){var $=W.getItemLayout(V),ue=z.get("symbolRepeat"),ne=z.get("symbolClip"),ge=z.get("symbolPosition")||"start",Oe=z.get("symbolRotate"),De=(Oe||0)*Math.PI/180||0,He=z.get("symbolPatternSize")||2,pe=z.isAnimationEnabled(),Ue={dataIndex:V,layout:$,itemModel:z,symbolType:W.getItemVisual(V,"symbol")||"circle",color:W.getItemVisual(V,"color"),symbolClip:ne,symbolRepeat:ue,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:He,rotation:De,animationModel:pe?z:null,hoverAnimation:pe&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};a(z,ue,$,Y,Ue),u(W,V,$,ue,ne,Ue.boundingLength,Ue.pxSign,He,Y,Ue),h(z,Ue.symbolScale,De,Y,Ue);var oe=Ue.symbolSize,ee=z.get("symbolOffset");return E.isArray(ee)&&(ee=[f(ee[0],oe[0]),f(ee[1],oe[1])]),p(z,oe,$,ue,ne,ee,ge,Ue.valueLineWidth,Ue.boundingLength,Ue.repeatCutLength,Y,Ue),Ue}function a(W,V,z,Y,$){var ue=Y.valueDim,ne=W.get("symbolBoundingData"),ge=Y.coordSys.getOtherAxis(Y.coordSys.getBaseAxis()),Oe=ge.toGlobalCoord(ge.dataToCoord(0)),De=1-+(z[ue.wh]<=0),He;if(E.isArray(ne)){var pe=[l(ge,ne[0])-Oe,l(ge,ne[1])-Oe];pe[1]<pe[0]&&pe.reverse(),He=pe[De]}else ne!=null?He=l(ge,ne)-Oe:V?He=Y.coordSysExtent[ue.index][De]-Oe:He=z[ue.wh];$.boundingLength=He,V&&($.repeatCutLength=z[ue.wh]),$.pxSign=He>0?1:He<0?-1:0}function l(W,V){return W.toGlobalCoord(W.dataToCoord(W.scale.parse(V)))}function u(W,V,z,Y,$,ue,ne,ge,Oe,De){var He=Oe.valueDim,pe=Oe.categoryDim,Ue=Math.abs(z[pe.wh]),oe=W.getItemVisual(V,"symbolSize");E.isArray(oe)?oe=oe.slice():(oe==null&&(oe="100%"),oe=[oe,oe]),oe[pe.index]=f(oe[pe.index],Ue),oe[He.index]=f(oe[He.index],Y?Ue:Math.abs(ue)),De.symbolSize=oe;var ee=De.symbolScale=[oe[0]/ge,oe[1]/ge];ee[He.index]*=(Oe.isHorizontal?-1:1)*ne}function h(W,V,z,Y,$){var ue=W.get(i)||0;ue&&(e.attr({scale:V.slice(),rotation:z}),e.updateTransform(),ue/=e.getLineScale(),ue*=V[Y.valueDim.index]),$.valueLineWidth=ue}function p(W,V,z,Y,$,ue,ne,ge,Oe,De,He,pe){var Ue=He.categoryDim,oe=He.valueDim,ee=pe.pxSign,Xe=Math.max(V[oe.index]+ge,0),se=Xe;if(Y){var Q=Math.abs(Oe),G=E.retrieve(W.get("symbolMargin"),"15%")+"",J=!1;G.lastIndexOf("!")===G.length-1&&(J=!0,G=G.slice(0,G.length-1)),G=f(G,V[oe.index]);var ve=Math.max(Xe+G*2,0),de=J?0:G*2,Ce=c(Y),Ee=Ce?Y:F((Q+de)/ve),le=Q-Ee*Xe;G=le/2/(J?Ee:Ee-1),ve=Xe+G*2,de=J?0:G*2,!Ce&&Y!=="fixed"&&(Ee=De?F((Math.abs(De)+de)/ve):0),se=Ee*ve-de,pe.repeatTimes=Ee,pe.symbolMargin=G}var fe=ee*(se/2),xe=pe.pathPosition=[];xe[Ue.index]=z[Ue.wh]/2,xe[oe.index]=ne==="start"?fe:ne==="end"?Oe-fe:Oe/2,ue&&(xe[0]+=ue[0],xe[1]+=ue[1]);var Qe=pe.bundlePosition=[];Qe[Ue.index]=z[Ue.xy],Qe[oe.index]=z[oe.xy];var ot=pe.barRectShape=E.extend({},z);ot[oe.wh]=ee*Math.max(Math.abs(z[oe.wh]),Math.abs(xe[oe.index]+fe)),ot[Ue.wh]=z[Ue.wh];var Je=pe.clipShape={};Je[Ue.xy]=-z[Ue.xy],Je[Ue.wh]=He.ecSize[Ue.wh],Je[oe.xy]=0,Je[oe.wh]=z[oe.wh]}function g(W){var V=W.symbolPatternSize,z=w(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,Y){var $=W.__pictorialBundle,ue=z.symbolSize,ne=z.valueLineWidth,ge=z.pathPosition,Oe=V.valueDim,De=z.repeatTimes||0,He=0,pe=ue[V.valueDim.index]+ne+z.symbolMargin*2;for(P(W,function(Q){Q.__pictorialAnimationIndex=He,Q.__pictorialRepeatTimes=De,He<De?M(Q,null,ee(He),z,Y):M(Q,null,{scale:[0,0]},z,Y,function(){$.remove(Q)}),I(Q,z),He++});He<De;He++){var Ue=g(z);Ue.__pictorialAnimationIndex=He,Ue.__pictorialRepeatTimes=De,$.add(Ue);var oe=ee(He);M(Ue,{position:oe.position,scale:[0,0]},{scale:oe.scale,rotation:oe.rotation},z,Y),Ue.on("mouseover",Xe).on("mouseout",se),I(Ue,z)}function ee(Q){var G=ge.slice(),J=z.pxSign,ve=Q;return(z.symbolRepeatDirection==="start"?J>0:J<0)&&(ve=De-1-Q),G[Oe.index]=pe*(ve-De/2+.5)+ge[Oe.index],{position:G,scale:z.symbolScale.slice(),rotation:z.rotation}}function Xe(){P(W,function(Q){Q.trigger("emphasis")})}function se(){P(W,function(Q){Q.trigger("normal")})}}function y(W,V,z,Y){var $=W.__pictorialBundle,ue=W.__pictorialMainPath;ue?M(ue,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,Y):(ue=W.__pictorialMainPath=g(z),$.add(ue),M(ue,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,Y),ue.on("mouseover",ne).on("mouseout",ge)),I(ue,z);function ne(){this.trigger("emphasis")}function ge(){this.trigger("normal")}}function x(W,V,z){var Y=E.extend({},V.barRectShape),$=W.__pictorialBarRect;$?M($,null,{shape:Y},V,z):($=W.__pictorialBarRect=new C.Rect({z2:2,shape:Y,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),W.add($))}function T(W,V,z,Y){if(z.symbolClip){var $=W.__pictorialClipPath,ue=E.extend({},z.clipShape),ne=V.valueDim,ge=z.animationModel,Oe=z.dataIndex;if($)C.updateProps($,{shape:ue},ge,Oe);else{ue[ne.wh]=0,$=new C.Rect({shape:ue}),W.__pictorialBundle.setClipPath($),W.__pictorialClipPath=$;var De={};De[ne.wh]=z.clipShape[ne.wh],C[Y?"updateProps":"initProps"]($,{shape:De},ge,Oe)}}}function S(W,V){var z=W.getItemModel(V);return z.getAnimationDelayParams=b,z.isAnimationEnabled=_,z}function b(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,Y){var $=new C.Group,ue=new C.Group;return $.add(ue),$.__pictorialBundle=ue,ue.attr("position",z.bundlePosition.slice()),z.symbolRepeat?v($,V,z):y($,V,z),x($,z,Y),T($,V,z,Y),$.__pictorialShapeStr=R(W,z),$.__pictorialSymbolMeta=z,$}function N(W,V,z){var Y=z.animationModel,$=z.dataIndex,ue=W.__pictorialBundle;C.updateProps(ue,{position:z.bundlePosition.slice()},Y,$),z.symbolRepeat?v(W,V,z,!0):y(W,V,z,!0),x(W,z,!0),T(W,V,z,!0)}function D(W,V,z,Y){var $=Y.__pictorialBarRect;$&&($.style.text=null);var ue=[];P(Y,function(ne){ue.push(ne)}),Y.__pictorialMainPath&&ue.push(Y.__pictorialMainPath),Y.__pictorialClipPath&&(z=null),E.each(ue,function(ne){C.updateProps(ne,{scale:[0,0]},z,V,function(){Y.parent&&Y.parent.remove(Y)})}),W.setItemGraphicEl(V,null)}function R(W,V){return[W.getItemVisual(V.dataIndex,"symbol")||"none",!!V.symbolRepeat,!!V.symbolClip].join(":")}function P(W,V,z){E.each(W.__pictorialBundle.children(),function(Y){Y!==W.__pictorialBarRect&&V.call(z,Y)})}function M(W,V,z,Y,$,ue){V&&W.attr(V),Y.symbolClip&&!$?z&&W.attr(z):z&&C[$?"updateProps":"initProps"](W,z,Y.animationModel,Y.dataIndex,ue)}function U(W,V,z){var Y=z.color,$=z.dataIndex,ue=z.itemModel,ne=ue.getModel("itemStyle").getItemStyle(["color"]),ge=ue.getModel("emphasis.itemStyle").getItemStyle(),Oe=ue.getShallow("cursor");P(W,function(Ue){Ue.setColor(Y),Ue.setStyle(E.defaults({fill:Y,opacity:z.opacity},ne)),C.setHoverStyle(Ue,ge),Oe&&(Ue.cursor=Oe),Ue.z2=z.z2});var De={},He=V.valueDim.posDesc[+(z.boundingLength>0)],pe=W.__pictorialBarRect;r(pe.style,De,ue,Y,V.seriesModel,$,He),C.setHoverStyle(pe,De)}function F(W){var V=Math.round(W);return Math.abs(W-V)<1e-4?V:Math.ceil(W)}var j=s;H.exports=j},"N/zr":function(H,B,d){"use strict";function O(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(c){return typeof c}:O=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},O(m)}Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var E=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return C=function(){return m},m}function A(m){if(m&&m.__esModule)return m;if(m===null||O(m)!=="object"&&typeof m!="function")return{default:m};var f=C();if(f&&f.has(m))return f.get(m);var c={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in m)if(Object.prototype.hasOwnProperty.call(m,r)){var i=o?Object.getOwnPropertyDescriptor(m,r):null;i&&(i.get||i.set)?Object.defineProperty(c,r,i):c[r]=m[r]}return c.default=m,f&&f.set(m,c),c}var w={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,s=0,t=c;t<f.length;t++){var a=this.toBinaryTable[f.charCodeAt(t)&127],l=f.charAt(t)===this.base64Pad;if(a===-1){E.Error("Illegal character code "+f.charCodeAt(t)+" at position "+t);continue}e=e<<6|a,n+=6,n>=8&&(n-=8,l||(i[s++]=e>>n&255),e&=(1<<n)-1)}if(n){var u=new Error("Corrupted base64 string");throw u.name="Base64-Error",u}return i}};B.default=w},N5BQ:function(H,B,d){var O=d("OlYY"),E=O.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),C=E;H.exports=C},NA0q:function(H,B,d){var O=d("bYtY"),E=d("6Ic6"),C=d("TkdX"),A=d("gPAo"),w=d("7aKB"),m=w.windowOpen,f="sunburstRootToNode",c=E.extend({type:"sunburst",init:function(){},render:function(r,i,n,e){var s=this;this.seriesModel=r,this.api=n,this.ecModel=i;var t=r.getData(),a=t.tree.root,l=r.getViewRoot(),u=this.group,h=r.get("renderLabelForZeroData"),p=[];l.eachNode(function(_){p.push(_)});var g=this._oldChildren||[];if(x(p,g),b(a,l),e&&e.highlight&&e.highlight.piece){var 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 x(_,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(D){return D.getId()}function N(D,R){var P=D==null?null:_[D],M=R==null?null:I[R];T(P,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)):S(I);else if(_){var L=new C(_,r,i);u.add(L),t.setItemGraphicEl(_.dataIndex,L)}}}function S(_){if(!_)return;_.piece&&(u.remove(_.piece),_.piece=null)}function b(_,I){if(I.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,_,"normal",r,i):(s.virtualPiece=new C(_,r,i),u.add(s.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var L=function(N){s._rootToNode(I.parentNode)};I.piece._onclickEvent=L,s.virtualPiece.on("click",L)}else s.virtualPiece&&(u.remove(s.virtualPiece),s.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var r=this,i=function(n){var e=!1,s=r.seriesModel.getViewRoot();s.eachNode(function(t){if(!e&&t.piece&&t.piece.childAt(0)===n.target){var a=t.getModel().get("nodeClick");if(a==="rootToNode")r._rootToNode(t);else if(a==="link"){var l=t.getModel(),u=l.get("link");if(u){var h=l.get("target",!0)||"_blank";m(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 s=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(s*s+t*t);return a<=e.r&&a>=e.r0}}}),o=c;H.exports=o},NAnI:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("wXyp"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},NBmB:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.encodingName=E,B.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};B.encodings=O;function E(C){switch(C){case O.encodingRaw:return"Raw";case O.encodingCopyRect:return"CopyRect";case O.encodingRRE:return"RRE";case O.encodingHextile:return"Hextile";case O.encodingTight:return"Tight";case O.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+C+"]"}}},NC18:function(H,B,d){var O=d("y+Vt"),E=d("IMiH"),C=d("7oTu"),A=Math.sqrt,w=Math.sin,m=Math.cos,f=Math.PI,c=function(p){return Math.sqrt(p[0]*p[0]+p[1]*p[1])},o=function(p,g){return(p[0]*g[0]+p[1]*g[1])/(c(p)*c(g))},r=function(p,g){return(p[0]*g[1]<p[1]*g[0]?-1:1)*Math.acos(o(p,g))};function i(h,p,g,v,y,x,T,S,b,_,I){var L=b*(f/180),N=m(L)*(h-g)/2+w(L)*(p-v)/2,D=-1*w(L)*(h-g)/2+m(L)*(p-v)/2,R=N*N/(T*T)+D*D/(S*S);R>1&&(T*=A(R),S*=A(R));var P=(y===x?-1:1)*A((T*T*(S*S)-T*T*(D*D)-S*S*(N*N))/(T*T*(D*D)+S*S*(N*N)))||0,M=P*T*D/S,U=P*-S*N/T,F=(h+g)/2+m(L)*M-w(L)*U,j=(p+v)/2+w(L)*M+m(L)*U,W=r([1,0],[(N-M)/T,(D-U)/S]),V=[(N-M)/T,(D-U)/S],z=[(-1*N-M)/T,(-1*D-U)/S],Y=r(V,z);o(V,z)<=-1&&(Y=f),o(V,z)>=1&&(Y=0),x===0&&Y>0&&(Y=Y-2*f),x===1&&Y<0&&(Y=Y+2*f),I.addData(_,F,j,T,S,W,Y,L,x)}var n=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function s(h){if(!h)return new E;for(var p=0,g=0,v=p,y=g,x,T=new E,S=E.CMD,b=h.match(n),_=0;_<b.length;_++){for(var I=b[_],L=I.charAt(0),N,D=I.match(e)||[],R=D.length,P=0;P<R;P++)D[P]=parseFloat(D[P]);for(var M=0;M<R;){var U,F,j,W,V,z,Y,$=p,ue=g;switch(L){case"l":p+=D[M++],g+=D[M++],N=S.L,T.addData(N,p,g);break;case"L":p=D[M++],g=D[M++],N=S.L,T.addData(N,p,g);break;case"m":p+=D[M++],g+=D[M++],N=S.M,T.addData(N,p,g),v=p,y=g,L="l";break;case"M":p=D[M++],g=D[M++],N=S.M,T.addData(N,p,g),v=p,y=g,L="L";break;case"h":p+=D[M++],N=S.L,T.addData(N,p,g);break;case"H":p=D[M++],N=S.L,T.addData(N,p,g);break;case"v":g+=D[M++],N=S.L,T.addData(N,p,g);break;case"V":g=D[M++],N=S.L,T.addData(N,p,g);break;case"C":N=S.C,T.addData(N,D[M++],D[M++],D[M++],D[M++],D[M++],D[M++]),p=D[M-2],g=D[M-1];break;case"c":N=S.C,T.addData(N,D[M++]+p,D[M++]+g,D[M++]+p,D[M++]+g,D[M++]+p,D[M++]+g),p+=D[M-2],g+=D[M-1];break;case"S":U=p,F=g;var ne=T.len(),ge=T.data;x===S.C&&(U+=p-ge[ne-4],F+=g-ge[ne-3]),N=S.C,$=D[M++],ue=D[M++],p=D[M++],g=D[M++],T.addData(N,U,F,$,ue,p,g);break;case"s":U=p,F=g;var ne=T.len(),ge=T.data;x===S.C&&(U+=p-ge[ne-4],F+=g-ge[ne-3]),N=S.C,$=p+D[M++],ue=g+D[M++],p+=D[M++],g+=D[M++],T.addData(N,U,F,$,ue,p,g);break;case"Q":$=D[M++],ue=D[M++],p=D[M++],g=D[M++],N=S.Q,T.addData(N,$,ue,p,g);break;case"q":$=D[M++]+p,ue=D[M++]+g,p+=D[M++],g+=D[M++],N=S.Q,T.addData(N,$,ue,p,g);break;case"T":U=p,F=g;var ne=T.len(),ge=T.data;x===S.Q&&(U+=p-ge[ne-4],F+=g-ge[ne-3]),p=D[M++],g=D[M++],N=S.Q,T.addData(N,U,F,p,g);break;case"t":U=p,F=g;var ne=T.len(),ge=T.data;x===S.Q&&(U+=p-ge[ne-4],F+=g-ge[ne-3]),p+=D[M++],g+=D[M++],N=S.Q,T.addData(N,U,F,p,g);break;case"A":j=D[M++],W=D[M++],V=D[M++],z=D[M++],Y=D[M++],$=p,ue=g,p=D[M++],g=D[M++],N=S.A,i($,ue,p,g,z,Y,j,W,V,N,T);break;case"a":j=D[M++],W=D[M++],V=D[M++],z=D[M++],Y=D[M++],$=p,ue=g,p+=D[M++],g+=D[M++],N=S.A,i($,ue,p,g,z,Y,j,W,V,N,T);break}}(L==="z"||L==="Z")&&(N=S.Z,T.addData(N),p=v,g=y),x=N}return T.toStatic(),T}function t(h,p){var g=s(h);return p=p||{},p.buildPath=function(v){if(v.setData){v.setData(g.data);var y=v.getContext();y&&v.rebuildPath(y)}else{var y=v;g.rebuildPath(y)}},p.applyTransform=function(v){C(g,v),this.dirty(!0)},p}function a(h,p){return new O(t(h,p))}function l(h,p){return O.extend(t(h,p))}function u(h,p){for(var g=[],v=h.length,y=0;y<v;y++){var x=h[y];x.path||x.createPathProxy(),x.__dirtyPath&&x.buildPath(x.path,x.shape,!0),g.push(x.path)}var T=new O(p);return T.createPathProxy(),T.buildPath=function(S){S.appendPath(g);var b=S.getContext();b&&S.rebuildPath(b)},T}B.createFromString=a,B.extendFromString=l,B.mergePath=u},NFKh:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("MlIO"),d("F+F2"),d("qM6L"),d("ETIr"),d("wbyO"),d("cv67"),d("3y9D"),d("lPiR"),d("GRuw"),d("1uat"),d("uGsb"),d("5hvy"),d("ELcG"),d("WYAk"),d("e7zE"),d("K3mO"),d("OLod"),d("ALsQ"),d("9OqN"),d("qu8F"),d("S6kV"),d("gb/T"),d("qBft"),d("oRuE"),d("jO9C"),d("KmYQ"),d("uGxW"),d("bQjk"),d("wZgz"),d("pA7S"),d("w7YG"),d("E4JC"),d("PVpz"))})(this,function(O){return O})},NH9N:function(H,B,d){var O=d("bYtY"),E=d("mFDi"),C=d("Fofx"),A=d("IwbS"),w=d("+TT/"),m=d("kzvK"),f=d("CMP+"),c=d("oVpE"),o=c.createSymbol,r=d("aX7z"),i=d("OELB"),n=d("7aKB"),e=n.encodeHTML,s=O.bind,t=O.each,a=Math.PI,l=m.extend({type:"timeline.slider",init:function(v,y){this.api=y,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(v,y,x,T){if(this.model=v,this.api=x,this.ecModel=y,this.group.removeAll(),v.get("show",!0)){var S=this._layout(v,x),b=this._createGroup("mainGroup"),_=this._createGroup("labelGroup"),I=this._axis=this._createAxis(S,v);v.formatTooltip=function(L){return e(I.scale.getLabel(L))},t(["AxisLine","AxisTick","Control","CurrentPointer"],function(L){this["_render"+L](S,b,I,v)},this),this._renderAxisLabel(S,_,I,v),this._position(S,v)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(v,y){var x=v.get("label.position"),T=v.get("orient"),S=u(v,y);x==null||x==="auto"?x=T==="horizontal"?S.y+S.height/2<y.getHeight()/2?"-":"+":S.x+S.width/2<y.getWidth()/2?"+":"-":isNaN(x)&&(x={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[T][x]);var b={horizontal:"center",vertical:x>=0||x==="+"?"left":"right"},_={horizontal:x>=0||x==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:a/2},L=T==="vertical"?S.height:S.width,N=v.getModel("controlStyle"),D=N.get("show",!0),R=D?N.get("itemSize"):0,P=D?N.get("itemGap"):0,M=R+P,U=v.get("label.rotate")||0;U=U*a/180;var F,j,W,V,z=N.get("position",!0),Y=D&&N.get("showPlayBtn",!0),$=D&&N.get("showPrevBtn",!0),ue=D&&N.get("showNextBtn",!0),ne=0,ge=L;return z==="left"||z==="bottom"?(Y&&(F=[0,0],ne+=M),$&&(j=[ne,0],ne+=M),ue&&(W=[ge-R,0],ge-=M)):(Y&&(F=[ge-R,0],ge-=M),$&&(j=[0,0],ne+=M),ue&&(W=[ge-R,0],ge-=M)),V=[ne,ge],v.get("inverse")&&V.reverse(),{viewRect:S,mainLength:L,orient:T,rotation:I[T],labelRotation:U,labelPosOpt:x,labelAlign:v.get("label.align")||b[T],labelBaseline:v.get("label.verticalAlign")||v.get("label.baseline")||_[T],playPosition:F,prevBtnPosition:j,nextBtnPosition:W,axisExtent:V,controlSize:R,controlGap:P}},_position:function(v,y){var x=this._mainGroup,T=this._labelGroup,S=v.viewRect;if(v.orient==="vertical"){var b=C.create(),_=S.x,I=S.y+S.height;C.translate(b,b,[-_,-I]),C.rotate(b,b,-a/2),C.translate(b,b,[_,I]),S=S.clone(),S.applyTransform(b)}var L=j(S),N=j(x.getBoundingRect()),D=j(T.getBoundingRect()),R=x.position,P=T.position;P[0]=R[0]=L[0][0];var M=v.labelPosOpt;if(isNaN(M)){var U=M==="+"?0:1;W(R,N,L,1,U),W(P,D,L,1,1-U)}else{var U=M>=0?0:1;W(R,N,L,1,U),P[1]=R[1]+M}x.attr("position",R),T.attr("position",P),x.rotation=T.rotation=v.rotation,F(x),F(T);function F(V){var z=V.position;V.origin=[L[0][0]-z[0],L[1][0]-z[1]]}function j(V){return[[V.x,V.x+V.width],[V.y,V.y+V.height]]}function W(V,z,Y,$,ue){V[$]+=Y[$][ue]-z[$][ue]}},_createAxis:function(v,y){var x=y.getData(),T=y.get("axisType"),S=r.createScaleByModel(y,T);S.getTicks=function(){return x.mapArray(["value"],function(I){return I})};var b=x.getDataExtent("value");S.setExtent(b[0],b[1]),S.niceTicks();var _=new f("value",S,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,x,T){var S=x.getExtent();if(!T.get("lineStyle.show"))return;y.add(new A.Line({shape:{x1:S[0],y1:0,x2:S[1],y2:0},style:O.extend({lineCap:"round"},T.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(v,y,x,T){var S=T.getData(),b=x.scale.getTicks();t(b,function(_){var I=x.dataToCoord(_),L=S.getItemModel(_),N=L.getModel("itemStyle"),D=L.getModel("emphasis.itemStyle"),R={position:[I,0],onclick:s(this._changeTimeline,this,_)},P=p(L,N,y,R);A.setHoverStyle(P,D.getItemStyle()),L.get("tooltip")?(P.dataIndex=_,P.dataModel=T):P.dataIndex=P.dataModel=null},this)},_renderAxisLabel:function(v,y,x,T){var S=x.getLabelModel();if(!S.get("show"))return;var b=T.getData(),_=x.getViewLabels();t(_,function(I){var L=I.tickValue,N=b.getItemModel(L),D=N.getModel("label"),R=N.getModel("emphasis.label"),P=x.dataToCoord(I.tickValue),M=new A.Text({position:[P,0],rotation:v.labelRotation-v.rotation,onclick:s(this._changeTimeline,this,L),silent:!1});A.setTextStyle(M.style,D,{text:I.formattedLabel,textAlign:v.labelAlign,textVerticalAlign:v.labelBaseline}),y.add(M),A.setHoverStyle(M,A.setTextStyle({},R))},this)},_renderControl:function(v,y,x,T){var S=v.controlSize,b=v.rotation,_=T.getModel("controlStyle").getItemStyle(),I=T.getModel("emphasis.controlStyle").getItemStyle(),L=[0,-S/2,S,S],N=T.getPlayState(),D=T.get("inverse",!0);R(v.nextBtnPosition,"controlStyle.nextIcon",s(this._changeTimeline,this,D?"-":"+")),R(v.prevBtnPosition,"controlStyle.prevIcon",s(this._changeTimeline,this,D?"+":"-")),R(v.playPosition,"controlStyle."+(N?"stopIcon":"playIcon"),s(this._handlePlayClick,this,!N),!0);function R(P,M,U,F){if(!P)return;var j={position:P,origin:[S/2,0],rotation:F?-b:0,rectHover:!0,style:_,onclick:U},W=h(T,M,L,j);y.add(W),A.setHoverStyle(W,I)}},_renderCurrentPointer:function(v,y,x,T){var S=T.getData(),b=T.getCurrentIndex(),_=S.getItemModel(b).getModel("checkpointStyle"),I=this,L={onCreate:function(N){N.draggable=!0,N.drift=s(I._handlePointerDrag,I),N.ondragend=s(I._handlePointerDragend,I),g(N,b,x,T,!0)},onUpdate:function(N){g(N,b,x,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,x){this._clearTimer(),this._pointerChangeTimeline([x.offsetX,x.offsetY])},_handlePointerDragend:function(v){this._pointerChangeTimeline([v.offsetX,v.offsetY],!0)},_pointerChangeTimeline:function(v,y){var x=this._toAxisCoord(v)[0],T=this._axis,S=i.asc(T.getExtent().slice());x>S[1]&&(x=S[1]),x<S[0]&&(x=S[0]),this._currentPointer.position[0]=x,this._currentPointer.dirty();var b=this._findNearestTick(x),_=this.model;(y||b!==_.getCurrentIndex()&&_.get("realtime"))&&this._changeTimeline(b)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(s(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(),x=Infinity,T,S=this._axis;return y.each(["value"],function(b,_){var I=S.dataToCoord(b),L=Math.abs(I-v);L<x&&(x=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 w.getLayoutRect(v.getBoxLayoutParams(),{width:y.getWidth(),height:y.getHeight()},v.get("padding"))}function h(v,y,x,T){var S=A.makePath(v.get(y).replace(/^path:\/\//,""),O.clone(T||{}),new E(x[0],x[1],x[2],x[3]),"center");return S}function p(v,y,x,T,S,b){var _=y.get("color");if(S)S.setColor(_),x.add(S),b&&b.onUpdate(S);else{var I=v.get("symbol");S=o(I,-1,-1,2,2,_),S.setStyle("strokeNoScale",!0),x.add(S),b&&b.onCreate(S)}var L=y.getItemStyle(["color","symbol","symbolSize"]);S.setStyle(L),T=O.merge({rectHover:!0,z2:100},T,!0);var N=v.get("symbolSize");N=N instanceof Array?N.slice():[+N,+N],N[0]/=2,N[1]/=2,T.scale=N;var D=v.get("symbolOffset");if(D){var R=T.position=T.position||[0,0];R[0]+=i.parsePercent(D[0],N[0]),R[1]+=i.parsePercent(D[1],N[1])}var P=v.get("symbolRotate");return T.rotation=(P||0)*Math.PI/180||0,S.attr(T),S.updateTransform(),S}function g(v,y,x,T,S){if(v.dragging)return;var b=T.getModel("checkpointStyle"),_=x.dataToCoord(T.getData().get(["value"],y));S||!b.get("animation",!0)?v.attr({position:[_,0]}):(v.stopAnimation(!0),v.animateTo({position:[_,0]},b.get("animationDuration",!0),b.get("animationEasing",!0)))}H.exports=l},NJEC:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("J4zp"),A=d.n(C),w=d("q1tI"),m=d.n(w),f=d("TSYQ"),c=d.n(f),o=d("sKbD"),r=d.n(o),i=d("4IlW"),n=d("3S7+"),e=d("2/Rp"),s=d("zvFY"),t=d("YMnH"),a=d("ZvpZ"),l=d("H84U"),u=d("bogI"),h=d("0n0R"),p=void 0,g=function(y,x){var T={};for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&x.indexOf(S)<0&&(T[S]=y[S]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,S=Object.getOwnPropertySymbols(y);b<S.length;b++)x.indexOf(S[b])<0&&Object.prototype.propertyIsEnumerable.call(y,S[b])&&(T[S[b]]=y[S[b]]);return T},v=w.forwardRef(function(y,x){var T=w.useState(y.visible),S=A()(T,2),b=S[0],_=S[1];w.useEffect(function(){"visible"in y&&_(y.visible)},[y.visible]),w.useEffect(function(){"defaultVisible"in y&&_(y.defaultVisible)},[y.defaultVisible]);var I=function(Oe,De){"visible"in y||_(Oe),y.onVisibleChange&&y.onVisibleChange(Oe,De)},L=function(Oe){I(!1,Oe),y.onConfirm&&y.onConfirm.call(p,Oe)},N=function(Oe){I(!1,Oe),y.onCancel&&y.onCancel.call(p,Oe)},D=function(Oe){Oe.keyCode===i.a.ESC&&b&&I(!1,Oe)},R=function(Oe){var De=y.disabled;if(De)return;I(Oe)},P=function(Oe,De){var He=y.okButtonProps,pe=y.cancelButtonProps,Ue=y.title,oe=y.cancelText,ee=y.okText,Xe=y.okType,se=y.icon;return w.createElement("div",{className:"".concat(Oe,"-inner-content")},w.createElement("div",{className:"".concat(Oe,"-message")},se,w.createElement("div",{className:"".concat(Oe,"-message-title")},Object(u.a)(Ue))),w.createElement("div",{className:"".concat(Oe,"-buttons")},w.createElement(e.a,E()({onClick:N,size:"small"},pe),oe||De.cancelText),w.createElement(e.a,E()({onClick:L},Object(s.a)(Xe),{size:"small"},He),ee||De.okText)))},M=w.useContext(l.b),U=M.getPrefixCls,F=y.prefixCls,j=y.placement,W=y.children,V=y.overlayClassName,z=g(y,["prefixCls","placement","children","overlayClassName"]),Y=U("popover",F),$=U("popconfirm",F),ue=c()($,V),ne=w.createElement(t.a,{componentName:"Popconfirm",defaultLocale:a.a.Popconfirm},function(ge){return P(Y,ge)});return w.createElement(n.a,E()({},z,{prefixCls:Y,placement:j,onVisibleChange:R,visible:b,overlay:ne,overlayClassName:ue,ref:x}),Object(h.a)(W,{onKeyDown:function(Oe){var De,He;(He=W==null?void 0:(De=W.props).onKeyDown)===null||He===void 0||He.call(De,Oe),D(Oe)}}))});v.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:w.createElement(r.a,null),disabled:!1},B.a=v},NUBc:function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("q1tI"),m=d.n(w),f=d("wx14"),c=d("rePB"),o=d("VTBJ"),r=d("1OyB"),i=d("vuIU"),n=d("Ji7U"),e=d("LK+K"),s=d("TSYQ"),t=d.n(s),a=function(De){var He,pe="".concat(De.rootPrefixCls,"-item"),Ue=t()(pe,"".concat(pe,"-").concat(De.page),(He={},Object(c.a)(He,"".concat(pe,"-active"),De.active),Object(c.a)(He,De.className,!!De.className),Object(c.a)(He,"".concat(pe,"-disabled"),!De.page),He)),oe=function(){De.onClick(De.page)},ee=function(se){De.onKeyPress(se,De.onClick,De.page)};return m.a.createElement("li",{title:De.showTitle?De.page:null,className:Ue,onClick:oe,onKeyPress:ee,tabIndex:"0"},De.itemRender(De.page,"page",m.a.createElement("a",{rel:"nofollow"},De.page)))},l=a,u={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},h=function(Oe){Object(n.a)(He,Oe);var De=Object(e.a)(He);function He(){var pe;Object(r.a)(this,He);for(var Ue=arguments.length,oe=new Array(Ue),ee=0;ee<Ue;ee++)oe[ee]=arguments[ee];return pe=De.call.apply(De,[this].concat(oe)),pe.state={goInputText:""},pe.buildOptionText=function(Xe){return"".concat(Xe," ").concat(pe.props.locale.items_per_page)},pe.changeSize=function(Xe){pe.props.changeSize(Number(Xe))},pe.handleChange=function(Xe){pe.setState({goInputText:Xe.target.value})},pe.handleBlur=function(Xe){var se=pe.props,Q=se.goButton,G=se.quickGo,J=se.rootPrefixCls,ve=pe.state.goInputText;if(Q||ve==="")return;if(Xe.relatedTarget&&(Xe.relatedTarget.className.indexOf("".concat(J,"-prev"))>=0||Xe.relatedTarget.className.indexOf("".concat(J,"-next"))>=0))return;pe.setState({goInputText:""}),G(pe.getValidValue())},pe.go=function(Xe){var se=pe.state.goInputText;if(se==="")return;(Xe.keyCode===u.ENTER||Xe.type==="click")&&(pe.setState({goInputText:""}),pe.props.quickGo(pe.getValidValue()))},pe}return Object(i.a)(He,[{key:"getValidValue",value:function(){var Ue=this.state,oe=Ue.goInputText,ee=Ue.current;return!oe||isNaN(oe)?ee:Number(oe)}},{key:"getPageSizeOptions",value:function(){var Ue=this.props,oe=Ue.pageSize,ee=Ue.pageSizeOptions;return ee.some(function(Xe){return Xe.toString()===oe.toString()})?ee:ee.concat([oe.toString()]).sort(function(Xe,se){var Q=isNaN(Number(Xe))?0:Number(Xe),G=isNaN(Number(se))?0:Number(se);return Q-G})}},{key:"render",value:function(){var Ue=this,oe=this.props,ee=oe.pageSize,Xe=oe.locale,se=oe.rootPrefixCls,Q=oe.changeSize,G=oe.quickGo,J=oe.goButton,ve=oe.selectComponentClass,de=oe.buildOptionText,Ce=oe.selectPrefixCls,Ee=oe.disabled,le=this.state.goInputText,fe="".concat(se,"-options"),xe=ve,Qe=null,ot=null,Je=null;if(!Q&&!G)return null;var Te=this.getPageSizeOptions();if(Q&&xe){var et=Te.map(function(ze,nt){return m.a.createElement(xe.Option,{key:nt,value:ze.toString()},(de||Ue.buildOptionText)(ze))});Qe=m.a.createElement(xe,{disabled:Ee,prefixCls:Ce,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ee||Te[0]).toString(),onChange:this.changeSize,getPopupContainer:function(nt){return nt.parentNode}},et)}return G&&(J&&(Je=typeof J=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ee,className:"".concat(fe,"-quick-jumper-button")},Xe.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},J)),ot=m.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},Xe.jump_to,m.a.createElement("input",{disabled:Ee,type:"text",value:le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Xe.page,Je)),m.a.createElement("li",{className:"".concat(fe)},Qe,ot)}}]),He}(m.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=h,g=d("N2Kk");function v(){}function y(Oe){return typeof Oe=="number"&&isFinite(Oe)&&Math.floor(Oe)===Oe}function x(Oe,De,He){return He}function T(Oe,De,He){var pe=typeof Oe=="undefined"?De.pageSize:Oe;return Math.floor((He.total-1)/pe)+1}var S=function(Oe){Object(n.a)(He,Oe);var De=Object(e.a)(He);function He(pe){var Ue;Object(r.a)(this,He),Ue=De.call(this,pe),Ue.getJumpPrevPage=function(){return Math.max(1,Ue.state.current-(Ue.props.showLessItems?3:5))},Ue.getJumpNextPage=function(){return Math.min(T(void 0,Ue.state,Ue.props),Ue.state.current+(Ue.props.showLessItems?3:5))},Ue.getItemIcon=function(Q,G){var J=Ue.props.prefixCls,ve=Q||m.a.createElement("button",{type:"button","aria-label":G,className:"".concat(J,"-item-link")});return typeof Q=="function"&&(ve=m.a.createElement(Q,Object(o.a)({},Ue.props))),ve},Ue.savePaginationNode=function(Q){Ue.paginationNode=Q},Ue.isValid=function(Q){return y(Q)&&Q!==Ue.state.current},Ue.shouldDisplayQuickJumper=function(){var Q=Ue.props,G=Q.showQuickJumper,J=Q.pageSize,ve=Q.total;return ve<=J?!1:G},Ue.handleKeyDown=function(Q){(Q.keyCode===u.ARROW_UP||Q.keyCode===u.ARROW_DOWN)&&Q.preventDefault()},Ue.handleKeyUp=function(Q){var G=Ue.getValidValue(Q),J=Ue.state.currentInputValue;G!==J&&Ue.setState({currentInputValue:G}),Q.keyCode===u.ENTER?Ue.handleChange(G):Q.keyCode===u.ARROW_UP?Ue.handleChange(G-1):Q.keyCode===u.ARROW_DOWN&&Ue.handleChange(G+1)},Ue.changePageSize=function(Q){var G=Ue.state.current,J=T(Q,Ue.state,Ue.props);G=G>J?J:G,J===0&&(G=Ue.state.current),typeof Q=="number"&&("pageSize"in Ue.props||Ue.setState({pageSize:Q}),"current"in Ue.props||Ue.setState({current:G,currentInputValue:G})),Ue.props.onShowSizeChange(G,Q),"onChange"in Ue.props&&Ue.props.onChange&&Ue.props.onChange(G,Q)},Ue.handleChange=function(Q){var G=Ue.props.disabled,J=Q;if(Ue.isValid(J)&&!G){var ve=T(void 0,Ue.state,Ue.props);J>ve?J=ve:J<1&&(J=1),"current"in Ue.props||Ue.setState({current:J,currentInputValue:J});var de=Ue.state.pageSize;return Ue.props.onChange(J,de),J}return Ue.state.current},Ue.prev=function(){Ue.hasPrev()&&Ue.handleChange(Ue.state.current-1)},Ue.next=function(){Ue.hasNext()&&Ue.handleChange(Ue.state.current+1)},Ue.jumpPrev=function(){Ue.handleChange(Ue.getJumpPrevPage())},Ue.jumpNext=function(){Ue.handleChange(Ue.getJumpNextPage())},Ue.hasPrev=function(){return Ue.state.current>1},Ue.hasNext=function(){return Ue.state.current<T(void 0,Ue.state,Ue.props)},Ue.runIfEnter=function(Q,G){if(Q.key==="Enter"||Q.charCode===13){for(var J=arguments.length,ve=new Array(J>2?J-2:0),de=2;de<J;de++)ve[de-2]=arguments[de];G.apply(void 0,ve)}},Ue.runIfEnterPrev=function(Q){Ue.runIfEnter(Q,Ue.prev)},Ue.runIfEnterNext=function(Q){Ue.runIfEnter(Q,Ue.next)},Ue.runIfEnterJumpPrev=function(Q){Ue.runIfEnter(Q,Ue.jumpPrev)},Ue.runIfEnterJumpNext=function(Q){Ue.runIfEnter(Q,Ue.jumpNext)},Ue.handleGoTO=function(Q){(Q.keyCode===u.ENTER||Q.type==="click")&&Ue.handleChange(Ue.state.currentInputValue)};var oe=pe.onChange!==v,ee="current"in pe;ee&&!oe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Xe=pe.defaultCurrent;"current"in pe&&(Xe=pe.current);var se=pe.defaultPageSize;return"pageSize"in pe&&(se=pe.pageSize),Xe=Math.min(Xe,T(se,void 0,pe)),Ue.state={current:Xe,currentInputValue:Xe,pageSize:se},Ue}return Object(i.a)(He,[{key:"componentDidUpdate",value:function(Ue,oe){var ee=this.props.prefixCls;if(oe.current!==this.state.current&&this.paginationNode){var Xe=this.paginationNode.querySelector(".".concat(ee,"-item-").concat(oe.current));Xe&&document.activeElement===Xe&&Xe.blur()}}},{key:"getValidValue",value:function(Ue){var oe=Ue.target.value,ee=T(void 0,this.state,this.props),Xe=this.state.currentInputValue,se;return oe===""?se=oe:isNaN(Number(oe))?se=Xe:oe>=ee?se=ee:se=Number(oe),se}},{key:"getShowSizeChanger",value:function(){var Ue=this.props,oe=Ue.showSizeChanger,ee=Ue.total,Xe=Ue.totalBoundaryShowSizeChanger;return typeof oe!="undefined"?oe:ee>Xe}},{key:"renderPrev",value:function(Ue){var oe=this.props,ee=oe.prevIcon,Xe=oe.itemRender,se=Xe(Ue,"prev",this.getItemIcon(ee,"prev page")),Q=!this.hasPrev();return Object(w.isValidElement)(se)?Object(w.cloneElement)(se,{disabled:Q}):se}},{key:"renderNext",value:function(Ue){var oe=this.props,ee=oe.nextIcon,Xe=oe.itemRender,se=Xe(Ue,"next",this.getItemIcon(ee,"next page")),Q=!this.hasNext();return Object(w.isValidElement)(se)?Object(w.cloneElement)(se,{disabled:Q}):se}},{key:"render",value:function(){var Ue=this,oe=this.props,ee=oe.prefixCls,Xe=oe.className,se=oe.style,Q=oe.disabled,G=oe.hideOnSinglePage,J=oe.total,ve=oe.locale,de=oe.showQuickJumper,Ce=oe.showLessItems,Ee=oe.showTitle,le=oe.showTotal,fe=oe.simple,xe=oe.itemRender,Qe=oe.showPrevNextJumpers,ot=oe.jumpPrevIcon,Je=oe.jumpNextIcon,Te=oe.selectComponentClass,et=oe.selectPrefixCls,ze=oe.pageSizeOptions,nt=this.state,Ot=nt.current,Ct=nt.pageSize,Tt=nt.currentInputValue;if(G===!0&&J<=Ct)return null;var Dt=T(void 0,this.state,this.props),Be=[],ie=null,X=null,Fe=null,Ne=null,q=null,ht=de&&de.goButton,Rt=Ce?1:2,ut=Ot-1>0?Ot-1:0,Xt=Ot+1<Dt?Ot+1:Dt,or=Object.keys(this.props).reduce(function(Mn,jt){return(jt.substr(0,5)==="data-"||jt.substr(0,5)==="aria-"||jt==="role")&&(Mn[jt]=Ue.props[jt]),Mn},{});if(fe)return ht&&(typeof ht=="boolean"?q=m.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ve.jump_to_confirm):q=m.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ht),q=m.a.createElement("li",{title:Ee?"".concat(ve.jump_to).concat(Ot,"/").concat(Dt):null,className:"".concat(ee,"-simple-pager")},q)),m.a.createElement("ul",Object(f.a)({className:t()(ee,"".concat(ee,"-simple"),Object(c.a)({},"".concat(ee,"-disabled"),Q),Xe),style:se,ref:this.savePaginationNode},or),m.a.createElement("li",{title:Ee?ve.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:t()("".concat(ee,"-prev"),Object(c.a)({},"".concat(ee,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ut)),m.a.createElement("li",{title:Ee?"".concat(Ot,"/").concat(Dt):null,className:"".concat(ee,"-simple-pager")},m.a.createElement("input",{type:"text",value:Tt,disabled:Q,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),m.a.createElement("span",{className:"".concat(ee,"-slash")},"/"),Dt),m.a.createElement("li",{title:Ee?ve.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:t()("".concat(ee,"-next"),Object(c.a)({},"".concat(ee,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Xt)),q);if(Dt<=3+Rt*2){var Zr={locale:ve,rootPrefixCls:ee,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ee,itemRender:xe};Dt||Be.push(m.a.createElement(l,Object(f.a)({},Zr,{key:"noPager",page:Dt,className:"".concat(ee,"-disabled")})));for(var ar=1;ar<=Dt;ar+=1){var dr=Ot===ar;Be.push(m.a.createElement(l,Object(f.a)({},Zr,{key:ar,page:ar,active:dr})))}}else{var er=Ce?ve.prev_3:ve.prev_5,Ht=Ce?ve.next_3:ve.next_5;Qe&&(ie=m.a.createElement("li",{title:Ee?er:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:t()("".concat(ee,"-jump-prev"),Object(c.a)({},"".concat(ee,"-jump-prev-custom-icon"),!!ot))},xe(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ot,"prev page"))),X=m.a.createElement("li",{title:Ee?Ht:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:t()("".concat(ee,"-jump-next"),Object(c.a)({},"".concat(ee,"-jump-next-custom-icon"),!!Je))},xe(this.getJumpNextPage(),"jump-next",this.getItemIcon(Je,"next page")))),Ne=m.a.createElement(l,{locale:ve,last:!0,rootPrefixCls:ee,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Dt,page:Dt,active:!1,showTitle:Ee,itemRender:xe}),Fe=m.a.createElement(l,{locale:ve,rootPrefixCls:ee,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ee,itemRender:xe});var dt=Math.max(1,Ot-Rt),Hr=Math.min(Ot+Rt,Dt);Ot-1<=Rt&&(Hr=1+Rt*2),Dt-Ot<=Rt&&(dt=Dt-Rt*2);for(var dn=dt;dn<=Hr;dn+=1){var Nn=Ot===dn;Be.push(m.a.createElement(l,{locale:ve,rootPrefixCls:ee,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:dn,page:dn,active:Nn,showTitle:Ee,itemRender:xe}))}Ot-1>=Rt*2&&Ot!==1+2&&(Be[0]=Object(w.cloneElement)(Be[0],{className:"".concat(ee,"-item-after-jump-prev")}),Be.unshift(ie)),Dt-Ot>=Rt*2&&Ot!==Dt-2&&(Be[Be.length-1]=Object(w.cloneElement)(Be[Be.length-1],{className:"".concat(ee,"-item-before-jump-next")}),Be.push(X)),dt!==1&&Be.unshift(Fe),Hr!==Dt&&Be.push(Ne)}var Vn=null;le&&(Vn=m.a.createElement("li",{className:"".concat(ee,"-total-text")},le(J,[J===0?0:(Ot-1)*Ct+1,Ot*Ct>J?J:Ot*Ct])));var gi=!this.hasPrev()||!Dt,bn=!this.hasNext()||!Dt;return m.a.createElement("ul",Object(f.a)({className:t()(ee,Xe,Object(c.a)({},"".concat(ee,"-disabled"),Q)),style:se,unselectable:"unselectable",ref:this.savePaginationNode},or),Vn,m.a.createElement("li",{title:Ee?ve.prev_page:null,onClick:this.prev,tabIndex:gi?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(ee,"-prev"),Object(c.a)({},"".concat(ee,"-disabled"),gi)),"aria-disabled":gi},this.renderPrev(ut)),Be,m.a.createElement("li",{title:Ee?ve.next_page:null,onClick:this.next,tabIndex:bn?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(ee,"-next"),Object(c.a)({},"".concat(ee,"-disabled"),bn)),"aria-disabled":bn},this.renderNext(Xt)),m.a.createElement(p,{disabled:Q,locale:ve,rootPrefixCls:ee,selectComponentClass:Te,selectPrefixCls:et,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ot,pageSize:Ct,pageSizeOptions:ze,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ht}))}}],[{key:"getDerivedStateFromProps",value:function(Ue,oe){var ee={};if("current"in Ue&&(ee.current=Ue.current,Ue.current!==oe.current&&(ee.currentInputValue=ee.current)),"pageSize"in Ue&&Ue.pageSize!==oe.pageSize){var Xe=oe.current,se=T(Ue.pageSize,oe,Ue);Xe=Xe>se?se:Xe,"current"in Ue||(ee.current=Xe,ee.currentInputValue=Xe),ee.pageSize=Ue.pageSize}return ee}}]),He}(m.a.Component);S.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:g.a,style:{},itemRender:x,totalBoundaryShowSizeChanger:50};var b=S,_=d("H4fg"),I=d("DFhj"),L=d.n(I),N=d("fEPi"),D=d.n(N),R=d("u9fO"),P=d.n(R),M=d("mO/d"),U=d.n(M),F=d("2fM7"),j=function(De){return w.createElement(F.a,A()({size:"small"},De))};j.Option=F.a.Option;var W=j,V=d("YMnH"),z=d("H84U"),Y=d("5OYt"),$=function(Oe,De){var He={};for(var pe in Oe)Object.prototype.hasOwnProperty.call(Oe,pe)&&De.indexOf(pe)<0&&(He[pe]=Oe[pe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,pe=Object.getOwnPropertySymbols(Oe);Ue<pe.length;Ue++)De.indexOf(pe[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Oe,pe[Ue])&&(He[pe[Ue]]=Oe[pe[Ue]]);return He},ue=function(De){var He=De.prefixCls,pe=De.selectPrefixCls,Ue=De.className,oe=De.size,ee=De.locale,Xe=$(De,["prefixCls","selectPrefixCls","className","size","locale"]),se=Object(Y.a)(),Q=se.xs,G=w.useContext(z.b),J=G.getPrefixCls,ve=G.direction,de=J("pagination",He),Ce=function(){var fe=w.createElement("span",{className:"".concat(de,"-item-ellipsis")},"\u2022\u2022\u2022"),xe=w.createElement("button",{className:"".concat(de,"-item-link"),type:"button",tabIndex:-1},w.createElement(L.a,null)),Qe=w.createElement("button",{className:"".concat(de,"-item-link"),type:"button",tabIndex:-1},w.createElement(D.a,null)),ot=w.createElement("a",{className:"".concat(de,"-item-link")},w.createElement("div",{className:"".concat(de,"-item-container")},w.createElement(P.a,{className:"".concat(de,"-item-link-icon")}),fe)),Je=w.createElement("a",{className:"".concat(de,"-item-link")},w.createElement("div",{className:"".concat(de,"-item-container")},w.createElement(U.a,{className:"".concat(de,"-item-link-icon")}),fe));if(ve==="rtl"){var Te=[Qe,xe];xe=Te[0],Qe=Te[1];var et=[Je,ot];ot=et[0],Je=et[1]}return{prevIcon:xe,nextIcon:Qe,jumpPrevIcon:ot,jumpNextIcon:Je}},Ee=function(fe){var xe=A()(A()({},fe),ee),Qe=oe==="small"||!!(Q&&!oe&&Xe.responsive),ot=J("select",pe),Je=t()(Ue,E()({mini:Qe},"".concat(de,"-rtl"),ve==="rtl"));return w.createElement(b,A()({},Xe,{prefixCls:de,selectPrefixCls:ot},Ce(),{className:Je,selectComponentClass:Qe?W:F.a,locale:xe}))};return w.createElement(V.a,{componentName:"Pagination",defaultLocale:_.a},Ee)},ne=ue,ge=B.a=ne},NohK:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,w=null;return function(){for(var m=this,f=arguments.length,c=new Array(f),o=0;o<f;o++)c[o]=arguments[o];clearTimeout(w),w=setTimeout(function(){C.apply(m,c)},A)}};B.default=O},Nu4q:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},"O/iA":function(H,B,d){},O3gP:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("O/iA"),A=d.n(C),w=d("OaEy")},OELB:function(H,B,d){var O=d("bYtY"),E=1e-4;function C(y){return y.replace(/^\s+|\s+$/g,"")}function A(y,x,T,S){var b=x[1]-x[0],_=T[1]-T[0];if(b===0)return _===0?T[0]:(T[0]+T[1])/2;if(S)if(b>0){if(y<=x[0])return T[0];if(y>=x[1])return T[1]}else{if(y>=x[0])return T[0];if(y<=x[1])return T[1]}else{if(y===x[0])return T[0];if(y===x[1])return T[1]}return(y-x[0])/b*_+T[0]}function w(y,x){switch(y){case"center":case"middle":y="50%";break;case"left":case"top":y="0%";break;case"right":case"bottom":y="100%";break}return typeof y=="string"?C(y).match(/%$/)?parseFloat(y)/100*x:parseFloat(y):y==null?NaN:+y}function m(y,x,T){return x==null&&(x=10),x=Math.min(Math.max(0,x),20),y=(+y).toFixed(x),T?y:+y}function f(y){return y.sort(function(x,T){return x-T}),y}function c(y){if(y=+y,isNaN(y))return 0;for(var x=1,T=0;Math.round(y*x)/x!==y;)x*=10,T++;return T}function o(y){var x=y.toString(),T=x.indexOf("e");if(T>0){var S=+x.slice(T+1);return S<0?-S:0}else{var b=x.indexOf(".");return b<0?0:x.length-1-b}}function r(y,x){var T=Math.log,S=Math.LN10,b=Math.floor(T(y[1]-y[0])/S),_=Math.round(T(Math.abs(x[1]-x[0]))/S),I=Math.min(Math.max(-b+_,0),20);return isFinite(I)?I:20}function i(y,x,T){if(!y[x])return 0;var S=O.reduce(y,function(F,j){return F+(isNaN(j)?0:j)},0);if(S===0)return 0;for(var b=Math.pow(10,T),_=O.map(y,function(F){return(isNaN(F)?0:F)/S*b*100}),I=b*100,L=O.map(_,function(F){return Math.floor(F)}),N=O.reduce(L,function(F,j){return F+j},0),D=O.map(_,function(F,j){return F-L[j]});N<I;){for(var R=Number.NEGATIVE_INFINITY,P=null,M=0,U=D.length;M<U;++M)D[M]>R&&(R=D[M],P=M);++L[P],D[P]=0,++N}return L[x]/b}var n=9007199254740991;function e(y){var x=Math.PI*2;return(y%x+x)%x}function s(y){return y>-E&&y<E}var t=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function a(y){if(y instanceof Date)return y;if(typeof y=="string"){var x=t.exec(y);if(!x)return new Date(NaN);if(x[8]){var T=+x[4]||0;return x[8].toUpperCase()!=="Z"&&(T-=x[8].slice(0,3)),new Date(Date.UTC(+x[1],+(x[2]||1)-1,+x[3]||1,T,+(x[5]||0),+x[6]||0,+x[7]||0))}else return new Date(+x[1],+(x[2]||1)-1,+x[3]||1,+x[4]||0,+(x[5]||0),+x[6]||0,+x[7]||0)}else if(y==null)return new Date(NaN);return new Date(Math.round(y))}function l(y){return Math.pow(10,u(y))}function u(y){if(y===0)return 0;var x=Math.floor(Math.log(y)/Math.LN10);return y/Math.pow(10,x)>=10&&x++,x}function h(y,x){var T=u(y),S=Math.pow(10,T),b=y/S,_;return x?b<1.5?_=1:b<2.5?_=2:b<4?_=3:b<7?_=5:_=10:b<1?_=1:b<2?_=2:b<3?_=3:b<5?_=5:_=10,y=_*S,T>=-20?+y.toFixed(T<0?-T:0):y}function p(y,x){var T=(y.length-1)*x+1,S=Math.floor(T),b=+y[S-1],_=T-S;return _?b+_*(y[S]-b):b}function g(y){y.sort(function(N,D){return L(N,D,0)?-1:1});for(var x=-Infinity,T=1,S=0;S<y.length;){for(var b=y[S].interval,_=y[S].close,I=0;I<2;I++)b[I]<=x&&(b[I]=x,_[I]=I?1:1-T),x=b[I],T=_[I];b[0]===b[1]&&_[0]*_[1]!==1?y.splice(S,1):S++}return y;function L(N,D,R){return N.interval[R]<D.interval[R]||N.interval[R]===D.interval[R]&&(N.close[R]-D.close[R]===(R?-1:1)||!R&&L(N,D,1))}}function v(y){return y-parseFloat(y)>=0}B.linearMap=A,B.parsePercent=w,B.round=m,B.asc=f,B.getPrecision=c,B.getPrecisionSafe=o,B.getPixelPrecision=r,B.getPercentWithPrecision=i,B.MAX_SAFE_INTEGER=n,B.remRadian=e,B.isRadianAroundZero=s,B.parseDate=a,B.quantity=l,B.quantityExponent=u,B.nice=h,B.quantile=p,B.reformIntervals=g,B.isNumeric=v},OKJ2:function(H,B,d){var O=d("KxfA"),E=O.retrieveRawValue,C=d("7aKB"),A=C.getTooltipMarker,w=C.formatTpl,m=d("4NO4"),f=m.getTooltipRenderMode,c=/\{@(.+?)\}/g,o={getDataParams:function(r,i){var n=this.getData(i),e=this.getRawValue(r,i),s=n.getRawIndex(r),t=n.getName(r),a=n.getRawDataItem(r),l=n.getItemVisual(r,"color"),u=n.getItemVisual(r,"borderColor"),h=this.ecModel.getComponent("tooltip"),p=h&&h.get("renderMode"),g=f(p),v=this.mainType,y=v==="series",x=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:s,data:a,dataType:i,value:e,color:l,borderColor:u,dimensionNames:x?x.dimensionNames:null,encode:x?x.encode:null,marker:A({color:l,renderMode:g}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(r,i,n,e,s){i=i||"normal";var t=this.getData(n),a=t.getItemModel(r),l=this.getDataParams(r,n);e!=null&&l.value instanceof Array&&(l.value=l.value[e]);var u=a.get(i==="normal"?[s||"label","formatter"]:[i,s||"label","formatter"]);if(typeof u=="function")return l.status=i,l.dimensionIndex=e,u(l);if(typeof u=="string"){var h=w(u,l);return h.replace(c,function(p,g){var v=g.length;return g.charAt(0)==="["&&g.charAt(v-1)==="]"&&(g=+g.slice(1,v-1)),E(t,r,g)})}},getRawValue:function(r,i){return E(this.getData(i),r)},formatTooltip:function(){}};H.exports=o},OLod:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("K3mO"))})(this,function(O){O.lib.Cipher||function(E){var C=O,A=C.lib,w=A.Base,m=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:w.extend(),createEncryptor:function(I,L){return this.create(this._ENC_XFORM_MODE,I,L)},createDecryptor:function(I,L){return this.create(this._DEC_XFORM_MODE,I,L)},init:function(I,L,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"?b:x}return function(I){return{encrypt:function(N,D,R){return _(D).encrypt(I,N,D,R)},decrypt:function(N,D,R){return _(D).decrypt(I,N,D,R)}}}}()}),s=A.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),t=C.mode={},a=A.BlockCipherMode=w.extend({createEncryptor:function(I,L){return this.Encryptor.create(I,L)},createDecryptor:function(I,L){return this.Decryptor.create(I,L)},init:function(I,L){this._cipher=I,this._iv=L}}),l=t.CBC=function(){var _=a.extend();_.Encryptor=_.extend({processBlock:function(N,D){var R=this._cipher,P=R.blockSize;I.call(this,N,D,P),R.encryptBlock(N,D),this._prevBlock=N.slice(D,D+P)}}),_.Decryptor=_.extend({processBlock:function(N,D){var R=this._cipher,P=R.blockSize,M=N.slice(D,D+P);R.decryptBlock(N,D),I.call(this,N,D,P),this._prevBlock=M}});function I(L,N,D){var R,P=this._iv;P?(R=P,this._iv=E):R=this._prevBlock;for(var M=0;M<D;M++)L[N+M]^=R[M]}return _}(),u=C.pad={},h=u.Pkcs7={pad:function(I,L){for(var N=L*4,D=N-I.sigBytes%N,R=D<<24|D<<16|D<<8|D,P=[],M=0;M<D;M+=4)P.push(R);var U=m.create(P,D);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:l,padding:h}),reset:function(){var I;e.reset.call(this);var L=this.cfg,N=L.iv,D=L.mode;this._xformMode==this._ENC_XFORM_MODE?I=D.createEncryptor:(I=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,N&&N.words):(this._mode=I.call(D,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}),g=A.CipherParams=w.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,D=I.salt;return D?L=m.create([1398893684,1701076831]).concat(D).concat(N):L=N,L.toString(r)},parse:function(I){var L,N=r.parse(I),D=N.words;return D[0]==1398893684&&D[1]==1701076831&&(L=m.create(D.slice(2,4)),D.splice(0,4),N.sigBytes-=16),g.create({ciphertext:N,salt:L})}},x=A.SerializableCipher=w.extend({cfg:w.extend({format:y}),encrypt:function(I,L,N,D){D=this.cfg.extend(D);var R=I.createEncryptor(N,D),P=R.finalize(L),M=R.cfg;return g.create({ciphertext:P,key:N,iv:M.iv,algorithm:I,mode:M.mode,padding:M.padding,blockSize:I.blockSize,formatter:D.format})},decrypt:function(I,L,N,D){D=this.cfg.extend(D),L=this._parse(L,D.format);var R=I.createDecryptor(N,D).finalize(L.ciphertext);return R},_parse:function(I,L){return typeof I=="string"?L.parse(I,this):I}}),T=C.kdf={},S=T.OpenSSL={execute:function(I,L,N,D){D||(D=m.random(64/8));var R=n.create({keySize:L+N}).compute(I,D),P=m.create(R.words.slice(L),N*4);return R.sigBytes=L*4,g.create({key:R,iv:P,salt:D})}},b=A.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:S}),encrypt:function(I,L,N,D){D=this.cfg.extend(D);var R=D.kdf.execute(N,I.keySize,I.ivSize);D.iv=R.iv;var P=x.encrypt.call(this,I,L,R.key,D);return P.mixIn(R),P},decrypt:function(I,L,N,D){D=this.cfg.extend(D),L=this._parse(L,D.format);var R=D.kdf.execute(N,I.keySize,I.ivSize,L.salt);D.iv=R.iv;var P=x.decrypt.call(this,I,L,R.key,D);return P}})}()})},OPEp:function(H,B,d){},OQFs:function(H,B,d){var O=d("KCsZ"),E=O([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C={getLineStyle:function(A){var w=E(this,A);return w.lineDash=this.getLineDash(w.lineWidth),w},getLineDash:function(A){A==null&&(A=1);var w=this.get("type"),m=Math.max(A,2),f=A*4;return w==="solid"||w==null?!1:w==="dashed"?[f,f]:[m,m]}};H.exports=C},OS9S:function(H,B,d){var O=d("bYtY"),E=O.inherits,C=d("Gev7"),A=d("mFDi");function w(c){C.call(this,c),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}w.prototype.incremental=!0,w.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},w.prototype.addDisplayable=function(c,o){o?this._temporaryDisplayables.push(c):this._displayables.push(c),this.dirty()},w.prototype.addDisplayables=function(c,o){o=o||!1;for(var r=0;r<c.length;r++)this.addDisplayable(c[r],o)},w.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])},w.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}},w.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 m=[];w.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(m)),c.union(i)}this._rect=c}return this._rect},w.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},E(w,C);var f=w;H.exports=f},OUJF:function(H,B,d){var O=d("ProS"),E=d("bYtY");O.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(C,A){var w=A.getComponent("timeline");return w&&C.currentIndex!=null&&(w.setCurrentIndex(C.currentIndex),!w.get("loop",!0)&&w.isIndexMax()&&w.setPlayState(!1)),A.resetOption("timeline"),E.defaults({currentIndex:w.option.currentIndex},C)}),O.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(C,A){var w=A.getComponent("timeline");w&&C.playState!=null&&w.setPlayState(C.playState)})},OXB0:function(H,B,d){var O=d("T4UG"),E=d("MwEJ"),C=d("IDmD"),A=O.extend({type:"series.heatmap",getInitialData:function(w,m){return E(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var w=C.get(this.get("coordinateSystem"));if(w&&w.dimensions)return w.dimensions[0]==="lng"&&w.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});H.exports=A},OaEy:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("bKJz"),A=d.n(C),w=d("R9oj")},Ol7k:function(H,B,d){"use strict";var O=d("PKem"),E=d("ZX9x");O.b.Sider=E.b,B.a=O.b},OlYY:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("ItGF"),m=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,l){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var u=n(t);this.settledOption=u,this.mergeDefaultAndTheme(t,l),this.doInit(u)},mergeOption:function(t){var a=n(t);A.merge(this.option,t,!0),A.merge(this.settledOption,a,!0),this.doInit(a)},doInit:function(t){var a=this.option;w.canvasSupported||(a.realtime=!1),this._setDefaultThrottle(t),e(this,t);var l=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u,h){this._rangePropMode[h]==="value"&&(a[u[0]]=l[u[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(a,l,u,h){var p=this.dependentModels[a.axis][l],g=p.__dzAxisProxy||(p.__dzAxisProxy=new c(a.name,l,this,h));t[a.name+"_"+l]=g},this)},_resetTarget:function(){var t=this.option,a=this._judgeAutoMode();r(function(l){var u=l.axisIndex;t[u]=m.normalizeToArray(t[u])},this),a==="axisIndex"?this._autoSetAxisIndex():a==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,a=!1;r(function(u){t[u.axisIndex]!=null&&(a=!0)},this);var l=t.orient;if(l==null&&a)return"orient";if(!a)return l==null&&(t.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var t=!0,a=this.get("orient",!0),l=this.option,u=this.dependentModels;if(t){var h=a==="vertical"?"y":"x";u[h+"Axis"].length?(l[h+"AxisIndex"]=[0],t=!1):o(u.singleAxis,function(p){t&&p.get("orient",!0)===a&&(l.singleAxisIndex=[p.componentIndex],t=!1)})}t&&r(function(p){if(!t)return;var g=[],v=this.dependentModels[p.axis];if(v.length&&!g.length)for(var y=0,x=v.length;y<x;y++)v[y].get("type")==="category"&&g.push(y);l[p.axisIndex]=g,g.length&&(t=!1)},this),t&&this.ecModel.eachSeries(function(p){this._isSeriesHasAllAxesTypeOf(p,"value")&&r(function(g){var v=l[g.axisIndex],y=p.get(g.axisIndex),x=p.get(g.axisId),T=p.ecModel.queryComponents({mainType:g.axis,index:y,id:x})[0];y=T.componentIndex,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 l=!0;return r(function(u){var h=t.get(u.axisIndex),p=this.dependentModels[u.axis][h];(!p||p.get("type")!==a)&&(l=!1)},this),l},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return r(function(a){if(t==null){var l=this.get(a.axisIndex);l.length&&(t=this.dependentModels[a.axis][l[0]])}},this),t},eachTargetAxis:function(t,a){var l=this.ecModel;r(function(u){o(this.get(u.axisIndex),function(h){t.call(a,u,h,this,l)},this)},this)},getAxisProxy:function(t,a){return this._axisProxies[t+"_"+a]},getAxisModel:function(t,a){var l=this.getAxisProxy(t,a);return l&&l.getAxisModel()},setRawRange:function(t){var a=this.option,l=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u){(t[u[0]]!=null||t[u[1]]!=null)&&(a[u[0]]=l[u[0]]=t[u[0]],a[u[1]]=l[u[1]]=t[u[1]])},this),e(this,t)},setCalculatedRange:function(t){var a=this.option;o(["start","startValue","end","endValue"],function(l){a[l]=t[l]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,a){if(t==null&&a==null){var l=this.findRepresentativeAxisProxy();if(l)return l.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var a=this._axisProxies;for(var l in a)if(a.hasOwnProperty(l)&&a[l].hostedBy(this))return a[l];for(var l in a)if(a.hasOwnProperty(l)&&!a[l].hostedBy(this))return a[l]},getRangePropMode:function(){return this._rangePropMode.slice()}});function n(t){var a={};return o(["start","end","startValue","endValue","throttle"],function(l){t.hasOwnProperty(l)&&(a[l]=t[l])}),a}function e(t,a){var l=t._rangePropMode,u=t.get("rangeMode");o([["start","startValue"],["end","endValue"]],function(h,p){var g=a[h[0]]!=null,v=a[h[1]]!=null;g&&!v?l[p]="percent":!g&&v?l[p]="value":u?l[p]=u[p]:g&&(l[p]="percent")})}var s=i;H.exports=s},OnYD:function(H,B,d){},"Oy/b":function(H,B,d){(function(E,C){H.exports=C()})(typeof self!="undefined"?self:this,function(){return function(O){var E={};function C(A){if(E[A])return E[A].exports;var w=E[A]={i:A,l:!1,exports:{}};return O[A].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=O,C.c=E,C.d=function(A,w,m){C.o(A,w)||Object.defineProperty(A,w,{enumerable:!0,get:m})},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,w){if(w&1&&(A=C(A)),w&8)return A;if(w&4&&typeof A=="object"&&A&&A.__esModule)return A;var m=Object.create(null);if(C.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:A}),w&2&&typeof A!="string")for(var f in A)C.d(m,f,function(c){return A[c]}.bind(null,f));return m},C.n=function(A){var w=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(w,"a",w),w},C.o=function(A,w){return Object.prototype.hasOwnProperty.call(A,w)},C.p="",C(C.s=1)}([function(O,E,C){},function(O,E,C){"use strict";C.r(E);var A=C(0),w=function(){function vt(ae,me,be){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ae,this.start=me,this.end=be}return vt.range=function(me,be){return be?!me||!me.loc||!be.loc||me.loc.lexer!==be.loc.lexer?null:new vt(me.loc.lexer,me.loc.start,be.loc.end):me&&me.loc},vt}(),m=function(){function vt(me,be){this.text=void 0,this.loc=void 0,this.text=me,this.loc=be}var ae=vt.prototype;return ae.range=function(be,Ke){return new vt(Ke,w.range(this,be))},vt}(),f=function vt(ae,me){this.position=void 0;var be="KaTeX parse error: "+ae,Ke,At=me&&me.loc;if(At&&At.start<=At.end){var Gt=At.lexer.input;Ke=At.start;var Dr=At.end;Ke===Gt.length?be+=" at end of input: ":be+=" at position "+(Ke+1)+": ";var Gr=Gt.slice(Ke,Dr).replace(/[^]/g,"$&\u0332"),fn;Ke>15?fn="\u2026"+Gt.slice(Ke-15,Ke):fn=Gt.slice(0,Ke);var Kn;Dr+15<Gt.length?Kn=Gt.slice(Dr,Dr+15)+"\u2026":Kn=Gt.slice(Dr),be+=fn+Gr+Kn}var qn=new Error(be);return qn.name="ParseError",qn.__proto__=vt.prototype,qn.position=Ke,qn};f.prototype.__proto__=Error.prototype;var c=f,o=function(ae,me){return ae.indexOf(me)!==-1},r=function(ae,me){return ae===void 0?me:ae},i=/([A-Z])/g,n=function(ae){return ae.replace(i,"-$1").toLowerCase()},e={"&":"&",">":">","<":"<",'"':""","'":"'"},s=/[&><"']/g;function t(vt){return String(vt).replace(s,function(ae){return e[ae]})}var a=function vt(ae){return ae.type==="ordgroup"||ae.type==="color"?ae.body.length===1?vt(ae.body[0]):ae:ae.type==="font"?vt(ae.body):ae},l=function(ae){var me=a(ae);return me.type==="mathord"||me.type==="textord"||me.type==="atom"},u=function(ae){if(!ae)throw new Error("Expected non-null, but got "+String(ae));return ae},h=function(ae){var me=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(ae);return me!=null?me[1]:"_relative"},p={contains:o,deflt:r,escape:t,hyphenate:n,getBaseElem:a,isCharacterBox:l,protocolFromUrl:h},g=function(){function vt(me){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,me=me||{},this.displayMode=p.deflt(me.displayMode,!1),this.output=p.deflt(me.output,"htmlAndMathml"),this.leqno=p.deflt(me.leqno,!1),this.fleqn=p.deflt(me.fleqn,!1),this.throwOnError=p.deflt(me.throwOnError,!0),this.errorColor=p.deflt(me.errorColor,"#cc0000"),this.macros=me.macros||{},this.minRuleThickness=Math.max(0,p.deflt(me.minRuleThickness,0)),this.colorIsTextColor=p.deflt(me.colorIsTextColor,!1),this.strict=p.deflt(me.strict,"warn"),this.trust=p.deflt(me.trust,!1),this.maxSize=Math.max(0,p.deflt(me.maxSize,Infinity)),this.maxExpand=Math.max(0,p.deflt(me.maxExpand,1e3))}var ae=vt.prototype;return ae.reportNonstrict=function(be,Ke,At){var Gt=this.strict;if(typeof Gt=="function"&&(Gt=Gt(be,Ke,At)),!Gt||Gt==="ignore")return;if(Gt===!0||Gt==="error")throw new c("LaTeX-incompatible input and strict mode is set to 'error': "+(Ke+" ["+be+"]"),At);Gt==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Ke+" ["+be+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Gt+"': "+Ke+" ["+be+"]"))},ae.useStrictBehavior=function(be,Ke,At){var Gt=this.strict;if(typeof Gt=="function")try{Gt=Gt(be,Ke,At)}catch(Dr){Gt="error"}return!Gt||Gt==="ignore"?!1:Gt===!0||Gt==="error"?!0:Gt==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Ke+" ["+be+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Gt+"': "+Ke+" ["+be+"]")),!1)},ae.isTrusted=function(be){be.url&&!be.protocol&&(be.protocol=p.protocolFromUrl(be.url));var Ke=typeof this.trust=="function"?this.trust(be):this.trust;return Boolean(Ke)},vt}(),v=function(){function vt(me,be,Ke){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=me,this.size=be,this.cramped=Ke}var ae=vt.prototype;return ae.sup=function(){return N[D[this.id]]},ae.sub=function(){return N[R[this.id]]},ae.fracNum=function(){return N[P[this.id]]},ae.fracDen=function(){return N[M[this.id]]},ae.cramp=function(){return N[U[this.id]]},ae.text=function(){return N[F[this.id]]},ae.isTight=function(){return this.size>=2},vt}(),y=0,x=1,T=2,S=3,b=4,_=5,I=6,L=7,N=[new v(y,0,!1),new v(x,0,!0),new v(T,1,!1),new v(S,1,!0),new v(b,2,!1),new v(_,2,!0),new v(I,3,!1),new v(L,3,!0)],D=[b,_,b,_,I,L,I,L],R=[_,_,_,_,L,L,L,L],P=[T,S,b,_,I,L,I,L],M=[S,S,_,_,L,L,L,L],U=[x,x,S,S,_,_,L,L],F=[y,x,T,S,T,S,T,S],j={DISPLAY:N[y],TEXT:N[T],SCRIPT:N[b],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(vt){for(var ae=0;ae<W.length;ae++)for(var me=W[ae],be=0;be<me.blocks.length;be++){var Ke=me.blocks[be];if(vt>=Ke[0]&&vt<=Ke[1])return me.name}return null}var z=[];W.forEach(function(vt){return vt.blocks.forEach(function(ae){return z.push.apply(z,ae)})});function Y(vt){for(var ae=0;ae<z.length;ae+=2)if(vt>=z[ae]&&vt<=z[ae+1])return!0;return!1}var $=80,ue=function(ae,me){return"M95,"+(622+ae+me)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+ae/2.075+" -"+ae+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+ae)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+ae)+" "+me+"h400000v"+(40+ae)+"h-400000z"},ne=function(ae,me){return"M263,"+(601+ae+me)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+ae/2.084+" -"+ae+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+ae)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+ae)+" "+me+"h400000v"+(40+ae)+"h-400000z"},ge=function(ae,me){return"M983 "+(10+ae+me)+`
|
|
|
l`+ae/3.13+" -"+ae+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+ae)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+ae)+" "+me+"h400000v"+(40+ae)+"h-400000z"},Oe=function(ae,me){return"M424,"+(2398+ae+me)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+ae/4.223+" -"+ae+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+ae)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+ae)+" "+me+`
|
|
|
h400000v`+(40+ae)+"h-400000z"},De=function(ae,me){return"M473,"+(2713+ae+me)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ae/5.298+" -"+ae+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ae)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+ae)+" "+me+"h400000v"+(40+ae)+"H1017.7z"},He=function(ae,me,be){var Ke=be-54-me-ae;return"M702 "+(ae+me)+"H400000"+(40+ae)+`
|
|
|
H742v`+Ke+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+me+"H400000v"+(40+ae)+"H742z"},pe=function(ae,me,be){me=1e3*me;var Ke="";switch(ae){case"sqrtMain":Ke=ue(me,$);break;case"sqrtSize1":Ke=ne(me,$);break;case"sqrtSize2":Ke=ge(me,$);break;case"sqrtSize3":Ke=Oe(me,$);break;case"sqrtSize4":Ke=De(me,$);break;case"sqrtTall":Ke=He(me,$,be)}return Ke},Ue={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},oe=function(){function vt(me){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=me,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ae=vt.prototype;return ae.hasClass=function(be){return p.contains(this.classes,be)},ae.toNode=function(){for(var be=document.createDocumentFragment(),Ke=0;Ke<this.children.length;Ke++)be.appendChild(this.children[Ke].toNode());return be},ae.toMarkup=function(){for(var be="",Ke=0;Ke<this.children.length;Ke++)be+=this.children[Ke].toMarkup();return be},ae.toText=function(){var be=function(At){return At.toText()};return this.children.map(be).join("")},vt}(),ee=function(ae){return ae.filter(function(me){return me}).join(" ")},Xe=function(ae,me,be){if(this.classes=ae||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=be||{},me){me.style.isTight()&&this.classes.push("mtight");var Ke=me.getColor();Ke&&(this.style.color=Ke)}},se=function(ae){var me=document.createElement(ae);me.className=ee(this.classes);for(var be in this.style)this.style.hasOwnProperty(be)&&(me.style[be]=this.style[be]);for(var Ke in this.attributes)this.attributes.hasOwnProperty(Ke)&&me.setAttribute(Ke,this.attributes[Ke]);for(var At=0;At<this.children.length;At++)me.appendChild(this.children[At].toNode());return me},Q=function(ae){var me="<"+ae;this.classes.length&&(me+=' class="'+p.escape(ee(this.classes))+'"');var be="";for(var Ke in this.style)this.style.hasOwnProperty(Ke)&&(be+=p.hyphenate(Ke)+":"+this.style[Ke]+";");be&&(me+=' style="'+p.escape(be)+'"');for(var At in this.attributes)this.attributes.hasOwnProperty(At)&&(me+=" "+At+'="'+p.escape(this.attributes[At])+'"');me+=">";for(var Gt=0;Gt<this.children.length;Gt++)me+=this.children[Gt].toMarkup();return me+="</"+ae+">",me},G=function(){function vt(me,be,Ke,At){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,Xe.call(this,me,Ke,At),this.children=be||[]}var ae=vt.prototype;return ae.setAttribute=function(be,Ke){this.attributes[be]=Ke},ae.hasClass=function(be){return p.contains(this.classes,be)},ae.toNode=function(){return se.call(this,"span")},ae.toMarkup=function(){return Q.call(this,"span")},vt}(),J=function(){function vt(me,be,Ke,At){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,Xe.call(this,be,At),this.children=Ke||[],this.setAttribute("href",me)}var ae=vt.prototype;return ae.setAttribute=function(be,Ke){this.attributes[be]=Ke},ae.hasClass=function(be){return p.contains(this.classes,be)},ae.toNode=function(){return se.call(this,"a")},ae.toMarkup=function(){return Q.call(this,"a")},vt}(),ve=function(){function vt(me,be,Ke){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=be,this.src=me,this.classes=["mord"],this.style=Ke}var ae=vt.prototype;return ae.hasClass=function(be){return p.contains(this.classes,be)},ae.toNode=function(){var be=document.createElement("img");be.src=this.src,be.alt=this.alt,be.className="mord";for(var Ke in this.style)this.style.hasOwnProperty(Ke)&&(be.style[Ke]=this.style[Ke]);return be},ae.toMarkup=function(){var be="<img src='"+this.src+" 'alt='"+this.alt+"' ",Ke="";for(var At in this.style)this.style.hasOwnProperty(At)&&(Ke+=p.hyphenate(At)+":"+this.style[At]+";");return Ke&&(be+=' style="'+p.escape(Ke)+'"'),be+="'/>",be},vt}(),de={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ce=function(){function vt(me,be,Ke,At,Gt,Dr,Gr,fn){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=me,this.height=be||0,this.depth=Ke||0,this.italic=At||0,this.skew=Gt||0,this.width=Dr||0,this.classes=Gr||[],this.style=fn||{},this.maxFontSize=0;var Kn=V(this.text.charCodeAt(0));Kn&&this.classes.push(Kn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=de[this.text])}var ae=vt.prototype;return ae.hasClass=function(be){return p.contains(this.classes,be)},ae.toNode=function(){var be=document.createTextNode(this.text),Ke=null;this.italic>0&&(Ke=document.createElement("span"),Ke.style.marginRight=this.italic+"em"),this.classes.length>0&&(Ke=Ke||document.createElement("span"),Ke.className=ee(this.classes));for(var At in this.style)this.style.hasOwnProperty(At)&&(Ke=Ke||document.createElement("span"),Ke.style[At]=this.style[At]);return Ke?(Ke.appendChild(be),Ke):be},ae.toMarkup=function(){var be=!1,Ke="<span";this.classes.length&&(be=!0,Ke+=' class="',Ke+=p.escape(ee(this.classes)),Ke+='"');var At="";this.italic>0&&(At+="margin-right:"+this.italic+"em;");for(var Gt in this.style)this.style.hasOwnProperty(Gt)&&(At+=p.hyphenate(Gt)+":"+this.style[Gt]+";");At&&(be=!0,Ke+=' style="'+p.escape(At)+'"');var Dr=p.escape(this.text);return be?(Ke+=">",Ke+=Dr,Ke+="</span>",Ke):Dr},vt}(),Ee=function(){function vt(me,be){this.children=void 0,this.attributes=void 0,this.children=me||[],this.attributes=be||{}}var ae=vt.prototype;return ae.toNode=function(){var be="http://www.w3.org/2000/svg",Ke=document.createElementNS(be,"svg");for(var At in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,At)&&Ke.setAttribute(At,this.attributes[At]);for(var Gt=0;Gt<this.children.length;Gt++)Ke.appendChild(this.children[Gt].toNode());return Ke},ae.toMarkup=function(){var be="<svg";for(var Ke in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ke)&&(be+=" "+Ke+"='"+this.attributes[Ke]+"'");be+=">";for(var At=0;At<this.children.length;At++)be+=this.children[At].toMarkup();return be+="</svg>",be},vt}(),le=function(){function vt(me,be){this.pathName=void 0,this.alternate=void 0,this.pathName=me,this.alternate=be}var ae=vt.prototype;return ae.toNode=function(){var be="http://www.w3.org/2000/svg",Ke=document.createElementNS(be,"path");return this.alternate?Ke.setAttribute("d",this.alternate):Ke.setAttribute("d",Ue[this.pathName]),Ke},ae.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Ue[this.pathName]+"'/>"},vt}(),fe=function(){function vt(me){this.attributes=void 0,this.attributes=me||{}}var ae=vt.prototype;return ae.toNode=function(){var be="http://www.w3.org/2000/svg",Ke=document.createElementNS(be,"line");for(var At in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,At)&&Ke.setAttribute(At,this.attributes[At]);return Ke},ae.toMarkup=function(){var be="<line";for(var Ke in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ke)&&(be+=" "+Ke+"='"+this.attributes[Ke]+"'");return be+="/>",be},vt}();function xe(vt){if(vt instanceof Ce)return vt;throw new Error("Expected symbolNode but got "+String(vt)+".")}function Qe(vt){if(vt instanceof G)return vt;throw new Error("Expected span<HtmlDomNode> but got "+String(vt)+".")}var ot={"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]}},Je={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]},Te={\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 et(vt,ae){ot[vt]=ae}function ze(vt,ae,me){if(!ot[ae])throw new Error("Font metrics not found for font: "+ae+".");var be=vt.charCodeAt(0),Ke=ot[ae][be];if(!Ke&&vt[0]in Te&&(be=Te[vt[0]].charCodeAt(0),Ke=ot[ae][be]),!Ke&&me==="text"&&(Y(be)&&(Ke=ot[ae][77])),Ke)return{depth:Ke[0],height:Ke[1],italic:Ke[2],skew:Ke[3],width:Ke[4]}}var nt={};function Ot(vt){var ae;if(vt>=5?ae=0:vt>=3?ae=1:ae=2,!nt[ae]){var me=nt[ae]={cssEmPerMu:Je.quad[ae]/18};for(var be in Je)Je.hasOwnProperty(be)&&(me[be]=Je[be][ae])}return nt[ae]}var Ct={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Tt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Dt={math:{},text:{}},Be=Dt;function ie(vt,ae,me,be,Ke,At){Dt[vt][Ke]={font:ae,group:me,replace:be},At&&be&&(Dt[vt][be]=Dt[vt][Ke])}var X="math",Fe="text",Ne="main",q="ams",ht="accent-token",Rt="bin",ut="close",Xt="inner",or="mathord",Zr="op-token",ar="open",dr="punct",er="rel",Ht="spacing",dt="textord";ie(X,Ne,er,"\u2261","\\equiv",!0),ie(X,Ne,er,"\u227A","\\prec",!0),ie(X,Ne,er,"\u227B","\\succ",!0),ie(X,Ne,er,"\u223C","\\sim",!0),ie(X,Ne,er,"\u22A5","\\perp"),ie(X,Ne,er,"\u2AAF","\\preceq",!0),ie(X,Ne,er,"\u2AB0","\\succeq",!0),ie(X,Ne,er,"\u2243","\\simeq",!0),ie(X,Ne,er,"\u2223","\\mid",!0),ie(X,Ne,er,"\u226A","\\ll",!0),ie(X,Ne,er,"\u226B","\\gg",!0),ie(X,Ne,er,"\u224D","\\asymp",!0),ie(X,Ne,er,"\u2225","\\parallel"),ie(X,Ne,er,"\u22C8","\\bowtie",!0),ie(X,Ne,er,"\u2323","\\smile",!0),ie(X,Ne,er,"\u2291","\\sqsubseteq",!0),ie(X,Ne,er,"\u2292","\\sqsupseteq",!0),ie(X,Ne,er,"\u2250","\\doteq",!0),ie(X,Ne,er,"\u2322","\\frown",!0),ie(X,Ne,er,"\u220B","\\ni",!0),ie(X,Ne,er,"\u221D","\\propto",!0),ie(X,Ne,er,"\u22A2","\\vdash",!0),ie(X,Ne,er,"\u22A3","\\dashv",!0),ie(X,Ne,er,"\u220B","\\owns"),ie(X,Ne,dr,".","\\ldotp"),ie(X,Ne,dr,"\u22C5","\\cdotp"),ie(X,Ne,dt,"#","\\#"),ie(Fe,Ne,dt,"#","\\#"),ie(X,Ne,dt,"&","\\&"),ie(Fe,Ne,dt,"&","\\&"),ie(X,Ne,dt,"\u2135","\\aleph",!0),ie(X,Ne,dt,"\u2200","\\forall",!0),ie(X,Ne,dt,"\u210F","\\hbar",!0),ie(X,Ne,dt,"\u2203","\\exists",!0),ie(X,Ne,dt,"\u2207","\\nabla",!0),ie(X,Ne,dt,"\u266D","\\flat",!0),ie(X,Ne,dt,"\u2113","\\ell",!0),ie(X,Ne,dt,"\u266E","\\natural",!0),ie(X,Ne,dt,"\u2663","\\clubsuit",!0),ie(X,Ne,dt,"\u2118","\\wp",!0),ie(X,Ne,dt,"\u266F","\\sharp",!0),ie(X,Ne,dt,"\u2662","\\diamondsuit",!0),ie(X,Ne,dt,"\u211C","\\Re",!0),ie(X,Ne,dt,"\u2661","\\heartsuit",!0),ie(X,Ne,dt,"\u2111","\\Im",!0),ie(X,Ne,dt,"\u2660","\\spadesuit",!0),ie(Fe,Ne,dt,"\xA7","\\S",!0),ie(Fe,Ne,dt,"\xB6","\\P",!0),ie(X,Ne,dt,"\u2020","\\dag"),ie(Fe,Ne,dt,"\u2020","\\dag"),ie(Fe,Ne,dt,"\u2020","\\textdagger"),ie(X,Ne,dt,"\u2021","\\ddag"),ie(Fe,Ne,dt,"\u2021","\\ddag"),ie(Fe,Ne,dt,"\u2021","\\textdaggerdbl"),ie(X,Ne,ut,"\u23B1","\\rmoustache",!0),ie(X,Ne,ar,"\u23B0","\\lmoustache",!0),ie(X,Ne,ut,"\u27EF","\\rgroup",!0),ie(X,Ne,ar,"\u27EE","\\lgroup",!0),ie(X,Ne,Rt,"\u2213","\\mp",!0),ie(X,Ne,Rt,"\u2296","\\ominus",!0),ie(X,Ne,Rt,"\u228E","\\uplus",!0),ie(X,Ne,Rt,"\u2293","\\sqcap",!0),ie(X,Ne,Rt,"\u2217","\\ast"),ie(X,Ne,Rt,"\u2294","\\sqcup",!0),ie(X,Ne,Rt,"\u25EF","\\bigcirc"),ie(X,Ne,Rt,"\u2219","\\bullet"),ie(X,Ne,Rt,"\u2021","\\ddagger"),ie(X,Ne,Rt,"\u2240","\\wr",!0),ie(X,Ne,Rt,"\u2A3F","\\amalg"),ie(X,Ne,Rt,"&","\\And"),ie(X,Ne,er,"\u27F5","\\longleftarrow",!0),ie(X,Ne,er,"\u21D0","\\Leftarrow",!0),ie(X,Ne,er,"\u27F8","\\Longleftarrow",!0),ie(X,Ne,er,"\u27F6","\\longrightarrow",!0),ie(X,Ne,er,"\u21D2","\\Rightarrow",!0),ie(X,Ne,er,"\u27F9","\\Longrightarrow",!0),ie(X,Ne,er,"\u2194","\\leftrightarrow",!0),ie(X,Ne,er,"\u27F7","\\longleftrightarrow",!0),ie(X,Ne,er,"\u21D4","\\Leftrightarrow",!0),ie(X,Ne,er,"\u27FA","\\Longleftrightarrow",!0),ie(X,Ne,er,"\u21A6","\\mapsto",!0),ie(X,Ne,er,"\u27FC","\\longmapsto",!0),ie(X,Ne,er,"\u2197","\\nearrow",!0),ie(X,Ne,er,"\u21A9","\\hookleftarrow",!0),ie(X,Ne,er,"\u21AA","\\hookrightarrow",!0),ie(X,Ne,er,"\u2198","\\searrow",!0),ie(X,Ne,er,"\u21BC","\\leftharpoonup",!0),ie(X,Ne,er,"\u21C0","\\rightharpoonup",!0),ie(X,Ne,er,"\u2199","\\swarrow",!0),ie(X,Ne,er,"\u21BD","\\leftharpoondown",!0),ie(X,Ne,er,"\u21C1","\\rightharpoondown",!0),ie(X,Ne,er,"\u2196","\\nwarrow",!0),ie(X,Ne,er,"\u21CC","\\rightleftharpoons",!0),ie(X,q,er,"\u226E","\\nless",!0),ie(X,q,er,"\uE010","\\@nleqslant"),ie(X,q,er,"\uE011","\\@nleqq"),ie(X,q,er,"\u2A87","\\lneq",!0),ie(X,q,er,"\u2268","\\lneqq",!0),ie(X,q,er,"\uE00C","\\@lvertneqq"),ie(X,q,er,"\u22E6","\\lnsim",!0),ie(X,q,er,"\u2A89","\\lnapprox",!0),ie(X,q,er,"\u2280","\\nprec",!0),ie(X,q,er,"\u22E0","\\npreceq",!0),ie(X,q,er,"\u22E8","\\precnsim",!0),ie(X,q,er,"\u2AB9","\\precnapprox",!0),ie(X,q,er,"\u2241","\\nsim",!0),ie(X,q,er,"\uE006","\\@nshortmid"),ie(X,q,er,"\u2224","\\nmid",!0),ie(X,q,er,"\u22AC","\\nvdash",!0),ie(X,q,er,"\u22AD","\\nvDash",!0),ie(X,q,er,"\u22EA","\\ntriangleleft"),ie(X,q,er,"\u22EC","\\ntrianglelefteq",!0),ie(X,q,er,"\u228A","\\subsetneq",!0),ie(X,q,er,"\uE01A","\\@varsubsetneq"),ie(X,q,er,"\u2ACB","\\subsetneqq",!0),ie(X,q,er,"\uE017","\\@varsubsetneqq"),ie(X,q,er,"\u226F","\\ngtr",!0),ie(X,q,er,"\uE00F","\\@ngeqslant"),ie(X,q,er,"\uE00E","\\@ngeqq"),ie(X,q,er,"\u2A88","\\gneq",!0),ie(X,q,er,"\u2269","\\gneqq",!0),ie(X,q,er,"\uE00D","\\@gvertneqq"),ie(X,q,er,"\u22E7","\\gnsim",!0),ie(X,q,er,"\u2A8A","\\gnapprox",!0),ie(X,q,er,"\u2281","\\nsucc",!0),ie(X,q,er,"\u22E1","\\nsucceq",!0),ie(X,q,er,"\u22E9","\\succnsim",!0),ie(X,q,er,"\u2ABA","\\succnapprox",!0),ie(X,q,er,"\u2246","\\ncong",!0),ie(X,q,er,"\uE007","\\@nshortparallel"),ie(X,q,er,"\u2226","\\nparallel",!0),ie(X,q,er,"\u22AF","\\nVDash",!0),ie(X,q,er,"\u22EB","\\ntriangleright"),ie(X,q,er,"\u22ED","\\ntrianglerighteq",!0),ie(X,q,er,"\uE018","\\@nsupseteqq"),ie(X,q,er,"\u228B","\\supsetneq",!0),ie(X,q,er,"\uE01B","\\@varsupsetneq"),ie(X,q,er,"\u2ACC","\\supsetneqq",!0),ie(X,q,er,"\uE019","\\@varsupsetneqq"),ie(X,q,er,"\u22AE","\\nVdash",!0),ie(X,q,er,"\u2AB5","\\precneqq",!0),ie(X,q,er,"\u2AB6","\\succneqq",!0),ie(X,q,er,"\uE016","\\@nsubseteqq"),ie(X,q,Rt,"\u22B4","\\unlhd"),ie(X,q,Rt,"\u22B5","\\unrhd"),ie(X,q,er,"\u219A","\\nleftarrow",!0),ie(X,q,er,"\u219B","\\nrightarrow",!0),ie(X,q,er,"\u21CD","\\nLeftarrow",!0),ie(X,q,er,"\u21CF","\\nRightarrow",!0),ie(X,q,er,"\u21AE","\\nleftrightarrow",!0),ie(X,q,er,"\u21CE","\\nLeftrightarrow",!0),ie(X,q,er,"\u25B3","\\vartriangle"),ie(X,q,dt,"\u210F","\\hslash"),ie(X,q,dt,"\u25BD","\\triangledown"),ie(X,q,dt,"\u25CA","\\lozenge"),ie(X,q,dt,"\u24C8","\\circledS"),ie(X,q,dt,"\xAE","\\circledR"),ie(Fe,q,dt,"\xAE","\\circledR"),ie(X,q,dt,"\u2221","\\measuredangle",!0),ie(X,q,dt,"\u2204","\\nexists"),ie(X,q,dt,"\u2127","\\mho"),ie(X,q,dt,"\u2132","\\Finv",!0),ie(X,q,dt,"\u2141","\\Game",!0),ie(X,q,dt,"\u2035","\\backprime"),ie(X,q,dt,"\u25B2","\\blacktriangle"),ie(X,q,dt,"\u25BC","\\blacktriangledown"),ie(X,q,dt,"\u25A0","\\blacksquare"),ie(X,q,dt,"\u29EB","\\blacklozenge"),ie(X,q,dt,"\u2605","\\bigstar"),ie(X,q,dt,"\u2222","\\sphericalangle",!0),ie(X,q,dt,"\u2201","\\complement",!0),ie(X,q,dt,"\xF0","\\eth",!0),ie(X,q,dt,"\u2571","\\diagup"),ie(X,q,dt,"\u2572","\\diagdown"),ie(X,q,dt,"\u25A1","\\square"),ie(X,q,dt,"\u25A1","\\Box"),ie(X,q,dt,"\u25CA","\\Diamond"),ie(X,q,dt,"\xA5","\\yen",!0),ie(Fe,q,dt,"\xA5","\\yen",!0),ie(X,q,dt,"\u2713","\\checkmark",!0),ie(Fe,q,dt,"\u2713","\\checkmark"),ie(X,q,dt,"\u2136","\\beth",!0),ie(X,q,dt,"\u2138","\\daleth",!0),ie(X,q,dt,"\u2137","\\gimel",!0),ie(X,q,dt,"\u03DD","\\digamma",!0),ie(X,q,dt,"\u03F0","\\varkappa"),ie(X,q,ar,"\u250C","\\ulcorner",!0),ie(X,q,ut,"\u2510","\\urcorner",!0),ie(X,q,ar,"\u2514","\\llcorner",!0),ie(X,q,ut,"\u2518","\\lrcorner",!0),ie(X,q,er,"\u2266","\\leqq",!0),ie(X,q,er,"\u2A7D","\\leqslant",!0),ie(X,q,er,"\u2A95","\\eqslantless",!0),ie(X,q,er,"\u2272","\\lesssim",!0),ie(X,q,er,"\u2A85","\\lessapprox",!0),ie(X,q,er,"\u224A","\\approxeq",!0),ie(X,q,Rt,"\u22D6","\\lessdot"),ie(X,q,er,"\u22D8","\\lll",!0),ie(X,q,er,"\u2276","\\lessgtr",!0),ie(X,q,er,"\u22DA","\\lesseqgtr",!0),ie(X,q,er,"\u2A8B","\\lesseqqgtr",!0),ie(X,q,er,"\u2251","\\doteqdot"),ie(X,q,er,"\u2253","\\risingdotseq",!0),ie(X,q,er,"\u2252","\\fallingdotseq",!0),ie(X,q,er,"\u223D","\\backsim",!0),ie(X,q,er,"\u22CD","\\backsimeq",!0),ie(X,q,er,"\u2AC5","\\subseteqq",!0),ie(X,q,er,"\u22D0","\\Subset",!0),ie(X,q,er,"\u228F","\\sqsubset",!0),ie(X,q,er,"\u227C","\\preccurlyeq",!0),ie(X,q,er,"\u22DE","\\curlyeqprec",!0),ie(X,q,er,"\u227E","\\precsim",!0),ie(X,q,er,"\u2AB7","\\precapprox",!0),ie(X,q,er,"\u22B2","\\vartriangleleft"),ie(X,q,er,"\u22B4","\\trianglelefteq"),ie(X,q,er,"\u22A8","\\vDash",!0),ie(X,q,er,"\u22AA","\\Vvdash",!0),ie(X,q,er,"\u2323","\\smallsmile"),ie(X,q,er,"\u2322","\\smallfrown"),ie(X,q,er,"\u224F","\\bumpeq",!0),ie(X,q,er,"\u224E","\\Bumpeq",!0),ie(X,q,er,"\u2267","\\geqq",!0),ie(X,q,er,"\u2A7E","\\geqslant",!0),ie(X,q,er,"\u2A96","\\eqslantgtr",!0),ie(X,q,er,"\u2273","\\gtrsim",!0),ie(X,q,er,"\u2A86","\\gtrapprox",!0),ie(X,q,Rt,"\u22D7","\\gtrdot"),ie(X,q,er,"\u22D9","\\ggg",!0),ie(X,q,er,"\u2277","\\gtrless",!0),ie(X,q,er,"\u22DB","\\gtreqless",!0),ie(X,q,er,"\u2A8C","\\gtreqqless",!0),ie(X,q,er,"\u2256","\\eqcirc",!0),ie(X,q,er,"\u2257","\\circeq",!0),ie(X,q,er,"\u225C","\\triangleq",!0),ie(X,q,er,"\u223C","\\thicksim"),ie(X,q,er,"\u2248","\\thickapprox"),ie(X,q,er,"\u2AC6","\\supseteqq",!0),ie(X,q,er,"\u22D1","\\Supset",!0),ie(X,q,er,"\u2290","\\sqsupset",!0),ie(X,q,er,"\u227D","\\succcurlyeq",!0),ie(X,q,er,"\u22DF","\\curlyeqsucc",!0),ie(X,q,er,"\u227F","\\succsim",!0),ie(X,q,er,"\u2AB8","\\succapprox",!0),ie(X,q,er,"\u22B3","\\vartriangleright"),ie(X,q,er,"\u22B5","\\trianglerighteq"),ie(X,q,er,"\u22A9","\\Vdash",!0),ie(X,q,er,"\u2223","\\shortmid"),ie(X,q,er,"\u2225","\\shortparallel"),ie(X,q,er,"\u226C","\\between",!0),ie(X,q,er,"\u22D4","\\pitchfork",!0),ie(X,q,er,"\u221D","\\varpropto"),ie(X,q,er,"\u25C0","\\blacktriangleleft"),ie(X,q,er,"\u2234","\\therefore",!0),ie(X,q,er,"\u220D","\\backepsilon"),ie(X,q,er,"\u25B6","\\blacktriangleright"),ie(X,q,er,"\u2235","\\because",!0),ie(X,q,er,"\u22D8","\\llless"),ie(X,q,er,"\u22D9","\\gggtr"),ie(X,q,Rt,"\u22B2","\\lhd"),ie(X,q,Rt,"\u22B3","\\rhd"),ie(X,q,er,"\u2242","\\eqsim",!0),ie(X,Ne,er,"\u22C8","\\Join"),ie(X,q,er,"\u2251","\\Doteq",!0),ie(X,q,Rt,"\u2214","\\dotplus",!0),ie(X,q,Rt,"\u2216","\\smallsetminus"),ie(X,q,Rt,"\u22D2","\\Cap",!0),ie(X,q,Rt,"\u22D3","\\Cup",!0),ie(X,q,Rt,"\u2A5E","\\doublebarwedge",!0),ie(X,q,Rt,"\u229F","\\boxminus",!0),ie(X,q,Rt,"\u229E","\\boxplus",!0),ie(X,q,Rt,"\u22C7","\\divideontimes",!0),ie(X,q,Rt,"\u22C9","\\ltimes",!0),ie(X,q,Rt,"\u22CA","\\rtimes",!0),ie(X,q,Rt,"\u22CB","\\leftthreetimes",!0),ie(X,q,Rt,"\u22CC","\\rightthreetimes",!0),ie(X,q,Rt,"\u22CF","\\curlywedge",!0),ie(X,q,Rt,"\u22CE","\\curlyvee",!0),ie(X,q,Rt,"\u229D","\\circleddash",!0),ie(X,q,Rt,"\u229B","\\circledast",!0),ie(X,q,Rt,"\u22C5","\\centerdot"),ie(X,q,Rt,"\u22BA","\\intercal",!0),ie(X,q,Rt,"\u22D2","\\doublecap"),ie(X,q,Rt,"\u22D3","\\doublecup"),ie(X,q,Rt,"\u22A0","\\boxtimes",!0),ie(X,q,er,"\u21E2","\\dashrightarrow",!0),ie(X,q,er,"\u21E0","\\dashleftarrow",!0),ie(X,q,er,"\u21C7","\\leftleftarrows",!0),ie(X,q,er,"\u21C6","\\leftrightarrows",!0),ie(X,q,er,"\u21DA","\\Lleftarrow",!0),ie(X,q,er,"\u219E","\\twoheadleftarrow",!0),ie(X,q,er,"\u21A2","\\leftarrowtail",!0),ie(X,q,er,"\u21AB","\\looparrowleft",!0),ie(X,q,er,"\u21CB","\\leftrightharpoons",!0),ie(X,q,er,"\u21B6","\\curvearrowleft",!0),ie(X,q,er,"\u21BA","\\circlearrowleft",!0),ie(X,q,er,"\u21B0","\\Lsh",!0),ie(X,q,er,"\u21C8","\\upuparrows",!0),ie(X,q,er,"\u21BF","\\upharpoonleft",!0),ie(X,q,er,"\u21C3","\\downharpoonleft",!0),ie(X,q,er,"\u22B8","\\multimap",!0),ie(X,q,er,"\u21AD","\\leftrightsquigarrow",!0),ie(X,q,er,"\u21C9","\\rightrightarrows",!0),ie(X,q,er,"\u21C4","\\rightleftarrows",!0),ie(X,q,er,"\u21A0","\\twoheadrightarrow",!0),ie(X,q,er,"\u21A3","\\rightarrowtail",!0),ie(X,q,er,"\u21AC","\\looparrowright",!0),ie(X,q,er,"\u21B7","\\curvearrowright",!0),ie(X,q,er,"\u21BB","\\circlearrowright",!0),ie(X,q,er,"\u21B1","\\Rsh",!0),ie(X,q,er,"\u21CA","\\downdownarrows",!0),ie(X,q,er,"\u21BE","\\upharpoonright",!0),ie(X,q,er,"\u21C2","\\downharpoonright",!0),ie(X,q,er,"\u21DD","\\rightsquigarrow",!0),ie(X,q,er,"\u21DD","\\leadsto"),ie(X,q,er,"\u21DB","\\Rrightarrow",!0),ie(X,q,er,"\u21BE","\\restriction"),ie(X,Ne,dt,"\u2018","`"),ie(X,Ne,dt,"$","\\$"),ie(Fe,Ne,dt,"$","\\$"),ie(Fe,Ne,dt,"$","\\textdollar"),ie(X,Ne,dt,"%","\\%"),ie(Fe,Ne,dt,"%","\\%"),ie(X,Ne,dt,"_","\\_"),ie(Fe,Ne,dt,"_","\\_"),ie(Fe,Ne,dt,"_","\\textunderscore"),ie(X,Ne,dt,"\u2220","\\angle",!0),ie(X,Ne,dt,"\u221E","\\infty",!0),ie(X,Ne,dt,"\u2032","\\prime"),ie(X,Ne,dt,"\u25B3","\\triangle"),ie(X,Ne,dt,"\u0393","\\Gamma",!0),ie(X,Ne,dt,"\u0394","\\Delta",!0),ie(X,Ne,dt,"\u0398","\\Theta",!0),ie(X,Ne,dt,"\u039B","\\Lambda",!0),ie(X,Ne,dt,"\u039E","\\Xi",!0),ie(X,Ne,dt,"\u03A0","\\Pi",!0),ie(X,Ne,dt,"\u03A3","\\Sigma",!0),ie(X,Ne,dt,"\u03A5","\\Upsilon",!0),ie(X,Ne,dt,"\u03A6","\\Phi",!0),ie(X,Ne,dt,"\u03A8","\\Psi",!0),ie(X,Ne,dt,"\u03A9","\\Omega",!0),ie(X,Ne,dt,"A","\u0391"),ie(X,Ne,dt,"B","\u0392"),ie(X,Ne,dt,"E","\u0395"),ie(X,Ne,dt,"Z","\u0396"),ie(X,Ne,dt,"H","\u0397"),ie(X,Ne,dt,"I","\u0399"),ie(X,Ne,dt,"K","\u039A"),ie(X,Ne,dt,"M","\u039C"),ie(X,Ne,dt,"N","\u039D"),ie(X,Ne,dt,"O","\u039F"),ie(X,Ne,dt,"P","\u03A1"),ie(X,Ne,dt,"T","\u03A4"),ie(X,Ne,dt,"X","\u03A7"),ie(X,Ne,dt,"\xAC","\\neg",!0),ie(X,Ne,dt,"\xAC","\\lnot"),ie(X,Ne,dt,"\u22A4","\\top"),ie(X,Ne,dt,"\u22A5","\\bot"),ie(X,Ne,dt,"\u2205","\\emptyset"),ie(X,q,dt,"\u2205","\\varnothing"),ie(X,Ne,or,"\u03B1","\\alpha",!0),ie(X,Ne,or,"\u03B2","\\beta",!0),ie(X,Ne,or,"\u03B3","\\gamma",!0),ie(X,Ne,or,"\u03B4","\\delta",!0),ie(X,Ne,or,"\u03F5","\\epsilon",!0),ie(X,Ne,or,"\u03B6","\\zeta",!0),ie(X,Ne,or,"\u03B7","\\eta",!0),ie(X,Ne,or,"\u03B8","\\theta",!0),ie(X,Ne,or,"\u03B9","\\iota",!0),ie(X,Ne,or,"\u03BA","\\kappa",!0),ie(X,Ne,or,"\u03BB","\\lambda",!0),ie(X,Ne,or,"\u03BC","\\mu",!0),ie(X,Ne,or,"\u03BD","\\nu",!0),ie(X,Ne,or,"\u03BE","\\xi",!0),ie(X,Ne,or,"\u03BF","\\omicron",!0),ie(X,Ne,or,"\u03C0","\\pi",!0),ie(X,Ne,or,"\u03C1","\\rho",!0),ie(X,Ne,or,"\u03C3","\\sigma",!0),ie(X,Ne,or,"\u03C4","\\tau",!0),ie(X,Ne,or,"\u03C5","\\upsilon",!0),ie(X,Ne,or,"\u03D5","\\phi",!0),ie(X,Ne,or,"\u03C7","\\chi",!0),ie(X,Ne,or,"\u03C8","\\psi",!0),ie(X,Ne,or,"\u03C9","\\omega",!0),ie(X,Ne,or,"\u03B5","\\varepsilon",!0),ie(X,Ne,or,"\u03D1","\\vartheta",!0),ie(X,Ne,or,"\u03D6","\\varpi",!0),ie(X,Ne,or,"\u03F1","\\varrho",!0),ie(X,Ne,or,"\u03C2","\\varsigma",!0),ie(X,Ne,or,"\u03C6","\\varphi",!0),ie(X,Ne,Rt,"\u2217","*"),ie(X,Ne,Rt,"+","+"),ie(X,Ne,Rt,"\u2212","-"),ie(X,Ne,Rt,"\u22C5","\\cdot",!0),ie(X,Ne,Rt,"\u2218","\\circ"),ie(X,Ne,Rt,"\xF7","\\div",!0),ie(X,Ne,Rt,"\xB1","\\pm",!0),ie(X,Ne,Rt,"\xD7","\\times",!0),ie(X,Ne,Rt,"\u2229","\\cap",!0),ie(X,Ne,Rt,"\u222A","\\cup",!0),ie(X,Ne,Rt,"\u2216","\\setminus"),ie(X,Ne,Rt,"\u2227","\\land"),ie(X,Ne,Rt,"\u2228","\\lor"),ie(X,Ne,Rt,"\u2227","\\wedge",!0),ie(X,Ne,Rt,"\u2228","\\vee",!0),ie(X,Ne,dt,"\u221A","\\surd"),ie(X,Ne,ar,"(","("),ie(X,Ne,ar,"[","["),ie(X,Ne,ar,"\u27E8","\\langle",!0),ie(X,Ne,ar,"\u2223","\\lvert"),ie(X,Ne,ar,"\u2225","\\lVert"),ie(X,Ne,ut,")",")"),ie(X,Ne,ut,"]","]"),ie(X,Ne,ut,"?","?"),ie(X,Ne,ut,"!","!"),ie(X,Ne,ut,"\u27E9","\\rangle",!0),ie(X,Ne,ut,"\u2223","\\rvert"),ie(X,Ne,ut,"\u2225","\\rVert"),ie(X,Ne,er,"=","="),ie(X,Ne,er,"<","<"),ie(X,Ne,er,">",">"),ie(X,Ne,er,":",":"),ie(X,Ne,er,"\u2248","\\approx",!0),ie(X,Ne,er,"\u2245","\\cong",!0),ie(X,Ne,er,"\u2265","\\ge"),ie(X,Ne,er,"\u2265","\\geq",!0),ie(X,Ne,er,"\u2190","\\gets"),ie(X,Ne,er,">","\\gt"),ie(X,Ne,er,"\u2208","\\in",!0),ie(X,Ne,er,"\uE020","\\@not"),ie(X,Ne,er,"\u2282","\\subset",!0),ie(X,Ne,er,"\u2283","\\supset",!0),ie(X,Ne,er,"\u2286","\\subseteq",!0),ie(X,Ne,er,"\u2287","\\supseteq",!0),ie(X,q,er,"\u2288","\\nsubseteq",!0),ie(X,q,er,"\u2289","\\nsupseteq",!0),ie(X,Ne,er,"\u22A8","\\models"),ie(X,Ne,er,"\u2190","\\leftarrow",!0),ie(X,Ne,er,"\u2264","\\le"),ie(X,Ne,er,"\u2264","\\leq",!0),ie(X,Ne,er,"<","\\lt"),ie(X,Ne,er,"\u2192","\\rightarrow",!0),ie(X,Ne,er,"\u2192","\\to"),ie(X,q,er,"\u2271","\\ngeq",!0),ie(X,q,er,"\u2270","\\nleq",!0),ie(X,Ne,Ht,"\xA0","\\ "),ie(X,Ne,Ht,"\xA0","~"),ie(X,Ne,Ht,"\xA0","\\space"),ie(X,Ne,Ht,"\xA0","\\nobreakspace"),ie(Fe,Ne,Ht,"\xA0","\\ "),ie(Fe,Ne,Ht,"\xA0","~"),ie(Fe,Ne,Ht,"\xA0","\\space"),ie(Fe,Ne,Ht,"\xA0","\\nobreakspace"),ie(X,Ne,Ht,null,"\\nobreak"),ie(X,Ne,Ht,null,"\\allowbreak"),ie(X,Ne,dr,",",","),ie(X,Ne,dr,";",";"),ie(X,q,Rt,"\u22BC","\\barwedge",!0),ie(X,q,Rt,"\u22BB","\\veebar",!0),ie(X,Ne,Rt,"\u2299","\\odot",!0),ie(X,Ne,Rt,"\u2295","\\oplus",!0),ie(X,Ne,Rt,"\u2297","\\otimes",!0),ie(X,Ne,dt,"\u2202","\\partial",!0),ie(X,Ne,Rt,"\u2298","\\oslash",!0),ie(X,q,Rt,"\u229A","\\circledcirc",!0),ie(X,q,Rt,"\u22A1","\\boxdot",!0),ie(X,Ne,Rt,"\u25B3","\\bigtriangleup"),ie(X,Ne,Rt,"\u25BD","\\bigtriangledown"),ie(X,Ne,Rt,"\u2020","\\dagger"),ie(X,Ne,Rt,"\u22C4","\\diamond"),ie(X,Ne,Rt,"\u22C6","\\star"),ie(X,Ne,Rt,"\u25C3","\\triangleleft"),ie(X,Ne,Rt,"\u25B9","\\triangleright"),ie(X,Ne,ar,"{","\\{"),ie(Fe,Ne,dt,"{","\\{"),ie(Fe,Ne,dt,"{","\\textbraceleft"),ie(X,Ne,ut,"}","\\}"),ie(Fe,Ne,dt,"}","\\}"),ie(Fe,Ne,dt,"}","\\textbraceright"),ie(X,Ne,ar,"{","\\lbrace"),ie(X,Ne,ut,"}","\\rbrace"),ie(X,Ne,ar,"[","\\lbrack"),ie(Fe,Ne,dt,"[","\\lbrack"),ie(X,Ne,ut,"]","\\rbrack"),ie(Fe,Ne,dt,"]","\\rbrack"),ie(X,Ne,ar,"(","\\lparen"),ie(X,Ne,ut,")","\\rparen"),ie(Fe,Ne,dt,"<","\\textless"),ie(Fe,Ne,dt,">","\\textgreater"),ie(X,Ne,ar,"\u230A","\\lfloor",!0),ie(X,Ne,ut,"\u230B","\\rfloor",!0),ie(X,Ne,ar,"\u2308","\\lceil",!0),ie(X,Ne,ut,"\u2309","\\rceil",!0),ie(X,Ne,dt,"\\","\\backslash"),ie(X,Ne,dt,"\u2223","|"),ie(X,Ne,dt,"\u2223","\\vert"),ie(Fe,Ne,dt,"|","\\textbar"),ie(X,Ne,dt,"\u2225","\\|"),ie(X,Ne,dt,"\u2225","\\Vert"),ie(Fe,Ne,dt,"\u2225","\\textbardbl"),ie(Fe,Ne,dt,"~","\\textasciitilde"),ie(Fe,Ne,dt,"\\","\\textbackslash"),ie(Fe,Ne,dt,"^","\\textasciicircum"),ie(X,Ne,er,"\u2191","\\uparrow",!0),ie(X,Ne,er,"\u21D1","\\Uparrow",!0),ie(X,Ne,er,"\u2193","\\downarrow",!0),ie(X,Ne,er,"\u21D3","\\Downarrow",!0),ie(X,Ne,er,"\u2195","\\updownarrow",!0),ie(X,Ne,er,"\u21D5","\\Updownarrow",!0),ie(X,Ne,Zr,"\u2210","\\coprod"),ie(X,Ne,Zr,"\u22C1","\\bigvee"),ie(X,Ne,Zr,"\u22C0","\\bigwedge"),ie(X,Ne,Zr,"\u2A04","\\biguplus"),ie(X,Ne,Zr,"\u22C2","\\bigcap"),ie(X,Ne,Zr,"\u22C3","\\bigcup"),ie(X,Ne,Zr,"\u222B","\\int"),ie(X,Ne,Zr,"\u222B","\\intop"),ie(X,Ne,Zr,"\u222C","\\iint"),ie(X,Ne,Zr,"\u222D","\\iiint"),ie(X,Ne,Zr,"\u220F","\\prod"),ie(X,Ne,Zr,"\u2211","\\sum"),ie(X,Ne,Zr,"\u2A02","\\bigotimes"),ie(X,Ne,Zr,"\u2A01","\\bigoplus"),ie(X,Ne,Zr,"\u2A00","\\bigodot"),ie(X,Ne,Zr,"\u222E","\\oint"),ie(X,Ne,Zr,"\u222F","\\oiint"),ie(X,Ne,Zr,"\u2230","\\oiiint"),ie(X,Ne,Zr,"\u2A06","\\bigsqcup"),ie(X,Ne,Zr,"\u222B","\\smallint"),ie(Fe,Ne,Xt,"\u2026","\\textellipsis"),ie(X,Ne,Xt,"\u2026","\\mathellipsis"),ie(Fe,Ne,Xt,"\u2026","\\ldots",!0),ie(X,Ne,Xt,"\u2026","\\ldots",!0),ie(X,Ne,Xt,"\u22EF","\\@cdots",!0),ie(X,Ne,Xt,"\u22F1","\\ddots",!0),ie(X,Ne,dt,"\u22EE","\\varvdots"),ie(X,Ne,ht,"\u02CA","\\acute"),ie(X,Ne,ht,"\u02CB","\\grave"),ie(X,Ne,ht,"\xA8","\\ddot"),ie(X,Ne,ht,"~","\\tilde"),ie(X,Ne,ht,"\u02C9","\\bar"),ie(X,Ne,ht,"\u02D8","\\breve"),ie(X,Ne,ht,"\u02C7","\\check"),ie(X,Ne,ht,"^","\\hat"),ie(X,Ne,ht,"\u20D7","\\vec"),ie(X,Ne,ht,"\u02D9","\\dot"),ie(X,Ne,ht,"\u02DA","\\mathring"),ie(X,Ne,or,"\u0131","\\imath",!0),ie(X,Ne,or,"\u0237","\\jmath",!0),ie(Fe,Ne,dt,"\u0131","\\i",!0),ie(Fe,Ne,dt,"\u0237","\\j",!0),ie(Fe,Ne,dt,"\xDF","\\ss",!0),ie(Fe,Ne,dt,"\xE6","\\ae",!0),ie(Fe,Ne,dt,"\xE6","\\ae",!0),ie(Fe,Ne,dt,"\u0153","\\oe",!0),ie(Fe,Ne,dt,"\xF8","\\o",!0),ie(Fe,Ne,dt,"\xC6","\\AE",!0),ie(Fe,Ne,dt,"\u0152","\\OE",!0),ie(Fe,Ne,dt,"\xD8","\\O",!0),ie(Fe,Ne,ht,"\u02CA","\\'"),ie(Fe,Ne,ht,"\u02CB","\\`"),ie(Fe,Ne,ht,"\u02C6","\\^"),ie(Fe,Ne,ht,"\u02DC","\\~"),ie(Fe,Ne,ht,"\u02C9","\\="),ie(Fe,Ne,ht,"\u02D8","\\u"),ie(Fe,Ne,ht,"\u02D9","\\."),ie(Fe,Ne,ht,"\u02DA","\\r"),ie(Fe,Ne,ht,"\u02C7","\\v"),ie(Fe,Ne,ht,"\xA8",'\\"'),ie(Fe,Ne,ht,"\u02DD","\\H"),ie(Fe,Ne,ht,"\u25EF","\\textcircled");var Hr={"--":!0,"---":!0,"``":!0,"''":!0};ie(Fe,Ne,dt,"\u2013","--"),ie(Fe,Ne,dt,"\u2013","\\textendash"),ie(Fe,Ne,dt,"\u2014","---"),ie(Fe,Ne,dt,"\u2014","\\textemdash"),ie(Fe,Ne,dt,"\u2018","`"),ie(Fe,Ne,dt,"\u2018","\\textquoteleft"),ie(Fe,Ne,dt,"\u2019","'"),ie(Fe,Ne,dt,"\u2019","\\textquoteright"),ie(Fe,Ne,dt,"\u201C","``"),ie(Fe,Ne,dt,"\u201C","\\textquotedblleft"),ie(Fe,Ne,dt,"\u201D","''"),ie(Fe,Ne,dt,"\u201D","\\textquotedblright"),ie(X,Ne,dt,"\xB0","\\degree",!0),ie(Fe,Ne,dt,"\xB0","\\degree"),ie(Fe,Ne,dt,"\xB0","\\textdegree",!0),ie(X,Ne,or,"\xA3","\\pounds"),ie(X,Ne,or,"\xA3","\\mathsterling",!0),ie(Fe,Ne,or,"\xA3","\\pounds"),ie(Fe,Ne,or,"\xA3","\\textsterling",!0),ie(X,q,dt,"\u2720","\\maltese"),ie(Fe,q,dt,"\u2720","\\maltese"),ie(Fe,Ne,Ht,"\xA0","\\ "),ie(Fe,Ne,Ht,"\xA0"," "),ie(Fe,Ne,Ht,"\xA0","~");for(var dn='0123456789/@."',Nn=0;Nn<dn.length;Nn++){var Vn=dn.charAt(Nn);ie(X,Ne,dt,Vn,Vn)}for(var gi='0123456789!@*()-=+[]<>|";:?/.,',bn=0;bn<gi.length;bn++){var Mn=gi.charAt(bn);ie(Fe,Ne,dt,Mn,Mn)}for(var jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",St=0;St<jt.length;St++){var Ie=jt.charAt(St);ie(X,Ne,or,Ie,Ie),ie(Fe,Ne,dt,Ie,Ie)}ie(X,q,dt,"C","\u2102"),ie(Fe,q,dt,"C","\u2102"),ie(X,q,dt,"H","\u210D"),ie(Fe,q,dt,"H","\u210D"),ie(X,q,dt,"N","\u2115"),ie(Fe,q,dt,"N","\u2115"),ie(X,q,dt,"P","\u2119"),ie(Fe,q,dt,"P","\u2119"),ie(X,q,dt,"Q","\u211A"),ie(Fe,q,dt,"Q","\u211A"),ie(X,q,dt,"R","\u211D"),ie(Fe,q,dt,"R","\u211D"),ie(X,q,dt,"Z","\u2124"),ie(Fe,q,dt,"Z","\u2124"),ie(X,Ne,or,"h","\u210E"),ie(Fe,Ne,or,"h","\u210E");for(var _e="",Le=0;Le<jt.length;Le++){var Ze=jt.charAt(Le);_e=String.fromCharCode(55349,56320+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),_e=String.fromCharCode(55349,56372+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),_e=String.fromCharCode(55349,56424+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),_e=String.fromCharCode(55349,56580+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),_e=String.fromCharCode(55349,56736+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),_e=String.fromCharCode(55349,56788+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),_e=String.fromCharCode(55349,56840+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),_e=String.fromCharCode(55349,56944+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),Le<26&&(_e=String.fromCharCode(55349,56632+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e),_e=String.fromCharCode(55349,56476+Le),ie(X,Ne,or,Ze,_e),ie(Fe,Ne,dt,Ze,_e))}_e=String.fromCharCode(55349,56668),ie(X,Ne,or,"k",_e),ie(Fe,Ne,dt,"k",_e);for(var it=0;it<10;it++){var ft=it.toString();_e=String.fromCharCode(55349,57294+it),ie(X,Ne,or,ft,_e),ie(Fe,Ne,dt,ft,_e),_e=String.fromCharCode(55349,57314+it),ie(X,Ne,or,ft,_e),ie(Fe,Ne,dt,ft,_e),_e=String.fromCharCode(55349,57324+it),ie(X,Ne,or,ft,_e),ie(Fe,Ne,dt,ft,_e),_e=String.fromCharCode(55349,57334+it),ie(X,Ne,or,ft,_e),ie(Fe,Ne,dt,ft,_e)}for(var Nt="\xC7\xD0\xDE\xE7\xFE",Ar=0;Ar<Nt.length;Ar++){var Mr=Nt.charAt(Ar);ie(X,Ne,or,Mr,Mr),ie(Fe,Ne,dt,Mr,Mr)}ie(Fe,Ne,dt,"\xF0","\xF0"),ie(Fe,Ne,dt,"\u2013","\u2013"),ie(Fe,Ne,dt,"\u2014","\u2014"),ie(Fe,Ne,dt,"\u2018","\u2018"),ie(Fe,Ne,dt,"\u2019","\u2019"),ie(Fe,Ne,dt,"\u201C","\u201C"),ie(Fe,Ne,dt,"\u201D","\u201D");var un=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Mt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],at=function(ae,me){var be=ae.charCodeAt(0),Ke=ae.charCodeAt(1),At=(be-55296)*1024+(Ke-56320)+65536,Gt=me==="math"?0:1;if(119808<=At&&At<120484){var Dr=Math.floor((At-119808)/26);return[un[Dr][2],un[Dr][Gt]]}else if(120782<=At&&At<=120831){var Gr=Math.floor((At-120782)/10);return[Mt[Gr][2],Mt[Gr][Gt]]}else{if(At===120485||At===120486)return[un[0][2],un[0][Gt]];if(120486<At&&At<120782)return["",""];throw new c("Unsupported character: "+ae)}},lt=[[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]],rr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Bt=function(ae,me){return me.size<2?ae:lt[ae-1][me.size-1]},_t=function(){function vt(me){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=me.style,this.color=me.color,this.size=me.size||vt.BASESIZE,this.textSize=me.textSize||this.size,this.phantom=!!me.phantom,this.font=me.font||"",this.fontFamily=me.fontFamily||"",this.fontWeight=me.fontWeight||"",this.fontShape=me.fontShape||"",this.sizeMultiplier=rr[this.size-1],this.maxSize=me.maxSize,this.minRuleThickness=me.minRuleThickness,this._fontMetrics=void 0}var ae=vt.prototype;return ae.extend=function(be){var Ke={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var At in be)be.hasOwnProperty(At)&&(Ke[At]=be[At]);return new vt(Ke)},ae.havingStyle=function(be){return this.style===be?this:this.extend({style:be,size:Bt(this.textSize,be)})},ae.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ae.havingSize=function(be){return this.size===be&&this.textSize===be?this:this.extend({style:this.style.text(),size:be,textSize:be,sizeMultiplier:rr[be-1]})},ae.havingBaseStyle=function(be){be=be||this.style.text();var Ke=Bt(vt.BASESIZE,be);return this.size===Ke&&this.textSize===vt.BASESIZE&&this.style===be?this:this.extend({style:be,size:Ke})},ae.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})},ae.withColor=function(be){return this.extend({color:be})},ae.withPhantom=function(){return this.extend({phantom:!0})},ae.withFont=function(be){return this.extend({font:be})},ae.withTextFontFamily=function(be){return this.extend({fontFamily:be,font:""})},ae.withTextFontWeight=function(be){return this.extend({fontWeight:be,font:""})},ae.withTextFontShape=function(be){return this.extend({fontShape:be,font:""})},ae.sizingClasses=function(be){return be.size!==this.size?["sizing","reset-size"+be.size,"size"+this.size]:[]},ae.baseSizingClasses=function(){return this.size!==vt.BASESIZE?["sizing","reset-size"+this.size,"size"+vt.BASESIZE]:[]},ae.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ot(this.size)),this._fontMetrics},ae.getColor=function(){return this.phantom?"transparent":this.color},vt}();_t.BASESIZE=6;var Kt=_t,wt={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},Ut={ex:!0,em:!0,mu:!0},Sr=function(ae){return typeof ae!="string"&&(ae=ae.unit),ae in wt||ae in Ut||ae==="ex"},hr=function(ae,me){var be;if(ae.unit in wt)be=wt[ae.unit]/me.fontMetrics().ptPerEm/me.sizeMultiplier;else if(ae.unit==="mu")be=me.fontMetrics().cssEmPerMu;else{var Ke;if(me.style.isTight()?Ke=me.havingStyle(me.style.text()):Ke=me,ae.unit==="ex")be=Ke.fontMetrics().xHeight;else if(ae.unit==="em")be=Ke.fontMetrics().quad;else throw new c("Invalid unit: '"+ae.unit+"'");Ke!==me&&(be*=Ke.sizeMultiplier/me.sizeMultiplier)}return Math.min(ae.number*be,me.maxSize)},gr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Jr=function(ae,me,be){return Be[be][ae]&&Be[be][ae].replace&&(ae=Be[be][ae].replace),{value:ae,metrics:ze(ae,me,be)}},$r=function(ae,me,be,Ke,At){var Gt=Jr(ae,me,be),Dr=Gt.metrics;ae=Gt.value;var Gr;if(Dr){var fn=Dr.italic;(be==="text"||Ke&&Ke.font==="mathit")&&(fn=0),Gr=new Ce(ae,Dr.height,Dr.depth,fn,Dr.skew,Dr.width,At)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ae+"' in style '"+me+"' and mode '"+be+"'")),Gr=new Ce(ae,0,0,0,0,0,At);if(Ke){Gr.maxFontSize=Ke.sizeMultiplier,Ke.style.isTight()&&Gr.classes.push("mtight");var Kn=Ke.getColor();Kn&&(Gr.style.color=Kn)}return Gr},Pn=function(ae,me,be,Ke){return Ke===void 0&&(Ke=[]),be.font==="boldsymbol"&&Jr(ae,"Main-Bold",me).metrics?$r(ae,"Main-Bold",me,be,Ke.concat(["mathbf"])):ae==="\\"||Be[me][ae].font==="main"?$r(ae,"Main-Regular",me,be,Ke):$r(ae,"AMS-Regular",me,be,Ke.concat(["amsrm"]))},Dn=function(ae,me,be,Ke){return/[0-9]/.test(ae.charAt(0))||p.contains(gr,ae)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Zn=function(ae,me,be,Ke){return p.contains(gr,ae)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ae.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},li=function(ae,me,be,Ke){return Jr(ae,"Math-BoldItalic",me).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ai=function(ae,me,be){var Ke=ae.mode,At=ae.text,Gt=["mord"],Dr=Ke==="math"||Ke==="text"&&me.font,Gr=Dr?me.font:me.fontFamily;if(At.charCodeAt(0)===55349){var fn=at(At,Ke),Kn=fn[0],qn=fn[1];return $r(At,Kn,Ke,me,Gt.concat(qn))}else if(Gr){var Qn,Ei;if(Gr==="boldsymbol"||Gr==="mathnormal"){var Fi=Gr==="boldsymbol"?li(At,Ke,me,Gt):Zn(At,Ke,me,Gt);Qn=Fi.fontName,Ei=[Fi.fontClass]}else p.contains(gr,At)?(Qn="Main-Italic",Ei=["mathit"]):Dr?(Qn=Xr[Gr].fontName,Ei=[Gr]):(Qn=Ir(Gr,me.fontWeight,me.fontShape),Ei=[Gr,me.fontWeight,me.fontShape]);if(Jr(At,Qn,Ke).metrics)return $r(At,Qn,Ke,me,Gt.concat(Ei));if(Hr.hasOwnProperty(At)&&Qn.substr(0,10)==="Typewriter"){for(var va=[],Oa=0;Oa<At.length;Oa++)va.push($r(At[Oa],Qn,Ke,me,Gt.concat(Ei)));return qe(va)}}if(be==="mathord"){var fo=Dn(At,Ke,me,Gt);return $r(At,fo.fontName,Ke,me,Gt.concat([fo.fontClass]))}else if(be==="textord"){var wo=Be[Ke][At]&&Be[Ke][At].font;if(wo==="ams"){var lo=Ir("amsrm",me.fontWeight,me.fontShape);return $r(At,lo,Ke,me,Gt.concat("amsrm",me.fontWeight,me.fontShape))}else if(wo==="main"||!wo){var Yo=Ir("textrm",me.fontWeight,me.fontShape);return $r(At,Yo,Ke,me,Gt.concat(me.fontWeight,me.fontShape))}else{var Vo=Ir(wo,me.fontWeight,me.fontShape);return $r(At,Vo,Ke,me,Gt.concat(Vo,me.fontWeight,me.fontShape))}}else throw new Error("unexpected type: "+be+" in makeOrd")},Ii=function(ae,me){if(ee(ae.classes)!==ee(me.classes)||ae.skew!==me.skew||ae.maxFontSize!==me.maxFontSize)return!1;for(var be in ae.style)if(ae.style.hasOwnProperty(be)&&ae.style[be]!==me.style[be])return!1;for(var Ke in me.style)if(me.style.hasOwnProperty(Ke)&&ae.style[Ke]!==me.style[Ke])return!1;return!0},$e=function(ae){for(var me=0;me<ae.length-1;me++){var be=ae[me],Ke=ae[me+1];be instanceof Ce&&Ke instanceof Ce&&Ii(be,Ke)&&(be.text+=Ke.text,be.height=Math.max(be.height,Ke.height),be.depth=Math.max(be.depth,Ke.depth),be.italic=Ke.italic,ae.splice(me+1,1),me--)}return ae},Se=function(ae){for(var me=0,be=0,Ke=0,At=0;At<ae.children.length;At++){var Gt=ae.children[At];Gt.height>me&&(me=Gt.height),Gt.depth>be&&(be=Gt.depth),Gt.maxFontSize>Ke&&(Ke=Gt.maxFontSize)}ae.height=me,ae.depth=be,ae.maxFontSize=Ke},Re=function(ae,me,be,Ke){var At=new G(ae,me,be,Ke);return Se(At),At},je=function(ae,me,be,Ke){return new G(ae,me,be,Ke)},Ye=function(ae,me,be){var Ke=Re([ae],[],me);return Ke.height=Math.max(be||me.fontMetrics().defaultRuleThickness,me.minRuleThickness),Ke.style.borderBottomWidth=Ke.height+"em",Ke.maxFontSize=1,Ke},Ve=function(ae,me,be,Ke){var At=new J(ae,me,be,Ke);return Se(At),At},qe=function(ae){var me=new oe(ae);return Se(me),me},xt=function(ae,me){return ae instanceof oe?Re([],[ae],me):ae},ct=function(ae){if(ae.positionType==="individualShift"){for(var me=ae.children,be=[me[0]],Ke=-me[0].shift-me[0].elem.depth,At=Ke,Gt=1;Gt<me.length;Gt++){var Dr=-me[Gt].shift-At-me[Gt].elem.depth,Gr=Dr-(me[Gt-1].elem.height+me[Gt-1].elem.depth);At=At+Dr,be.push({type:"kern",size:Gr}),be.push(me[Gt])}return{children:be,depth:Ke}}var fn;if(ae.positionType==="top"){for(var Kn=ae.positionData,qn=0;qn<ae.children.length;qn++){var Qn=ae.children[qn];Kn-=Qn.type==="kern"?Qn.size:Qn.elem.height+Qn.elem.depth}fn=Kn}else if(ae.positionType==="bottom")fn=-ae.positionData;else{var Ei=ae.children[0];if(Ei.type!=="elem")throw new Error('First child must have type "elem".');if(ae.positionType==="shift")fn=-Ei.elem.depth-ae.positionData;else if(ae.positionType==="firstBaseline")fn=-Ei.elem.depth;else throw new Error("Invalid positionType "+ae.positionType+".")}return{children:ae.children,depth:fn}},Jt=function(ae,me){for(var be=ct(ae),Ke=be.children,At=be.depth,Gt=0,Dr=0;Dr<Ke.length;Dr++){var Gr=Ke[Dr];if(Gr.type==="elem"){var fn=Gr.elem;Gt=Math.max(Gt,fn.maxFontSize,fn.height)}}Gt+=2;var Kn=Re(["pstrut"],[]);Kn.style.height=Gt+"em";for(var qn=[],Qn=At,Ei=At,Fi=At,va=0;va<Ke.length;va++){var Oa=Ke[va];if(Oa.type==="kern")Fi+=Oa.size;else{var fo=Oa.elem,wo=Oa.wrapperClasses||[],lo=Oa.wrapperStyle||{},Yo=Re(wo,[Kn,fo],void 0,lo);Yo.style.top=-Gt-Fi-fo.depth+"em",Oa.marginLeft&&(Yo.style.marginLeft=Oa.marginLeft),Oa.marginRight&&(Yo.style.marginRight=Oa.marginRight),qn.push(Yo),Fi+=fo.height+fo.depth}Qn=Math.min(Qn,Fi),Ei=Math.max(Ei,Fi)}var Vo=Re(["vlist"],qn);Vo.style.height=Ei+"em";var No;if(Qn<0){var ao=Re([],[]),Ka=Re(["vlist"],[ao]);Ka.style.height=-Qn+"em";var is=Re(["vlist-s"],[new Ce("\u200B")]);No=[Re(["vlist-r"],[Vo,is]),Re(["vlist-r"],[Ka])]}else No=[Re(["vlist-r"],[Vo])];var Is=Re(["vlist-t"],No);return No.length===2&&Is.classes.push("vlist-t2"),Is.height=Ei,Is.depth=-Qn,Is},Rr=function(ae,me){var be=Re(["mspace"],[],me),Ke=hr(ae,me);return be.style.marginRight=Ke+"em",be},Ir=function(ae,me,be){var Ke="";switch(ae){case"amsrm":Ke="AMS";break;case"textrm":Ke="Main";break;case"textsf":Ke="SansSerif";break;case"texttt":Ke="Typewriter";break;default:Ke=ae}var At;return me==="textbf"&&be==="textit"?At="BoldItalic":me==="textbf"?At="Bold":me==="textit"?At="Italic":At="Regular",Ke+"-"+At},Xr={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"}},qt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},pn=function(ae,me){var be=qt[ae],Ke=be[0],At=be[1],Gt=be[2],Dr=new le(Ke),Gr=new Ee([Dr],{width:At+"em",height:Gt+"em",style:"width:"+At+"em",viewBox:"0 0 "+1e3*At+" "+1e3*Gt,preserveAspectRatio:"xMinYMin"}),fn=je(["overlay"],[Gr],me);return fn.height=Gt,fn.style.height=Gt+"em",fn.style.width=At+"em",fn},fr={fontMap:Xr,makeSymbol:$r,mathsym:Pn,makeSpan:Re,makeSvgSpan:je,makeLineSpan:Ye,makeAnchor:Ve,makeFragment:qe,wrapFragment:xt,makeVList:Jt,makeOrd:Ai,makeGlue:Rr,staticSvg:pn,svgData:qt,tryCombineChars:$e};function mn(vt,ae){var me=en(vt,ae);if(!me)throw new Error("Expected node of type "+ae+", but got "+(vt?"node of type "+vt.type:String(vt)));return me}function en(vt,ae){return vt&&vt.type===ae?vt:null}function kr(vt,ae){var me=Gn(vt,ae);if(!me)throw new Error('Expected node of type "atom" and family "'+ae+'", but got '+(vt?vt.type==="atom"?"atom of family "+vt.family:"node of type "+vt.type:String(vt)));return me}function Gn(vt,ae){return vt&&vt.type==="atom"&&vt.family===ae?vt:null}function di(vt){var ae=_i(vt);if(!ae)throw new Error("Expected node of symbol group type, but got "+(vt?"node of type "+vt.type:String(vt)));return ae}function _i(vt){return vt&&(vt.type==="atom"||Tt.hasOwnProperty(vt.type))?vt:null}var Br={number:3,unit:"mu"},sn={number:4,unit:"mu"},Sn={number:5,unit:"mu"},Pt={mord:{mop:Br,mbin:sn,mrel:Sn,minner:Br},mop:{mord:Br,mop:Br,mrel:Sn,minner:Br},mbin:{mord:sn,mop:sn,mopen:sn,minner:sn},mrel:{mord:Sn,mop:Sn,mopen:Sn,minner:Sn},mopen:{},mclose:{mop:Br,mbin:sn,mrel:Sn,minner:Br},mpunct:{mord:Br,mop:Br,mrel:Sn,mopen:Br,mclose:Br,mpunct:Br,minner:Br},minner:{mord:Br,mop:Br,mbin:sn,mrel:Sn,mopen:Br,mpunct:Br,minner:Br}},gt={mord:{mop:Br},mop:{mord:Br,mop:Br},mbin:{},mrel:{},mopen:{},mclose:{mop:Br},mpunct:{},minner:{mop:Br}},Et={},Lt={},kt={};function yt(vt){for(var ae=vt.type,me=vt.names,be=vt.props,Ke=vt.handler,At=vt.htmlBuilder,Gt=vt.mathmlBuilder,Dr={type:ae,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:Ke},Gr=0;Gr<me.length;++Gr)Et[me[Gr]]=Dr;ae&&(At&&(Lt[ae]=At),Gt&&(kt[ae]=Gt))}function Qt(vt){var ae=vt.type,me=vt.htmlBuilder,be=vt.mathmlBuilder;yt({type:ae,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:me,mathmlBuilder:be})}var tr=function(ae){var me=en(ae,"ordgroup");return me?me.body:[ae]},ir=fr.makeSpan,yr=["leftmost","mbin","mopen","mrel","mop","mpunct"],xn=["rightmost","mrel","mclose","mpunct"],vn={display:j.DISPLAY,text:j.TEXT,script:j.SCRIPT,scriptscript:j.SCRIPTSCRIPT},Wn={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Yr=function(ae,me,be,Ke){Ke===void 0&&(Ke=[null,null]);for(var At=[],Gt=0;Gt<ae.length;Gt++){var Dr=ti(ae[Gt],me);if(Dr instanceof oe){var Gr=Dr.children;At.push.apply(At,Gr)}else At.push(Dr)}if(!be)return At;var fn=me;if(ae.length===1){var Kn=en(ae[0],"sizing")||en(ae[0],"styling");Kn&&(Kn.type==="sizing"?fn=me.havingSize(Kn.size):Kn.type==="styling"&&(fn=me.havingStyle(vn[Kn.style])))}var qn=ir([Ke[0]||"leftmost"],[],me),Qn=ir([Ke[1]||"rightmost"],[],me);return xr(At,function(Ei,Fi){var va=Fi.classes[0],Oa=Ei.classes[0];va==="mbin"&&p.contains(xn,Oa)?Fi.classes[0]="mord":Oa==="mbin"&&p.contains(yr,va)&&(Ei.classes[0]="mord")},{node:qn},Qn),xr(At,function(Ei,Fi){var va=In(Fi),Oa=In(Ei),fo=va&&Oa?Ei.hasClass("mtight")?gt[va][Oa]:Pt[va][Oa]:null;if(fo)return fr.makeGlue(fo,fn)},{node:qn},Qn),At},xr=function vt(ae,me,be,Ke){Ke&&ae.push(Ke);for(var At=0;At<ae.length;At++){var Gt=ae[At],Dr=ln(Gt);if(Dr){vt(Dr.children,me,be);continue}if(Gt.classes[0]==="mspace")continue;var Gr=me(Gt,be.node);Gr&&(be.insertAfter?be.insertAfter(Gr):(ae.unshift(Gr),At++)),be.node=Gt,be.insertAfter=function(fn){return function(Kn){ae.splice(fn+1,0,Kn),At++}}(At)}Ke&&ae.pop()},ln=function(ae){return ae instanceof oe||ae instanceof J?ae:null},On=function vt(ae,me){var be=ln(ae);if(be){var Ke=be.children;if(Ke.length){if(me==="right")return vt(Ke[Ke.length-1],"right");if(me==="left")return vt(Ke[0],"left")}}return ae},In=function(ae,me){return ae?(me&&(ae=On(ae,me)),Wn[ae.classes[0]]||null):null},Un=function(ae,me){var be=["nulldelimiter"].concat(ae.baseSizingClasses());return ir(me.concat(be))},ti=function(ae,me,be){if(!ae)return ir();if(Lt[ae.type]){var Ke=Lt[ae.type](ae,me);if(be&&me.size!==be.size){Ke=ir(me.sizingClasses(be),[Ke],me);var At=me.sizeMultiplier/be.sizeMultiplier;Ke.height*=At,Ke.depth*=At}return Ke}else throw new c("Got group of unknown type: '"+ae.type+"'")};function ui(vt,ae){var me=ir(["base"],vt,ae),be=ir(["strut"]);return be.style.height=me.height+me.depth+"em",be.style.verticalAlign=-me.depth+"em",me.children.unshift(be),me}function si(vt,ae){var me=null;vt.length===1&&vt[0].type==="tag"&&(me=vt[0].tag,vt=vt[0].body);for(var be=Yr(vt,ae,!0),Ke=[],At=[],Gt=0;Gt<be.length;Gt++)if(At.push(be[Gt]),be[Gt].hasClass("mbin")||be[Gt].hasClass("mrel")||be[Gt].hasClass("allowbreak")){for(var Dr=!1;Gt<be.length-1&&be[Gt+1].hasClass("mspace")&&!be[Gt+1].hasClass("newline");)Gt++,At.push(be[Gt]),be[Gt].hasClass("nobreak")&&(Dr=!0);Dr||(Ke.push(ui(At,ae)),At=[])}else be[Gt].hasClass("newline")&&(At.pop(),At.length>0&&(Ke.push(ui(At,ae)),At=[]),Ke.push(be[Gt]));At.length>0&&Ke.push(ui(At,ae));var Gr;me&&(Gr=ui(Yr(me,ae,!0)),Gr.classes=["tag"],Ke.push(Gr));var fn=ir(["katex-html"],Ke);if(fn.setAttribute("aria-hidden","true"),Gr){var Kn=Gr.children[0];Kn.style.height=fn.height+fn.depth+"em",Kn.style.verticalAlign=-fn.depth+"em"}return fn}function Pi(vt){return new oe(vt)}var zi=function(){function vt(me,be){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=me,this.attributes={},this.children=be||[]}var ae=vt.prototype;return ae.setAttribute=function(be,Ke){this.attributes[be]=Ke},ae.getAttribute=function(be){return this.attributes[be]},ae.toNode=function(){var be=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Ke in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ke)&&be.setAttribute(Ke,this.attributes[Ke]);for(var At=0;At<this.children.length;At++)be.appendChild(this.children[At].toNode());return be},ae.toMarkup=function(){var be="<"+this.type;for(var Ke in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ke)&&(be+=" "+Ke+'="',be+=p.escape(this.attributes[Ke]),be+='"');be+=">";for(var At=0;At<this.children.length;At++)be+=this.children[At].toMarkup();return be+="</"+this.type+">",be},ae.toText=function(){return this.children.map(function(be){return be.toText()}).join("")},vt}(),Ri=function(){function vt(me){this.text=void 0,this.text=me}var ae=vt.prototype;return ae.toNode=function(){return document.createTextNode(this.text)},ae.toMarkup=function(){return p.escape(this.toText())},ae.toText=function(){return this.text},vt}(),Yi=function(){function vt(me){this.width=void 0,this.character=void 0,this.width=me,me>=.05555&&me<=.05556?this.character="\u200A":me>=.1666&&me<=.1667?this.character="\u2009":me>=.2222&&me<=.2223?this.character="\u2005":me>=.2777&&me<=.2778?this.character="\u2005\u200A":me>=-.05556&&me<=-.05555?this.character="\u200A\u2063":me>=-.1667&&me<=-.1666?this.character="\u2009\u2063":me>=-.2223&&me<=-.2222?this.character="\u205F\u2063":me>=-.2778&&me<=-.2777?this.character="\u2005\u2063":this.character=null}var ae=vt.prototype;return ae.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},ae.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ae.toText=function(){return this.character?this.character:" "},vt}(),$n={MathNode:zi,TextNode:Ri,SpaceNode:Yi,newDocumentFragment:Pi},gn=function(ae,me,be){return Be[me][ae]&&Be[me][ae].replace&&ae.charCodeAt(0)!==55349&&!(Hr.hasOwnProperty(ae)&&be&&(be.fontFamily&&be.fontFamily.substr(4,2)==="tt"||be.font&&be.font.substr(4,2)==="tt"))&&(ae=Be[me][ae].replace),new $n.TextNode(ae)},mi=function(ae){return ae.length===1?ae[0]:new $n.MathNode("mrow",ae)},Hi=function(ae,me){if(me.fontFamily==="texttt")return"monospace";if(me.fontFamily==="textsf")return me.fontShape==="textit"&&me.fontWeight==="textbf"?"sans-serif-bold-italic":me.fontShape==="textit"?"sans-serif-italic":me.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(me.fontShape==="textit"&&me.fontWeight==="textbf")return"bold-italic";if(me.fontShape==="textit")return"italic";if(me.fontWeight==="textbf")return"bold";var be=me.font;if(!be||be==="mathnormal")return null;var Ke=ae.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 At=ae.text;if(p.contains(["\\imath","\\jmath"],At))return null;Be[Ke][At]&&Be[Ke][At].replace&&(At=Be[Ke][At].replace);var Gt=fr.fontMap[be].fontName;return ze(At,Gt,Ke)?fr.fontMap[be].variant:null},Li=function(ae,me,be){if(ae.length===1){var Ke=wr(ae[0],me);return be&&Ke instanceof zi&&Ke.type==="mo"&&(Ke.setAttribute("lspace","0em"),Ke.setAttribute("rspace","0em")),[Ke]}for(var At=[],Gt,Dr=0;Dr<ae.length;Dr++){var Gr=wr(ae[Dr],me);if(Gr instanceof zi&&Gt instanceof zi){if(Gr.type==="mtext"&&Gt.type==="mtext"&&Gr.getAttribute("mathvariant")===Gt.getAttribute("mathvariant")){var fn;(fn=Gt.children).push.apply(fn,Gr.children);continue}else if(Gr.type==="mn"&&Gt.type==="mn"){var Kn;(Kn=Gt.children).push.apply(Kn,Gr.children);continue}else if(Gr.type==="mi"&&Gr.children.length===1&&Gt.type==="mn"){var qn=Gr.children[0];if(qn instanceof Ri&&qn.text==="."){var Qn;(Qn=Gt.children).push.apply(Qn,Gr.children);continue}}else if(Gt.type==="mi"&&Gt.children.length===1){var Ei=Gt.children[0];if(Ei instanceof Ri&&Ei.text==="\u0338"&&(Gr.type==="mo"||Gr.type==="mi"||Gr.type==="mn")){var Fi=Gr.children[0];Fi instanceof Ri&&Fi.text.length>0&&(Fi.text=Fi.text.slice(0,1)+"\u0338"+Fi.text.slice(1),At.pop())}}}At.push(Gr),Gt=Gr}return At},Bi=function(ae,me,be){return mi(Li(ae,me,be))},wr=function(ae,me){if(!ae)return new $n.MathNode("mrow");if(kt[ae.type]){var be=kt[ae.type](ae,me);return be}else throw new c("Got group of unknown type: '"+ae.type+"'")};function lr(vt,ae,me,be){var Ke=Li(vt,me),At;Ke.length===1&&Ke[0]instanceof zi&&p.contains(["mrow","mtable"],Ke[0].type)?At=Ke[0]:At=new $n.MathNode("mrow",Ke);var Gt=new $n.MathNode("annotation",[new $n.TextNode(ae)]);Gt.setAttribute("encoding","application/x-tex");var Dr=new $n.MathNode("semantics",[At,Gt]),Gr=new $n.MathNode("math",[Dr]);Gr.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var fn=be?"katex":"katex-mathml";return fr.makeSpan([fn],[Gr])}var on=function(ae){return new Kt({style:ae.displayMode?j.DISPLAY:j.TEXT,maxSize:ae.maxSize,minRuleThickness:ae.minRuleThickness})},Zt=function(ae,me){if(me.displayMode){var be=["katex-display"];me.leqno&&be.push("leqno"),me.fleqn&&be.push("fleqn"),ae=fr.makeSpan(be,[ae])}return ae},br=function(ae,me,be){var Ke=on(be),At;if(be.output==="mathml")return lr(ae,me,Ke,!0);if(be.output==="html"){var Gt=si(ae,Ke);At=fr.makeSpan(["katex"],[Gt])}else{var Dr=lr(ae,me,Ke,!1),Gr=si(ae,Ke);At=fr.makeSpan(["katex"],[Dr,Gr])}return Zt(At,be)},Or=function(ae,me,be){var Ke=on(be),At=si(ae,Ke),Gt=fr.makeSpan(["katex"],[At]);return Zt(Gt,be)},Wr=br,An={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"},bt=function(ae){var me=new $n.MathNode("mo",[new $n.TextNode(An[ae.substr(1)])]);return me.setAttribute("stretchy","true"),me},mr={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},vr=function(ae){return ae.type==="ordgroup"?ae.body.length:1},Fr=function(ae,me){function be(){var Gr=4e5,fn=ae.label.substr(1);if(p.contains(["widehat","widecheck","widetilde","utilde"],fn)){var Kn=ae,qn=vr(Kn.base),Qn,Ei,Fi;if(qn>5)fn==="widehat"||fn==="widecheck"?(Qn=420,Gr=2364,Fi=.42,Ei=fn+"4"):(Qn=312,Gr=2340,Fi=.34,Ei="tilde4");else{var va=[1,1,2,2,3,3][qn];fn==="widehat"||fn==="widecheck"?(Gr=[0,1062,2364,2364,2364][va],Qn=[0,239,300,360,420][va],Fi=[0,.24,.3,.3,.36,.42][va],Ei=fn+va):(Gr=[0,600,1033,2339,2340][va],Qn=[0,260,286,306,312][va],Fi=[0,.26,.286,.3,.306,.34][va],Ei="tilde"+va)}var Oa=new le(Ei),fo=new Ee([Oa],{width:"100%",height:Fi+"em",viewBox:"0 0 "+Gr+" "+Qn,preserveAspectRatio:"none"});return{span:fr.makeSvgSpan([],[fo],me),minWidth:0,height:Fi}}else{var wo=[],lo=mr[fn],Yo=lo[0],Vo=lo[1],No=lo[2],ao=No/1e3,Ka=Yo.length,is,Is;if(Ka===1){var Go=lo[3];is=["hide-tail"],Is=[Go]}else if(Ka===2)is=["halfarrow-left","halfarrow-right"],Is=["xMinYMin","xMaxYMin"];else if(Ka===3)is=["brace-left","brace-center","brace-right"],Is=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Ka+" children.");for(var la=0;la<Ka;la++){var Vs=new le(Yo[la]),Hs=new Ee([Vs],{width:"400em",height:ao+"em",viewBox:"0 0 "+Gr+" "+No,preserveAspectRatio:Is[la]+" slice"}),fs=fr.makeSvgSpan([is[la]],[Hs],me);if(Ka===1)return{span:fs,minWidth:Vo,height:ao};fs.style.height=ao+"em",wo.push(fs)}return{span:fr.makeSpan(["stretchy"],wo,me),minWidth:Vo,height:ao}}}var Ke=be(),At=Ke.span,Gt=Ke.minWidth,Dr=Ke.height;return At.height=Dr,At.style.height=Dr+"em",Gt>0&&(At.style.minWidth=Gt+"em"),At},nn=function(ae,me,be,Ke){var At,Gt=ae.height+ae.depth+2*be;if(/fbox|color/.test(me)){if(At=fr.makeSpan(["stretchy",me],[],Ke),me==="fbox"){var Dr=Ke.color&&Ke.getColor();Dr&&(At.style.borderColor=Dr)}}else{var Gr=[];/^[bx]cancel$/.test(me)&&Gr.push(new fe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(me)&&Gr.push(new fe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var fn=new Ee(Gr,{width:"100%",height:Gt+"em"});At=fr.makeSvgSpan([],[fn],Ke)}return At.height=Gt,At.style.height=Gt+"em",At},cn={encloseSpan:nn,mathMLnode:bt,svgSpan:Fr},tn=function(ae,me){var be,Ke,At=en(ae,"supsub"),Gt;At?(Ke=mn(At.base,"accent"),be=Ke.base,At.base=be,Gt=Qe(ti(At,me)),At.base=Ke):(Ke=mn(ae,"accent"),be=Ke.base);var Dr=ti(be,me.havingCrampedStyle()),Gr=Ke.isShifty&&p.isCharacterBox(be),fn=0;if(Gr){var Kn=p.getBaseElem(be),qn=ti(Kn,me.havingCrampedStyle());fn=xe(qn).skew}var Qn=Math.min(Dr.height,me.fontMetrics().xHeight),Ei;if(Ke.isStretchy)Ei=cn.svgSpan(Ke,me),Ei=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Dr},{type:"elem",elem:Ei,wrapperClasses:["svg-align"],wrapperStyle:fn>0?{width:"calc(100% - "+2*fn+"em)",marginLeft:2*fn+"em"}:void 0}]},me);else{var Fi,va;Ke.label==="\\vec"?(Fi=fr.staticSvg("vec",me),va=fr.svgData.vec[1]):(Fi=fr.makeOrd({mode:Ke.mode,text:Ke.label},me,"textord"),Fi=xe(Fi),Fi.italic=0,va=Fi.width),Ei=fr.makeSpan(["accent-body"],[Fi]);var Oa=Ke.label==="\\textcircled";Oa&&(Ei.classes.push("accent-full"),Qn=Dr.height);var fo=fn;Oa||(fo-=va/2),Ei.style.left=fo+"em",Ke.label==="\\textcircled"&&(Ei.style.top=".2em"),Ei=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Dr},{type:"kern",size:-Qn},{type:"elem",elem:Ei}]},me)}var wo=fr.makeSpan(["mord","accent"],[Ei],me);return Gt?(Gt.children[0]=wo,Gt.height=Math.max(wo.height,Gt.height),Gt.classes[0]="mord",Gt):wo},Ln=function(ae,me){var be=ae.isStretchy?cn.mathMLnode(ae.label):new $n.MathNode("mo",[gn(ae.label,ae.mode)]),Ke=new $n.MathNode("mover",[wr(ae.base,me),be]);return Ke.setAttribute("accent","true"),Ke},Tn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(vt){return"\\"+vt}).join("|"));yt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(ae,me){var be=me[0],Ke=!Tn.test(ae.funcName),At=!Ke||ae.funcName==="\\widehat"||ae.funcName==="\\widetilde"||ae.funcName==="\\widecheck";return{type:"accent",mode:ae.parser.mode,label:ae.funcName,isStretchy:Ke,isShifty:At,base:be}},htmlBuilder:tn,mathmlBuilder:Ln}),yt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ae,me){var be=me[0];return{type:"accent",mode:ae.parser.mode,label:ae.funcName,isStretchy:!1,isShifty:!0,base:be}},htmlBuilder:tn,mathmlBuilder:Ln}),yt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0];return{type:"accentUnder",mode:be.mode,label:Ke,base:At}},htmlBuilder:function(ae,me){var be=ti(ae.base,me),Ke=cn.svgSpan(ae,me),At=ae.label==="\\utilde"?.12:0,Gt=fr.makeVList({positionType:"bottom",positionData:Ke.height+At,children:[{type:"elem",elem:Ke,wrapperClasses:["svg-align"]},{type:"kern",size:At},{type:"elem",elem:be}]},me);return fr.makeSpan(["mord","accentunder"],[Gt],me)},mathmlBuilder:function(ae,me){var be=cn.mathMLnode(ae.label),Ke=new $n.MathNode("munder",[wr(ae.base,me),be]);return Ke.setAttribute("accentunder","true"),Ke}});var Xn=function(ae){var me=new $n.MathNode("mpadded",ae?[ae]:[]);return me.setAttribute("width","+0.6em"),me.setAttribute("lspace","0.3em"),me};yt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(ae,me,be){var Ke=ae.parser,At=ae.funcName;return{type:"xArrow",mode:Ke.mode,label:At,body:me[0],below:be[0]}},htmlBuilder:function(ae,me){var be=me.style,Ke=me.havingStyle(be.sup()),At=fr.wrapFragment(ti(ae.body,Ke,me),me);At.classes.push("x-arrow-pad");var Gt;ae.below&&(Ke=me.havingStyle(be.sub()),Gt=fr.wrapFragment(ti(ae.below,Ke,me),me),Gt.classes.push("x-arrow-pad"));var Dr=cn.svgSpan(ae,me),Gr=-me.fontMetrics().axisHeight+.5*Dr.height,fn=-me.fontMetrics().axisHeight-.5*Dr.height-.111;(At.depth>.25||ae.label==="\\xleftequilibrium")&&(fn-=At.depth);var Kn;if(Gt){var qn=-me.fontMetrics().axisHeight+Gt.height+.5*Dr.height+.111;Kn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:At,shift:fn},{type:"elem",elem:Dr,shift:Gr},{type:"elem",elem:Gt,shift:qn}]},me)}else Kn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:At,shift:fn},{type:"elem",elem:Dr,shift:Gr}]},me);return Kn.children[0].children[0].children[1].classes.push("svg-align"),fr.makeSpan(["mrel","x-arrow"],[Kn],me)},mathmlBuilder:function(ae,me){var be=cn.mathMLnode(ae.label),Ke;if(ae.body){var At=Xn(wr(ae.body,me));if(ae.below){var Gt=Xn(wr(ae.below,me));Ke=new $n.MathNode("munderover",[be,Gt,At])}else Ke=new $n.MathNode("mover",[be,At])}else if(ae.below){var Dr=Xn(wr(ae.below,me));Ke=new $n.MathNode("munder",[be,Dr])}else Ke=Xn(),Ke=new $n.MathNode("mover",[be,Ke]);return Ke}}),yt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ae,me){for(var be=ae.parser,Ke=mn(me[0],"ordgroup"),At=Ke.body,Gt="",Dr=0;Dr<At.length;Dr++){var Gr=mn(At[Dr],"textord");Gt+=Gr.text}var fn=parseInt(Gt);if(isNaN(fn))throw new c("\\@char has non-numeric argument "+Gt);return{type:"textord",mode:be.mode,text:String.fromCharCode(fn)}}});var ci=function(ae,me){var be=Yr(ae.body,me.withColor(ae.color),!1);return fr.makeFragment(be)},Jn=function(ae,me){var be=Li(ae.body,me.withColor(ae.color)),Ke=new $n.MathNode("mstyle",be);return Ke.setAttribute("mathcolor",ae.color),Ke};yt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ae,me){var be=ae.parser,Ke=mn(me[0],"color-token").color,At=me[1];return{type:"color",mode:be.mode,color:Ke,body:tr(At)}},htmlBuilder:ci,mathmlBuilder:Jn}),yt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ae,me){var be=ae.parser,Ke=ae.breakOnTokenText,At=mn(me[0],"color-token").color;be.gullet.macros.set("\\current@color",At);var Gt=be.parseExpression(!0,Ke);return{type:"color",mode:be.mode,color:At,body:Gt}},htmlBuilder:ci,mathmlBuilder:Jn}),yt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ae,me,be){var Ke=ae.parser,At=ae.funcName,Gt=be[0],Dr=At==="\\cr",Gr=!1;return Dr||(Ke.settings.displayMode&&Ke.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Gr=!1:Gr=!0),{type:"cr",mode:Ke.mode,newLine:Gr,newRow:Dr,size:Gt&&mn(Gt,"size").value}},htmlBuilder:function(ae,me){if(ae.newRow)throw new c("\\cr valid only within a tabular/array environment");var be=fr.makeSpan(["mspace"],[],me);return ae.newLine&&(be.classes.push("newline"),ae.size&&(be.style.marginTop=hr(ae.size,me)+"em")),be},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mspace");return ae.newLine&&(be.setAttribute("linebreak","newline"),ae.size&&be.setAttribute("height",hr(ae.size,me)+"em")),be}});var pi=function(ae,me,be){var Ke=Be.math[ae]&&Be.math[ae].replace,At=ze(Ke||ae,me,be);if(!At)throw new Error("Unsupported symbol "+ae+" and font size "+me+".");return At},Si=function(ae,me,be,Ke){var At=be.havingBaseStyle(me),Gt=fr.makeSpan(Ke.concat(At.sizingClasses(be)),[ae],be),Dr=At.sizeMultiplier/be.sizeMultiplier;return Gt.height*=Dr,Gt.depth*=Dr,Gt.maxFontSize=At.sizeMultiplier,Gt},Ni=function(ae,me,be){var Ke=me.havingBaseStyle(be),At=(1-me.sizeMultiplier/Ke.sizeMultiplier)*me.fontMetrics().axisHeight;ae.classes.push("delimcenter"),ae.style.top=At+"em",ae.height-=At,ae.depth+=At},xi=function(ae,me,be,Ke,At,Gt){var Dr=fr.makeSymbol(ae,"Main-Regular",At,Ke),Gr=Si(Dr,me,Ke,Gt);return be&&Ni(Gr,Ke,me),Gr},yi=function(ae,me,be,Ke){return fr.makeSymbol(ae,"Size"+me+"-Regular",be,Ke)},vi=function(ae,me,be,Ke,At,Gt){var Dr=yi(ae,me,At,Ke),Gr=Si(fr.makeSpan(["delimsizing","size"+me],[Dr],Ke),j.TEXT,Ke,Gt);return be&&Ni(Gr,Ke,j.TEXT),Gr},Ti=function(ae,me,be){var Ke;me==="Size1-Regular"?Ke="delim-size1":Ke="delim-size4";var At=fr.makeSpan(["delimsizinginner",Ke],[fr.makeSpan([],[fr.makeSymbol(ae,me,be)])]);return{type:"elem",elem:At}},Ui={type:"kern",size:-.005},$i=function(ae,me,be,Ke,At,Gt){var Dr,Gr,fn,Kn;Dr=fn=Kn=ae,Gr=null;var qn="Size1-Regular";ae==="\\uparrow"?fn=Kn="\u23D0":ae==="\\Uparrow"?fn=Kn="\u2016":ae==="\\downarrow"?Dr=fn="\u23D0":ae==="\\Downarrow"?Dr=fn="\u2016":ae==="\\updownarrow"?(Dr="\\uparrow",fn="\u23D0",Kn="\\downarrow"):ae==="\\Updownarrow"?(Dr="\\Uparrow",fn="\u2016",Kn="\\Downarrow"):ae==="["||ae==="\\lbrack"?(Dr="\u23A1",fn="\u23A2",Kn="\u23A3",qn="Size4-Regular"):ae==="]"||ae==="\\rbrack"?(Dr="\u23A4",fn="\u23A5",Kn="\u23A6",qn="Size4-Regular"):ae==="\\lfloor"||ae==="\u230A"?(fn=Dr="\u23A2",Kn="\u23A3",qn="Size4-Regular"):ae==="\\lceil"||ae==="\u2308"?(Dr="\u23A1",fn=Kn="\u23A2",qn="Size4-Regular"):ae==="\\rfloor"||ae==="\u230B"?(fn=Dr="\u23A5",Kn="\u23A6",qn="Size4-Regular"):ae==="\\rceil"||ae==="\u2309"?(Dr="\u23A4",fn=Kn="\u23A5",qn="Size4-Regular"):ae==="("||ae==="\\lparen"?(Dr="\u239B",fn="\u239C",Kn="\u239D",qn="Size4-Regular"):ae===")"||ae==="\\rparen"?(Dr="\u239E",fn="\u239F",Kn="\u23A0",qn="Size4-Regular"):ae==="\\{"||ae==="\\lbrace"?(Dr="\u23A7",Gr="\u23A8",Kn="\u23A9",fn="\u23AA",qn="Size4-Regular"):ae==="\\}"||ae==="\\rbrace"?(Dr="\u23AB",Gr="\u23AC",Kn="\u23AD",fn="\u23AA",qn="Size4-Regular"):ae==="\\lgroup"||ae==="\u27EE"?(Dr="\u23A7",Kn="\u23A9",fn="\u23AA",qn="Size4-Regular"):ae==="\\rgroup"||ae==="\u27EF"?(Dr="\u23AB",Kn="\u23AD",fn="\u23AA",qn="Size4-Regular"):ae==="\\lmoustache"||ae==="\u23B0"?(Dr="\u23A7",Kn="\u23AD",fn="\u23AA",qn="Size4-Regular"):(ae==="\\rmoustache"||ae==="\u23B1")&&(Dr="\u23AB",Kn="\u23A9",fn="\u23AA",qn="Size4-Regular");var Qn=pi(Dr,qn,At),Ei=Qn.height+Qn.depth,Fi=pi(fn,qn,At),va=Fi.height+Fi.depth,Oa=pi(Kn,qn,At),fo=Oa.height+Oa.depth,wo=0,lo=1;if(Gr!==null){var Yo=pi(Gr,qn,At);wo=Yo.height+Yo.depth,lo=2}var Vo=Ei+fo+wo,No=Math.max(0,Math.ceil((me-Vo)/(lo*va))),ao=Vo+No*lo*va,Ka=Ke.fontMetrics().axisHeight;be&&(Ka*=Ke.sizeMultiplier);var is=ao/2-Ka,Is=(No+1)*.005-va,Go=[];if(Go.push(Ti(Kn,qn,At)),Gr===null)for(var la=0;la<No;la++)Go.push(Ui),Go.push(Ti(fn,qn,At));else{for(var Vs=0;Vs<No;Vs++)Go.push(Ui),Go.push(Ti(fn,qn,At));Go.push({type:"kern",size:Is}),Go.push(Ti(fn,qn,At)),Go.push(Ui),Go.push(Ti(Gr,qn,At));for(var Hs=0;Hs<No;Hs++)Go.push(Ui),Go.push(Ti(fn,qn,At))}Go.push({type:"kern",size:Is}),Go.push(Ti(fn,qn,At)),Go.push(Ui),Go.push(Ti(Dr,qn,At));var fs=Ke.havingBaseStyle(j.TEXT),as=fr.makeVList({positionType:"bottom",positionData:is,children:Go},fs);return Si(fr.makeSpan(["delimsizing","mult"],[as],fs),j.TEXT,Ke,Gt)},Di=80,ua=.08,aa=function(ae,me,be,Ke,At){var Gt=pe(ae,Ke,be),Dr=new le(ae,Gt),Gr=new Ee([Dr],{width:"400em",height:me+"em",viewBox:"0 0 400000 "+be,preserveAspectRatio:"xMinYMin slice"});return fr.makeSvgSpan(["hide-tail"],[Gr],At)},Gi=function(ae,me){var be=me.havingBaseSizing(),Ke=Ao("\\surd",ae*be.sizeMultiplier,Da,be),At=be.sizeMultiplier,Gt=Math.max(0,me.minRuleThickness-me.fontMetrics().sqrtRuleThickness),Dr,Gr=0,fn=0,Kn=0,qn;return Ke.type==="small"?(Kn=1e3+1e3*Gt+Di,ae<1?At=1:ae<1.4&&(At=.7),Gr=(1+Gt+ua)/At,fn=(1+Gt)/At,Dr=aa("sqrtMain",Gr,Kn,Gt,me),Dr.style.minWidth="0.853em",qn=.833/At):Ke.type==="large"?(Kn=(1e3+Di)*ga[Ke.size],fn=(ga[Ke.size]+Gt)/At,Gr=(ga[Ke.size]+Gt+ua)/At,Dr=aa("sqrtSize"+Ke.size,Gr,Kn,Gt,me),Dr.style.minWidth="1.02em",qn=1/At):(Gr=ae+Gt+ua,fn=ae+Gt,Kn=Math.floor(1e3*ae+Gt)+Di,Dr=aa("sqrtTall",Gr,Kn,Gt,me),Dr.style.minWidth="0.742em",qn=1.056),Dr.height=fn,Dr.style.height=Gr+"em",{span:Dr,advanceWidth:qn,ruleWidth:(me.fontMetrics().sqrtRuleThickness+Gt)*At}},Vi=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],ta=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Xi=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ga=[0,1.2,1.8,2.4,3],ra=function(ae,me,be,Ke,At){if(ae==="<"||ae==="\\lt"||ae==="\u27E8"?ae="\\langle":(ae===">"||ae==="\\gt"||ae==="\u27E9")&&(ae="\\rangle"),p.contains(Vi,ae)||p.contains(Xi,ae))return vi(ae,me,!1,be,Ke,At);if(p.contains(ta,ae))return $i(ae,ga[me],!1,be,Ke,At);throw new c("Illegal delimiter: '"+ae+"'")},pa=[{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}],_a=[{type:"small",style:j.SCRIPTSCRIPT},{type:"small",style:j.SCRIPT},{type:"small",style:j.TEXT},{type:"stack"}],Da=[{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"}],Ra=function(ae){if(ae.type==="small")return"Main-Regular";if(ae.type==="large")return"Size"+ae.size+"-Regular";if(ae.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ae.type+"' here.")},Ao=function(ae,me,be,Ke){for(var At=Math.min(2,3-Ke.style.size),Gt=At;Gt<be.length&&!(be[Gt].type==="stack");Gt++){var Dr=pi(ae,Ra(be[Gt]),"math"),Gr=Dr.height+Dr.depth;if(be[Gt].type==="small"){var fn=Ke.havingBaseStyle(be[Gt].style);Gr*=fn.sizeMultiplier}if(Gr>me)return be[Gt]}return be[be.length-1]},ja=function(ae,me,be,Ke,At,Gt){ae==="<"||ae==="\\lt"||ae==="\u27E8"?ae="\\langle":(ae===">"||ae==="\\gt"||ae==="\u27E9")&&(ae="\\rangle");var Dr;p.contains(Xi,ae)?Dr=pa:p.contains(Vi,ae)?Dr=Da:Dr=_a;var Gr=Ao(ae,me,Dr,Ke);return Gr.type==="small"?xi(ae,Gr.style,be,Ke,At,Gt):Gr.type==="large"?vi(ae,Gr.size,be,Ke,At,Gt):$i(ae,me,be,Ke,At,Gt)},Ya=function(ae,me,be,Ke,At,Gt){var Dr=Ke.fontMetrics().axisHeight*Ke.sizeMultiplier,Gr=901,fn=5/Ke.fontMetrics().ptPerEm,Kn=Math.max(me-Dr,be+Dr),qn=Math.max(Kn/500*Gr,2*Kn-fn);return ja(ae,qn,!0,Ke,At,Gt)},Ia={sqrtImage:Gi,sizedDelim:ra,customSizedDelim:ja,leftRightDelim:Ya},Va={"\\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}},co=["(","\\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 Ca(vt,ae){var me=_i(vt);if(me&&p.contains(co,me.text))return me;throw new c("Invalid delimiter: '"+(me?me.text:JSON.stringify(vt))+"' after '"+ae.funcName+"'",vt)}yt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ae,me){var be=Ca(me[0],ae);return{type:"delimsizing",mode:ae.parser.mode,size:Va[ae.funcName].size,mclass:Va[ae.funcName].mclass,delim:be.text}},htmlBuilder:function(ae,me){return ae.delim==="."?fr.makeSpan([ae.mclass]):Ia.sizedDelim(ae.delim,ae.size,me,ae.mode,[ae.mclass])},mathmlBuilder:function(ae){var me=[];ae.delim!=="."&&me.push(gn(ae.delim,ae.mode));var be=new $n.MathNode("mo",me);return ae.mclass==="mopen"||ae.mclass==="mclose"?be.setAttribute("fence","true"):be.setAttribute("fence","false"),be}});function yo(vt){if(!vt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}yt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ae,me){var be=ae.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:ae.parser.mode,delim:Ca(me[0],ae).text,color:be}}}),yt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ae,me){var be=Ca(me[0],ae),Ke=ae.parser;++Ke.leftrightDepth;var At=Ke.parseExpression(!1);--Ke.leftrightDepth,Ke.expect("\\right",!1);var Gt=mn(Ke.parseFunction(),"leftright-right");return{type:"leftright",mode:Ke.mode,body:At,left:be.text,right:Gt.delim,rightColor:Gt.color}},htmlBuilder:function(ae,me){yo(ae);for(var be=Yr(ae.body,me,!0,["mopen","mclose"]),Ke=0,At=0,Gt=!1,Dr=0;Dr<be.length;Dr++)be[Dr].isMiddle?Gt=!0:(Ke=Math.max(be[Dr].height,Ke),At=Math.max(be[Dr].depth,At));Ke*=me.sizeMultiplier,At*=me.sizeMultiplier;var Gr;if(ae.left==="."?Gr=Un(me,["mopen"]):Gr=Ia.leftRightDelim(ae.left,Ke,At,me,ae.mode,["mopen"]),be.unshift(Gr),Gt)for(var fn=1;fn<be.length;fn++){var Kn=be[fn],qn=Kn.isMiddle;qn&&(be[fn]=Ia.leftRightDelim(qn.delim,Ke,At,qn.options,ae.mode,[]))}var Qn;if(ae.right===".")Qn=Un(me,["mclose"]);else{var Ei=ae.rightColor?me.withColor(ae.rightColor):me;Qn=Ia.leftRightDelim(ae.right,Ke,At,Ei,ae.mode,["mclose"])}return be.push(Qn),fr.makeSpan(["minner"],be,me)},mathmlBuilder:function(ae,me){yo(ae);var be=Li(ae.body,me);if(ae.left!=="."){var Ke=new $n.MathNode("mo",[gn(ae.left,ae.mode)]);Ke.setAttribute("fence","true"),be.unshift(Ke)}if(ae.right!=="."){var At=new $n.MathNode("mo",[gn(ae.right,ae.mode)]);At.setAttribute("fence","true"),ae.rightColor&&At.setAttribute("mathcolor",ae.rightColor),be.push(At)}return mi(be)}}),yt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ae,me){var be=Ca(me[0],ae);if(!ae.parser.leftrightDepth)throw new c("\\middle without preceding \\left",be);return{type:"middle",mode:ae.parser.mode,delim:be.text}},htmlBuilder:function(ae,me){var be;if(ae.delim===".")be=Un(me,[]);else{be=Ia.sizedDelim(ae.delim,1,me,ae.mode,[]);var Ke={delim:ae.delim,options:me};be.isMiddle=Ke}return be},mathmlBuilder:function(ae,me){var be=ae.delim==="\\vert"||ae.delim==="|"?gn("|","text"):gn(ae.delim,ae.mode),Ke=new $n.MathNode("mo",[be]);return Ke.setAttribute("fence","true"),Ke.setAttribute("lspace","0.05em"),Ke.setAttribute("rspace","0.05em"),Ke}});var uo=function(ae,me){var be=fr.wrapFragment(ti(ae.body,me),me),Ke=ae.label.substr(1),At=me.sizeMultiplier,Gt,Dr=0,Gr=p.isCharacterBox(ae.body);if(Ke==="sout")Gt=fr.makeSpan(["stretchy","sout"]),Gt.height=me.fontMetrics().defaultRuleThickness/At,Dr=-.5*me.fontMetrics().xHeight;else{/cancel/.test(Ke)?Gr||be.classes.push("cancel-pad"):be.classes.push("boxpad");var fn=0,Kn=0;/box/.test(Ke)?(Kn=Math.max(me.fontMetrics().fboxrule,me.minRuleThickness),fn=me.fontMetrics().fboxsep+(Ke==="colorbox"?0:Kn)):fn=Gr?.2:0,Gt=cn.encloseSpan(be,Ke,fn,me),/fbox|boxed|fcolorbox/.test(Ke)&&(Gt.style.borderStyle="solid",Gt.style.borderWidth=Kn+"em"),Dr=be.depth+fn,ae.backgroundColor&&(Gt.style.backgroundColor=ae.backgroundColor,ae.borderColor&&(Gt.style.borderColor=ae.borderColor))}var qn;return ae.backgroundColor?qn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Gt,shift:Dr},{type:"elem",elem:be,shift:0}]},me):qn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:be,shift:0},{type:"elem",elem:Gt,shift:Dr,wrapperClasses:/cancel/.test(Ke)?["svg-align"]:[]}]},me),/cancel/.test(Ke)&&(qn.height=be.height,qn.depth=be.depth),/cancel/.test(Ke)&&!Gr?fr.makeSpan(["mord","cancel-lap"],[qn],me):fr.makeSpan(["mord"],[qn],me)},Ga=function(ae,me){var be=0,Ke=new $n.MathNode(ae.label.indexOf("colorbox")>-1?"mpadded":"menclose",[wr(ae.body,me)]);switch(ae.label){case"\\cancel":Ke.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Ke.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Ke.setAttribute("notation","horizontalstrike");break;case"\\fbox":Ke.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(be=me.fontMetrics().fboxsep*me.fontMetrics().ptPerEm,Ke.setAttribute("width","+"+2*be+"pt"),Ke.setAttribute("height","+"+2*be+"pt"),Ke.setAttribute("lspace",be+"pt"),Ke.setAttribute("voffset",be+"pt"),ae.label==="\\fcolorbox"){var At=Math.max(me.fontMetrics().fboxrule,me.minRuleThickness);Ke.setAttribute("style","border: "+At+"em solid "+String(ae.borderColor))}break;case"\\xcancel":Ke.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ae.backgroundColor&&Ke.setAttribute("mathbackground",ae.backgroundColor),Ke};yt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ae,me,be){var Ke=ae.parser,At=ae.funcName,Gt=mn(me[0],"color-token").color,Dr=me[1];return{type:"enclose",mode:Ke.mode,label:At,backgroundColor:Gt,body:Dr}},htmlBuilder:uo,mathmlBuilder:Ga}),yt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ae,me,be){var Ke=ae.parser,At=ae.funcName,Gt=mn(me[0],"color-token").color,Dr=mn(me[1],"color-token").color,Gr=me[2];return{type:"enclose",mode:Ke.mode,label:At,backgroundColor:Dr,borderColor:Gt,body:Gr}},htmlBuilder:uo,mathmlBuilder:Ga}),yt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ae,me){var be=ae.parser;return{type:"enclose",mode:be.mode,label:"\\fbox",body:me[0]}}}),yt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ae,me,be){var Ke=ae.parser,At=ae.funcName,Gt=me[0];return{type:"enclose",mode:Ke.mode,label:At,body:Gt}},htmlBuilder:uo,mathmlBuilder:Ga});var Oo={};function oa(vt){for(var ae=vt.type,me=vt.names,be=vt.props,Ke=vt.handler,At=vt.htmlBuilder,Gt=vt.mathmlBuilder,Dr={type:ae,numArgs:be.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Ke},Gr=0;Gr<me.length;++Gr)Oo[me[Gr]]=Dr;At&&(Lt[ae]=At),Gt&&(kt[ae]=Gt)}function qa(vt){var ae=[];vt.consumeSpaces();for(var me=vt.fetch().text;me==="\\hline"||me==="\\hdashline";)vt.consume(),ae.push(me==="\\hdashline"),vt.consumeSpaces(),me=vt.fetch().text;return ae}function oo(vt,ae,me){var be=ae.hskipBeforeAndAfter,Ke=ae.addJot,At=ae.cols,Gt=ae.arraystretch,Dr=ae.colSeparationType;if(vt.gullet.beginGroup(),vt.gullet.macros.set("\\\\","\\cr"),!Gt){var Gr=vt.gullet.expandMacroAsText("\\arraystretch");if(Gr==null)Gt=1;else if(Gt=parseFloat(Gr),!Gt||Gt<0)throw new c("Invalid \\arraystretch: "+Gr)}vt.gullet.beginGroup();var fn=[],Kn=[fn],qn=[],Qn=[];for(Qn.push(qa(vt));;){var Ei=vt.parseExpression(!1,"\\cr");vt.gullet.endGroup(),vt.gullet.beginGroup(),Ei={type:"ordgroup",mode:vt.mode,body:Ei},me&&(Ei={type:"styling",mode:vt.mode,style:me,body:[Ei]}),fn.push(Ei);var Fi=vt.fetch().text;if(Fi==="&")vt.consume();else if(Fi==="\\end"){fn.length===1&&Ei.type==="styling"&&Ei.body[0].body.length===0&&Kn.pop(),Qn.length<Kn.length+1&&Qn.push([]);break}else if(Fi==="\\cr"){var va=mn(vt.parseFunction(),"cr");qn.push(va.size),Qn.push(qa(vt)),fn=[],Kn.push(fn)}else throw new c("Expected & or \\\\ or \\cr or \\end",vt.nextToken)}return vt.gullet.endGroup(),vt.gullet.endGroup(),{type:"array",mode:vt.mode,addJot:Ke,arraystretch:Gt,body:Kn,cols:At,rowGaps:qn,hskipBeforeAndAfter:be,hLinesBeforeRow:Qn,colSeparationType:Dr}}function Ro(vt){return vt.substr(0,1)==="d"?"display":"text"}var Xa=function(ae,me){var be,Ke,At=ae.body.length,Gt=ae.hLinesBeforeRow,Dr=0,Gr=new Array(At),fn=[],Kn=Math.max(me.fontMetrics().arrayRuleWidth,me.minRuleThickness),qn=1/me.fontMetrics().ptPerEm,Qn=5*qn;if(ae.colSeparationType&&ae.colSeparationType==="small"){var Ei=me.havingStyle(j.SCRIPT).sizeMultiplier;Qn=.2778*(Ei/me.sizeMultiplier)}var Fi=12*qn,va=3*qn,Oa=ae.arraystretch*Fi,fo=.7*Oa,wo=.3*Oa,lo=0;function Yo(rs){for(var os=0;os<rs.length;++os)os>0&&(lo+=.25),fn.push({pos:lo,isDashed:rs[os]})}for(Yo(Gt[0]),be=0;be<ae.body.length;++be){var Vo=ae.body[be],No=fo,ao=wo;Dr<Vo.length&&(Dr=Vo.length);var Ka=new Array(Vo.length);for(Ke=0;Ke<Vo.length;++Ke){var is=ti(Vo[Ke],me);ao<is.depth&&(ao=is.depth),No<is.height&&(No=is.height),Ka[Ke]=is}var Is=ae.rowGaps[be],Go=0;Is&&(Go=hr(Is,me),Go>0&&(Go+=wo,ao<Go&&(ao=Go),Go=0)),ae.addJot&&(ao+=va),Ka.height=No,Ka.depth=ao,lo+=No,Ka.pos=lo,lo+=ao+Go,Gr[be]=Ka,Yo(Gt[be+1])}var la=lo/2+me.fontMetrics().axisHeight,Vs=ae.cols||[],Hs=[],fs,as;for(Ke=0,as=0;Ke<Dr||as<Vs.length;++Ke,++as){for(var Ss=Vs[as]||{},xl=!0;Ss.type==="separator";){if(xl||(fs=fr.makeSpan(["arraycolsep"],[]),fs.style.width=me.fontMetrics().doubleRuleSep+"em",Hs.push(fs)),Ss.separator==="|"||Ss.separator===":"){var vl=Ss.separator==="|"?"solid":"dashed",zs=fr.makeSpan(["vertical-separator"],[],me);zs.style.height=lo+"em",zs.style.borderRightWidth=Kn+"em",zs.style.borderRightStyle=vl,zs.style.margin="0 -"+Kn/2+"em",zs.style.verticalAlign=-(lo-la)+"em",Hs.push(zs)}else throw new c("Invalid separator type: "+Ss.separator);as++,Ss=Vs[as]||{},xl=!1}if(Ke>=Dr)continue;var Zo=void 0;(Ke>0||ae.hskipBeforeAndAfter)&&(Zo=p.deflt(Ss.pregap,Qn),Zo!==0&&(fs=fr.makeSpan(["arraycolsep"],[]),fs.style.width=Zo+"em",Hs.push(fs)));var As=[];for(be=0;be<At;++be){var nl=Gr[be],Ps=nl[Ke];if(!Ps)continue;var po=nl.pos-la;Ps.depth=nl.depth,Ps.height=nl.height,As.push({type:"elem",elem:Ps,shift:po})}As=fr.makeVList({positionType:"individualShift",children:As},me),As=fr.makeSpan(["col-align-"+(Ss.align||"c")],[As]),Hs.push(As),(Ke<Dr-1||ae.hskipBeforeAndAfter)&&(Zo=p.deflt(Ss.postgap,Qn),Zo!==0&&(fs=fr.makeSpan(["arraycolsep"],[]),fs.style.width=Zo+"em",Hs.push(fs)))}if(Gr=fr.makeSpan(["mtable"],Hs),fn.length>0){for(var Wa=fr.makeLineSpan("hline",me,Kn),Eo=fr.makeLineSpan("hdashline",me,Kn),Xo=[{type:"elem",elem:Gr,shift:0}];fn.length>0;){var $o=fn.pop(),Co=$o.pos-la;$o.isDashed?Xo.push({type:"elem",elem:Eo,shift:Co}):Xo.push({type:"elem",elem:Wa,shift:Co})}Gr=fr.makeVList({positionType:"individualShift",children:Xo},me)}return fr.makeSpan(["mord"],[Gr],me)},_o={c:"center ",l:"left ",r:"right "},go=function(ae,me){var be=new $n.MathNode("mtable",ae.body.map(function(lo){return new $n.MathNode("mtr",lo.map(function(Yo){return new $n.MathNode("mtd",[wr(Yo,me)])}))})),Ke=ae.arraystretch===.5?.1:.16+ae.arraystretch-1+(ae.addJot?.09:0);be.setAttribute("rowspacing",Ke+"em");var At="",Gt="";if(ae.cols){var Dr=ae.cols,Gr="",fn=!1,Kn=0,qn=Dr.length;Dr[0].type==="separator"&&(At+="top ",Kn=1),Dr[Dr.length-1].type==="separator"&&(At+="bottom ",qn-=1);for(var Qn=Kn;Qn<qn;Qn++)Dr[Qn].type==="align"?(Gt+=_o[Dr[Qn].align],fn&&(Gr+="none "),fn=!0):Dr[Qn].type==="separator"&&(fn&&(Gr+=Dr[Qn].separator==="|"?"solid ":"dashed ",fn=!1));be.setAttribute("columnalign",Gt.trim()),/[sd]/.test(Gr)&&be.setAttribute("columnlines",Gr.trim())}if(ae.colSeparationType==="align"){for(var Ei=ae.cols||[],Fi="",va=1;va<Ei.length;va++)Fi+=va%2?"0em ":"1em ";be.setAttribute("columnspacing",Fi.trim())}else ae.colSeparationType==="alignat"?be.setAttribute("columnspacing","0em"):ae.colSeparationType==="small"?be.setAttribute("columnspacing","0.2778em"):be.setAttribute("columnspacing","1em");var Oa="",fo=ae.hLinesBeforeRow;At+=fo[0].length>0?"left ":"",At+=fo[fo.length-1].length>0?"right ":"";for(var wo=1;wo<fo.length-1;wo++)Oa+=fo[wo].length===0?"none ":fo[wo][0]?"dashed ":"solid ";return/[sd]/.test(Oa)&&be.setAttribute("rowlines",Oa.trim()),At!==""&&(be=new $n.MathNode("menclose",[be]),be.setAttribute("notation",At.trim())),ae.arraystretch&&ae.arraystretch<1&&(be=new $n.MathNode("mstyle",[be]),be.setAttribute("scriptlevel","1")),be},Ja=function(ae,me){var be=[],Ke=oo(ae.parser,{cols:be,addJot:!0},"display"),At,Gt=0,Dr={type:"ordgroup",mode:ae.mode,body:[]},Gr=en(me[0],"ordgroup");if(Gr){for(var fn="",Kn=0;Kn<Gr.body.length;Kn++){var qn=mn(Gr.body[Kn],"textord");fn+=qn.text}At=Number(fn),Gt=At*2}var Qn=!Gt;Ke.body.forEach(function(Oa){for(var fo=1;fo<Oa.length;fo+=2){var wo=mn(Oa[fo],"styling"),lo=mn(wo.body[0],"ordgroup");lo.body.unshift(Dr)}if(Qn)Gt<Oa.length&&(Gt=Oa.length);else{var Yo=Oa.length/2;if(At<Yo)throw new c("Too many math in a row: "+("expected "+At+", but got "+Yo),Oa[0])}});for(var Ei=0;Ei<Gt;++Ei){var Fi="r",va=0;Ei%2===1?Fi="l":Ei>0&&Qn&&(va=1),be[Ei]={type:"align",align:Fi,pregap:va,postgap:0}}return Ke.colSeparationType=Qn?"align":"alignat",Ke};oa({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ae,me){var be=_i(me[0]),Ke=be?[me[0]]:mn(me[0],"ordgroup").body,At=Ke.map(function(Dr){var Gr=di(Dr),fn=Gr.text;if("lcr".indexOf(fn)!==-1)return{type:"align",align:fn};if(fn==="|")return{type:"separator",separator:"|"};if(fn===":")return{type:"separator",separator:":"};throw new c("Unknown column alignment: "+fn,Dr)}),Gt={cols:At,hskipBeforeAndAfter:!0};return oo(ae.parser,Gt,Ro(ae.envName))},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ae){var me={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ae.envName],be={hskipBeforeAndAfter:!1},Ke=oo(ae.parser,be,Ro(ae.envName));return me?{type:"leftright",mode:ae.mode,body:[Ke],left:me[0],right:me[1],rightColor:void 0}:Ke},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ae){var me={arraystretch:.5},be=oo(ae.parser,me,"script");return be.colSeparationType="small",be},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ae,me){var be=_i(me[0]),Ke=be?[me[0]]:mn(me[0],"ordgroup").body,At=Ke.map(function(Dr){var Gr=di(Dr),fn=Gr.text;if("lc".indexOf(fn)!==-1)return{type:"align",align:fn};throw new c("Unknown column alignment: "+fn,Dr)});if(At.length>1)throw new c("{subarray} can contain only one column");var Gt={cols:At,hskipBeforeAndAfter:!1,arraystretch:.5};if(Gt=oo(ae.parser,Gt,"script"),Gt.body[0].length>1)throw new c("{subarray} can contain only one column");return Gt},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ae){var me={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},be=oo(ae.parser,me,Ro(ae.envName));return{type:"leftright",mode:ae.mode,body:[be],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["aligned"],props:{numArgs:0},handler:Ja,htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ae){var me={cols:[{type:"align",align:"c"}],addJot:!0};return oo(ae.parser,me,"display")},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ja,htmlBuilder:Xa,mathmlBuilder:go}),yt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ae,me){throw new c(ae.funcName+" valid only within array environment")}});var Fa=Oo,ha=Fa;yt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0];if(At.type!=="ordgroup")throw new c("Invalid environment name",At);for(var Gt="",Dr=0;Dr<At.body.length;++Dr)Gt+=mn(At.body[Dr],"textord").text;if(Ke==="\\begin"){if(!ha.hasOwnProperty(Gt))throw new c("No such environment: "+Gt,At);var Gr=ha[Gt],fn=be.parseArguments("\\begin{"+Gt+"}",Gr),Kn=fn.args,qn=fn.optArgs,Qn={mode:be.mode,envName:Gt,parser:be},Ei=Gr.handler(Qn,Kn,qn);be.expect("\\end",!1);var Fi=be.nextToken,va=mn(be.parseFunction(),"environment");if(va.name!==Gt)throw new c("Mismatch: \\begin{"+Gt+"} matched by \\end{"+va.name+"}",Fi);return Ei}return{type:"environment",mode:be.mode,name:Gt,nameGroup:At}}});var rt=fr.makeSpan;function cr(vt,ae){var me=Yr(vt.body,ae,!0);return rt([vt.mclass],me,ae)}function Pr(vt,ae){var me,be=Li(vt.body,ae);return vt.mclass==="minner"?$n.newDocumentFragment(be):(vt.mclass==="mord"?vt.isCharacterBox?(me=be[0],me.type="mi"):me=new $n.MathNode("mi",be):(vt.isCharacterBox?(me=be[0],me.type="mo"):me=new $n.MathNode("mo",be),vt.mclass==="mbin"?(me.attributes.lspace="0.22em",me.attributes.rspace="0.22em"):vt.mclass==="mpunct"?(me.attributes.lspace="0em",me.attributes.rspace="0.17em"):(vt.mclass==="mopen"||vt.mclass==="mclose")&&(me.attributes.lspace="0em",me.attributes.rspace="0em")),me)}yt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0];return{type:"mclass",mode:be.mode,mclass:"m"+Ke.substr(5),body:tr(At),isCharacterBox:p.isCharacterBox(At)}},htmlBuilder:cr,mathmlBuilder:Pr});var Lr=function(ae){var me=ae.type==="ordgroup"&&ae.body.length?ae.body[0]:ae;return me.type==="atom"&&(me.family==="bin"||me.family==="rel")?"m"+me.family:"mord"};yt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ae,me){var be=ae.parser;return{type:"mclass",mode:be.mode,mclass:Lr(me[0]),body:[me[1]],isCharacterBox:p.isCharacterBox(me[1])}}}),yt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[1],Gt=me[0],Dr;Ke!=="\\stackrel"?Dr=Lr(At):Dr="mrel";var Gr={type:"op",mode:At.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Ke!=="\\stackrel",body:tr(At)},fn={type:"supsub",mode:Gt.mode,base:Gr,sup:Ke==="\\underset"?null:Gt,sub:Ke==="\\underset"?Gt:null};return{type:"mclass",mode:be.mode,mclass:Dr,body:[fn],isCharacterBox:p.isCharacterBox(fn)}},htmlBuilder:cr,mathmlBuilder:Pr});var _n=function(ae,me){var be=ae.font,Ke=me.withFont(be);return ti(ae.body,Ke)},Vr=function(ae,me){var be=ae.font,Ke=me.withFont(be);return wr(ae.body,Ke)},_r={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};yt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0],Gt=Ke;return Gt in _r&&(Gt=_r[Gt]),{type:"font",mode:be.mode,font:Gt.slice(1),body:At}},htmlBuilder:_n,mathmlBuilder:Vr}),yt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ae,me){var be=ae.parser,Ke=me[0],At=p.isCharacterBox(Ke);return{type:"mclass",mode:be.mode,mclass:Lr(Ke),body:[{type:"font",mode:be.mode,font:"boldsymbol",body:Ke}],isCharacterBox:At}}}),yt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=ae.breakOnTokenText,Gt=be.mode,Dr=be.parseExpression(!0,At),Gr="math"+Ke.slice(1);return{type:"font",mode:Gt,font:Gr,body:{type:"ordgroup",mode:be.mode,body:Dr}}},htmlBuilder:_n,mathmlBuilder:Vr});var kn=function(ae,me){var be=me;return ae==="display"?be=be.id>=j.SCRIPT.id?be.text():j.DISPLAY:ae==="text"&&be.size===j.DISPLAY.size?be=j.TEXT:ae==="script"?be=j.SCRIPT:ae==="scriptscript"&&(be=j.SCRIPTSCRIPT),be},Ur=function(ae,me){var be=kn(ae.size,me.style),Ke=be.fracNum(),At=be.fracDen(),Gt;Gt=me.havingStyle(Ke);var Dr=ti(ae.numer,Gt,me);if(ae.continued){var Gr=8.5/me.fontMetrics().ptPerEm,fn=3.5/me.fontMetrics().ptPerEm;Dr.height=Dr.height<Gr?Gr:Dr.height,Dr.depth=Dr.depth<fn?fn:Dr.depth}Gt=me.havingStyle(At);var Kn=ti(ae.denom,Gt,me),qn,Qn,Ei;ae.hasBarLine?(ae.barSize?(Qn=hr(ae.barSize,me),qn=fr.makeLineSpan("frac-line",me,Qn)):qn=fr.makeLineSpan("frac-line",me),Qn=qn.height,Ei=qn.height):(qn=null,Qn=0,Ei=me.fontMetrics().defaultRuleThickness);var Fi,va,Oa;be.size===j.DISPLAY.size||ae.size==="display"?(Fi=me.fontMetrics().num1,Qn>0?va=3*Ei:va=7*Ei,Oa=me.fontMetrics().denom1):(Qn>0?(Fi=me.fontMetrics().num2,va=Ei):(Fi=me.fontMetrics().num3,va=3*Ei),Oa=me.fontMetrics().denom2);var fo;if(qn){var lo=me.fontMetrics().axisHeight;Fi-Dr.depth-(lo+.5*Qn)<va&&(Fi+=va-(Fi-Dr.depth-(lo+.5*Qn))),lo-.5*Qn-(Kn.height-Oa)<va&&(Oa+=va-(lo-.5*Qn-(Kn.height-Oa)));var Yo=-(lo-.5*Qn);fo=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Kn,shift:Oa},{type:"elem",elem:qn,shift:Yo},{type:"elem",elem:Dr,shift:-Fi}]},me)}else{var wo=Fi-Dr.depth-(Kn.height-Oa);wo<va&&(Fi+=.5*(va-wo),Oa+=.5*(va-wo)),fo=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Kn,shift:Oa},{type:"elem",elem:Dr,shift:-Fi}]},me)}Gt=me.havingStyle(be),fo.height*=Gt.sizeMultiplier/me.sizeMultiplier,fo.depth*=Gt.sizeMultiplier/me.sizeMultiplier;var Vo;be.size===j.DISPLAY.size?Vo=me.fontMetrics().delim1:Vo=me.fontMetrics().delim2;var No,ao;return ae.leftDelim==null?No=Un(me,["mopen"]):No=Ia.customSizedDelim(ae.leftDelim,Vo,!0,me.havingStyle(be),ae.mode,["mopen"]),ae.continued?ao=fr.makeSpan([]):ae.rightDelim==null?ao=Un(me,["mclose"]):ao=Ia.customSizedDelim(ae.rightDelim,Vo,!0,me.havingStyle(be),ae.mode,["mclose"]),fr.makeSpan(["mord"].concat(Gt.sizingClasses(me)),[No,fr.makeSpan(["mfrac"],[fo]),ao],me)},En=function(ae,me){var be=new $n.MathNode("mfrac",[wr(ae.numer,me),wr(ae.denom,me)]);if(!ae.hasBarLine)be.setAttribute("linethickness","0px");else if(ae.barSize){var Ke=hr(ae.barSize,me);be.setAttribute("linethickness",Ke+"em")}var At=kn(ae.size,me.style);if(At.size!==me.style.size){be=new $n.MathNode("mstyle",[be]);var Gt=At.size===j.DISPLAY.size?"true":"false";be.setAttribute("displaystyle",Gt),be.setAttribute("scriptlevel","0")}if(ae.leftDelim!=null||ae.rightDelim!=null){var Dr=[];if(ae.leftDelim!=null){var Gr=new $n.MathNode("mo",[new $n.TextNode(ae.leftDelim.replace("\\",""))]);Gr.setAttribute("fence","true"),Dr.push(Gr)}if(Dr.push(be),ae.rightDelim!=null){var fn=new $n.MathNode("mo",[new $n.TextNode(ae.rightDelim.replace("\\",""))]);fn.setAttribute("fence","true"),Dr.push(fn)}return mi(Dr)}return be};yt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0],Gt=me[1],Dr,Gr=null,fn=null,Kn="auto";switch(Ke){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Dr=!0;break;case"\\\\atopfrac":Dr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Dr=!1,Gr="(",fn=")";break;case"\\\\bracefrac":Dr=!1,Gr="\\{",fn="\\}";break;case"\\\\brackfrac":Dr=!1,Gr="[",fn="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Ke){case"\\cfrac":case"\\dfrac":case"\\dbinom":Kn="display";break;case"\\tfrac":case"\\tbinom":Kn="text";break}return{type:"genfrac",mode:be.mode,continued:Ke==="\\cfrac",numer:At,denom:Gt,hasBarLine:Dr,leftDelim:Gr,rightDelim:fn,size:Kn,barSize:null}},htmlBuilder:Ur,mathmlBuilder:En}),yt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ae){var me=ae.parser,be=ae.funcName,Ke=ae.token,At;switch(be){case"\\over":At="\\frac";break;case"\\choose":At="\\binom";break;case"\\atop":At="\\\\atopfrac";break;case"\\brace":At="\\\\bracefrac";break;case"\\brack":At="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:me.mode,replaceWith:At,token:Ke}}});var jn=["display","text","script","scriptscript"],Hn=function(ae){var me=null;return ae.length>0&&(me=ae,me=me==="."?null:me),me};yt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ae,me){var be=ae.parser,Ke=me[4],At=me[5],Gt=en(me[0],"atom");Gt&&(Gt=kr(me[0],"open"));var Dr=Gt?Hn(Gt.text):null,Gr=en(me[1],"atom");Gr&&(Gr=kr(me[1],"close"));var fn=Gr?Hn(Gr.text):null,Kn=mn(me[2],"size"),qn,Qn=null;Kn.isBlank?qn=!0:(Qn=Kn.value,qn=Qn.number>0);var Ei="auto",Fi=en(me[3],"ordgroup");if(Fi){if(Fi.body.length>0){var va=mn(Fi.body[0],"textord");Ei=jn[Number(va.text)]}}else Fi=mn(me[3],"textord"),Ei=jn[Number(Fi.text)];return{type:"genfrac",mode:be.mode,numer:Ke,denom:At,continued:!1,hasBarLine:qn,barSize:Qn,leftDelim:Dr,rightDelim:fn,size:Ei}},htmlBuilder:Ur,mathmlBuilder:En}),yt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=ae.token;return{type:"infix",mode:be.mode,replaceWith:"\\\\abovefrac",size:mn(me[0],"size").value,token:At}}}),yt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0],Gt=u(mn(me[1],"infix").size),Dr=me[2],Gr=Gt.number>0;return{type:"genfrac",mode:be.mode,numer:At,denom:Dr,continued:!1,hasBarLine:Gr,barSize:Gt,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ur,mathmlBuilder:En});var Bn=function(ae,me){var be=me.style,Ke,At,Gt=en(ae,"supsub");Gt?(Ke=Gt.sup?ti(Gt.sup,me.havingStyle(be.sup()),me):ti(Gt.sub,me.havingStyle(be.sub()),me),At=mn(Gt.base,"horizBrace")):At=mn(ae,"horizBrace");var Dr=ti(At.base,me.havingBaseStyle(j.DISPLAY)),Gr=cn.svgSpan(At,me),fn;if(At.isOver?(fn=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Dr},{type:"kern",size:.1},{type:"elem",elem:Gr}]},me),fn.children[0].children[0].children[1].classes.push("svg-align")):(fn=fr.makeVList({positionType:"bottom",positionData:Dr.depth+.1+Gr.height,children:[{type:"elem",elem:Gr},{type:"kern",size:.1},{type:"elem",elem:Dr}]},me),fn.children[0].children[0].children[0].classes.push("svg-align")),Ke){var Kn=fr.makeSpan(["mord",At.isOver?"mover":"munder"],[fn],me);At.isOver?fn=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Kn},{type:"kern",size:.2},{type:"elem",elem:Ke}]},me):fn=fr.makeVList({positionType:"bottom",positionData:Kn.depth+.2+Ke.height+Ke.depth,children:[{type:"elem",elem:Ke},{type:"kern",size:.2},{type:"elem",elem:Kn}]},me)}return fr.makeSpan(["mord",At.isOver?"mover":"munder"],[fn],me)},ri=function(ae,me){var be=cn.mathMLnode(ae.label);return new $n.MathNode(ae.isOver?"mover":"munder",[wr(ae.base,me),be])};yt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName;return{type:"horizBrace",mode:be.mode,label:Ke,isOver:/^\\over/.test(Ke),base:me[0]}},htmlBuilder:Bn,mathmlBuilder:ri}),yt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=me[1],At=mn(me[0],"url").url;return be.settings.isTrusted({command:"\\href",url:At})?{type:"href",mode:be.mode,href:At,body:tr(Ke)}:be.formatUnsupportedCmd("\\href")},htmlBuilder:function(ae,me){var be=Yr(ae.body,me,!1);return fr.makeAnchor(ae.href,[],be,me)},mathmlBuilder:function(ae,me){var be=Bi(ae.body,me);return be instanceof zi||(be=new zi("mrow",[be])),be.setAttribute("href",ae.href),be}}),yt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=mn(me[0],"url").url;if(!be.settings.isTrusted({command:"\\url",url:Ke}))return be.formatUnsupportedCmd("\\url");for(var At=[],Gt=0;Gt<Ke.length;Gt++){var Dr=Ke[Gt];Dr==="~"&&(Dr="\\textasciitilde"),At.push({type:"textord",mode:"text",text:Dr})}var Gr={type:"text",mode:be.mode,font:"\\texttt",body:At};return{type:"href",mode:be.mode,href:Ke,body:tr(Gr)}}}),yt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ae,me){var be=ae.parser;return{type:"htmlmathml",mode:be.mode,html:tr(me[0]),mathml:tr(me[1])}},htmlBuilder:function(ae,me){var be=Yr(ae.html,me,!1);return fr.makeFragment(be)},mathmlBuilder:function(ae,me){return Bi(ae.mathml,me)}});var Yn=function(ae){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ae))return{number:+ae,unit:"bp"};var me=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ae);if(!me)throw new c("Invalid size: '"+ae+"' in \\includegraphics");var be={number:+(me[1]+me[2]),unit:me[3]};if(!Sr(be))throw new c("Invalid unit: '"+be.unit+"' in \\includegraphics.");return be};yt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ae,me,be){var Ke=ae.parser,At={number:0,unit:"em"},Gt={number:.9,unit:"em"},Dr={number:0,unit:"em"},Gr="";if(be[0])for(var fn=mn(be[0],"raw").string,Kn=fn.split(","),qn=0;qn<Kn.length;qn++){var Qn=Kn[qn].split("=");if(Qn.length===2){var Ei=Qn[1].trim();switch(Qn[0].trim()){case"alt":Gr=Ei;break;case"width":At=Yn(Ei);break;case"height":Gt=Yn(Ei);break;case"totalheight":Dr=Yn(Ei);break;default:throw new c("Invalid key: '"+Qn[0]+"' in \\includegraphics.")}}}var Fi=mn(me[0],"url").url;return Gr===""&&(Gr=Fi,Gr=Gr.replace(/^.*[\\/]/,""),Gr=Gr.substring(0,Gr.lastIndexOf("."))),Ke.settings.isTrusted({command:"\\includegraphics",url:Fi})?{type:"includegraphics",mode:Ke.mode,alt:Gr,width:At,height:Gt,totalheight:Dr,src:Fi}:Ke.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ae,me){var be=hr(ae.height,me),Ke=0;ae.totalheight.number>0&&(Ke=hr(ae.totalheight,me)-be,Ke=Number(Ke.toFixed(2)));var At=0;ae.width.number>0&&(At=hr(ae.width,me));var Gt={height:be+Ke+"em"};At>0&&(Gt.width=At+"em"),Ke>0&&(Gt.verticalAlign=-Ke+"em");var Dr=new ve(ae.src,ae.alt,Gt);return Dr.height=be,Dr.depth=Ke,Dr},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mglyph",[]);be.setAttribute("alt",ae.alt);var Ke=hr(ae.height,me),At=0;if(ae.totalheight.number>0&&(At=hr(ae.totalheight,me)-Ke,At=At.toFixed(2),be.setAttribute("valign","-"+At+"em")),be.setAttribute("height",Ke+At+"em"),ae.width.number>0){var Gt=hr(ae.width,me);be.setAttribute("width",Gt+"em")}return be.setAttribute("src",ae.src),be}}),yt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=mn(me[0],"size");if(be.settings.strict){var Gt=Ke[1]==="m",Dr=At.value.unit==="mu";Gt?(Dr||be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ke+" supports only mu units, "+("not "+At.value.unit+" units")),be.mode!=="math"&&be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ke+" works only in math mode")):Dr&&be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ke+" doesn't support mu units")}return{type:"kern",mode:be.mode,dimension:At.value}},htmlBuilder:function(ae,me){return fr.makeGlue(ae.dimension,me)},mathmlBuilder:function(ae,me){var be=hr(ae.dimension,me);return new $n.SpaceNode(be)}}),yt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0];return{type:"lap",mode:be.mode,alignment:Ke.slice(5),body:At}},htmlBuilder:function(ae,me){var be;ae.alignment==="clap"?(be=fr.makeSpan([],[ti(ae.body,me)]),be=fr.makeSpan(["inner"],[be],me)):be=fr.makeSpan(["inner"],[ti(ae.body,me)]);var Ke=fr.makeSpan(["fix"],[]),At=fr.makeSpan([ae.alignment],[be,Ke],me),Gt=fr.makeSpan(["strut"]);return Gt.style.height=At.height+At.depth+"em",Gt.style.verticalAlign=-At.depth+"em",At.children.unshift(Gt),At=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:At}]},me),fr.makeSpan(["mord"],[At],me)},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mpadded",[wr(ae.body,me)]);if(ae.alignment!=="rlap"){var Ke=ae.alignment==="llap"?"-1":"-0.5";be.setAttribute("lspace",Ke+"width")}return be.setAttribute("width","0px"),be}}),yt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ae,me){var be=ae.funcName,Ke=ae.parser,At=Ke.mode;Ke.switchMode("math");var Gt=be==="\\("?"\\)":"$",Dr=Ke.parseExpression(!1,Gt);return Ke.expect(Gt),Ke.switchMode(At),{type:"styling",mode:Ke.mode,style:"text",body:Dr}}}),yt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ae,me){throw new c("Mismatched "+ae.funcName)}});var ii=function(ae,me){switch(me.style.size){case j.DISPLAY.size:return ae.display;case j.TEXT.size:return ae.text;case j.SCRIPT.size:return ae.script;case j.SCRIPTSCRIPT.size:return ae.scriptscript;default:return ae.text}};yt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ae,me){var be=ae.parser;return{type:"mathchoice",mode:be.mode,display:tr(me[0]),text:tr(me[1]),script:tr(me[2]),scriptscript:tr(me[3])}},htmlBuilder:function(ae,me){var be=ii(ae,me),Ke=Yr(be,me,!1);return fr.makeFragment(Ke)},mathmlBuilder:function(ae,me){var be=ii(ae,me);return Bi(be,me)}});var ai=function(ae,me,be,Ke,At,Gt,Dr){ae=fr.makeSpan([],[ae]);var Gr,fn;if(me){var Kn=ti(me,Ke.havingStyle(At.sup()),Ke);fn={elem:Kn,kern:Math.max(Ke.fontMetrics().bigOpSpacing1,Ke.fontMetrics().bigOpSpacing3-Kn.depth)}}if(be){var qn=ti(be,Ke.havingStyle(At.sub()),Ke);Gr={elem:qn,kern:Math.max(Ke.fontMetrics().bigOpSpacing2,Ke.fontMetrics().bigOpSpacing4-qn.height)}}var Qn;if(fn&&Gr){var Ei=Ke.fontMetrics().bigOpSpacing5+Gr.elem.height+Gr.elem.depth+Gr.kern+ae.depth+Dr;Qn=fr.makeVList({positionType:"bottom",positionData:Ei,children:[{type:"kern",size:Ke.fontMetrics().bigOpSpacing5},{type:"elem",elem:Gr.elem,marginLeft:-Gt+"em"},{type:"kern",size:Gr.kern},{type:"elem",elem:ae},{type:"kern",size:fn.kern},{type:"elem",elem:fn.elem,marginLeft:Gt+"em"},{type:"kern",size:Ke.fontMetrics().bigOpSpacing5}]},Ke)}else if(Gr){var Fi=ae.height-Dr;Qn=fr.makeVList({positionType:"top",positionData:Fi,children:[{type:"kern",size:Ke.fontMetrics().bigOpSpacing5},{type:"elem",elem:Gr.elem,marginLeft:-Gt+"em"},{type:"kern",size:Gr.kern},{type:"elem",elem:ae}]},Ke)}else if(fn){var va=ae.depth+Dr;Qn=fr.makeVList({positionType:"bottom",positionData:va,children:[{type:"elem",elem:ae},{type:"kern",size:fn.kern},{type:"elem",elem:fn.elem,marginLeft:Gt+"em"},{type:"kern",size:Ke.fontMetrics().bigOpSpacing5}]},Ke)}else return ae;return fr.makeSpan(["mop","op-limits"],[Qn],Ke)},ki=["\\smallint"],bi=function(ae,me){var be,Ke,At=!1,Gt,Dr=en(ae,"supsub");Dr?(be=Dr.sup,Ke=Dr.sub,Gt=mn(Dr.base,"op"),At=!0):Gt=mn(ae,"op");var Gr=me.style,fn=!1;Gr.size===j.DISPLAY.size&&Gt.symbol&&!p.contains(ki,Gt.name)&&(fn=!0);var Kn;if(Gt.symbol){var qn=fn?"Size2-Regular":"Size1-Regular",Qn="";if((Gt.name==="\\oiint"||Gt.name==="\\oiiint")&&(Qn=Gt.name.substr(1),Gt.name=Qn==="oiint"?"\\iint":"\\iiint"),Kn=fr.makeSymbol(Gt.name,qn,"math",me,["mop","op-symbol",fn?"large-op":"small-op"]),Qn.length>0){var Ei=Kn.italic,Fi=fr.staticSvg(Qn+"Size"+(fn?"2":"1"),me);Kn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Kn,shift:0},{type:"elem",elem:Fi,shift:fn?.08:0}]},me),Gt.name="\\"+Qn,Kn.classes.unshift("mop"),Kn.italic=Ei}}else if(Gt.body){var va=Yr(Gt.body,me,!0);va.length===1&&va[0]instanceof Ce?(Kn=va[0],Kn.classes[0]="mop"):Kn=fr.makeSpan(["mop"],fr.tryCombineChars(va),me)}else{for(var Oa=[],fo=1;fo<Gt.name.length;fo++)Oa.push(fr.mathsym(Gt.name[fo],Gt.mode,me));Kn=fr.makeSpan(["mop"],Oa,me)}var wo=0,lo=0;return(Kn instanceof Ce||Gt.name==="\\oiint"||Gt.name==="\\oiiint")&&!Gt.suppressBaseShift&&(wo=(Kn.height-Kn.depth)/2-me.fontMetrics().axisHeight,lo=Kn.italic),At?ai(Kn,be,Ke,me,Gr,lo,wo):(wo&&(Kn.style.position="relative",Kn.style.top=wo+"em"),Kn)},Ki=function(ae,me){var be;if(ae.symbol)be=new zi("mo",[gn(ae.name,ae.mode)]),p.contains(ki,ae.name)&&be.setAttribute("largeop","false");else if(ae.body)be=new zi("mo",Li(ae.body,me));else{be=new zi("mi",[new Ri(ae.name.slice(1))]);var Ke=new zi("mo",[gn("\u2061","text")]);ae.parentIsSupSub?be=new zi("mo",[be,Ke]):be=Pi([be,Ke])}return be},Aa={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};yt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=Ke;return At.length===1&&(At=Aa[At]),{type:"op",mode:be.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:At}},htmlBuilder:bi,mathmlBuilder:Ki}),yt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ae,me){var be=ae.parser,Ke=me[0];return{type:"op",mode:be.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:tr(Ke)}},htmlBuilder:bi,mathmlBuilder:Ki});var ea={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};yt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(ae){var me=ae.parser,be=ae.funcName;return{type:"op",mode:me.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:be}},htmlBuilder:bi,mathmlBuilder:Ki}),yt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ae){var me=ae.parser,be=ae.funcName;return{type:"op",mode:me.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:be}},htmlBuilder:bi,mathmlBuilder:Ki}),yt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ae){var me=ae.parser,be=ae.funcName,Ke=be;return Ke.length===1&&(Ke=ea[Ke]),{type:"op",mode:me.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Ke}},htmlBuilder:bi,mathmlBuilder:Ki});var Ji=function(ae,me){var be,Ke,At=!1,Gt,Dr=en(ae,"supsub");Dr?(be=Dr.sup,Ke=Dr.sub,Gt=mn(Dr.base,"operatorname"),At=!0):Gt=mn(ae,"operatorname");var Gr;if(Gt.body.length>0){for(var fn=Gt.body.map(function(Ei){var Fi=Ei.text;return typeof Fi=="string"?{type:"textord",mode:Ei.mode,text:Fi}:Ei}),Kn=Yr(fn,me.withFont("mathrm"),!0),qn=0;qn<Kn.length;qn++){var Qn=Kn[qn];Qn instanceof Ce&&(Qn.text=Qn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Gr=fr.makeSpan(["mop"],Kn,me)}else Gr=fr.makeSpan(["mop"],[],me);return At?ai(Gr,be,Ke,me,me.style,0,0):Gr},sa=function(ae,me){for(var be=Li(ae.body,me.withFont("mathrm")),Ke=!0,At=0;At<be.length;At++){var Gt=be[At];if(!(Gt instanceof $n.SpaceNode))if(Gt instanceof $n.MathNode)switch(Gt.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Dr=Gt.children[0];Gt.children.length===1&&Dr instanceof $n.TextNode?Dr.text=Dr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Ke=!1;break}default:Ke=!1}else Ke=!1}if(Ke){var Gr=be.map(function(qn){return qn.toText()}).join("");be=[new $n.TextNode(Gr)]}var fn=new $n.MathNode("mi",be);fn.setAttribute("mathvariant","normal");var Kn=new $n.MathNode("mo",[gn("\u2061","text")]);return ae.parentIsSupSub?new $n.MathNode("mo",[fn,Kn]):$n.newDocumentFragment([fn,Kn])};yt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0];return{type:"operatorname",mode:be.mode,body:tr(At),alwaysHandleSupSub:Ke==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ji,mathmlBuilder:sa}),Qt({type:"ordgroup",htmlBuilder:function(ae,me){return ae.semisimple?fr.makeFragment(Yr(ae.body,me,!1)):fr.makeSpan(["mord"],Yr(ae.body,me,!0),me)},mathmlBuilder:function(ae,me){return Bi(ae.body,me,!0)}}),yt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ae,me){var be=ae.parser,Ke=me[0];return{type:"overline",mode:be.mode,body:Ke}},htmlBuilder:function(ae,me){var be=ti(ae.body,me.havingCrampedStyle()),Ke=fr.makeLineSpan("overline-line",me),At=me.fontMetrics().defaultRuleThickness,Gt=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"kern",size:3*At},{type:"elem",elem:Ke},{type:"kern",size:At}]},me);return fr.makeSpan(["mord","overline"],[Gt],me)},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mo",[new $n.TextNode("\u203E")]);be.setAttribute("stretchy","true");var Ke=new $n.MathNode("mover",[wr(ae.body,me),be]);return Ke.setAttribute("accent","true"),Ke}}),yt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=me[0];return{type:"phantom",mode:be.mode,body:tr(Ke)}},htmlBuilder:function(ae,me){var be=Yr(ae.body,me.withPhantom(),!1);return fr.makeFragment(be)},mathmlBuilder:function(ae,me){var be=Li(ae.body,me);return new $n.MathNode("mphantom",be)}}),yt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=me[0];return{type:"hphantom",mode:be.mode,body:Ke}},htmlBuilder:function(ae,me){var be=fr.makeSpan([],[ti(ae.body,me.withPhantom())]);if(be.height=0,be.depth=0,be.children)for(var Ke=0;Ke<be.children.length;Ke++)be.children[Ke].height=0,be.children[Ke].depth=0;return be=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be}]},me),fr.makeSpan(["mord"],[be],me)},mathmlBuilder:function(ae,me){var be=Li(tr(ae.body),me),Ke=new $n.MathNode("mphantom",be),At=new $n.MathNode("mpadded",[Ke]);return At.setAttribute("height","0px"),At.setAttribute("depth","0px"),At}}),yt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=me[0];return{type:"vphantom",mode:be.mode,body:Ke}},htmlBuilder:function(ae,me){var be=fr.makeSpan(["inner"],[ti(ae.body,me.withPhantom())]),Ke=fr.makeSpan(["fix"],[]);return fr.makeSpan(["mord","rlap"],[be,Ke],me)},mathmlBuilder:function(ae,me){var be=Li(tr(ae.body),me),Ke=new $n.MathNode("mphantom",be),At=new $n.MathNode("mpadded",[Ke]);return At.setAttribute("width","0px"),At}}),yt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=mn(me[0],"size").value,At=me[1];return{type:"raisebox",mode:be.mode,dy:Ke,body:At}},htmlBuilder:function(ae,me){var be=ti(ae.body,me),Ke=hr(ae.dy,me);return fr.makeVList({positionType:"shift",positionData:-Ke,children:[{type:"elem",elem:be}]},me)},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mpadded",[wr(ae.body,me)]),Ke=ae.dy.number+ae.dy.unit;return be.setAttribute("voffset",Ke),be}}),yt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ae,me,be){var Ke=ae.parser,At=be[0],Gt=mn(me[0],"size"),Dr=mn(me[1],"size");return{type:"rule",mode:Ke.mode,shift:At&&mn(At,"size").value,width:Gt.value,height:Dr.value}},htmlBuilder:function(ae,me){var be=fr.makeSpan(["mord","rule"],[],me),Ke=hr(ae.width,me),At=hr(ae.height,me),Gt=ae.shift?hr(ae.shift,me):0;return be.style.borderRightWidth=Ke+"em",be.style.borderTopWidth=At+"em",be.style.bottom=Gt+"em",be.width=Ke,be.height=At+Gt,be.depth=-Gt,be.maxFontSize=At*1.125*me.sizeMultiplier,be},mathmlBuilder:function(ae,me){var be=hr(ae.width,me),Ke=hr(ae.height,me),At=ae.shift?hr(ae.shift,me):0,Gt=me.color&&me.getColor()||"black",Dr=new $n.MathNode("mspace");Dr.setAttribute("mathbackground",Gt),Dr.setAttribute("width",be+"em"),Dr.setAttribute("height",Ke+"em");var Gr=new $n.MathNode("mpadded",[Dr]);return At>=0?Gr.setAttribute("height","+"+At+"em"):(Gr.setAttribute("height",At+"em"),Gr.setAttribute("depth","+"+-At+"em")),Gr.setAttribute("voffset",At+"em"),Gr}});function fa(vt,ae,me){for(var be=Yr(vt,ae,!1),Ke=ae.sizeMultiplier/me.sizeMultiplier,At=0;At<be.length;At++){var Gt=be[At].classes.indexOf("sizing");Gt<0?Array.prototype.push.apply(be[At].classes,ae.sizingClasses(me)):be[At].classes[Gt+1]==="reset-size"+ae.size&&(be[At].classes[Gt+1]="reset-size"+me.size),be[At].height*=Ke,be[At].depth*=Ke}return fr.makeFragment(be)}var xo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Qa=function(ae,me){var be=me.havingSize(ae.size);return fa(ae.body,be,me)};yt({type:"sizing",names:xo,props:{numArgs:0,allowedInText:!0},handler:function(ae,me){var be=ae.breakOnTokenText,Ke=ae.funcName,At=ae.parser,Gt=At.parseExpression(!1,be);return{type:"sizing",mode:At.mode,size:xo.indexOf(Ke)+1,body:Gt}},htmlBuilder:Qa,mathmlBuilder:function(ae,me){var be=me.havingSize(ae.size),Ke=Li(ae.body,be),At=new $n.MathNode("mstyle",Ke);return At.setAttribute("mathsize",be.sizeMultiplier+"em"),At}}),yt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ae,me,be){var Ke=ae.parser,At=!1,Gt=!1,Dr=be[0]&&mn(be[0],"ordgroup");if(Dr)for(var Gr="",fn=0;fn<Dr.body.length;++fn){var Kn=Dr.body[fn];if(Gr=Kn.text,Gr==="t")At=!0;else if(Gr==="b")Gt=!0;else{At=!1,Gt=!1;break}}else At=!0,Gt=!0;var qn=me[0];return{type:"smash",mode:Ke.mode,body:qn,smashHeight:At,smashDepth:Gt}},htmlBuilder:function(ae,me){var be=fr.makeSpan([],[ti(ae.body,me)]);if(!ae.smashHeight&&!ae.smashDepth)return be;if(ae.smashHeight&&(be.height=0,be.children))for(var Ke=0;Ke<be.children.length;Ke++)be.children[Ke].height=0;if(ae.smashDepth&&(be.depth=0,be.children))for(var At=0;At<be.children.length;At++)be.children[At].depth=0;var Gt=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be}]},me);return fr.makeSpan(["mord"],[Gt],me)},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mpadded",[wr(ae.body,me)]);return ae.smashHeight&&be.setAttribute("height","0px"),ae.smashDepth&&be.setAttribute("depth","0px"),be}}),yt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ae,me,be){var Ke=ae.parser,At=be[0],Gt=me[0];return{type:"sqrt",mode:Ke.mode,body:Gt,index:At}},htmlBuilder:function(ae,me){var be=ti(ae.body,me.havingCrampedStyle());be.height===0&&(be.height=me.fontMetrics().xHeight),be=fr.wrapFragment(be,me);var Ke=me.fontMetrics(),At=Ke.defaultRuleThickness,Gt=At;me.style.id<j.TEXT.id&&(Gt=me.fontMetrics().xHeight);var Dr=At+Gt/4,Gr=be.height+be.depth+Dr+At,fn=Ia.sqrtImage(Gr,me),Kn=fn.span,qn=fn.ruleWidth,Qn=fn.advanceWidth,Ei=Kn.height-qn;Ei>be.height+be.depth+Dr&&(Dr=(Dr+Ei-be.height-be.depth)/2);var Fi=Kn.height-be.height-Dr-qn;be.style.paddingLeft=Qn+"em";var va=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be,wrapperClasses:["svg-align"]},{type:"kern",size:-(be.height+Fi)},{type:"elem",elem:Kn},{type:"kern",size:qn}]},me);if(ae.index){var Oa=me.havingStyle(j.SCRIPTSCRIPT),fo=ti(ae.index,Oa,me),wo=.6*(va.height-va.depth),lo=fr.makeVList({positionType:"shift",positionData:-wo,children:[{type:"elem",elem:fo}]},me),Yo=fr.makeSpan(["root"],[lo]);return fr.makeSpan(["mord","sqrt"],[Yo,va],me)}else return fr.makeSpan(["mord","sqrt"],[va],me)},mathmlBuilder:function(ae,me){var be=ae.body,Ke=ae.index;return Ke?new $n.MathNode("mroot",[wr(be,me),wr(Ke,me)]):new $n.MathNode("msqrt",[wr(be,me)])}});var Wi={display:j.DISPLAY,text:j.TEXT,script:j.SCRIPT,scriptscript:j.SCRIPTSCRIPT};yt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ae,me){var be=ae.breakOnTokenText,Ke=ae.funcName,At=ae.parser,Gt=At.parseExpression(!0,be),Dr=Ke.slice(1,Ke.length-5);return{type:"styling",mode:At.mode,style:Dr,body:Gt}},htmlBuilder:function(ae,me){var be=Wi[ae.style],Ke=me.havingStyle(be).withFont("");return fa(ae.body,Ke,me)},mathmlBuilder:function(ae,me){var be=Wi[ae.style],Ke=me.havingStyle(be),At=Li(ae.body,Ke),Gt=new $n.MathNode("mstyle",At),Dr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Gr=Dr[ae.style];return Gt.setAttribute("scriptlevel",Gr[0]),Gt.setAttribute("displaystyle",Gr[1]),Gt}});var qi=function(ae,me){var be=ae.base;if(be)if(be.type==="op"){var Ke=be.limits&&(me.style.size===j.DISPLAY.size||be.alwaysHandleSupSub);return Ke?bi:null}else if(be.type==="operatorname"){var At=be.alwaysHandleSupSub&&(me.style.size===j.DISPLAY.size||be.limits);return At?Ji:null}else{if(be.type==="accent")return p.isCharacterBox(be.base)?tn:null;if(be.type==="horizBrace"){var Gt=!ae.sub;return Gt===be.isOver?Bn:null}else return null}else return null};Qt({type:"supsub",htmlBuilder:function(ae,me){var be=qi(ae,me);if(be)return be(ae,me);var Ke=ae.base,At=ae.sup,Gt=ae.sub,Dr=ti(Ke,me),Gr,fn,Kn=me.fontMetrics(),qn=0,Qn=0,Ei=Ke&&p.isCharacterBox(Ke);if(At){var Fi=me.havingStyle(me.style.sup());Gr=ti(At,Fi,me),Ei||(qn=Dr.height-Fi.fontMetrics().supDrop*Fi.sizeMultiplier/me.sizeMultiplier)}if(Gt){var va=me.havingStyle(me.style.sub());fn=ti(Gt,va,me),Ei||(Qn=Dr.depth+va.fontMetrics().subDrop*va.sizeMultiplier/me.sizeMultiplier)}var Oa;me.style===j.DISPLAY?Oa=Kn.sup1:me.style.cramped?Oa=Kn.sup3:Oa=Kn.sup2;var fo=me.sizeMultiplier,wo=.5/Kn.ptPerEm/fo+"em",lo=null;if(fn){var Yo=ae.base&&ae.base.type==="op"&&ae.base.name&&(ae.base.name==="\\oiint"||ae.base.name==="\\oiiint");(Dr instanceof Ce||Yo)&&(lo=-Dr.italic+"em")}var Vo;if(Gr&&fn){qn=Math.max(qn,Oa,Gr.depth+.25*Kn.xHeight),Qn=Math.max(Qn,Kn.sub2);var No=Kn.defaultRuleThickness,ao=4*No;if(qn-Gr.depth-(fn.height-Qn)<ao){Qn=ao-(qn-Gr.depth)+fn.height;var Ka=.8*Kn.xHeight-(qn-Gr.depth);Ka>0&&(qn+=Ka,Qn-=Ka)}var is=[{type:"elem",elem:fn,shift:Qn,marginRight:wo,marginLeft:lo},{type:"elem",elem:Gr,shift:-qn,marginRight:wo}];Vo=fr.makeVList({positionType:"individualShift",children:is},me)}else if(fn){Qn=Math.max(Qn,Kn.sub1,fn.height-.8*Kn.xHeight);var Is=[{type:"elem",elem:fn,marginLeft:lo,marginRight:wo}];Vo=fr.makeVList({positionType:"shift",positionData:Qn,children:Is},me)}else if(Gr)qn=Math.max(qn,Oa,Gr.depth+.25*Kn.xHeight),Vo=fr.makeVList({positionType:"shift",positionData:-qn,children:[{type:"elem",elem:Gr,marginRight:wo}]},me);else throw new Error("supsub must have either sup or sub.");var Go=In(Dr,"right")||"mord";return fr.makeSpan([Go],[Dr,fr.makeSpan(["msupsub"],[Vo])],me)},mathmlBuilder:function(ae,me){var be=!1,Ke,At,Gt=en(ae.base,"horizBrace");Gt&&(At=!!ae.sup,At===Gt.isOver&&(be=!0,Ke=Gt.isOver)),ae.base&&(ae.base.type==="op"||ae.base.type==="operatorname")&&(ae.base.parentIsSupSub=!0);var Dr=[wr(ae.base,me)];ae.sub&&Dr.push(wr(ae.sub,me)),ae.sup&&Dr.push(wr(ae.sup,me));var Gr;if(be)Gr=Ke?"mover":"munder";else if(ae.sub)if(ae.sup){var qn=ae.base;qn&&qn.type==="op"&&qn.limits&&me.style===j.DISPLAY||qn&&qn.type==="operatorname"&&qn.alwaysHandleSupSub&&(me.style===j.DISPLAY||qn.limits)?Gr="munderover":Gr="msubsup"}else{var Kn=ae.base;Kn&&Kn.type==="op"&&Kn.limits&&(me.style===j.DISPLAY||Kn.alwaysHandleSupSub)||Kn&&Kn.type==="operatorname"&&Kn.alwaysHandleSupSub&&(Kn.limits||me.style===j.DISPLAY)?Gr="munder":Gr="msub"}else{var fn=ae.base;fn&&fn.type==="op"&&fn.limits&&(me.style===j.DISPLAY||fn.alwaysHandleSupSub)||fn&&fn.type==="operatorname"&&fn.alwaysHandleSupSub&&(fn.limits||me.style===j.DISPLAY)?Gr="mover":Gr="msup"}var Qn=new $n.MathNode(Gr,Dr);return Qn}}),Qt({type:"atom",htmlBuilder:function(ae,me){return fr.mathsym(ae.text,ae.mode,me,["m"+ae.family])},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mo",[gn(ae.text,ae.mode)]);if(ae.family==="bin"){var Ke=Hi(ae,me);Ke==="bold-italic"&&be.setAttribute("mathvariant",Ke)}else ae.family==="punct"?be.setAttribute("separator","true"):(ae.family==="open"||ae.family==="close")&&be.setAttribute("stretchy","false");return be}});var ca={mi:"italic",mn:"normal",mtext:"normal"};Qt({type:"mathord",htmlBuilder:function(ae,me){return fr.makeOrd(ae,me,"mathord")},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mi",[gn(ae.text,ae.mode,me)]),Ke=Hi(ae,me)||"italic";return Ke!==ca[be.type]&&be.setAttribute("mathvariant",Ke),be}}),Qt({type:"textord",htmlBuilder:function(ae,me){return fr.makeOrd(ae,me,"textord")},mathmlBuilder:function(ae,me){var be=gn(ae.text,ae.mode,me),Ke=Hi(ae,me)||"normal",At;return ae.mode==="text"?At=new $n.MathNode("mtext",[be]):/[0-9]/.test(ae.text)?At=new $n.MathNode("mn",[be]):ae.text==="\\prime"?At=new $n.MathNode("mo",[be]):At=new $n.MathNode("mi",[be]),Ke!==ca[At.type]&&At.setAttribute("mathvariant",Ke),At}});var ma={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ka={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Qt({type:"spacing",htmlBuilder:function(ae,me){if(ka.hasOwnProperty(ae.text)){var be=ka[ae.text].className||"";if(ae.mode==="text"){var Ke=fr.makeOrd(ae,me,"textord");return Ke.classes.push(be),Ke}else return fr.makeSpan(["mspace",be],[fr.mathsym(ae.text,ae.mode,me)],me)}else{if(ma.hasOwnProperty(ae.text))return fr.makeSpan(["mspace",ma[ae.text]],[],me);throw new c('Unknown type of space "'+ae.text+'"')}},mathmlBuilder:function(ae,me){var be;if(ka.hasOwnProperty(ae.text))be=new $n.MathNode("mtext",[new $n.TextNode("\xA0")]);else{if(ma.hasOwnProperty(ae.text))return new $n.MathNode("mspace");throw new c('Unknown type of space "'+ae.text+'"')}return be}});var La=function(){var ae=new $n.MathNode("mtd",[]);return ae.setAttribute("width","50%"),ae};Qt({type:"tag",mathmlBuilder:function(ae,me){var be=new $n.MathNode("mtable",[new $n.MathNode("mtr",[La(),new $n.MathNode("mtd",[Bi(ae.body,me)]),La(),new $n.MathNode("mtd",[Bi(ae.tag,me)])])]);return be.setAttribute("width","100%"),be}});var Za={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},eo={"\\textbf":"textbf","\\textmd":"textmd"},Po={"\\textit":"textit","\\textup":"textup"},jo=function(ae,me){var be=ae.font;return be?Za[be]?me.withTextFontFamily(Za[be]):eo[be]?me.withTextFontWeight(eo[be]):me.withTextFontShape(Po[be]):me};yt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ae,me){var be=ae.parser,Ke=ae.funcName,At=me[0];return{type:"text",mode:be.mode,body:tr(At),font:Ke}},htmlBuilder:function(ae,me){var be=jo(ae,me),Ke=Yr(ae.body,be,!0);return fr.makeSpan(["mord","text"],fr.tryCombineChars(Ke),be)},mathmlBuilder:function(ae,me){var be=jo(ae,me);return Bi(ae.body,be)}}),yt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ae,me){var be=ae.parser;return{type:"underline",mode:be.mode,body:me[0]}},htmlBuilder:function(ae,me){var be=ti(ae.body,me),Ke=fr.makeLineSpan("underline-line",me),At=me.fontMetrics().defaultRuleThickness,Gt=fr.makeVList({positionType:"top",positionData:be.height,children:[{type:"kern",size:At},{type:"elem",elem:Ke},{type:"kern",size:3*At},{type:"elem",elem:be}]},me);return fr.makeSpan(["mord","underline"],[Gt],me)},mathmlBuilder:function(ae,me){var be=new $n.MathNode("mo",[new $n.TextNode("\u203E")]);be.setAttribute("stretchy","true");var Ke=new $n.MathNode("munder",[wr(ae.body,me),be]);return Ke.setAttribute("accentunder","true"),Ke}}),yt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ae,me,be){throw new c("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ae,me){for(var be=cs(ae),Ke=[],At=me.havingStyle(me.style.text()),Gt=0;Gt<be.length;Gt++){var Dr=be[Gt];Dr==="~"&&(Dr="\\textasciitilde"),Ke.push(fr.makeSymbol(Dr,"Typewriter-Regular",ae.mode,At,["mord","texttt"]))}return fr.makeSpan(["mord","text"].concat(At.sizingClasses(me)),fr.tryCombineChars(Ke),At)},mathmlBuilder:function(ae,me){var be=new $n.TextNode(cs(ae)),Ke=new $n.MathNode("mtext",[be]);return Ke.setAttribute("mathvariant","monospace"),Ke}});var cs=function(ae){return ae.body.replace(/ /g,ae.star?"\u2423":"\xA0")},Mo=Et,Lo=Mo,Ba=`[ \r
|
|
|
]`,za="\\\\[a-zA-Z@]+",Ta="\\\\[^\uD800-\uDFFF]",ko=""+za+Ba+"*",Qo=new RegExp("^("+za+")"+Ba+"*$"),so="[\u0300-\u036F]",Os=new RegExp(so+"+$"),ho="("+Ba+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(so+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(so+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ko)+("|"+Ta+")"),bo=function(){function vt(me,be){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=me,this.settings=be,this.tokenRegex=new RegExp(ho,"g"),this.catcodes={"%":14}}var ae=vt.prototype;return ae.setCatcode=function(be,Ke){this.catcodes[be]=Ke},ae.lex=function(){var be=this.input,Ke=this.tokenRegex.lastIndex;if(Ke===be.length)return new m("EOF",new w(this,Ke,Ke));var At=this.tokenRegex.exec(be);if(At===null||At.index!==Ke)throw new c("Unexpected character: '"+be[Ke]+"'",new m(be[Ke],new w(this,Ke,Ke+1)));var Gt=At[2]||" ";if(this.catcodes[Gt]===14){var Dr=be.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Dr===-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=Dr+1,this.lex()}var Gr=Gt.match(Qo);return Gr&&(Gt=Gr[1]),new m(Gt,new w(this,Ke,this.tokenRegex.lastIndex))},vt}(),ds=function(){function vt(me,be){me===void 0&&(me={}),be===void 0&&(be={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=be,this.builtins=me,this.undefStack=[]}var ae=vt.prototype;return ae.beginGroup=function(){this.undefStack.push({})},ae.endGroup=function(){if(this.undefStack.length===0)throw new c("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var be=this.undefStack.pop();for(var Ke in be)be.hasOwnProperty(Ke)&&(be[Ke]===void 0?delete this.current[Ke]:this.current[Ke]=be[Ke])},ae.has=function(be){return this.current.hasOwnProperty(be)||this.builtins.hasOwnProperty(be)},ae.get=function(be){return this.current.hasOwnProperty(be)?this.current[be]:this.builtins[be]},ae.set=function(be,Ke,At){if(At===void 0&&(At=!1),At){for(var Gt=0;Gt<this.undefStack.length;Gt++)delete this.undefStack[Gt][be];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][be]=Ke)}else{var Dr=this.undefStack[this.undefStack.length-1];Dr&&!Dr.hasOwnProperty(be)&&(Dr[be]=this.current[be])}this.current[be]=Ke},vt}(),Ho={},zo=Ho;function rn(vt,ae){Ho[vt]=ae}rn("\\@firstoftwo",function(vt){var ae=vt.consumeArgs(2);return{tokens:ae[0],numArgs:0}}),rn("\\@secondoftwo",function(vt){var ae=vt.consumeArgs(2);return{tokens:ae[1],numArgs:0}}),rn("\\@ifnextchar",function(vt){var ae=vt.consumeArgs(3),me=vt.future();return ae[0].length===1&&ae[0][0].text===me.text?{tokens:ae[1],numArgs:0}:{tokens:ae[2],numArgs:0}}),rn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),rn("\\TextOrMath",function(vt){var ae=vt.consumeArgs(2);return vt.mode==="text"?{tokens:ae[0],numArgs:0}:{tokens:ae[1],numArgs:0}});var es={"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};rn("\\char",function(vt){var ae=vt.popToken(),me,be="";if(ae.text==="'")me=8,ae=vt.popToken();else if(ae.text==='"')me=16,ae=vt.popToken();else if(ae.text==="`")if(ae=vt.popToken(),ae.text[0]==="\\")be=ae.text.charCodeAt(1);else{if(ae.text==="EOF")throw new c("\\char` missing argument");be=ae.text.charCodeAt(0)}else me=10;if(me){if(be=es[ae.text],be==null||be>=me)throw new c("Invalid base-"+me+" digit "+ae.text);for(var Ke;(Ke=es[vt.future().text])!=null&&Ke<me;)be*=me,be+=Ke,vt.popToken()}return"\\@char{"+be+"}"});var Js=function(ae,me){var be=ae.consumeArgs(1)[0];if(be.length!==1)throw new c("\\gdef's first argument must be a macro name");var Ke=be[0].text,At=0;for(be=ae.consumeArgs(1)[0];be.length===1&&be[0].text==="#";){if(be=ae.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(At++,parseInt(be[0].text)!==At)throw new c('Argument number "'+be[0].text+'" out of order');be=ae.consumeArgs(1)[0]}return ae.macros.set(Ke,{tokens:be,numArgs:At},me),""};rn("\\gdef",function(vt){return Js(vt,!0)}),rn("\\def",function(vt){return Js(vt,!1)}),rn("\\global",function(vt){var ae=vt.consumeArgs(1)[0];if(ae.length!==1)throw new c("Invalid command after \\global");var me=ae[0].text;if(me==="\\def")return Js(vt,!0);throw new c("Invalid command '"+me+"' after \\global")});var Es=function(ae,me,be){var Ke=ae.consumeArgs(1)[0];if(Ke.length!==1)throw new c("\\newcommand's first argument must be a macro name");var At=Ke[0].text,Gt=ae.isDefined(At);if(Gt&&!me)throw new c("\\newcommand{"+At+"} attempting to redefine "+(At+"; use \\renewcommand"));if(!Gt&&!be)throw new c("\\renewcommand{"+At+"} when command "+At+" does not yet exist; use \\newcommand");var Dr=0;if(Ke=ae.consumeArgs(1)[0],Ke.length===1&&Ke[0].text==="["){for(var Gr="",fn=ae.expandNextToken();fn.text!=="]"&&fn.text!=="EOF";)Gr+=fn.text,fn=ae.expandNextToken();if(!Gr.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+Gr);Dr=parseInt(Gr),Ke=ae.consumeArgs(1)[0]}return ae.macros.set(At,{tokens:Ke,numArgs:Dr}),""};rn("\\newcommand",function(vt){return Es(vt,!1,!0)}),rn("\\renewcommand",function(vt){return Es(vt,!0,!1)}),rn("\\providecommand",function(vt){return Es(vt,!0,!0)}),rn("\\bgroup","{"),rn("\\egroup","}"),rn("\\lq","`"),rn("\\rq","'"),rn("\\aa","\\r a"),rn("\\AA","\\r A"),rn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),rn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),rn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),rn("\u212C","\\mathscr{B}"),rn("\u2130","\\mathscr{E}"),rn("\u2131","\\mathscr{F}"),rn("\u210B","\\mathscr{H}"),rn("\u2110","\\mathscr{I}"),rn("\u2112","\\mathscr{L}"),rn("\u2133","\\mathscr{M}"),rn("\u211B","\\mathscr{R}"),rn("\u212D","\\mathfrak{C}"),rn("\u210C","\\mathfrak{H}"),rn("\u2128","\\mathfrak{Z}"),rn("\\Bbbk","\\Bbb{k}"),rn("\xB7","\\cdotp"),rn("\\llap","\\mathllap{\\textrm{#1}}"),rn("\\rlap","\\mathrlap{\\textrm{#1}}"),rn("\\clap","\\mathclap{\\textrm{#1}}"),rn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),rn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),rn("\\ne","\\neq"),rn("\u2260","\\neq"),rn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),rn("\u2209","\\notin"),rn("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),rn("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),rn("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),rn("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),rn("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),rn("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),rn("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),rn("\u27C2","\\perp"),rn("\u203C","\\mathclose{!\\mkern-0.8mu!}"),rn("\u220C","\\notni"),rn("\u231C","\\ulcorner"),rn("\u231D","\\urcorner"),rn("\u231E","\\llcorner"),rn("\u231F","\\lrcorner"),rn("\xA9","\\copyright"),rn("\xAE","\\textregistered"),rn("\uFE0F","\\textregistered"),rn("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),rn("\u22EE","\\vdots"),rn("\\varGamma","\\mathit{\\Gamma}"),rn("\\varDelta","\\mathit{\\Delta}"),rn("\\varTheta","\\mathit{\\Theta}"),rn("\\varLambda","\\mathit{\\Lambda}"),rn("\\varXi","\\mathit{\\Xi}"),rn("\\varPi","\\mathit{\\Pi}"),rn("\\varSigma","\\mathit{\\Sigma}"),rn("\\varUpsilon","\\mathit{\\Upsilon}"),rn("\\varPhi","\\mathit{\\Phi}"),rn("\\varPsi","\\mathit{\\Psi}"),rn("\\varOmega","\\mathit{\\Omega}"),rn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),rn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),rn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),rn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),rn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),rn("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var gs={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};rn("\\dots",function(vt){var ae="\\dotso",me=vt.expandAfterFuture().text;return me in gs?ae=gs[me]:me.substr(0,4)==="\\not"?ae="\\dotsb":me in Be.math&&(p.contains(["bin","rel"],Be.math[me].group)&&(ae="\\dotsb")),ae});var Ko={")":!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};rn("\\dotso",function(vt){var ae=vt.future().text;return ae in Ko?"\\ldots\\,":"\\ldots"}),rn("\\dotsc",function(vt){var ae=vt.future().text;return ae in Ko&&ae!==","?"\\ldots\\,":"\\ldots"}),rn("\\cdots",function(vt){var ae=vt.future().text;return ae in Ko?"\\@cdots\\,":"\\@cdots"}),rn("\\dotsb","\\cdots"),rn("\\dotsm","\\cdots"),rn("\\dotsi","\\!\\cdots"),rn("\\dotsx","\\ldots\\,"),rn("\\DOTSI","\\relax"),rn("\\DOTSB","\\relax"),rn("\\DOTSX","\\relax"),rn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),rn("\\,","\\tmspace+{3mu}{.1667em}"),rn("\\thinspace","\\,"),rn("\\>","\\mskip{4mu}"),rn("\\:","\\tmspace+{4mu}{.2222em}"),rn("\\medspace","\\:"),rn("\\;","\\tmspace+{5mu}{.2777em}"),rn("\\thickspace","\\;"),rn("\\!","\\tmspace-{3mu}{.1667em}"),rn("\\negthinspace","\\!"),rn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),rn("\\negthickspace","\\tmspace-{5mu}{.277em}"),rn("\\enspace","\\kern.5em "),rn("\\enskip","\\hskip.5em\\relax"),rn("\\quad","\\hskip1em\\relax"),rn("\\qquad","\\hskip2em\\relax"),rn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),rn("\\tag@paren","\\tag@literal{({#1})}"),rn("\\tag@literal",function(vt){if(vt.macros.get("\\df@tag"))throw new c("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),rn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),rn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),rn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),rn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),rn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),rn("\\\\","\\newline"),rn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var hs=ot["Main-Regular"]["T".charCodeAt(0)][1]-.7*ot["Main-Regular"]["A".charCodeAt(0)][1]+"em";rn("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+hs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),rn("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+hs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),rn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),rn("\\@hspace","\\hskip #1\\relax"),rn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),rn("\\ordinarycolon",":"),rn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),rn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),rn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),rn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),rn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),rn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),rn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),rn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),rn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),rn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),rn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),rn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),rn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),rn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),rn("\u2237","\\dblcolon"),rn("\u2239","\\eqcolon"),rn("\u2254","\\coloneqq"),rn("\u2255","\\eqqcolon"),rn("\u2A74","\\Coloneqq"),rn("\\ratio","\\vcentcolon"),rn("\\coloncolon","\\dblcolon"),rn("\\colonequals","\\coloneqq"),rn("\\coloncolonequals","\\Coloneqq"),rn("\\equalscolon","\\eqqcolon"),rn("\\equalscoloncolon","\\Eqqcolon"),rn("\\colonminus","\\coloneq"),rn("\\coloncolonminus","\\Coloneq"),rn("\\minuscolon","\\eqcolon"),rn("\\minuscoloncolon","\\Eqcolon"),rn("\\coloncolonapprox","\\Colonapprox"),rn("\\coloncolonsim","\\Colonsim"),rn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),rn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),rn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),rn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),rn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),rn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),rn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),rn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),rn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),rn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),rn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),rn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),rn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),rn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),rn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),rn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),rn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),rn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),rn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),rn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),rn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),rn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),rn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),rn("\u27E6","\\llbracket"),rn("\u27E7","\\rrbracket"),rn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),rn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),rn("\u2983","\\lBrace"),rn("\u2984","\\rBrace"),rn("\\darr","\\downarrow"),rn("\\dArr","\\Downarrow"),rn("\\Darr","\\Downarrow"),rn("\\lang","\\langle"),rn("\\rang","\\rangle"),rn("\\uarr","\\uparrow"),rn("\\uArr","\\Uparrow"),rn("\\Uarr","\\Uparrow"),rn("\\N","\\mathbb{N}"),rn("\\R","\\mathbb{R}"),rn("\\Z","\\mathbb{Z}"),rn("\\alef","\\aleph"),rn("\\alefsym","\\aleph"),rn("\\Alpha","\\mathrm{A}"),rn("\\Beta","\\mathrm{B}"),rn("\\bull","\\bullet"),rn("\\Chi","\\mathrm{X}"),rn("\\clubs","\\clubsuit"),rn("\\cnums","\\mathbb{C}"),rn("\\Complex","\\mathbb{C}"),rn("\\Dagger","\\ddagger"),rn("\\diamonds","\\diamondsuit"),rn("\\empty","\\emptyset"),rn("\\Epsilon","\\mathrm{E}"),rn("\\Eta","\\mathrm{H}"),rn("\\exist","\\exists"),rn("\\harr","\\leftrightarrow"),rn("\\hArr","\\Leftrightarrow"),rn("\\Harr","\\Leftrightarrow"),rn("\\hearts","\\heartsuit"),rn("\\image","\\Im"),rn("\\infin","\\infty"),rn("\\Iota","\\mathrm{I}"),rn("\\isin","\\in"),rn("\\Kappa","\\mathrm{K}"),rn("\\larr","\\leftarrow"),rn("\\lArr","\\Leftarrow"),rn("\\Larr","\\Leftarrow"),rn("\\lrarr","\\leftrightarrow"),rn("\\lrArr","\\Leftrightarrow"),rn("\\Lrarr","\\Leftrightarrow"),rn("\\Mu","\\mathrm{M}"),rn("\\natnums","\\mathbb{N}"),rn("\\Nu","\\mathrm{N}"),rn("\\Omicron","\\mathrm{O}"),rn("\\plusmn","\\pm"),rn("\\rarr","\\rightarrow"),rn("\\rArr","\\Rightarrow"),rn("\\Rarr","\\Rightarrow"),rn("\\real","\\Re"),rn("\\reals","\\mathbb{R}"),rn("\\Reals","\\mathbb{R}"),rn("\\Rho","\\mathrm{P}"),rn("\\sdot","\\cdot"),rn("\\sect","\\S"),rn("\\spades","\\spadesuit"),rn("\\sub","\\subset"),rn("\\sube","\\subseteq"),rn("\\supe","\\supseteq"),rn("\\Tau","\\mathrm{T}"),rn("\\thetasym","\\vartheta"),rn("\\weierp","\\wp"),rn("\\Zeta","\\mathrm{Z}"),rn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),rn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),rn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),rn("\\blue","\\textcolor{##6495ed}{#1}"),rn("\\orange","\\textcolor{##ffa500}{#1}"),rn("\\pink","\\textcolor{##ff00af}{#1}"),rn("\\red","\\textcolor{##df0030}{#1}"),rn("\\green","\\textcolor{##28ae7b}{#1}"),rn("\\gray","\\textcolor{gray}{#1}"),rn("\\purple","\\textcolor{##9d38bd}{#1}"),rn("\\blueA","\\textcolor{##ccfaff}{#1}"),rn("\\blueB","\\textcolor{##80f6ff}{#1}"),rn("\\blueC","\\textcolor{##63d9ea}{#1}"),rn("\\blueD","\\textcolor{##11accd}{#1}"),rn("\\blueE","\\textcolor{##0c7f99}{#1}"),rn("\\tealA","\\textcolor{##94fff5}{#1}"),rn("\\tealB","\\textcolor{##26edd5}{#1}"),rn("\\tealC","\\textcolor{##01d1c1}{#1}"),rn("\\tealD","\\textcolor{##01a995}{#1}"),rn("\\tealE","\\textcolor{##208170}{#1}"),rn("\\greenA","\\textcolor{##b6ffb0}{#1}"),rn("\\greenB","\\textcolor{##8af281}{#1}"),rn("\\greenC","\\textcolor{##74cf70}{#1}"),rn("\\greenD","\\textcolor{##1fab54}{#1}"),rn("\\greenE","\\textcolor{##0d923f}{#1}"),rn("\\goldA","\\textcolor{##ffd0a9}{#1}"),rn("\\goldB","\\textcolor{##ffbb71}{#1}"),rn("\\goldC","\\textcolor{##ff9c39}{#1}"),rn("\\goldD","\\textcolor{##e07d10}{#1}"),rn("\\goldE","\\textcolor{##a75a05}{#1}"),rn("\\redA","\\textcolor{##fca9a9}{#1}"),rn("\\redB","\\textcolor{##ff8482}{#1}"),rn("\\redC","\\textcolor{##f9685d}{#1}"),rn("\\redD","\\textcolor{##e84d39}{#1}"),rn("\\redE","\\textcolor{##bc2612}{#1}"),rn("\\maroonA","\\textcolor{##ffbde0}{#1}"),rn("\\maroonB","\\textcolor{##ff92c6}{#1}"),rn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),rn("\\maroonD","\\textcolor{##ca337c}{#1}"),rn("\\maroonE","\\textcolor{##9e034e}{#1}"),rn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),rn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),rn("\\purpleC","\\textcolor{##aa87ff}{#1}"),rn("\\purpleD","\\textcolor{##7854ab}{#1}"),rn("\\purpleE","\\textcolor{##543b78}{#1}"),rn("\\mintA","\\textcolor{##f5f9e8}{#1}"),rn("\\mintB","\\textcolor{##edf2df}{#1}"),rn("\\mintC","\\textcolor{##e0e5cc}{#1}"),rn("\\grayA","\\textcolor{##f6f7f7}{#1}"),rn("\\grayB","\\textcolor{##f0f1f2}{#1}"),rn("\\grayC","\\textcolor{##e3e5e6}{#1}"),rn("\\grayD","\\textcolor{##d6d8da}{#1}"),rn("\\grayE","\\textcolor{##babec2}{#1}"),rn("\\grayF","\\textcolor{##888d93}{#1}"),rn("\\grayG","\\textcolor{##626569}{#1}"),rn("\\grayH","\\textcolor{##3b3e40}{#1}"),rn("\\grayI","\\textcolor{##21242c}{#1}"),rn("\\kaBlue","\\textcolor{##314453}{#1}"),rn("\\kaGreen","\\textcolor{##71B307}{#1}");var bs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ws=function(){function vt(me,be,Ke){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=be,this.expansionCount=0,this.feed(me),this.macros=new ds(zo,be.macros),this.mode=Ke,this.stack=[]}var ae=vt.prototype;return ae.feed=function(be){this.lexer=new bo(be,this.settings)},ae.switchMode=function(be){this.mode=be},ae.beginGroup=function(){this.macros.beginGroup()},ae.endGroup=function(){this.macros.endGroup()},ae.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ae.popToken=function(){return this.future(),this.stack.pop()},ae.pushToken=function(be){this.stack.push(be)},ae.pushTokens=function(be){var Ke;(Ke=this.stack).push.apply(Ke,be)},ae.consumeSpaces=function(){for(;;){var be=this.future();if(be.text===" ")this.stack.pop();else break}},ae.consumeArgs=function(be){for(var Ke=[],At=0;At<be;++At){this.consumeSpaces();var Gt=this.popToken();if(Gt.text==="{"){for(var Dr=[],Gr=1;Gr!==0;){var fn=this.popToken();if(Dr.push(fn),fn.text==="{")++Gr;else if(fn.text==="}")--Gr;else if(fn.text==="EOF")throw new c("End of input in macro argument",Gt)}Dr.pop(),Dr.reverse(),Ke[At]=Dr}else{if(Gt.text==="EOF")throw new c("End of input expecting macro argument");Ke[At]=[Gt]}}return Ke},ae.expandOnce=function(){var be=this.popToken(),Ke=be.text,At=this._getExpansion(Ke);if(At==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 Gt=At.tokens;if(At.numArgs){var Dr=this.consumeArgs(At.numArgs);Gt=Gt.slice();for(var Gr=Gt.length-1;Gr>=0;--Gr){var fn=Gt[Gr];if(fn.text==="#"){if(Gr===0)throw new c("Incomplete placeholder at end of macro body",fn);if(fn=Gt[--Gr],fn.text==="#")Gt.splice(Gr+1,1);else if(/^[1-9]$/.test(fn.text)){var Kn;(Kn=Gt).splice.apply(Kn,[Gr,2].concat(Dr[+fn.text-1]))}else throw new c("Not a valid argument number",fn)}}}return this.pushTokens(Gt),Gt},ae.expandAfterFuture=function(){return this.expandOnce(),this.future()},ae.expandNextToken=function(){for(;;){var be=this.expandOnce();if(be instanceof m)if(be.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ae.expandMacro=function(be){if(!this.macros.get(be))return;var Ke=[],At=this.stack.length;for(this.pushToken(new m(be));this.stack.length>At;){var Gt=this.expandOnce();Gt instanceof m&&Ke.push(this.stack.pop())}return Ke},ae.expandMacroAsText=function(be){var Ke=this.expandMacro(be);return Ke&&Ke.map(function(At){return At.text}).join("")},ae._getExpansion=function(be){var Ke=this.macros.get(be);if(Ke==null)return Ke;var At=typeof Ke=="function"?Ke(this):Ke;if(typeof At=="string"){var Gt=0;if(At.indexOf("#")!==-1)for(var Dr=At.replace(/##/g,"");Dr.indexOf("#"+(Gt+1))!==-1;)++Gt;for(var Gr=new bo(At,this.settings),fn=[],Kn=Gr.lex();Kn.text!=="EOF";)fn.push(Kn),Kn=Gr.lex();fn.reverse();var qn={tokens:fn,numArgs:Gt};return qn}return At},ae.isDefined=function(be){return this.macros.has(be)||Lo.hasOwnProperty(be)||Be.math.hasOwnProperty(be)||Be.text.hasOwnProperty(be)||bs.hasOwnProperty(be)},vt}(),qo={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},us={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},_s=function(){function vt(me,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 ws(me,be,this.mode),this.settings=be,this.leftrightDepth=0}var ae=vt.prototype;return ae.expect=function(be,Ke){if(Ke===void 0&&(Ke=!0),this.fetch().text!==be)throw new c("Expected '"+be+"', got '"+this.fetch().text+"'",this.fetch());Ke&&this.consume()},ae.consume=function(){this.nextToken=null},ae.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ae.switchMode=function(be){this.mode=be,this.gullet.switchMode(be)},ae.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},ae.parseExpression=function(be,Ke){for(var At=[];;){this.mode==="math"&&this.consumeSpaces();var Gt=this.fetch();if(vt.endOfExpression.indexOf(Gt.text)!==-1)break;if(Ke&&Gt.text===Ke)break;if(be&&Lo[Gt.text]&&Lo[Gt.text].infix)break;var Dr=this.parseAtom(Ke);if(!Dr)break;At.push(Dr)}return this.mode==="text"&&this.formLigatures(At),this.handleInfixNodes(At)},ae.handleInfixNodes=function(be){for(var Ke=-1,At,Gt=0;Gt<be.length;Gt++){var Dr=en(be[Gt],"infix");if(Dr){if(Ke!==-1)throw new c("only one infix operator per group",Dr.token);Ke=Gt,At=Dr.replaceWith}}if(Ke!==-1&&At){var Gr,fn,Kn=be.slice(0,Ke),qn=be.slice(Ke+1);Kn.length===1&&Kn[0].type==="ordgroup"?Gr=Kn[0]:Gr={type:"ordgroup",mode:this.mode,body:Kn},qn.length===1&&qn[0].type==="ordgroup"?fn=qn[0]:fn={type:"ordgroup",mode:this.mode,body:qn};var Qn;return At==="\\\\abovefrac"?Qn=this.callFunction(At,[Gr,be[Ke],fn],[]):Qn=this.callFunction(At,[Gr,fn],[]),[Qn]}else return be},ae.handleSupSubscript=function(be){var Ke=this.fetch(),At=Ke.text;this.consume();var Gt=this.parseGroup(be,!1,vt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Gt)throw new c("Expected group after '"+At+"'",Ke);return Gt},ae.formatUnsupportedCmd=function(be){for(var Ke=[],At=0;At<be.length;At++)Ke.push({type:"textord",mode:"text",text:be[At]});var Gt={type:"text",mode:this.mode,body:Ke},Dr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Gt]};return Dr},ae.parseAtom=function(be){var Ke=this.parseGroup("atom",!1,null,be);if(this.mode==="text")return Ke;for(var At,Gt;;){this.consumeSpaces();var Dr=this.fetch();if(Dr.text==="\\limits"||Dr.text==="\\nolimits"){var Gr=en(Ke,"op");if(Gr){var fn=Dr.text==="\\limits";Gr.limits=fn,Gr.alwaysHandleSupSub=!0}else if(Gr=en(Ke,"operatorname"),Gr&&Gr.alwaysHandleSupSub){var Kn=Dr.text==="\\limits";Gr.limits=Kn}else throw new c("Limit controls must follow a math operator",Dr);this.consume()}else if(Dr.text==="^"){if(At)throw new c("Double superscript",Dr);At=this.handleSupSubscript("superscript")}else if(Dr.text==="_"){if(Gt)throw new c("Double subscript",Dr);Gt=this.handleSupSubscript("subscript")}else if(Dr.text==="'"){if(At)throw new c("Double superscript",Dr);var qn={type:"textord",mode:this.mode,text:"\\prime"},Qn=[qn];for(this.consume();this.fetch().text==="'";)Qn.push(qn),this.consume();this.fetch().text==="^"&&Qn.push(this.handleSupSubscript("superscript")),At={type:"ordgroup",mode:this.mode,body:Qn}}else break}return At||Gt?{type:"supsub",mode:this.mode,base:Ke,sup:At,sub:Gt}:Ke},ae.parseFunction=function(be,Ke,At){var Gt=this.fetch(),Dr=Gt.text,Gr=Lo[Dr];if(!Gr)return null;if(this.consume(),At!=null&&Gr.greediness<=At)throw new c("Got function '"+Dr+"' with no arguments"+(Ke?" as "+Ke:""),Gt);if(this.mode==="text"&&!Gr.allowedInText)throw new c("Can't use function '"+Dr+"' in text mode",Gt);if(this.mode==="math"&&Gr.allowedInMath===!1)throw new c("Can't use function '"+Dr+"' in math mode",Gt);var fn=this.parseArguments(Dr,Gr),Kn=fn.args,qn=fn.optArgs;return this.callFunction(Dr,Kn,qn,Gt,be)},ae.callFunction=function(be,Ke,At,Gt,Dr){var Gr={funcName:be,parser:this,token:Gt,breakOnTokenText:Dr},fn=Lo[be];if(fn&&fn.handler)return fn.handler(Gr,Ke,At);throw new c("No function handler for "+be)},ae.parseArguments=function(be,Ke){var At=Ke.numArgs+Ke.numOptionalArgs;if(At===0)return{args:[],optArgs:[]};for(var Gt=Ke.greediness,Dr=[],Gr=[],fn=0;fn<At;fn++){var Kn=Ke.argTypes&&Ke.argTypes[fn],qn=fn<Ke.numOptionalArgs,Qn=fn>0&&!qn||fn===0&&!qn&&this.mode==="math",Ei=this.parseGroupOfType("argument to '"+be+"'",Kn,qn,Gt,Qn);if(!Ei){if(qn){Gr.push(null);continue}throw new c("Expected group after '"+be+"'",this.fetch())}(qn?Gr:Dr).push(Ei)}return{args:Dr,optArgs:Gr}},ae.parseGroupOfType=function(be,Ke,At,Gt,Dr){switch(Ke){case"color":return Dr&&this.consumeSpaces(),this.parseColorGroup(At);case"size":return Dr&&this.consumeSpaces(),this.parseSizeGroup(At);case"url":return this.parseUrlGroup(At,Dr);case"math":case"text":return this.parseGroup(be,At,Gt,void 0,Ke,Dr);case"hbox":{var Gr=this.parseGroup(be,At,Gt,void 0,"text",Dr);if(!Gr)return Gr;var fn={type:"styling",mode:Gr.mode,body:[Gr],style:"text"};return fn}case"raw":{if(Dr&&this.consumeSpaces(),At&&this.fetch().text==="{")return null;var Kn=this.parseStringGroup("raw",At,!0);if(Kn)return{type:"raw",mode:"text",string:Kn.text};throw new c("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(be,At,Gt,void 0,void 0,Dr);default:throw new c("Unknown group type as "+be,this.fetch())}},ae.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ae.parseStringGroup=function(be,Ke,At){var Gt=Ke?"[":"{",Dr=Ke?"]":"}",Gr=this.fetch();if(Gr.text!==Gt){if(Ke)return null;if(At&&Gr.text!=="EOF"&&/[^{}[\]]/.test(Gr.text))return this.consume(),Gr}var fn=this.mode;this.mode="text",this.expect(Gt);for(var Kn="",qn=this.fetch(),Qn=0,Ei=qn,Fi;(Fi=this.fetch()).text!==Dr||At&&Qn>0;){switch(Fi.text){case"EOF":throw new c("Unexpected end of input in "+be,qn.range(Ei,Kn));case Gt:Qn++;break;case Dr:Qn--;break}Ei=Fi,Kn+=Ei.text,this.consume()}return this.expect(Dr),this.mode=fn,qn.range(Ei,Kn)},ae.parseRegexGroup=function(be,Ke){var At=this.mode;this.mode="text";for(var Gt=this.fetch(),Dr=Gt,Gr="",fn;(fn=this.fetch()).text!=="EOF"&&be.test(Gr+fn.text);)Dr=fn,Gr+=Dr.text,this.consume();if(Gr==="")throw new c("Invalid "+Ke+": '"+Gt.text+"'",Gt);return this.mode=At,Gt.range(Dr,Gr)},ae.parseColorGroup=function(be){var Ke=this.parseStringGroup("color",be);if(!Ke)return null;var At=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Ke.text);if(!At)throw new c("Invalid color: '"+Ke.text+"'",Ke);var Gt=At[0];return/^[0-9a-f]{6}$/i.test(Gt)&&(Gt="#"+Gt),{type:"color-token",mode:this.mode,color:Gt}},ae.parseSizeGroup=function(be){var Ke,At=!1;if(!be&&this.fetch().text!=="{"?Ke=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Ke=this.parseStringGroup("size",be),!Ke)return null;!be&&Ke.text.length===0&&(Ke.text="0pt",At=!0);var Gt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Ke.text);if(!Gt)throw new c("Invalid size: '"+Ke.text+"'",Ke);var Dr={number:+(Gt[1]+Gt[2]),unit:Gt[3]};if(!Sr(Dr))throw new c("Invalid unit: '"+Dr.unit+"'",Ke);return{type:"size",mode:this.mode,value:Dr,isBlank:At}},ae.parseUrlGroup=function(be,Ke){this.gullet.lexer.setCatcode("%",13);var At=this.parseStringGroup("url",be,!0);if(this.gullet.lexer.setCatcode("%",14),!At)return null;var Gt=At.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Gt}},ae.parseGroup=function(be,Ke,At,Gt,Dr,Gr){var fn=this.mode;Dr&&this.switchMode(Dr),Gr&&this.consumeSpaces();var Kn=this.fetch(),qn=Kn.text,Qn;if(Ke?qn==="[":qn==="{"||qn==="\\begingroup"){this.consume();var Ei=vt.endOfGroup[qn];this.gullet.beginGroup();var Fi=this.parseExpression(!1,Ei),va=this.fetch();this.expect(Ei),this.gullet.endGroup(),Qn={type:"ordgroup",mode:this.mode,loc:w.range(Kn,va),body:Fi,semisimple:qn==="\\begingroup"||void 0}}else if(Ke)Qn=null;else if(Qn=this.parseFunction(Gt,be,At)||this.parseSymbol(),Qn==null&&qn[0]==="\\"&&!bs.hasOwnProperty(qn)){if(this.settings.throwOnError)throw new c("Undefined control sequence: "+qn,Kn);Qn=this.formatUnsupportedCmd(qn),this.consume()}return Dr&&this.switchMode(fn),Qn},ae.formLigatures=function(be){for(var Ke=be.length-1,At=0;At<Ke;++At){var Gt=be[At],Dr=Gt.text;Dr==="-"&&be[At+1].text==="-"&&(At+1<Ke&&be[At+2].text==="-"?(be.splice(At,3,{type:"textord",mode:"text",loc:w.range(Gt,be[At+2]),text:"---"}),Ke-=2):(be.splice(At,2,{type:"textord",mode:"text",loc:w.range(Gt,be[At+1]),text:"--"}),Ke-=1)),(Dr==="'"||Dr==="`")&&be[At+1].text===Dr&&(be.splice(At,2,{type:"textord",mode:"text",loc:w.range(Gt,be[At+1]),text:Dr+Dr}),Ke-=1)}},ae.parseSymbol=function(){var be=this.fetch(),Ke=be.text;if(/^\\verb[^a-zA-Z]/.test(Ke)){this.consume();var At=Ke.slice(5),Gt=At.charAt(0)==="*";if(Gt&&(At=At.slice(1)),At.length<2||At.charAt(0)!==At.slice(-1))throw new c(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return At=At.slice(1,-1),{type:"verb",mode:"text",body:At,star:Gt}}us.hasOwnProperty(Ke[0])&&!Be[this.mode][Ke[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Ke[0]+'" used in math mode',be),Ke=us[Ke[0]]+Ke.substr(1));var Dr=Os.exec(Ke);Dr&&(Ke=Ke.substring(0,Dr.index),Ke==="i"?Ke="\u0131":Ke==="j"&&(Ke="\u0237"));var Gr;if(Be[this.mode][Ke]){this.settings.strict&&this.mode==="math"&&Nt.indexOf(Ke)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Ke[0]+'" used in math mode',be);var fn=Be[this.mode][Ke].group,Kn=w.range(be),qn;if(Ct.hasOwnProperty(fn)){var Qn=fn;qn={type:"atom",mode:this.mode,family:Qn,loc:Kn,text:Ke}}else qn={type:fn,mode:this.mode,loc:Kn,text:Ke};Gr=qn}else if(Ke.charCodeAt(0)>=128)this.settings.strict&&(Y(Ke.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Ke[0]+'" used in math mode',be):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Ke[0]+'"'+(" ("+Ke.charCodeAt(0)+")"),be)),Gr={type:"textord",mode:"text",loc:w.range(be),text:Ke};else return null;if(this.consume(),Dr)for(var Ei=0;Ei<Dr[0].length;Ei++){var Fi=Dr[0][Ei];if(!qo[Fi])throw new c("Unknown accent ' "+Fi+"'",be);var va=qo[Fi][this.mode];if(!va)throw new c("Accent "+Fi+" unsupported in "+this.mode+" mode",be);Gr={type:"accent",mode:this.mode,loc:w.range(be),label:va,isStretchy:!1,isShifty:!0,base:Gr}}return Gr},vt}();_s.endOfExpression=["}","\\endgroup","\\end","\\right","&"],_s.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},_s.SUPSUB_GREEDINESS=1;var vs=function(ae,me){if(!(typeof ae=="string"||ae instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var be=new _s(ae,me);delete be.gullet.macros.current["\\df@tag"];var Ke=be.parse();if(be.gullet.macros.get("\\df@tag")){if(!me.displayMode)throw new c("\\tag works only in display equations");be.gullet.feed("\\df@tag"),Ke=[{type:"tag",mode:"text",body:Ke,tag:be.parse()}]}return Ke},vo=vs,to=function(ae,me,be){me.textContent="";var Ke=It(ae,be).toNode();me.appendChild(Ke)};typeof document!="undefined"&&(document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),to=function(){throw new c("KaTeX doesn't work in quirks mode.")}));var Jo=function(ae,me){var be=It(ae,me).toMarkup();return be},ts=function(ae,me){var be=new g(me);return vo(ae,be)},Ha=function(ae,me,be){if(be.throwOnError||!(ae instanceof c))throw ae;var Ke=fr.makeSpan(["katex-error"],[new Ce(me)]);return Ke.setAttribute("title",ae.toString()),Ke.setAttribute("style","color:"+be.errorColor),Ke},It=function(ae,me){var be=new g(me);try{var Ke=vo(ae,be);return br(Ke,ae,be)}catch(At){return Ha(At,ae,be)}},Vt=function(ae,me){var be=new g(me);try{var Ke=vo(ae,be);return Or(Ke,ae,be)}catch(At){return Ha(At,ae,be)}},hn={version:"0.11.1",render:to,renderToString:Jo,ParseError:c,__parse:ts,__renderToDomTree:It,__renderToHTMLTree:Vt,__setFontMetrics:et,__defineSymbol:ie,__defineMacro:rn,__domTree:{Span:G,Anchor:J,SymbolNode:Ce,SvgNode:Ee,PathNode:le,LineNode:fe}},zn=E.default=hn}]).default})},P2fV:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("Q9mQ"),A=d("+L6B"),w=d("sE09"),m=d.n(w)},P2ho:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.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};B.default=O},P47w:function(H,B,d){var O=d("hydK"),E=O.createElement,C=d("IMiH"),A=d("mFDi"),w=d("Fofx"),m=d("6GrX"),f=d("pzxd"),c=d("dqUG"),o=C.CMD,r=Array.prototype.join,i="none",n=Math.round,e=Math.sin,s=Math.cos,t=Math.PI,a=Math.PI*2,l=180/t,u=1e-4;function h(V){return n(V*1e4)/1e4}function p(V){return V<u&&V>-u}function g(V,z){var Y=z?V.textFill:V.fill;return Y!=null&&Y!==i}function v(V,z){var Y=z?V.textStroke:V.stroke;return Y!=null&&Y!==i}function y(V,z){z&&x(V,"transform","matrix("+r.call(z,",")+")")}function x(V,z,Y){(!Y||Y.type!=="linear"&&Y.type!=="radial")&&V.setAttribute(z,Y)}function T(V,z,Y){V.setAttributeNS("http://www.w3.org/1999/xlink",z,Y)}function S(V,z,Y,$){if(g(z,Y)){var ue=Y?z.textFill:z.fill;ue=ue==="transparent"?i:ue,x(V,"fill",ue),x(V,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else x(V,"fill",i);if(v(z,Y)){var ne=Y?z.textStroke:z.stroke;ne=ne==="transparent"?i:ne,x(V,"stroke",ne);var ge=Y?z.textStrokeWidth:z.lineWidth,Oe=!Y&&z.strokeNoScale?$.getLineScale():1;x(V,"stroke-width",ge/Oe),x(V,"paint-order",Y?"stroke":"fill"),x(V,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var De=z.lineDash;De?(x(V,"stroke-dasharray",z.lineDash.join(",")),x(V,"stroke-dashoffset",n(z.lineDashOffset||0))):x(V,"stroke-dasharray",""),z.lineCap&&x(V,"stroke-linecap",z.lineCap),z.lineJoin&&x(V,"stroke-linejoin",z.lineJoin),z.miterLimit&&x(V,"stroke-miterlimit",z.miterLimit)}else x(V,"stroke",i)}function b(V){for(var z=[],Y=V.data,$=V.len(),ue=0;ue<$;){var ne=Y[ue++],ge="",Oe=0;switch(ne){case o.M:ge="M",Oe=2;break;case o.L:ge="L",Oe=2;break;case o.Q:ge="Q",Oe=4;break;case o.C:ge="C",Oe=6;break;case o.A:var De=Y[ue++],He=Y[ue++],pe=Y[ue++],Ue=Y[ue++],oe=Y[ue++],ee=Y[ue++],Xe=Y[ue++],se=Y[ue++],Q=Math.abs(ee),G=p(Q-a)||(se?ee>=a:-ee>=a),J=ee>0?ee%a:ee%a+a,ve=!1;G?ve=!0:p(Q)?ve=!1:ve=J>=t===!!se;var de=h(De+pe*s(oe)),Ce=h(He+Ue*e(oe));G&&(se?ee=a-1e-4:ee=-a+1e-4,ve=!0,ue===9&&z.push("M",de,Ce));var Ee=h(De+pe*s(oe+ee)),le=h(He+Ue*e(oe+ee));z.push("A",h(pe),h(Ue),n(Xe*l),+ve,+se,Ee,le);break;case o.Z:ge="Z";break;case o.R:var Ee=h(Y[ue++]),le=h(Y[ue++]),fe=h(Y[ue++]),xe=h(Y[ue++]);z.push("M",Ee,le,"L",Ee+fe,le,"L",Ee+fe,le+xe,"L",Ee,le+xe,"L",Ee,le);break}ge&&z.push(ge);for(var Qe=0;Qe<Oe;Qe++)z.push(h(Y[ue++]))}return z.join(" ")}var _={};_.brush=function(V){var z=V.style,Y=V.__svgEl;Y||(Y=E("path"),V.__svgEl=Y),V.path||V.createPathProxy();var $=V.path;if(V.__dirtyPath){$.beginPath(),$.subPixelOptimize=!1,V.buildPath($,V.shape),V.__dirtyPath=!1;var ue=b($);ue.indexOf("NaN")<0&&x(Y,"d",ue)}S(Y,z,!1,V),y(Y,V.transform),z.text!=null?M(V,V.getBoundingRect()):W(V)};var I={};I.brush=function(V){var z=V.style,Y=z.image;if(Y instanceof HTMLImageElement){var $=Y.src;Y=$}if(!Y)return;var ue=z.x||0,ne=z.y||0,ge=z.width,Oe=z.height,De=V.__svgEl;De||(De=E("image"),V.__svgEl=De),Y!==V.__imageSrc&&(T(De,"href",Y),V.__imageSrc=Y),x(De,"width",ge),x(De,"height",Oe),x(De,"x",ue),x(De,"y",ne),y(De,V.transform),z.text!=null?M(V,V.getBoundingRect()):W(V)};var L={},N=new A,D={},R=[],P={left:"start",right:"end",center:"middle",middle:"middle"},M=function(z,Y){var $=z.style,ue=z.transform,ne=z instanceof c||$.transformText;z.__dirty&&f.normalizeTextStyle($,!0);var ge=$.text;if(ge!=null&&(ge+=""),!f.needDrawText(ge,$))return;ge==null&&(ge=""),!ne&&ue&&(N.copy(Y),N.applyTransform(ue),Y=N);var Oe=z.__textSvgEl;Oe||(Oe=E("text"),z.__textSvgEl=Oe);var De=Oe.style,He=$.font||m.DEFAULT_FONT,pe=Oe.__computedFont;He!==Oe.__styleFont&&(De.font=Oe.__styleFont=He,pe=Oe.__computedFont=De.font);var Ue=$.textPadding,oe=$.textLineHeight,ee=z.__textCotentBlock;(!ee||z.__dirtyText)&&(ee=z.__textCotentBlock=m.parsePlainText(ge,pe,Ue,oe,$.truncate));var Xe=ee.outerHeight,se=ee.lineHeight;f.getBoxPosition(D,z,$,Y);var Q=D.baseX,G=D.baseY,J=D.textAlign||"left",ve=D.textVerticalAlign;U(Oe,ne,ue,$,Y,Q,G);var de=m.adjustTextY(G,Xe,ve),Ce=Q,Ee=de;Ue&&(Ce=F(Q,J,Ue),Ee+=Ue[0]),Ee+=se/2,S(Oe,$,!0,z);var le=ee.canCacheByTextString,fe=z.__tspanList||(z.__tspanList=[]),xe=fe.length;if(le&&z.__canCacheByTextString&&z.__text===ge){if(z.__dirtyText&&xe)for(var Qe=0;Qe<xe;++Qe)j(fe[Qe],J,Ce,Ee+Qe*se)}else{z.__text=ge,z.__canCacheByTextString=le;for(var ot=ee.lines,Je=ot.length,Qe=0;Qe<Je;Qe++){var Te=fe[Qe],et=ot[Qe];Te?Te.__zrText!==et&&(Te.innerHTML="",Te.appendChild(document.createTextNode(et))):(Te=fe[Qe]=E("tspan"),Oe.appendChild(Te),Te.appendChild(document.createTextNode(et))),j(Te,J,Ce,Ee+Qe*se)}if(xe>Je){for(;Qe<xe;Qe++)Oe.removeChild(fe[Qe]);fe.length=Je}}};function U(V,z,Y,$,ue,ne,ge){w.identity(R),z&&Y&&w.copy(R,Y);var Oe=$.textRotation;if(ue&&Oe){var De=$.textOrigin;De==="center"?(ne=ue.width/2+ue.x,ge=ue.height/2+ue.y):De&&(ne=De[0]+ue.x,ge=De[1]+ue.y),R[4]-=ne,R[5]-=ge,w.rotate(R,R,Oe),R[4]+=ne,R[5]+=ge}y(V,R)}function F(V,z,Y){return z==="right"?V-Y[1]:z==="center"?V+Y[3]/2-Y[1]/2:V+Y[3]}function j(V,z,Y,$){x(V,"dominant-baseline","middle"),x(V,"text-anchor",P[z]),x(V,"x",Y),x(V,"y",$)}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)},B.path=_,B.image=I,B.text=L},P4Qj:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.removeSensor=B.getSensor=void 0;var O=A(d("chpo")),E=d("FxDU"),C=d("24YM");function A(c){return c&&c.__esModule?c:{default:c}}var w={},m=function(o){var r=o.getAttribute(C.SizeSensorId);if(r&&w[r])return w[r];var i=(0,O.default)();o.setAttribute(C.SizeSensorId,i);var n=(0,E.createSensor)(o);return w[i]=n,n};B.getSensor=m;var f=function(o){var r=o.element.getAttribute(C.SizeSensorId);o.element.removeAttribute(C.SizeSensorId),o.destroy(),r&&w[r]&&delete w[r]};B.removeSensor=f},P5Jw:function(H,B,d){"use strict";var O=d("rHrb"),E=O.CopyToClipboard;E.CopyToClipboard=E,H.exports=E},PArb:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("q1tI"),m=d.n(w),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=function(n,e){var s={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(s[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(s[t[a]]=n[t[a]]);return s},i=function(e){return w.createElement(o.a,null,function(s){var t,a=s.getPrefixCls,l=s.direction,u=e.prefixCls,h=e.type,p=h===void 0?"horizontal":h,g=e.orientation,v=g===void 0?"center":g,y=e.className,x=e.children,T=e.dashed,S=e.plain,b=r(e,["prefixCls","type","orientation","className","children","dashed","plain"]),_=a("divider",u),I=v.length>0?"-".concat(v):v,L=!!x,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"),!!S),A()(t,"".concat(_,"-rtl"),l==="rtl"),t));return w.createElement("div",E()({className:N},b,{role:"separator"}),x&&w.createElement("span",{className:"".concat(_,"-inner-text")},x))})};B.a=i},PD8m:function(H,B){H.exports={name:"memoryStorage",read:O,write:E,each:C,remove:A,clearAll:w};var d={};function O(m){return d[m]}function E(m,f){d[m]=f}function C(m){for(var f in d)d.hasOwnProperty(f)&&m(d[f],f)}function A(m){delete d[m]}function w(m){d={}}},PKem:function(H,B,d){"use strict";d.d(B,"a",function(){return g});var O=d("RIqP"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("pVnL"),m=d.n(w),f=d("lwsE"),c=d.n(f),o=d("W8MJ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d.n(t),l=d("TSYQ"),u=d.n(l),h=d("H84U"),p=function(I,L){var N={};for(var D in I)Object.prototype.hasOwnProperty.call(I,D)&&L.indexOf(D)<0&&(N[D]=I[D]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,D=Object.getOwnPropertySymbols(I);R<D.length;R++)L.indexOf(D[R])<0&&Object.prototype.propertyIsEnumerable.call(I,D[R])&&(N[D[R]]=I[D[R]]);return N},g=t.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function v(I){var L=I.suffixCls,N=I.tagName,D=I.displayName;return function(R){var P;return P=function(M){n()(F,M);var U=s()(F);function F(){var j;return c()(this,F),j=U.apply(this,arguments),j.renderComponent=function(W){var V=W.getPrefixCls,z=j.props.prefixCls,Y=V(L,z);return t.createElement(R,m()({prefixCls:Y,tagName:N},j.props))},j}return r()(F,[{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),F}(t.Component),P.displayName=D,P}}var y=function(L){var N=L.prefixCls,D=L.className,R=L.children,P=L.tagName,M=p(L,["prefixCls","className","children","tagName"]),U=u()(N,D);return t.createElement(P,m()({className:U},M),R)},x=function(I){n()(N,I);var L=s()(N);function N(){var D;return c()(this,N),D=L.apply(this,arguments),D.state={siders:[]},D.renderComponent=function(R){var P,M=R.direction,U=D.props,F=U.prefixCls,j=U.className,W=U.children,V=U.hasSider,z=U.tagName,Y=p(U,["prefixCls","className","children","hasSider","tagName"]),$=u()(F,(P={},A()(P,"".concat(F,"-has-sider"),typeof V=="boolean"?V:D.state.siders.length>0),A()(P,"".concat(F,"-rtl"),M==="rtl"),P),j);return t.createElement(g.Provider,{value:{siderHook:D.getSiderHook()}},t.createElement(z,m()({className:$},Y),W))},D}return r()(N,[{key:"getSiderHook",value:function(){var R=this;return{addSider:function(M){R.setState(function(U){return{siders:[].concat(E()(U.siders),[M])}})},removeSider:function(M){R.setState(function(U){return{siders:U.siders.filter(function(F){return F!==M})}})}}}},{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),N}(t.Component),T=v({suffixCls:"layout",tagName:"section",displayName:"Layout"})(x),S=v({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(y),b=v({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(y),_=v({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(y);T.Header=S,T.Footer=b,T.Content=_,B.b=T},PNag:function(H,B,d){var O=d("bYtY"),E=d("SKnc"),C=d("YH21"),A=d("crZl"),w=d("IwbS"),m=d("OELB"),f=d("72pK"),c=d("y7Aq"),o=d("4NO4"),r=m.linearMap,i=O.each,n=Math.min,e=Math.max,s=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(x,T,S,b){(!b||b.type!=="selectDataRange"||b.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var x=this.visualMapModel,T=this.group;this._orient=x.get("orient"),this._useHandle=x.get("calculable"),this._resetInterval(),this._renderBar(T);var S=x.get("text");this._renderEndsText(T,S,0),this._renderEndsText(T,S,1),this._updateView(!0),this.renderBackground(T),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(T)},_renderEndsText:function(x,T,S){if(!T)return;var b=T[1-S];b=b!=null?b+"":"";var _=this.visualMapModel,I=_.get("textGap"),L=_.itemSize,N=this._shapes.barGroup,D=this._applyTransform([L[0]/2,S===0?-I:L[1]+I],N),R=this._applyTransform(S===0?"bottom":"top",N),P=this._orient,M=this.visualMapModel.textStyleModel;this.group.add(new w.Text({style:{x:D[0],y:D[1],textVerticalAlign:P==="horizontal"?"middle":R,textAlign:P==="horizontal"?R:"center",text:b,textFont:M.getFont(),textFill:M.getTextColor()}}))},_renderBar:function(x){var T=this.visualMapModel,S=this._shapes,b=T.itemSize,_=this._orient,I=this._useHandle,L=c.getItemAlign(T,this.api,b),N=S.barGroup=this._createBarGroup(L);N.add(S.outOfRange=l()),N.add(S.inRange=l(null,I?v(this._orient):null,O.bind(this._dragHandle,this,"all",!1),O.bind(this._dragHandle,this,"all",!0)));var D=T.textStyleModel.getTextRect("\u56FD"),R=e(D.width,D.height);I&&(S.handleThumbs=[],S.handleLabels=[],S.handleLabelPoints=[],this._createHandle(N,0,b,R,_,L),this._createHandle(N,1,b,R,_,L)),this._createIndicator(N,b,R,_),x.add(N)},_createHandle:function(x,T,S,b,_){var I=O.bind(this._dragHandle,this,T,!1),L=O.bind(this._dragHandle,this,T,!0),N=l(u(T,b),v(this._orient),I,L);N.position[0]=S[0],x.add(N);var D=this.visualMapModel.textStyleModel,R=new w.Text({draggable:!0,drift:I,onmousemove:function(U){C.stop(U.event)},ondragend:L,style:{x:0,y:0,text:"",textFont:D.getFont(),textFill:D.getTextColor()}});this.group.add(R);var P=[_==="horizontal"?b/2:b*1.5,_==="horizontal"?T===0?-(b*1.5):b*1.5:T===0?-b/2:b/2],M=this._shapes;M.handleThumbs[T]=N,M.handleLabelPoints[T]=P,M.handleLabels[T]=R},_createIndicator:function(x,T,S,b){var _=l([[0,0]],"move");_.position[0]=T[0],_.attr({invisible:!0,silent:!0}),x.add(_);var I=this.visualMapModel.textStyleModel,L=new w.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(L);var N=[b==="horizontal"?S/2:t+3,0],D=this._shapes;D.indicator=_,D.indicatorLabel=L,D.indicatorLabelPoint=N},_dragHandle:function(x,T,S,b){if(!this._useHandle)return;if(this._dragging=!T,!T){var _=this._applyTransform([S,b],this._shapes.barGroup,!0);this._updateInterval(x,_[1]),this._updateView()}T===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),T?!this._hovering&&this._clearHoverLinkToSeries():g(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[x],!1)},_resetInterval:function(){var x=this.visualMapModel,T=this._dataInterval=x.getSelected(),S=x.getExtent(),b=[0,x.itemSize[1]];this._handleEnds=[r(T[0],S,b,!0),r(T[1],S,b,!0)]},_updateInterval:function(x,T){T=T||0;var S=this.visualMapModel,b=this._handleEnds,_=[0,S.itemSize[1]];f(T,b,_,x,0);var I=S.getExtent();this._dataInterval=[r(b[0],_,I,!0),r(b[1],_,I,!0)]},_updateView:function(x){var T=this.visualMapModel,S=T.getExtent(),b=this._shapes,_=[0,T.itemSize[1]],I=x?_:this._handleEnds,L=this._createBarVisual(this._dataInterval,S,I,"inRange"),N=this._createBarVisual(S,S,_,"outOfRange");b.inRange.setStyle({fill:L.barColor,opacity:L.opacity}).setShape("points",L.barPoints),b.outOfRange.setStyle({fill:N.barColor,opacity:N.opacity}).setShape("points",N.barPoints),this._updateHandle(I,L)},_createBarVisual:function(x,T,S,b){var _={forceState:b,convertOpacityToAlpha:!0},I=this._makeColorGradient(x,_),L=[this.getControllerVisual(x[0],"symbolSize",_),this.getControllerVisual(x[1],"symbolSize",_)],N=this._createBarPoints(S,L);return{barColor:new E(0,0,0,1,I),barPoints:N,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(x,T){var S=100,b=[],_=(x[1]-x[0])/S;b.push({color:this.getControllerVisual(x[0],"color",T),offset:0});for(var I=1;I<S;I++){var L=x[0]+_*I;if(L>x[1])break;b.push({color:this.getControllerVisual(L,"color",T),offset:I/S})}return b.push({color:this.getControllerVisual(x[1],"color",T),offset:1}),b},_createBarPoints:function(x,T){var S=this.visualMapModel.itemSize;return[[S[0]-T[0],x[0]],[S[0],x[0]],[S[0],x[1]],[S[0]-T[1],x[1]]]},_createBarGroup:function(x){var T=this._orient,S=this.visualMapModel.get("inverse");return new w.Group(T==="horizontal"&&!S?{scale:x==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:T==="horizontal"&&S?{scale:x==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:T==="vertical"&&!S?{scale:x==="left"?[1,-1]:[-1,-1]}:{scale:x==="left"?[1,1]:[-1,1]})},_updateHandle:function(x,T){if(!this._useHandle)return;var S=this._shapes,b=this.visualMapModel,_=S.handleThumbs,I=S.handleLabels;i([0,1],function(L){var N=_[L];N.setStyle("fill",T.handlesColor[L]),N.position[1]=x[L];var D=w.applyTransform(S.handleLabelPoints[L],w.getTransform(N,this.group));I[L].setStyle({x:D[0],y:D[1],text:b.formatValueText(this._dataInterval[L]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?L===0?"bottom":"top":"left",S.barGroup)})},this)},_showIndicator:function(x,T,S,b){var _=this.visualMapModel,I=_.getExtent(),L=_.itemSize,N=[0,L[1]],D=r(x,I,N,!0),R=this._shapes,P=R.indicator;if(!P)return;P.position[1]=D,P.attr("invisible",!1),P.setShape("points",h(!!S,b,D,L[1]));var M={convertOpacityToAlpha:!0},U=this.getControllerVisual(x,"color",M);P.setStyle("fill",U);var F=w.applyTransform(R.indicatorLabelPoint,w.getTransform(P,this.group)),j=R.indicatorLabel;j.attr("invisible",!1);var W=this._applyTransform("left",R.barGroup),V=this._orient;j.setStyle({text:(S||"")+_.formatValueText(T),textVerticalAlign:V==="horizontal"?W:"middle",textAlign:V==="horizontal"?"center":W,x:F[0],y:F[1]})},_enableHoverLinkToSeries:function(){var x=this;this._shapes.barGroup.on("mousemove",function(T){if(x._hovering=!0,!x._dragging){var S=x.visualMapModel.itemSize,b=x._applyTransform([T.offsetX,T.offsetY],x._shapes.barGroup,!0,!0);b[1]=n(e(0,b[1]),S[1]),x._doHoverLinkToSeries(b[1],0<=b[0]&&b[0]<=S[0])}}).on("mouseout",function(){x._hovering=!1,!x._dragging&&x._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var x=this.api.getZr();this.visualMapModel.option.hoverLink?(x.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),x.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(x,T){var S=this.visualMapModel,b=S.itemSize;if(!S.option.hoverLink)return;var _=[0,b[1]],I=S.getExtent();x=n(e(_[0],x),_[1]);var L=p(S,I,_),N=[x-L,x+L],D=r(x,_,I,!0),R=[r(N[0],_,I,!0),r(N[1],_,I,!0)];N[0]<_[0]&&(R[0]=-Infinity),N[1]>_[1]&&(R[1]=Infinity),T&&(R[0]===-Infinity?this._showIndicator(D,R[1],"< ",L):R[1]===Infinity?this._showIndicator(D,R[0],"> ",L):this._showIndicator(D,D,"\u2248 ",L));var P=this._hoverLinkDataIndices,M=[];(T||g(S))&&(M=this._hoverLinkDataIndices=S.findTargetDataIndices(R));var U=o.compressBatches(P,M);this._dispatchHighDown("downplay",c.makeHighDownBatch(U[0],S)),this._dispatchHighDown("highlight",c.makeHighDownBatch(U[1],S))},_hoverLinkFromSeriesMouseOver:function(x){var T=x.target,S=this.visualMapModel;if(!T||T.dataIndex==null)return;var b=this.ecModel.getSeriesByIndex(T.seriesIndex);if(!S.isTargetSeries(b))return;var _=b.getData(T.dataType),I=_.get(S.getDataDimension(_),T.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var x=this._shapes;x.indicator&&x.indicator.attr("invisible",!0),x.indicatorLabel&&x.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var x=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(x,this.visualMapModel)),x.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var x=this.api.getZr();x.off("mouseover",this._hoverLinkFromSeriesMouseOver),x.off("mouseout",this._hideIndicator)},_applyTransform:function(x,T,S,b){var _=w.getTransform(T,b?null:this.group);return w[O.isArray(x)?"applyTransform":"transformDirection"](x,_,S)},_dispatchHighDown:function(x,T){T&&T.length&&this.api.dispatchAction({type:x,batch:T})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function l(x,T,S,b){return new w.Polygon({shape:{points:x},draggable:!!S,cursor:T,drift:S,onmousemove:function(_){C.stop(_.event)},ondragend:b})}function u(x,T){return x===0?[[0,0],[T,0],[T,-T]]:[[0,0],[T,0],[T,T]]}function h(x,T,S,b){return x?[[0,-n(T,e(S,0))],[t,0],[0,n(T,e(b-S,0))]]:[[0,0],[5,-5],[5,5]]}function p(x,T,S){var b=s/2,_=x.get("hoverLinkDataSize");return _&&(b=r(_,T,S,!0)/2),b}function g(x){var T=x.get("hoverLinkOnHandle");return!!(T==null?x.get("realtime"):T)}function v(x){return x==="vertical"?"ns-resize":"ew-resize"}var y=a;H.exports=y},PQMj:function(H,B,d){},PSzr:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},PVpz:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.StreamCipher,w=E.algo,m=[],f=[],c=[],o=w.RabbitLegacy=A.extend({_doReset:function(){var n=this._key.words,e=this.cfg.iv,s=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],t=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var a=0;a<4;a++)r.call(this);for(var a=0;a<8;a++)t[a]^=s[a+4&7];if(e){var l=e.words,u=l[0],h=l[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,g=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,v=p>>>16|g&4294901760,y=g<<16|p&65535;t[0]^=p,t[1]^=v,t[2]^=g,t[3]^=y,t[4]^=p,t[5]^=v,t[6]^=g,t[7]^=y;for(var a=0;a<4;a++)r.call(this)}},_doProcessBlock:function(n,e){var s=this._X;r.call(this),m[0]=s[0]^s[5]>>>16^s[3]<<16,m[1]=s[2]^s[7]>>>16^s[5]<<16,m[2]=s[4]^s[1]>>>16^s[7]<<16,m[3]=s[6]^s[3]>>>16^s[1]<<16;for(var t=0;t<4;t++)m[t]=(m[t]<<8|m[t]>>>24)&16711935|(m[t]<<24|m[t]>>>8)&4278255360,n[e+t]^=m[t]},blockSize:128/32,ivSize:64/32});function r(){for(var 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 s=i[e]+n[e],t=s&65535,a=s>>>16,l=((t*t>>>17)+t*a>>>15)+a*a,u=((s&4294901760)*s|0)+((s&65535)*s|0);c[e]=l^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}E.RabbitLegacy=A._createHelper(o)}(),O.RabbitLegacy})},ProS:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("aX58"),A=d("bYtY"),w=d("Qe9p"),m=d("ItGF"),f=d("BPZU"),c=d("H6uX"),o=d("fmMI"),r=d("hD7B"),i=d("IDmD"),n=d("ypgQ"),e=d("+wW9"),s=d("0V0F"),t=d("bLfw"),a=d("T4UG"),l=d("sS/r"),u=d("6Ic6"),h=d("IwbS"),p=d("4NO4"),g=d("iLNv"),v=g.throttle,y=d("/WM3"),x=d("uAnK"),T=d("mYwL"),S=d("af/B"),b=d("xTNl"),_=d("8hn6");d("A1Ka");var I=d("7DRL"),L=A.assert,N=A.each,D=A.isFunction,R=A.isObject,P=t.parseClassType,M="4.8.0",U={zrender:"4.3.1"},F=1,j=1e3,W=800,V=900,z=5e3,Y=1e3,$=1100,ue=2e3,ne=3e3,ge=3500,Oe=4e3,De=5e3,He={PROCESSOR:{FILTER:j,SERIES_FILTER:W,STATISTIC:z},VISUAL:{LAYOUT:Y,PROGRESSIVE_LAYOUT:$,GLOBAL:ue,CHART:ne,POST_CHART_LAYOUT:ge,COMPONENT:Oe,BRUSH:De}},pe="__flagInMainProcess",Ue="__optionUpdated",oe=/^[a-zA-Z0-9_]+$/;function ee(wt,Ut){return function(Sr,hr,gr){if(!Ut&&this._disposed){Ot(this.id);return}Sr=Sr&&Sr.toLowerCase(),c.prototype[wt].call(this,Sr,hr,gr)}}function Xe(){c.call(this)}Xe.prototype.on=ee("on",!0),Xe.prototype.off=ee("off",!0),Xe.prototype.one=ee("one",!0),A.mixin(Xe,c);function se(wt,Ut,Sr){Sr=Sr||{},typeof Ut=="string"&&(Ut=ut[Ut]),this.id,this.group,this._dom=wt;var hr="canvas",gr=this._zr=C.init(wt,{renderer:Sr.renderer||hr,devicePixelRatio:Sr.devicePixelRatio,width:Sr.width,height:Sr.height});this._throttledZrFlush=v(A.bind(gr.flush,gr),17);var Ut=A.clone(Ut);Ut&&e(Ut,!0),this._theme=Ut,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new i;var Jr=this._api=Be(this);function $r(Pn,Dn){return Pn.__prio-Dn.__prio}f(Rt,$r),f(Ne,$r),this._scheduler=new S(this,Jr,Ne,Rt),c.call(this,this._ecEventProcessor=new ie),this._messageCenter=new Xe,this._initEvents(),this.resize=A.bind(this.resize,this),this._pendingActions=[],gr.animation.on("frame",this._onframe,this),xe(gr,this),A.setAsPrimitive(this)}var Q=se.prototype;Q._onframe=function(){if(this._disposed)return;var wt=this._scheduler;if(this[Ue]){var Ut=this[Ue].silent;this[pe]=!0,ve(this),J.update.call(this),this[pe]=!1,this[Ue]=!1,le.call(this,Ut),fe.call(this,Ut)}else if(wt.unfinished){var Sr=F,hr=this._model,gr=this._api;wt.unfinished=!1;do{var Jr=+new Date;wt.performSeriesTasks(hr),wt.performDataProcessorTasks(hr),Ce(this,hr),wt.performVisualTasks(hr),et(this,this._model,gr,"remain"),Sr-=+new Date-Jr}while(Sr>0&&wt.unfinished);wt.unfinished||this._zr.flush()}},Q.getDom=function(){return this._dom},Q.getZr=function(){return this._zr},Q.setOption=function(wt,Ut,Sr){if(this._disposed){Ot(this.id);return}var hr;if(R(Ut)&&(Sr=Ut.lazyUpdate,hr=Ut.silent,Ut=Ut.notMerge),this[pe]=!0,!this._model||Ut){var gr=new n(this._api),Jr=this._theme,$r=this._model=new o;$r.scheduler=this._scheduler,$r.init(null,null,Jr,gr)}this._model.setOption(wt,q),Sr?(this[Ue]={silent:hr},this[pe]=!1):(ve(this),J.update.call(this),this._zr.flush(),this[Ue]=!1,this[pe]=!1,le.call(this,hr),fe.call(this,hr))},Q.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Q.getModel=function(){return this._model},Q.getOption=function(){return this._model&&this._model.getOption()},Q.getWidth=function(){return this._zr.getWidth()},Q.getHeight=function(){return this._zr.getHeight()},Q.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Q.getRenderedCanvas=function(wt){if(!m.canvasSupported)return;wt=wt||{},wt.pixelRatio=wt.pixelRatio||1,wt.backgroundColor=wt.backgroundColor||this._model.get("backgroundColor");var Ut=this._zr;return Ut.painter.getRenderedCanvas(wt)},Q.getSvgDataURL=function(){if(!m.svgSupported)return;var wt=this._zr,Ut=wt.storage.getDisplayList();return A.each(Ut,function(Sr){Sr.stopAnimation(!0)}),wt.painter.toDataURL()},Q.getDataURL=function(wt){if(this._disposed){Ot(this.id);return}wt=wt||{};var Ut=wt.excludeComponents,Sr=this._model,hr=[],gr=this;N(Ut,function($r){Sr.eachComponent({mainType:$r},function(Pn){var Dn=gr._componentsMap[Pn.__viewId];Dn.group.ignore||(hr.push(Dn),Dn.group.ignore=!0)})});var Jr=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(wt).toDataURL("image/"+(wt&&wt.type||"png"));return N(hr,function($r){$r.group.ignore=!1}),Jr},Q.getConnectedDataURL=function(wt){if(this._disposed){Ot(this.id);return}if(!m.canvasSupported)return;var Ut=wt.type==="svg",Sr=this.group,hr=Math.min,gr=Math.max,Jr=Infinity;if(Zr[Sr]){var $r=Jr,Pn=Jr,Dn=-Jr,Zn=-Jr,li=[],Ai=wt&&wt.pixelRatio||1;A.each(or,function(Ye,Ve){if(Ye.group===Sr){var qe=Ut?Ye.getZr().painter.getSvgDom().innerHTML:Ye.getRenderedCanvas(A.clone(wt)),xt=Ye.getDom().getBoundingClientRect();$r=hr(xt.left,$r),Pn=hr(xt.top,Pn),Dn=gr(xt.right,Dn),Zn=gr(xt.bottom,Zn),li.push({dom:qe,left:xt.left,top:xt.top})}}),$r*=Ai,Pn*=Ai,Dn*=Ai,Zn*=Ai;var Ii=Dn-$r,$e=Zn-Pn,Se=A.createCanvas(),Re=C.init(Se,{renderer:Ut?"svg":"canvas"});if(Re.resize({width:Ii,height:$e}),Ut){var je="";return N(li,function(Ye){var Ve=Ye.left-$r,qe=Ye.top-Pn;je+='<g transform="translate('+Ve+","+qe+')">'+Ye.dom+"</g>"}),Re.painter.getSvgRoot().innerHTML=je,wt.connectedBackgroundColor&&Re.painter.setBackgroundColor(wt.connectedBackgroundColor),Re.refreshImmediately(),Re.painter.toDataURL()}else return wt.connectedBackgroundColor&&Re.add(new h.Rect({shape:{x:0,y:0,width:Ii,height:$e},style:{fill:wt.connectedBackgroundColor}})),N(li,function(Ye){var Ve=new h.Image({style:{x:Ye.left*Ai-$r,y:Ye.top*Ai-Pn,image:Ye.dom}});Re.add(Ve)}),Re.refreshImmediately(),Se.toDataURL("image/"+(wt&&wt.type||"png"))}else return this.getDataURL(wt)},Q.convertToPixel=A.curry(G,"convertToPixel"),Q.convertFromPixel=A.curry(G,"convertFromPixel");function G(wt,Ut,Sr){if(this._disposed){Ot(this.id);return}var hr=this._model,gr=this._coordSysMgr.getCoordinateSystems(),Jr;Ut=p.parseFinder(hr,Ut);for(var $r=0;$r<gr.length;$r++){var Pn=gr[$r];if(Pn[wt]&&(Jr=Pn[wt](hr,Ut,Sr))!=null)return Jr}}Q.containPixel=function(wt,Ut){if(this._disposed){Ot(this.id);return}var Sr=this._model,hr;return wt=p.parseFinder(Sr,wt),A.each(wt,function(gr,Jr){Jr.indexOf("Models")>=0&&A.each(gr,function($r){var Pn=$r.coordinateSystem;if(Pn&&Pn.containPoint)hr|=!!Pn.containPoint(Ut);else if(Jr==="seriesModels"){var Dn=this._chartsMap[$r.__viewId];Dn&&Dn.containPoint&&(hr|=Dn.containPoint(Ut,$r))}},this)},this),!!hr},Q.getVisual=function(wt,Ut){var Sr=this._model;wt=p.parseFinder(Sr,wt,{defaultMainType:"series"});var hr=wt.seriesModel,gr=hr.getData(),Jr=wt.hasOwnProperty("dataIndexInside")?wt.dataIndexInside:wt.hasOwnProperty("dataIndex")?gr.indexOfRawIndex(wt.dataIndex):null;return Jr!=null?gr.getItemVisual(Jr,Ut):gr.getVisual(Ut)},Q.getViewOfComponentModel=function(wt){return this._componentsMap[wt.__viewId]},Q.getViewOfSeriesModel=function(wt){return this._chartsMap[wt.__viewId]};var J={prepareAndUpdate:function(wt){ve(this),J.update.call(this,wt)},update:function(wt){var Ut=this._model,Sr=this._api,hr=this._zr,gr=this._coordSysMgr,Jr=this._scheduler;if(!Ut)return;Jr.restoreData(Ut,wt),Jr.performSeriesTasks(Ut),gr.create(Ut,Sr),Jr.performDataProcessorTasks(Ut,wt),Ce(this,Ut),gr.update(Ut,Sr),ot(Ut),Jr.performVisualTasks(Ut,wt),Je(this,Ut,Sr,wt);var $r=Ut.get("backgroundColor")||"transparent";if(m.canvasSupported)hr.setBackgroundColor($r);else{var Pn=w.parse($r);$r=w.stringify(Pn,"rgb"),Pn[3]===0&&($r="transparent")}ze(Ut,Sr)},updateTransform:function(wt){var Ut=this._model,Sr=this,hr=this._api;if(!Ut)return;var gr=[];Ut.eachComponent(function($r,Pn){var Dn=Sr.getViewOfComponentModel(Pn);if(Dn&&Dn.__alive)if(Dn.updateTransform){var Zn=Dn.updateTransform(Pn,Ut,hr,wt);Zn&&Zn.update&&gr.push(Dn)}else gr.push(Dn)});var Jr=A.createHashMap();Ut.eachSeries(function($r){var Pn=Sr._chartsMap[$r.__viewId];if(Pn.updateTransform){var Dn=Pn.updateTransform($r,Ut,hr,wt);Dn&&Dn.update&&Jr.set($r.uid,1)}else Jr.set($r.uid,1)}),ot(Ut),this._scheduler.performVisualTasks(Ut,wt,{setDirty:!0,dirtyMap:Jr}),et(Sr,Ut,hr,wt,Jr),ze(Ut,this._api)},updateView:function(wt){var Ut=this._model;if(!Ut)return;u.markUpdateMethod(wt,"updateView"),ot(Ut),this._scheduler.performVisualTasks(Ut,wt,{setDirty:!0}),Je(this,this._model,this._api,wt),ze(Ut,this._api)},updateVisual:function(wt){J.update.call(this,wt)},updateLayout:function(wt){J.update.call(this,wt)}};function ve(wt){var Ut=wt._model,Sr=wt._scheduler;Sr.restorePipelines(Ut),Sr.prepareStageTasks(),Qe(wt,"component",Ut,Sr),Qe(wt,"chart",Ut,Sr),Sr.plan()}function de(wt,Ut,Sr,hr,gr){var Jr=wt._model;if(!hr){N(wt._componentsViews.concat(wt._chartsViews),Zn);return}var $r={};$r[hr+"Id"]=Sr[hr+"Id"],$r[hr+"Index"]=Sr[hr+"Index"],$r[hr+"Name"]=Sr[hr+"Name"];var Pn={mainType:hr,query:$r};gr&&(Pn.subType=gr);var Dn=Sr.excludeSeriesId;Dn!=null&&(Dn=A.createHashMap(p.normalizeToArray(Dn))),Jr&&Jr.eachComponent(Pn,function(li){(!Dn||Dn.get(li.id)==null)&&Zn(wt[hr==="series"?"_chartsMap":"_componentsMap"][li.__viewId])},wt);function Zn(li){li&&li.__alive&&li[Ut]&&li[Ut](li.__model,Jr,wt._api,Sr)}}Q.resize=function(wt){if(this._disposed){Ot(this.id);return}this._zr.resize(wt);var Ut=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Ut)return;var Sr=Ut.resetOption("media"),hr=wt&&wt.silent;this[pe]=!0,Sr&&ve(this),J.update.call(this),this[pe]=!1,le.call(this,hr),fe.call(this,hr)};function Ce(wt,Ut){var Sr=wt._chartsMap,hr=wt._scheduler;Ut.eachSeries(function(gr){hr.updateStreamModes(gr,Sr[gr.__viewId])})}Q.showLoading=function(wt,Ut){if(this._disposed){Ot(this.id);return}if(R(wt)&&(Ut=wt,wt=""),wt=wt||"default",this.hideLoading(),!Xt[wt])return;var Sr=Xt[wt](this._api,Ut),hr=this._zr;this._loadingFX=Sr,hr.add(Sr)},Q.hideLoading=function(){if(this._disposed){Ot(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Q.makeActionFromEvent=function(wt){var Ut=A.extend({},wt);return Ut.type=Fe[wt.type],Ut},Q.dispatchAction=function(wt,Ut){if(this._disposed){Ot(this.id);return}if(R(Ut)||(Ut={silent:!!Ut}),!X[wt.type])return;if(!this._model)return;if(this[pe]){this._pendingActions.push(wt);return}Ee.call(this,wt,Ut.silent),Ut.flush?this._zr.flush(!0):Ut.flush!==!1&&m.browser.weChat&&this._throttledZrFlush(),le.call(this,Ut.silent),fe.call(this,Ut.silent)};function Ee(wt,Ut){var Sr=wt.type,hr=wt.escapeConnect,gr=X[Sr],Jr=gr.actionInfo,$r=(Jr.update||"update").split(":"),Pn=$r.pop();$r=$r[0]!=null&&P($r[0]),this[pe]=!0;var Dn=[wt],Zn=!1;wt.batch&&(Zn=!0,Dn=A.map(wt.batch,function($e){return $e=A.defaults(A.extend({},$e),wt),$e.batch=null,$e}));var li=[],Ai,Ii=Sr==="highlight"||Sr==="downplay";N(Dn,function($e){Ai=gr.action($e,this._model,this._api),Ai=Ai||A.extend({},$e),Ai.type=Jr.event||Ai.type,li.push(Ai),Ii?de(this,Pn,$e,"series"):$r&&de(this,Pn,$e,$r.main,$r.sub)},this),Pn!=="none"&&!Ii&&!$r&&(this[Ue]?(ve(this),J.update.call(this,wt),this[Ue]=!1):J[Pn].call(this,wt)),Zn?Ai={type:Jr.event||Sr,escapeConnect:hr,batch:li}:Ai=li[0],this[pe]=!1,!Ut&&this._messageCenter.trigger(Ai.type,Ai)}function le(wt){for(var Ut=this._pendingActions;Ut.length;){var Sr=Ut.shift();Ee.call(this,Sr,wt)}}function fe(wt){!wt&&this.trigger("updated")}function xe(wt,Ut){wt.on("rendered",function(){Ut.trigger("rendered"),wt.animation.isFinished()&&!Ut[Ue]&&!Ut._scheduler.unfinished&&!Ut._pendingActions.length&&Ut.trigger("finished")})}Q.appendData=function(wt){if(this._disposed){Ot(this.id);return}var Ut=wt.seriesIndex,Sr=this.getModel(),hr=Sr.getSeriesByIndex(Ut);hr.appendData(wt),this._scheduler.unfinished=!0},Q.on=ee("on",!1),Q.off=ee("off",!1),Q.one=ee("one",!1);function Qe(wt,Ut,Sr,hr){for(var gr=Ut==="component",Jr=gr?wt._componentsViews:wt._chartsViews,$r=gr?wt._componentsMap:wt._chartsMap,Pn=wt._zr,Dn=wt._api,Zn=0;Zn<Jr.length;Zn++)Jr[Zn].__alive=!1;gr?Sr.eachComponent(function(Ii,$e){Ii!=="series"&&li($e)}):Sr.eachSeries(li);function li(Ii){var $e="_ec_"+Ii.id+"_"+Ii.type,Se=$r[$e];if(!Se){var Re=P(Ii.type),je=gr?l.getClass(Re.main,Re.sub):u.getClass(Re.sub);Se=new je,Se.init(Sr,Dn),$r[$e]=Se,Jr.push(Se),Pn.add(Se.group)}Ii.__viewId=Se.__id=$e,Se.__alive=!0,Se.__model=Ii,Se.group.__ecComponentInfo={mainType:Ii.mainType,index:Ii.componentIndex},!gr&&hr.prepareView(Se,Ii,Sr,Dn)}for(var Zn=0;Zn<Jr.length;){var Ai=Jr[Zn];Ai.__alive?Zn++:(!gr&&Ai.renderTask.dispose(),Pn.remove(Ai.group),Ai.dispose(Sr,Dn),Jr.splice(Zn,1),delete $r[Ai.__id],Ai.__id=Ai.group.__ecComponentInfo=null)}}function ot(wt){wt.clearColorPalette(),wt.eachSeries(function(Ut){Ut.clearColorPalette()})}function Je(wt,Ut,Sr,hr){Te(wt,Ut,Sr,hr),N(wt._chartsViews,function(gr){gr.__alive=!1}),et(wt,Ut,Sr,hr),N(wt._chartsViews,function(gr){gr.__alive||gr.remove(Ut,Sr)})}function Te(wt,Ut,Sr,hr,gr){N(gr||wt._componentsViews,function(Jr){var $r=Jr.__model;Jr.render($r,Ut,Sr,hr),Dt($r,Jr)})}function et(wt,Ut,Sr,hr,gr){var Jr=wt._scheduler,$r;Ut.eachSeries(function(Pn){var Dn=wt._chartsMap[Pn.__viewId];Dn.__alive=!0;var Zn=Dn.renderTask;Jr.updatePayload(Zn,hr),gr&&gr.get(Pn.uid)&&Zn.dirty(),$r|=Zn.perform(Jr.getPerformArgs(Zn)),Dn.group.silent=!!Pn.get("silent"),Dt(Pn,Dn),Tt(Pn,Dn)}),Jr.unfinished|=$r,Ct(wt,Ut),x(wt._zr.dom,Ut)}function ze(wt,Ut){N(ht,function(Sr){Sr(wt,Ut)})}var nt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Q._initEvents=function(){N(nt,function(wt){var Ut=function(Sr){var hr=this.getModel(),gr=Sr.target,Jr,$r=wt==="globalout";if($r)Jr={};else if(gr&&gr.dataIndex!=null){var Pn=gr.dataModel||hr.getSeriesByIndex(gr.seriesIndex);Jr=Pn&&Pn.getDataParams(gr.dataIndex,gr.dataType,gr)||{}}else gr&&gr.eventData&&(Jr=A.extend({},gr.eventData));if(Jr){var Dn=Jr.componentType,Zn=Jr.componentIndex;(Dn==="markLine"||Dn==="markPoint"||Dn==="markArea")&&(Dn="series",Zn=Jr.seriesIndex);var li=Dn&&Zn!=null&&hr.getComponent(Dn,Zn),Ai=li&&this[li.mainType==="series"?"_chartsMap":"_componentsMap"][li.__viewId];Jr.event=Sr,Jr.type=wt,this._ecEventProcessor.eventInfo={targetEl:gr,packedEvent:Jr,model:li,view:Ai},this.trigger(wt,Jr)}};Ut.zrEventfulCallAtLast=!0,this._zr.on(wt,Ut,this)},this),N(Fe,function(wt,Ut){this._messageCenter.on(Ut,function(Sr){this.trigger(Ut,Sr)},this)},this)},Q.isDisposed=function(){return this._disposed},Q.clear=function(){if(this._disposed){Ot(this.id);return}this.setOption({series:[]},!0)},Q.dispose=function(){if(this._disposed){Ot(this.id);return}this._disposed=!0,p.setAttribute(this.getDom(),er,"");var wt=this._api,Ut=this._model;N(this._componentsViews,function(Sr){Sr.dispose(Ut,wt)}),N(this._chartsViews,function(Sr){Sr.dispose(Ut,wt)}),this._zr.dispose(),delete or[this.id]},A.mixin(se,c);function Ot(wt){}function Ct(wt,Ut){var Sr=wt._zr,hr=Sr.storage,gr=0;hr.traverse(function(Jr){gr++}),gr>Ut.get("hoverLayerThreshold")&&!m.node&&Ut.eachSeries(function(Jr){if(Jr.preventUsingHoverLayer)return;var $r=wt._chartsMap[Jr.__viewId];$r.__alive&&$r.group.traverse(function(Pn){Pn.useHoverLayer=!0})})}function Tt(wt,Ut){var Sr=wt.get("blendMode")||null;Ut.group.traverse(function(hr){hr.isGroup||hr.style.blend!==Sr&&hr.setStyle("blend",Sr),hr.eachPendingDisplayable&&hr.eachPendingDisplayable(function(gr){gr.setStyle("blend",Sr)})})}function Dt(wt,Ut){var Sr=wt.get("z"),hr=wt.get("zlevel");Ut.group.traverse(function(gr){gr.type!=="group"&&(Sr!=null&&(gr.z=Sr),hr!=null&&(gr.zlevel=hr))})}function Be(wt){var Ut=wt._coordSysMgr;return A.extend(new r(wt),{getCoordinateSystems:A.bind(Ut.getCoordinateSystems,Ut),getComponentByElement:function(Sr){for(;Sr;){var hr=Sr.__ecComponentInfo;if(hr!=null)return wt._model.getComponent(hr.mainType,hr.index);Sr=Sr.parent}}})}function ie(){this.eventInfo}ie.prototype={constructor:ie,normalizeQuery:function(wt){var Ut={},Sr={},hr={};if(A.isString(wt)){var gr=P(wt);Ut.mainType=gr.main||null,Ut.subType=gr.sub||null}else{var Jr=["Index","Name","Id"],$r={name:1,dataIndex:1,dataType:1};A.each(wt,function(Pn,Dn){for(var Zn=!1,li=0;li<Jr.length;li++){var Ai=Jr[li],Ii=Dn.lastIndexOf(Ai);if(Ii>0&&Ii===Dn.length-Ai.length){var $e=Dn.slice(0,Ii);$e!=="data"&&(Ut.mainType=$e,Ut[Ai.toLowerCase()]=Pn,Zn=!0)}}$r.hasOwnProperty(Dn)&&(Sr[Dn]=Pn,Zn=!0),Zn||(hr[Dn]=Pn)})}return{cptQuery:Ut,dataQuery:Sr,otherQuery:hr}},filter:function(wt,Ut,Sr){var hr=this.eventInfo;if(!hr)return!0;var gr=hr.targetEl,Jr=hr.packedEvent,$r=hr.model,Pn=hr.view;if(!$r||!Pn)return!0;var Dn=Ut.cptQuery,Zn=Ut.dataQuery;return li(Dn,$r,"mainType")&&li(Dn,$r,"subType")&&li(Dn,$r,"index","componentIndex")&&li(Dn,$r,"name")&&li(Dn,$r,"id")&&li(Zn,Jr,"name")&&li(Zn,Jr,"dataIndex")&&li(Zn,Jr,"dataType")&&(!Pn.filterForExposedEvent||Pn.filterForExposedEvent(wt,Ut.otherQuery,gr,Jr));function li(Ai,Ii,$e,Se){return Ai[$e]==null||Ii[Se||$e]===Ai[$e]}},afterTrigger:function(){this.eventInfo=null}};var X={},Fe={},Ne=[],q=[],ht=[],Rt=[],ut={},Xt={},or={},Zr={},ar=new Date-0,dr=new Date-0,er="_echarts_instance_";function Ht(wt){var Ut=0,Sr=1,hr=2,gr="__connectUpdateStatus";function Jr($r,Pn){for(var Dn=0;Dn<$r.length;Dn++){var Zn=$r[Dn];Zn[gr]=Pn}}N(Fe,function($r,Pn){wt._messageCenter.on(Pn,function(Dn){if(Zr[wt.group]&&wt[gr]!==Ut){if(Dn&&Dn.escapeConnect)return;var Zn=wt.makeActionFromEvent(Dn),li=[];N(or,function(Ai){Ai!==wt&&Ai.group===wt.group&&li.push(Ai)}),Jr(li,Ut),N(li,function(Ai){Ai[gr]!==Sr&&Ai.dispatchAction(Zn)}),Jr(li,hr)}})})}function dt(wt,Ut,Sr){var hr=gi(wt);if(hr)return hr;var gr=new se(wt,Ut,Sr);return gr.id="ec_"+ar++,or[gr.id]=gr,p.setAttribute(wt,er,gr.id),Ht(gr),gr}function Hr(wt){if(A.isArray(wt)){var Ut=wt;wt=null,N(Ut,function(Sr){Sr.group!=null&&(wt=Sr.group)}),wt=wt||"g_"+dr++,N(Ut,function(Sr){Sr.group=wt})}return Zr[wt]=!0,wt}function dn(wt){Zr[wt]=!1}var Nn=dn;function Vn(wt){typeof wt=="string"?wt=or[wt]:wt instanceof se||(wt=gi(wt)),wt instanceof se&&!wt.isDisposed()&&wt.dispose()}function gi(wt){return or[p.getAttribute(wt,er)]}function bn(wt){return or[wt]}function Mn(wt,Ut){ut[wt]=Ut}function jt(wt){q.push(wt)}function St(wt,Ut){Nt(Ne,wt,Ut,j)}function Ie(wt){ht.push(wt)}function _e(wt,Ut,Sr){typeof Ut=="function"&&(Sr=Ut,Ut="");var hr=R(wt)?wt.type:[wt,wt={event:Ut}][0];wt.event=(wt.event||hr).toLowerCase(),Ut=wt.event,L(oe.test(hr)&&oe.test(Ut)),X[hr]||(X[hr]={action:Sr,actionInfo:wt}),Fe[Ut]=hr}function Le(wt,Ut){i.register(wt,Ut)}function Ze(wt){var Ut=i.get(wt);if(Ut)return Ut.getDimensionsInfo?Ut.getDimensionsInfo():Ut.dimensions.slice()}function it(wt,Ut){Nt(Rt,wt,Ut,Y,"layout")}function ft(wt,Ut){Nt(Rt,wt,Ut,ne,"visual")}function Nt(wt,Ut,Sr,hr,gr){(D(Ut)||R(Ut))&&(Sr=Ut,Ut=hr);var Jr=S.wrapStageHandler(Sr,gr);return Jr.__prio=Ut,Jr.__raw=Sr,wt.push(Jr),Jr}function Ar(wt,Ut){Xt[wt]=Ut}function Mr(wt){return t.extend(wt)}function un(wt){return l.extend(wt)}function Mt(wt){return a.extend(wt)}function at(wt){return u.extend(wt)}function lt(wt){A.$override("createCanvas",wt)}function rr(wt,Ut,Sr){I.registerMap(wt,Ut,Sr)}function Bt(wt){var Ut=I.retrieveMap(wt);return Ut&&Ut[0]&&{geoJson:Ut[0].geoJSON,specialAreas:Ut[0].specialAreas}}ft(ue,y),jt(e),St(V,s),Ar("default",T),_e({type:"highlight",event:"highlight",update:"highlight"},A.noop),_e({type:"downplay",event:"downplay",update:"downplay"},A.noop),Mn("light",b),Mn("dark",_);var _t={};B.version=M,B.dependencies=U,B.PRIORITY=He,B.init=dt,B.connect=Hr,B.disConnect=dn,B.disconnect=Nn,B.dispose=Vn,B.getInstanceByDom=gi,B.getInstanceById=bn,B.registerTheme=Mn,B.registerPreprocessor=jt,B.registerProcessor=St,B.registerPostUpdate=Ie,B.registerAction=_e,B.registerCoordinateSystem=Le,B.getCoordinateSystemDimensions=Ze,B.registerLayout=it,B.registerVisual=ft,B.registerLoading=Ar,B.extendComponentModel=Mr,B.extendComponentView=un,B.extendSeriesModel=Mt,B.extendChartView=at,B.setCanvasCreator=lt,B.registerMap=rr,B.getMap=Bt,B.dataTool=_t;var Kt=d("txkQ");(function(){for(var wt in Kt)Kt.hasOwnProperty(wt)&&(B[wt]=Kt[wt])})()},Pw59:function(H,B,d){"use strict";var O=d("q1tI"),E=d.n(O),C=Object(O.createContext)({});B.a=C},Q7if:function(H,B,d){var O=d("JEkh"),E=O.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});H.exports=E},Q9mQ:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("UADf"),A=d.n(C)},"QB+1":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("Ywus"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},QBsz:function(H,B){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(S,b){var _=new d(2);return S==null&&(S=0),b==null&&(b=0),_[0]=S,_[1]=b,_}function E(S,b){return S[0]=b[0],S[1]=b[1],S}function C(S){var b=new d(2);return b[0]=S[0],b[1]=S[1],b}function A(S,b,_){return S[0]=b,S[1]=_,S}function w(S,b,_){return S[0]=b[0]+_[0],S[1]=b[1]+_[1],S}function m(S,b,_,I){return S[0]=b[0]+_[0]*I,S[1]=b[1]+_[1]*I,S}function f(S,b,_){return S[0]=b[0]-_[0],S[1]=b[1]-_[1],S}function c(S){return Math.sqrt(r(S))}var o=c;function r(S){return S[0]*S[0]+S[1]*S[1]}var i=r;function n(S,b,_){return S[0]=b[0]*_[0],S[1]=b[1]*_[1],S}function e(S,b,_){return S[0]=b[0]/_[0],S[1]=b[1]/_[1],S}function s(S,b){return S[0]*b[0]+S[1]*b[1]}function t(S,b,_){return S[0]=b[0]*_,S[1]=b[1]*_,S}function a(S,b){var _=c(b);return _===0?(S[0]=0,S[1]=0):(S[0]=b[0]/_,S[1]=b[1]/_),S}function l(S,b){return Math.sqrt((S[0]-b[0])*(S[0]-b[0])+(S[1]-b[1])*(S[1]-b[1]))}var u=l;function h(S,b){return(S[0]-b[0])*(S[0]-b[0])+(S[1]-b[1])*(S[1]-b[1])}var p=h;function g(S,b){return S[0]=-b[0],S[1]=-b[1],S}function v(S,b,_,I){return S[0]=b[0]+I*(_[0]-b[0]),S[1]=b[1]+I*(_[1]-b[1]),S}function y(S,b,_){var I=b[0],L=b[1];return S[0]=_[0]*I+_[2]*L+_[4],S[1]=_[1]*I+_[3]*L+_[5],S}function x(S,b,_){return S[0]=Math.min(b[0],_[0]),S[1]=Math.min(b[1],_[1]),S}function T(S,b,_){return S[0]=Math.max(b[0],_[0]),S[1]=Math.max(b[1],_[1]),S}B.create=O,B.copy=E,B.clone=C,B.set=A,B.add=w,B.scaleAndAdd=m,B.sub=f,B.len=c,B.length=o,B.lenSquare=r,B.lengthSquare=i,B.mul=n,B.div=e,B.dot=s,B.scale=t,B.normalize=a,B.distance=l,B.dist=u,B.distanceSquare=h,B.distSquare=p,B.negate=g,B.lerp=v,B.applyTransform=y,B.min=x,B.max=T},"QO+J":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.createSensor=void 0;var O=C(d("NohK")),E=d("24YM");function C(w){return w&&w.__esModule?w:{default:w}}var A=function(m){var f=void 0,c=[],o=function(){getComputedStyle(m).position==="static"&&(m.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",r),r()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",E.SensorClassName),t.setAttribute("tabindex",E.SensorTabIndex),t.type="text/html",m.appendChild(t),t.data="about:blank",t},r=(0,O.default)(function(){c.forEach(function(s){s(m)})}),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:m,bind:i,destroy:n,unbind:e}};B.createSensor=A},"QQZ/":function(H,B,d){var O=d("Sq3C"),E=d("Z1HP"),C=d("Sxd8"),A=d("dt0z");function w(m,f,c){m=A(m),f=C(f);var o=f?E(m):0;return f&&o<f?O(f-o,c)+m:m}H.exports=w},QUw5:function(H,B,d){var O=d("OlYY"),E=O.extend({type:"dataZoom.select"});H.exports=E},QV2g:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=O;function O(){for(var A,w=[],m=0;m<256;m++){A=m;for(var f=0;f<8;f++)A=A&1?3988292384^A>>>1:A>>>1;w[m]=A}return w}var E=O();function C(A,w,m,f){var c=E,o=f+m;A^=-1;for(var r=f;r<o;r++)A=A>>>8^c[(A^w[r])&255];return A^-1}},QbM5:function(H,B,d){},Qe9p:function(H,B,d){var O=d("1RvN"),E={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function C(b){return b=Math.round(b),b<0?0:b>255?255:b}function A(b){return b=Math.round(b),b<0?0:b>360?360:b}function w(b){return b<0?0:b>1?1:b}function m(b){return b.length&&b.charAt(b.length-1)==="%"?C(parseFloat(b)/100*255):C(parseInt(b,10))}function f(b){return b.length&&b.charAt(b.length-1)==="%"?w(parseFloat(b)/100):w(parseFloat(b))}function c(b,_,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?b+(_-b)*I*6:I*2<1?_:I*3<2?b+(_-b)*(2/3-I)*6:b}function o(b,_,I){return b+(_-b)*I}function r(b,_,I,L,N){return b[0]=_,b[1]=I,b[2]=L,b[3]=N,b}function i(b,_){return b[0]=_[0],b[1]=_[1],b[2]=_[2],b[3]=_[3],b}var n=new O(20),e=null;function s(b,_){e&&i(e,_),e=n.put(b,e||_.slice())}function t(b,_){if(!b)return;_=_||[];var I=n.get(b);if(I)return i(_,I);b=b+"";var L=b.replace(/ /g,"").toLowerCase();if(L in E)return i(_,E[L]),s(b,_),_;if(L.charAt(0)==="#"){if(L.length===4){var 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),s(b,_),_}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),s(b,_),_}return}var D=L.indexOf("("),R=L.indexOf(")");if(D!==-1&&R+1===L.length){var P=L.substr(0,D),M=L.substr(D+1,R-(D+1)).split(","),U=1;switch(P){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(_,m(M[0]),m(M[1]),m(M[2]),U),s(b,_),_;case"hsla":if(M.length!==4){r(_,0,0,0,1);return}return M[3]=f(M[3]),a(M,_),s(b,_),_;case"hsl":if(M.length!==3){r(_,0,0,0,1);return}return a(M,_),s(b,_),_;default:return}}r(_,0,0,0,1);return}function a(b,_){var I=(parseFloat(b[0])%360+360)%360/360,L=f(b[1]),N=f(b[2]),D=N<=.5?N*(L+1):N+L-N*L,R=N*2-D;return _=_||[],r(_,C(c(R,D,I+1/3)*255),C(c(R,D,I)*255),C(c(R,D,I-1/3)*255),1),b.length===4&&(_[3]=b[3]),_}function l(b){if(!b)return;var _=b[0]/255,I=b[1]/255,L=b[2]/255,N=Math.min(_,I,L),D=Math.max(_,I,L),R=D-N,P=(D+N)/2,M,U;if(R===0)M=0,U=0;else{P<.5?U=R/(D+N):U=R/(2-D-N);var F=((D-_)/6+R/2)/R,j=((D-I)/6+R/2)/R,W=((D-L)/6+R/2)/R;_===D?M=W-j:I===D?M=1/3+F-W:L===D&&(M=2/3+j-F),M<0&&(M+=1),M>1&&(M-=1)}var V=[M*360,U,P];return b[3]!=null&&V.push(b[3]),V}function u(b,_){var I=t(b);if(I){for(var L=0;L<3;L++)_<0?I[L]=I[L]*(1-_)|0:I[L]=(255-I[L])*_+I[L]|0,I[L]>255?I[L]=255:b[L]<0&&(I[L]=0);return S(I,I.length===4?"rgba":"rgb")}}function h(b){var _=t(b);if(_)return((1<<24)+(_[0]<<16)+(_[1]<<8)+ +_[2]).toString(16).slice(1)}function p(b,_,I){if(!(_&&_.length)||!(b>=0&&b<=1))return;I=I||[];var L=b*(_.length-1),N=Math.floor(L),D=Math.ceil(L),R=_[N],P=_[D],M=L-N;return I[0]=C(o(R[0],P[0],M)),I[1]=C(o(R[1],P[1],M)),I[2]=C(o(R[2],P[2],M)),I[3]=w(o(R[3],P[3],M)),I}var g=p;function v(b,_,I){if(!(_&&_.length)||!(b>=0&&b<=1))return;var L=b*(_.length-1),N=Math.floor(L),D=Math.ceil(L),R=t(_[N]),P=t(_[D]),M=L-N,U=S([C(o(R[0],P[0],M)),C(o(R[1],P[1],M)),C(o(R[2],P[2],M)),w(o(R[3],P[3],M))],"rgba");return I?{color:U,leftIndex:N,rightIndex:D,value:L}:U}var y=v;function x(b,_,I,L){if(b=t(b),b)return b=l(b),_!=null&&(b[0]=A(_)),I!=null&&(b[1]=f(I)),L!=null&&(b[2]=f(L)),S(a(b),"rgba")}function T(b,_){if(b=t(b),b&&_!=null)return b[3]=w(_),S(b,"rgba")}function S(b,_){if(!b||!b.length)return;var I=b[0]+","+b[1]+","+b[2];return(_==="rgba"||_==="hsva"||_==="hsla")&&(I+=","+b[3]),_+"("+I+")"}B.parse=t,B.lift=u,B.toHex=h,B.fastLerp=p,B.fastMapToColor=g,B.lerp=v,B.mapToColor=y,B.modifyHSL=x,B.modifyAlpha=T,B.stringify=S},Qi1f:function(H,B,d){"use strict";d.d(B,"g",function(){return l}),d.d(B,"c",function(){return u}),d.d(B,"a",function(){return p}),d.d(B,"b",function(){return g}),d.d(B,"d",function(){return v}),d.d(B,"e",function(){return y}),d.d(B,"f",function(){return T});var O=d("VTBJ"),E=d("U8pU"),C=d("AJpP"),A=d("q1tI"),w=d.n(A),m=d("Kwbf"),f=d("MNnm"),c="rc-util-key";function o(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=S.mark;return b?b.startsWith("data-")?b:"data-".concat(b):c}function r(S){if(S.attachTo)return S.attachTo;var b=document.querySelector("head");return b||document.body}function i(S){var b,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(f.a)())return null;var I=document.createElement("style");if((b=_.csp)===null||b===void 0?void 0:b.nonce){var L;I.nonce=(L=_.csp)===null||L===void 0?void 0:L.nonce}I.innerHTML=S;var N=r(_),D=N.firstChild;return _.prepend&&N.prepend?N.prepend(I):_.prepend&&D?N.insertBefore(I,D):N.appendChild(I),I}var n=new Map;function e(S){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=r(b);return Array.from(n.get(_).children).find(function(I){return I.tagName==="STYLE"&&I.getAttribute(o(b))===S})}function s(S){var b,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=e(S,_);I==null||((b=I.parentNode)===null||b===void 0)||b.removeChild(I)}function t(S,b){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 D=e(b,_);if(D){var R,P;if(((R=_.csp)===null||R===void 0?void 0:R.nonce)&&D.nonce!==((P=_.csp)===null||P===void 0?void 0:P.nonce)){var M;D.nonce=(M=_.csp)===null||M===void 0?void 0:M.nonce}return D.innerHTML!==S&&(D.innerHTML=S),D}var U=i(S,_);return U.setAttribute(o(_),b),U}var a=d("Pw59");function l(S,b){Object(m.a)(S,"[@ant-design/icons] ".concat(b))}function u(S){return Object(E.a)(S)==="object"&&typeof S.name=="string"&&typeof S.theme=="string"&&(Object(E.a)(S.icon)==="object"||typeof S.icon=="function")}function h(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(S).reduce(function(b,_){var I=S[_];switch(_){case"class":b.className=I,delete b.class;break;default:b[_]=I}return b},{})}function p(S,b,_){return _?w.a.createElement(S.tag,Object(O.a)(Object(O.a)({key:b},h(S.attrs)),_),(S.children||[]).map(function(I,L){return p(I,"".concat(b,"-").concat(S.tag,"-").concat(L))})):w.a.createElement(S.tag,Object(O.a)({key:b},h(S.attrs)),(S.children||[]).map(function(I,L){return p(I,"".concat(b,"-").concat(S.tag,"-").concat(L))}))}function g(S){return Object(C.generate)(S)[0]}function v(S){return S?Array.isArray(S)?S:[S]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},x=`
|
|
|
.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 b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x,_=Object(A.useContext)(a.a),I=_.csp;Object(A.useEffect)(function(){t(b,"@ant-design-icons",{prepend:!0,csp:I})},[])}},Qs3X:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("X+im"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},Qs9O:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},QuXc:function(H,B){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,B,d){var O=d("ProS"),E=d("bYtY"),C=d("ItGF"),A=d("B9fm"),w=d("gvm7"),m=d("7aKB"),f=d("OELB"),c=d("IwbS"),o=d("Ez2D"),r=d("+TT/"),i=d("Qxkt"),n=d("F9bG"),e=d("aX7z"),s=d("/y7N"),t=d("4NO4"),a=t.getTooltipRenderMode,l=E.bind,u=E.each,h=f.parsePercent,p=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),g=O.extendComponentView({type:"tooltip",init:function(_,I){if(C.node)return;var L=_.getComponent("tooltip"),N=L.get("renderMode");this._renderMode=a(N);var D;this._renderMode==="html"?(D=new A(I.getDom(),I,{appendToBody:L.get("appendToBody",!0)}),this._newLine="<br/>"):(D=new w(I),this._newLine=`
|
|
|
`),this._tooltipContent=D},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,l(function(L,N,D){I!=="none"&&(I.indexOf(L)>=0?this._tryShow(N,D):L==="leave"&&this._hide(D))},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 D=y(N,L);this._ticket="";var R=N.dataByCoordSys;if(N.tooltip&&N.x!=null&&N.y!=null){var P=p;P.position=[N.x,N.y],P.update(),P.tooltip=N.tooltip,this._tryShow({offsetX:N.x,offsetY:N.y,target:P},D)}else if(R)this._tryShow({offsetX:N.x,offsetY:N.y,position:N.position,dataByCoordSys:N.dataByCoordSys,tooltipOption:N.tooltipOption},D);else if(N.seriesIndex!=null){if(this._manuallyAxisShowTip(_,I,L,N))return;var M=o(N,I),U=M.point[0],F=M.point[1];U!=null&&F!=null&&this._tryShow({offsetX:U,offsetY:F,position:N.position,target:M.el},D)}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},D))},manuallyHideTip:function(_,I,L,N){var D=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&D.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 D=N.seriesIndex,R=N.dataIndex,P=I.getComponent("axisPointer").coordSysAxesInfo;if(D==null||R==null||P==null)return;var M=I.getSeriesByIndex(D);if(!M)return;var U=M.getData(),_=v([U.getItemModel(R),M,(M.coordinateSystem||{}).model,_]);return _.get("trigger")!=="axis"?void 0:(L.dispatchAction({type:"updateAxisPointer",seriesIndex:D,dataIndex:R,position:N.position}),!0)},_tryShow:function(_,I){var L=_.target,N=this._tooltipModel;if(!N)return;this._lastX=_.offsetX,this._lastY=_.offsetY;var D=_.dataByCoordSys;D&&D.length?this._showAxisTooltip(D,_):L&&L.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(_,L,I)):L&&L.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(_,L,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(_,I){var L=_.get("showDelay");I=E.bind(I,this),clearTimeout(this._showTimout),L>0?this._showTimout=setTimeout(I,L):I()},_showAxisTooltip:function(_,I){var L=this._ecModel,N=this._tooltipModel,D=[I.offsetX,I.offsetY],R=[],P=[],M=v([I.tooltipOption,N]),U=this._renderMode,F=this._newLine,j={};u(_,function(V){u(V.dataByAxis,function(z){var Y=L.getComponent(z.axisDim+"Axis",z.axisIndex),$=z.value,ue=[];if(!Y||$==null)return;var ne=s.getValueLabel($,Y.axis,L,z.seriesDataIndices,z.valueLabelOpt);E.each(z.seriesDataIndices,function(Oe){var De=L.getSeriesByIndex(Oe.seriesIndex),He=Oe.dataIndexInside,pe=De&&De.getDataParams(He);if(pe.axisDim=z.axisDim,pe.axisIndex=z.axisIndex,pe.axisType=z.axisType,pe.axisId=z.axisId,pe.axisValue=e.getAxisRawValue(Y.axis,$),pe.axisValueLabel=ne,pe){P.push(pe);var Ue=De.formatTooltip(He,!0,null,U),oe;if(E.isObject(Ue)){oe=Ue.html;var ee=Ue.markers;E.merge(j,ee)}else oe=Ue;ue.push(oe)}});var ge=ne;U!=="html"?R.push(ue.join(F)):R.push((ge?m.encodeHTML(ge)+F:"")+ue.join(F))})},this),R.reverse(),R=R.join(this._newLine+this._newLine);var W=I.position;this._showOrMove(M,function(){this._updateContentNotChangedOnAxis(_)?this._updatePosition(M,W,D[0],D[1],this._tooltipContent,P):this._showTooltipContent(M,R,P,Math.random(),D[0],D[1],W,void 0,j)})},_showSeriesItemTooltip:function(_,I,L){var N=this._ecModel,D=I.seriesIndex,R=N.getSeriesByIndex(D),P=I.dataModel||R,M=I.dataIndex,U=I.dataType,F=P.getData(U),j=v([F.getItemModel(M),P,R&&(R.coordinateSystem||{}).model,this._tooltipModel]),W=j.get("trigger");if(W!=null&&W!=="item")return;var V=P.getDataParams(M,U),z=P.formatTooltip(M,!1,U,this._renderMode),Y,$;E.isObject(z)?(Y=z.html,$=z.markers):(Y=z,$=null);var ue="item_"+P.name+"_"+M;this._showOrMove(j,function(){this._showTooltipContent(j,Y,V,ue,_.offsetX,_.offsetY,_.position,_.target,$)}),L({type:"showTip",dataIndexInside:M,dataIndex:F.getRawIndex(M),seriesIndex:D,from:this.uid})},_showComponentItemTooltip:function(_,I,L){var N=I.tooltip;if(typeof N=="string"){var D=N;N={content:D,formatter:D}}var R=new i(N,this._tooltipModel,this._ecModel),P=R.get("content"),M=Math.random();this._showOrMove(R,function(){this._showTooltipContent(R,P,R.get("formatterParams")||{},M,_.offsetX,_.offsetY,_.position,I)}),L({type:"showTip",from:this.uid})},_showTooltipContent:function(_,I,L,N,D,R,P,M,U){if(this._ticket="",!_.get("showContent")||!_.get("show"))return;var F=this._tooltipContent,j=_.get("formatter");P=P||_.get("position");var W=I;if(j&&typeof j=="string")W=m.formatTpl(j,L,!0);else if(typeof j=="function"){var V=l(function(z,Y){z===this._ticket&&(F.setContent(Y,U,_),this._updatePosition(_,P,D,R,F,L,M))},this);this._ticket=N,W=j(L,N,V)}F.setContent(W,U,_),F.show(_),this._updatePosition(_,P,D,R,F,L,M)},_updatePosition:function(_,I,L,N,D,R,P){var M=this._api.getWidth(),U=this._api.getHeight();I=I||_.get("position");var F=D.getSize(),j=_.get("align"),W=_.get("verticalAlign"),V=P&&P.getBoundingRect().clone();if(P&&V.applyTransform(P.transform),typeof I=="function"&&(I=I([L,N],R,D.el,V,{viewSize:[M,U],contentSize:F.slice()})),E.isArray(I))L=h(I[0],M),N=h(I[1],U);else if(E.isObject(I)){I.width=F[0],I.height=F[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"&&P){var Y=S(I,V,F);L=Y[0],N=Y[1]}else{var Y=x(L,N,D,M,U,j?null:20,W?null:20);L=Y[0],N=Y[1]}if(j&&(L-=b(j)?F[0]/2:j==="right"?F[0]:0),W&&(N-=b(W)?F[1]/2:W==="bottom"?F[1]:0),_.get("confine")){var Y=T(L,N,D,M,U);L=Y[0],N=Y[1]}D.moveTo(L,N)},_updateContentNotChangedOnAxis:function(_){var I=this._lastDataByCoordSys,L=!!I&&I.length===_.length;return L&&u(I,function(N,D){var R=N.dataByAxis||{},P=_[D]||{},M=P.dataByAxis||[];L&=R.length===M.length,L&&u(R,function(U,F){var j=M[F]||{},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,Y){var $=V[Y];L&=z.seriesIndex===$.seriesIndex&&z.dataIndex===$.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||E.bind(I.dispatchAction,I)}function x(_,I,L,N,D,R,P){var M=L.getOuterSize(),U=M.width,F=M.height;return R!=null&&(_+U+R>N?_-=U+R:_+=R),P!=null&&(I+F+P>D?I-=F+P:I+=P),[_,I]}function T(_,I,L,N,D){var R=L.getOuterSize(),P=R.width,M=R.height;return _=Math.min(_+P,N)-P,I=Math.min(I+M,D)-M,_=Math.max(_,0),I=Math.max(I,0),[_,I]}function S(_,I,L){var N=L[0],D=L[1],R=5,P=0,M=0,U=I.width,F=I.height;switch(_){case"inside":P=I.x+U/2-N/2,M=I.y+F/2-D/2;break;case"top":P=I.x+U/2-N/2,M=I.y-D-R;break;case"bottom":P=I.x+U/2-N/2,M=I.y+F+R;break;case"left":P=I.x-N-R,M=I.y+F/2-D/2;break;case"right":P=I.x+U+R,M=I.y+F/2-D/2}return[P,M]}function b(_){return _==="center"||_==="middle"}H.exports=g},Qxkt:function(H,B,d){var O=d("bYtY"),E=d("ItGF"),C=d("4NO4"),A=C.makeInner,w=d("Yl7c"),m=w.enableClassExtend,f=w.enableClassCheck,c=d("OQFs"),o=d("m9t5"),r=d("/iHx"),i=d("VR9l"),n=O.mixin,e=A();function s(u,h,p){this.parentModel=h,this.ecModel=p,this.option=u}s.prototype={constructor:s,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,g=p==null?p:p[u],v=!h&&a(this,u);return g==null&&v&&(g=v.getShallow(u)),g},getModel:function(u,h){var p=u==null?this.option:t(this.option,u=this.parsePath(u)),g;return h=h||(g=a(this,u))&&g.getModel(u),new s(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(!E.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function t(u,h,p){for(var g=0;g<h.length;g++){if(!h[g])continue;if(u=u&&typeof u=="object"?u[h[g]]: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}m(s),f(s),n(s,c),n(s,o),n(s,r),n(s,i);var l=s;H.exports=l},QyFq:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},QzjZ:function(H,B,d){var O=d("S/Yl"),E=d("IDmD");function C(A,w){var m=[];return A.eachComponent("singleAxis",function(f,c){var o=new O(f,A,w);o.name="single_"+c,o.resize(f,w),f.coordinateSystem=o,m.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}}),m}E.register("single",{create:C,dimensions:O.prototype.dimensions})},R4Th:function(H,B,d){var O=d("ProS"),E=d("9wZj"),C=d("yO87"),A=d("Fofx"),w=d("h8O9"),m=O.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new E(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=w().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=m},R9oj:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("pwpV"),A=d.n(C)},RBEP:function(H,B,d){for(var O=d("ProS"),E=d("VaxA"),C=function(){},A=["treemapZoomToNode","treemapRender","treemapMove"],w=0;w<A.length;w++)O.registerAction({type:A[w],update:"updateView"},C);O.registerAction({type:"treemapRootToNode",update:"updateView"},function(m,f){f.eachComponent({mainType:"series",subType:"treemap",query:m},c);function c(o,r){var i=["treemapZoomToNode","treemapRootToNode"],n=E.retrieveTargetInfo(m,i,o);if(n){var e=o.getViewRoot();e&&(m.direction=E.aboveViewRoot(e,n.node)?"rollUp":"drillDown"),o.resetViewRoot(n.node)}}})},RCxd:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="ExclamationCircleOutlined";var f=B.a=E.forwardRef(m)},RDYZ:function(H,B,d){var O=d("dMvE");function E(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}E.prototype={constructor:E,step:function(w,m){if(this._initialized||(this._startTime=w+this._delay,this._initialized=!0),this._paused){this._pausedTime+=m;return}var f=(w-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(w),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(w){var m=(w-this._startTime-this._pausedTime)%this._life;this._startTime=w-m+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(w,m){w="on"+w,this[w]&&this[w](this._target,m)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var C=E;H.exports=C},RELg:function(H,B,d){var O=d("MFOe"),E=O.Global;H.exports={name:"oldIE-userDataStorage",write:f,read:c,each:o,remove:r,clearAll:i};var C="storejs",A=E.document,w=s(),m=(E.navigator?E.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function f(t,a){if(m)return;var l=e(t);w(function(u){u.setAttribute(l,a),u.save(C)})}function c(t){if(m)return;var a=e(t),l=null;return w(function(u){l=u.getAttribute(a)}),l}function o(t){w(function(a){for(var l=a.XMLDocument.documentElement.attributes,u=l.length-1;u>=0;u--){var h=l[u];t(a.getAttribute(h.name),h.name)}})}function r(t){var a=e(t);w(function(l){l.removeAttribute(a),l.save(C)})}function i(){w(function(t){var a=t.XMLDocument.documentElement.attributes;t.load(C);for(var l=a.length-1;l>=0;l--)t.removeAttribute(a[l].name);t.save(C)})}var n=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(t){return t.replace(/^\d/,"___$&").replace(n,"___")}function s(){if(!A||!A.documentElement||!A.documentElement.addBehavior)return null;var t="script",a,l,u;try{l=new ActiveXObject("htmlfile"),l.open(),l.write("<"+t+">document.w=window</"+t+'><iframe src="/favicon.ico"></iframe>'),l.close(),a=l.w.frames[0].document,u=a.createElement("div")}catch(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,B,d){var O=d("ProS"),E=d("VaxA"),C="sunburstRootToNode";O.registerAction({type:C,update:"updateView"},function(m,f){f.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(o,r){var i=E.retrieveTargetInfo(m,[C],o);if(i){var n=o.getViewRoot();n&&(m.direction=E.aboveViewRoot(n,i.node)?"rollUp":"drillDown"),o.resetViewRoot(i.node)}}});var A="sunburstHighlight";O.registerAction({type:A,update:"updateView"},function(m,f){f.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(o,r){var i=E.retrieveTargetInfo(m,[A],o);i&&(m.highlight=i.node)}});var w="sunburstUnhighlight";O.registerAction({type:w,update:"updateView"},function(m,f){f.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(o,r){m.unhighlight=!0}})},RSch:function(H,B,d){var O=d("IwbS"),E=d("bYtY");function C(m,f,c){O.Group.call(this),this._createPolyline(m,f,c)}var A=C.prototype;A._createPolyline=function(m,f,c){var o=m.getItemLayout(f),r=new O.Polyline({shape:{points:o}});this.add(r),this._updateCommonStl(m,f,c)},A.updateData=function(m,f,c){var o=m.hostModel,r=this.childAt(0),i={shape:{points:m.getItemLayout(f)}};O.updateProps(r,i,o,f),this._updateCommonStl(m,f,c)},A._updateCommonStl=function(m,f,c){var o=this.childAt(0),r=m.getItemModel(f),i=m.getItemVisual(f,"color"),n=c&&c.lineStyle,e=c&&c.hoverLineStyle;(!c||m.hasItemOption)&&(n=r.getModel("lineStyle").getLineStyle(),e=r.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(E.defaults({strokeNoScale:!0,fill:"none",stroke:i},n)),o.hoverStyle=e,O.setHoverStyle(this)},A.updateLayout=function(m,f){var c=this.childAt(0);c.setShape("points",m.getItemLayout(f))},E.inherits(C,O.Group);var w=C;H.exports=w},RXMa:function(H,B,d){var O=d("y+Vt"),E=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(A,w){var m=w.cx,f=w.cy,c=Math.PI*2;A.moveTo(m+w.r,f),A.arc(m,f,w.r,0,c,!1),A.moveTo(m+w.r0,f),A.arc(m,f,w.r0,0,c,!0)}});H.exports=E},RZPm:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("JgUQ")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="FileOutlined";var c=A.forwardRef(f);B.default=c},RlCK:function(H,B,d){var O=d("ProS"),E=d("bYtY");function C(A,w,m){var f={},c=A==="toggleSelected",o;return m.eachComponent("legend",function(r){c&&o!=null?r[o?"select":"unSelect"](w.name):A==="allSelect"||A==="inverseSelect"?r[A]():(r[A](w.name),o=r.isSelected(w.name));var i=r.getData();E.each(i,function(n){var e=n.get("name");if(e===`
|
|
|
`||e==="")return;var s=r.isSelected(e);f.hasOwnProperty(e)?f[e]=f[e]&&s:f[e]=s})}),A==="allSelect"||A==="inverseSelect"?{selected:f}:{name:w.name,selected:f}}O.registerAction("legendToggleSelect","legendselectchanged",E.curry(C,"toggleSelected")),O.registerAction("legendAllSelect","legendselectall",E.curry(C,"allSelect")),O.registerAction("legendInverseSelect","legendinverseselect",E.curry(C,"inverseSelect")),O.registerAction("legendSelect","legendselected",E.curry(C,"select")),O.registerAction("legendUnSelect","legendunselected",E.curry(C,"unSelect"))},RotF:function(H,B,d){H.exports=d("LSTS")},Rx6q:function(H,B){function d(O){var E=O.getRect(),C=O.getRangeInfo();return{coordSys:{type:"calendar",x:E.x,y:E.y,width:E.width,height:E.height,cellWidth:O.getCellWidth(),cellHeight:O.getCellHeight(),rangeInfo:{start:C.start,end:C.end,weeks:C.weeks,dayCount:C.allDay}},api:{coord:function(A,w){return O.dataToPoint(A,w)}}}}H.exports=d},"S/Yl":function(H,B,d){var O=d("Zvw2"),E=d("aX7z"),C=d("+TT/"),A=C.getLayoutRect,w=d("bYtY"),m=w.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,E.createScaleByModel(o),[0,0],o.get("type"),o.get("position")),s=e.type==="category";e.onBand=s&&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();m(n.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(n,e)},this),E.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(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(s){return s+r}:function(s){return n-s+r},o.toLocalCoord=e?function(s){return s-r}:function(s){return n-s+r}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(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,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.OFB=function(){var E=O.lib.BlockCipherMode.extend(),C=E.Encryptor=E.extend({processBlock:function(w,m){var 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++)w[m+i]^=r[i]}});return E.Decryptor=C,E}(),O.mode.OFB})},"SA+Z":function(H,B,d){var O=d("wTVA"),E=d("EbDI"),C=d("ZhPi"),A=d("wkBT");function w(m){return O(m)||E(m)||C(m)||A()}H.exports=w,H.exports.__esModule=!0,H.exports.default=H.exports},"SA4+":function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("IwbS"),w=d("zYTA"),m=d("bYtY");function f(i,n,e){var s=i[1]-i[0];n=m.map(n,function(l){return{interval:[(l.interval[0]-i[0])/s,(l.interval[1]-i[0])/s]}});var t=n.length,a=0;return function(l){for(var u=a;u<t;u++){var h=n[u].interval;if(h[0]<=l&&l<=h[1]){a=u;break}}if(u===t)for(var u=a-1;u>=0;u--){var h=n[u].interval;if(h[0]<=l&&l<=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(s){return s>=n[0]&&s<=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 s;n.eachComponent("visualMap",function(a){a.eachTargetSeries(function(l){l===i&&(s=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,s,e)},incrementalPrepareRender:function(i,n,e){this.group.removeAll()},incrementalRender:function(i,n,e,s){var t=n.coordinateSystem;t&&this._renderOnCartesianAndCalendar(n,s,i.start,i.end,!0)},_renderOnCartesianAndCalendar:function(i,n,e,s,t){var a=i.coordinateSystem,l,u;if(a.type==="cartesian2d"){var h=a.getAxis("x"),p=a.getAxis("y");l=h.getBandWidth(),u=p.getBandWidth()}for(var g=this.group,v=i.getData(),y="itemStyle",x="emphasis.itemStyle",T="label",S="emphasis.label",b=i.getModel(y).getItemStyle(["color"]),_=i.getModel(x).getItemStyle(),I=i.getModel(T),L=i.getModel(S),N=a.type,D=N==="cartesian2d"?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],R=e;R<s;R++){var P;if(N==="cartesian2d"){if(isNaN(v.get(D[2],R)))continue;var M=a.dataToPoint([v.get(D[0],R),v.get(D[1],R)]);P=new A.Rect({shape:{x:Math.floor(Math.round(M[0])-l/2),y:Math.floor(Math.round(M[1])-u/2),width:Math.ceil(l),height:Math.ceil(u)},style:{fill:v.getItemVisual(R,"color"),opacity:v.getItemVisual(R,"opacity")}})}else{if(isNaN(v.get(D[1],R)))continue;P=new A.Rect({z2:1,shape:a.dataToRect([v.get(D[0],R)]).contentShape,style:{fill:v.getItemVisual(R,"color"),opacity:v.getItemVisual(R,"opacity")}})}var U=v.getItemModel(R);v.hasItemOption&&(b=U.getModel(y).getItemStyle(["color"]),_=U.getModel(x).getItemStyle(),I=U.getModel(T),L=U.getModel(S));var F=i.getRawValue(R),j="-";F&&F[2]!=null&&(j=F[2]),A.setLabelStyle(b,_,I,L,{labelFetcher:i,labelDataIndex:R,defaultText:j,isRectText:!0}),P.setStyle(b),A.setHoverStyle(P,v.hasItemOption?_:m.extend({},_)),P.incremental=t,t&&(P.useHoverLayer=!0),g.add(P),v.setItemGraphicEl(R,P)}},_renderOnGeo:function(i,n,e,s){var t=e.targetVisuals.inRange,a=e.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new w;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var h=i.getViewRect().clone(),p=i.getRoamTransform();h.applyTransform(p);var g=Math.max(h.x,0),v=Math.max(h.y,0),y=Math.min(h.width+h.x,s.getWidth()),x=Math.min(h.height+h.y,s.getHeight()),T=y-g,S=x-v,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(D,R,P){var M=i.dataToPoint([D,R]);return M[0]-=g,M[1]-=v,M.push(P),M}),I=e.getExtent(),L=e.type==="visualMap.continuous"?c(I,e.option.range):f(I,e.getPieceList(),e.option.selected);u.update(_,T,S,t.color.getNormalizer(),{inRange:t.color.getColorMapper(),outOfRange:a.color.getColorMapper()},L);var N=new A.Image({style:{width:T,height:S,x:g,y:v,image:u.canvas},silent:!0});this.group.add(N)},dispose:function(){}});H.exports=r},SA8n:function(H,B,d){var O=d("Sj9i"),E=d("QBsz"),C=d("U/Mo"),A=C.getSymbolSize,w=[],m=[],f=[],c=O.quadraticAt,o=E.distSquare,r=Math.abs;function i(e,s,t){for(var a=e[0],l=e[1],u=e[2],h=Infinity,p,g=t*t,v=.1,y=.1;y<=.9;y+=.1){w[0]=c(a[0],l[0],u[0],y),w[1]=c(a[1],l[1],u[1],y);var x=r(o(w,s)-g);x<h&&(h=x,p=y)}for(var T=0;T<32;T++){var S=p+v;m[0]=c(a[0],l[0],u[0],p),m[1]=c(a[1],l[1],u[1],p),f[0]=c(a[0],l[0],u[0],S),f[1]=c(a[1],l[1],u[1],S);var x=o(m,s)-g;if(r(x)<.01)break;var b=o(f,s)-g;v/=2,x<0?b>=0?p=p+v:p=p-v:b>=0?p=p-v:p=p+v}return p}function n(e,s){var t=[],a=O.quadraticSubdivide,l=[[],[],[]],u=[[],[]],h=[];s/=2,e.eachEdge(function(p,g){var v=p.getLayout(),y=p.getVisual("fromSymbol"),x=p.getVisual("toSymbol");v.__original||(v.__original=[E.clone(v[0]),E.clone(v[1])],v[2]&&v.__original.push(E.clone(v[2])));var T=v.__original;if(v[2]!=null){if(E.copy(l[0],T[0]),E.copy(l[1],T[2]),E.copy(l[2],T[1]),y&&y!=="none"){var S=A(p.node1),b=i(l,T[0],S*s);a(l[0][0],l[1][0],l[2][0],b,t),l[0][0]=t[3],l[1][0]=t[4],a(l[0][1],l[1][1],l[2][1],b,t),l[0][1]=t[3],l[1][1]=t[4]}if(x&&x!=="none"){var S=A(p.node2),b=i(l,T[1],S*s);a(l[0][0],l[1][0],l[2][0],b,t),l[1][0]=t[1],l[2][0]=t[2],a(l[0][1],l[1][1],l[2][1],b,t),l[1][1]=t[1],l[2][1]=t[2]}E.copy(v[0],l[0]),E.copy(v[1],l[2]),E.copy(v[2],l[1])}else{if(E.copy(u[0],T[0]),E.copy(u[1],T[1]),E.sub(h,u[1],u[0]),E.normalize(h,h),y&&y!=="none"){var S=A(p.node1);E.scaleAndAdd(u[0],u[0],h,S*s)}if(x&&x!=="none"){var S=A(p.node2);E.scaleAndAdd(u[1],u[1],h,-S*s)}E.copy(v[0],u[0]),E.copy(v[1],u[1])}})}H.exports=n},SJMd:function(H,B){/**
|
|
|
* @license
|
|
|
* Copyright (C) 2006 Google Inc.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
* You may obtain a copy of the License at
|
|
|
*
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
*
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
|
*/var d,O,E,C=!1,A,w;window.PR_SHOULD_USE_CONTINUATION=!0;var m,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"],s=[i,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],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"],l="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",u=[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"],g=[n,s,e,a,l,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",x="kwd",T="com",S="typ",b="lit",_="pun",I="pln",L="tag",N="dec",D="src",R="atn",P="atv",M="nocode",U="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(se){for(var Q=0,G=!1,J=!1,ve=0,de=se.length;ve<de;++ve){var Ce=se[ve];if(Ce.ignoreCase)J=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){G=!0,J=!1;break}}var Ee={b:8,t:9,n:10,v:11,f:12,r:13};function le(Je){var Te=Je.charCodeAt(0);if(Te!==92)return Te;var et=Je.charAt(1);return Te=Ee[et],Te||("0"<=et&&et<="7"?parseInt(Je.substring(1),8):et==="u"||et==="x"?parseInt(Je.substring(2),16):Je.charCodeAt(1))}function fe(Je){if(Je<32)return(Je<16?"\\x0":"\\x")+Je.toString(16);var Te=String.fromCharCode(Je);return Te==="\\"||Te==="-"||Te==="]"||Te==="^"?"\\"+Te:Te}function xe(Je){var Te=Je.substring(1,Je.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")),et=[],ze=Te[0]==="^",nt=["["];ze&&nt.push("^");for(var Ot=ze?1:0,Ct=Te.length;Ot<Ct;++Ot){var Tt=Te[Ot];if(/\\[bdsw]/i.test(Tt))nt.push(Tt);else{var Dt=le(Tt),Be;Ot+2<Ct&&Te[Ot+1]==="-"?(Be=le(Te[Ot+2]),Ot+=2):Be=Dt,et.push([Dt,Be]),Be<65||Dt>122||(Be<65||Dt>90||et.push([Math.max(65,Dt)|32,Math.min(Be,90)|32]),Be<97||Dt>122||et.push([Math.max(97,Dt)&~32,Math.min(Be,122)&~32]))}}et.sort(function(Ne,q){return Ne[0]-q[0]||q[1]-Ne[1]});for(var ie=[],X=[],Ot=0;Ot<et.length;++Ot){var Fe=et[Ot];Fe[0]<=X[1]+1?X[1]=Math.max(X[1],Fe[1]):ie.push(X=Fe)}for(var Ot=0;Ot<ie.length;++Ot){var Fe=ie[Ot];nt.push(fe(Fe[0])),Fe[1]>Fe[0]&&(Fe[1]+1>Fe[0]&&nt.push("-"),nt.push(fe(Fe[1])))}return nt.push("]"),nt.join("")}function Qe(Je){for(var Te=Je.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")),et=Te.length,ze=[],nt=0,Ot=0;nt<et;++nt){var Ct=Te[nt];if(Ct==="(")++Ot;else if(Ct.charAt(0)==="\\"){var Tt=+Ct.substring(1);Tt&&(Tt<=Ot?ze[Tt]=-1:Te[nt]=fe(Tt))}}for(var nt=1;nt<ze.length;++nt)ze[nt]===-1&&(ze[nt]=++Q);for(var nt=0,Ot=0;nt<et;++nt){var Ct=Te[nt];if(Ct==="(")++Ot,ze[Ot]||(Te[nt]="(?:");else if(Ct.charAt(0)==="\\"){var Tt=+Ct.substring(1);Tt&&Tt<=Ot&&(Te[nt]="\\"+ze[Tt])}}for(var nt=0;nt<et;++nt)Te[nt]==="^"&&Te[nt+1]!=="^"&&(Te[nt]="");if(Je.ignoreCase&&G)for(var nt=0;nt<et;++nt){var Ct=Te[nt],Dt=Ct.charAt(0);Ct.length>=2&&Dt==="["?Te[nt]=xe(Ct):Dt!=="\\"&&(Te[nt]=Ct.replace(/[a-zA-Z]/g,function(X){var Fe=X.charCodeAt(0);return"["+String.fromCharCode(Fe&~32,Fe|32)+"]"}))}return Te.join("")}for(var ot=[],ve=0,de=se.length;ve<de;++ve){var Ce=se[ve];if(Ce.global||Ce.multiline)throw new Error(""+Ce);ot.push("(?:"+Qe(Ce)+")")}return new RegExp(ot.join("|"),J?"gi":"g")}function j(se,Q){var G=/(?:^|\s)nocode(?:\s|$)/,J=[],ve=0,de=[],Ce=0;function Ee(le){var fe=le.nodeType;if(fe==1){if(G.test(le.className))return;for(var xe=le.firstChild;xe;xe=xe.nextSibling)Ee(xe);var Qe=le.nodeName.toLowerCase();(Qe==="br"||Qe==="li")&&(J[Ce]=`
|
|
|
`,de[Ce<<1]=ve++,de[Ce++<<1|1]=le)}else if(fe==3||fe==4){var ot=le.nodeValue;ot.length&&(Q?ot=ot.replace(/\r\n?/g,`
|
|
|
`):ot=ot.replace(/[ \t\r\n]+/g," "),J[Ce]=ot,de[Ce<<1]=ve,ve+=ot.length,de[Ce++<<1|1]=le)}}return Ee(se),{sourceCode:J.join("").replace(/\n$/,""),spans:de}}function W(se,Q,G,J,ve){if(!G)return;var de={sourceNode:se,pre:1,langExtension:null,numberLines:null,sourceCode:G,spans:null,basePos:Q,decorations:null};J(de),ve.push.apply(ve,de.decorations)}var V=/\S/;function z(se){for(var Q=void 0,G=se.firstChild;G;G=G.nextSibling){var J=G.nodeType;Q=J===1?Q?se:G:J===3&&V.test(G.nodeValue)?se:Q}return Q===se?void 0:Q}function Y(se,Q){var G={},J;(function(){for(var Ce=se.concat(Q),Ee=[],le={},fe=0,xe=Ce.length;fe<xe;++fe){var Qe=Ce[fe],ot=Qe[3];if(ot)for(var Je=ot.length;--Je>=0;)G[ot.charAt(Je)]=Qe;var Te=Qe[1],et=""+Te;le.hasOwnProperty(et)||(Ee.push(Te),le[et]=null)}Ee.push(/[\0-\uffff]/),J=F(Ee)})();var ve=Q.length,de=function Ce(Ee){for(var le=Ee.sourceCode,fe=Ee.basePos,xe=Ee.sourceNode,Qe=[fe,I],ot=0,Je=le.match(J)||[],Te={},et=0,ze=Je.length;et<ze;++et){var nt=Je[et],Ot=Te[nt],Ct=void 0,Tt;if(typeof Ot=="string")Tt=!1;else{var Dt=G[nt.charAt(0)];if(Dt)Ct=nt.match(Dt[1]),Ot=Dt[0];else{for(var Be=0;Be<ve;++Be)if(Dt=Q[Be],Ct=nt.match(Dt[1]),Ct){Ot=Dt[0];break}Ct||(Ot=I)}Tt=Ot.length>=5&&Ot.substring(0,5)==="lang-",Tt&&!(Ct&&typeof Ct[1]=="string")&&(Tt=!1,Ot=D),Tt||(Te[nt]=Ot)}var ie=ot;if(ot+=nt.length,!Tt)Qe.push(fe+ie,Ot);else{var X=Ct[1],Fe=nt.indexOf(X),Ne=Fe+X.length;Ct[2]&&(Ne=nt.length-Ct[2].length,Fe=Ne-X.length);var q=Ot.substring(5);W(xe,fe+ie,nt.substring(0,Fe),Ce,Qe),W(xe,fe+ie+Fe,X,He(q,X),Qe),W(xe,fe+ie+Ne,nt.substring(Ne),Ce,Qe)}}Ee.decorations=Qe};return de}function $(se){var Q=[],G=[];se.tripleQuotedStrings?Q.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):se.multiLineStrings?Q.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Q.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),se.verbatimStrings&&G.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=se.hashComments;J&&(se.cStyleComments?(J>1?Q.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Q.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])):Q.push([T,/^#[^\r\n]*/,null,"#"])),se.cStyleComments&&(G.push([T,/^\/\/[^\r\n]*/,null]),G.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=se.regexLiterals;if(ve){var de=ve>1?"":`
|
|
|
\r`,Ce=de?".":"[\\S\\s]",Ee="/(?=[^/*"+de+"])(?:[^/\\x5B\\x5C"+de+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+de+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";G.push(["lang-regex",RegExp("^"+U+"("+Ee+")")])}var le=se.types;le&&G.push([S,le]);var fe=(""+se.keywords).replace(/^ | $/g,"");fe.length&&G.push([x,new RegExp("^(?:"+fe.replace(/[\s,]+/g,"|")+")\\b"),null]),Q.push([I,/^\s+/,null,` \r
|
|
|
\xA0`]);var xe="^.[^\\s\\w.$@'\"`/\\\\]*";return se.regexLiterals&&(xe+="(?!s*/)"),G.push([b,/^@[a-z_$][a-z_$@0-9]*/i,null],[S,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[b,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[I,/^\\[\s\S]?/,null],[_,new RegExp(xe),null]),Y(Q,G)}var ue=$({keywords:g,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ne(se,Q,G){for(var J=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,de=se.ownerDocument,Ce=de.createElement("li");se.firstChild;)Ce.appendChild(se.firstChild);var Ee=[Ce];function le(Te){var et=Te.nodeType;if(et==1&&!J.test(Te.className))if(Te.nodeName==="br")fe(Te),Te.parentNode&&Te.parentNode.removeChild(Te);else for(var ze=Te.firstChild;ze;ze=ze.nextSibling)le(ze);else if((et==3||et==4)&&G){var nt=Te.nodeValue,Ot=nt.match(ve);if(Ot){var Ct=nt.substring(0,Ot.index);Te.nodeValue=Ct;var Tt=nt.substring(Ot.index+Ot[0].length);if(Tt){var Dt=Te.parentNode;Dt.insertBefore(de.createTextNode(Tt),Te.nextSibling)}fe(Te),Ct||Te.parentNode.removeChild(Te)}}}function fe(Te){for(;!Te.nextSibling;)if(Te=Te.parentNode,!Te)return;function et(Ot,Ct){var Tt=Ct?Ot.cloneNode(!1):Ot,Dt=Ot.parentNode;if(Dt){var Be=et(Dt,1),ie=Ot.nextSibling;Be.appendChild(Tt);for(var X=ie;X;X=ie)ie=X.nextSibling,Be.appendChild(X)}return Tt}for(var ze=et(Te.nextSibling,0),nt;(nt=ze.parentNode)&&nt.nodeType===1;)ze=nt;Ee.push(ze)}for(var xe=0;xe<Ee.length;++xe)le(Ee[xe]);Q===(Q|0)&&Ee[0].setAttribute("value",Q);var Qe=de.createElement("ol");Qe.className="linenums";for(var ot=Math.max(0,Q-1|0)||0,xe=0,Je=Ee.length;xe<Je;++xe)Ce=Ee[xe],Ce.className="L"+(xe+ot)%10,Ce.firstChild||Ce.appendChild(de.createTextNode("\xA0")),Qe.appendChild(Ce);se.appendChild(Qe)}function ge(se){var Q=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Q=Q&&+Q[1]<=8;var G=/\n/g,J=se.sourceCode,ve=J.length,de=0,Ce=se.spans,Ee=Ce.length,le=0,fe=se.decorations,xe=fe.length,Qe=0;fe[xe]=ve;var ot,Je;for(Je=ot=0;Je<xe;)fe[Je]!==fe[Je+2]?(fe[ot++]=fe[Je++],fe[ot++]=fe[Je++]):Je+=2;for(xe=ot,Je=ot=0;Je<xe;){for(var Te=fe[Je],et=fe[Je+1],ze=Je+2;ze+2<=xe&&fe[ze+1]===et;)ze+=2;fe[ot++]=Te,fe[ot++]=et,Je=ze}xe=fe.length=ot;var nt=se.sourceNode,Ot="";nt&&(Ot=nt.style.display,nt.style.display="none");try{for(var Ct=null;le<Ee;){var Tt=Ce[le],Dt=Ce[le+2]||ve,Be=fe[Qe+2]||ve,ze=Math.min(Dt,Be),ie=Ce[le+1],X;if(ie.nodeType!==1&&(X=J.substring(de,ze))){Q&&(X=X.replace(G,"\r")),ie.nodeValue=X;var Fe=ie.ownerDocument,Ne=Fe.createElement("span");Ne.className=fe[Qe+1];var q=ie.parentNode;q.replaceChild(Ne,ie),Ne.appendChild(ie),de<Dt&&(Ce[le+1]=ie=Fe.createTextNode(J.substring(ze,Dt)),q.insertBefore(ie,Ne.nextSibling))}de=ze,de>=Dt&&(le+=2),de>=Be&&(Qe+=2)}}finally{nt&&(nt.style.display=Ot)}}var Oe={};function De(se,Q){for(var G=Q.length;--G>=0;){var J=Q[G];Oe.hasOwnProperty(J)?c.console&&console.warn("cannot override language handler %s",J):Oe[J]=se}}function He(se,Q){return se&&Oe.hasOwnProperty(se)||(se=/^\s*</.test(Q)?"default-markup":"default-code"),Oe[se]}De(ue,["default-code"]),De(Y([],[[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"]),De(Y([[I,/^[\s]+/,null,` \r
|
|
|
`],[P,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[L,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!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"]),De(Y([],[[P,/^[\s\S]+/]]),["uq.val"]),De($({keywords:n,hashComments:!0,cStyleComments:!0,types:v}),["c","cc","cpp","cxx","cyc","m"]),De($({keywords:"null,true,false"}),["json"]),De($({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:v}),["cs"]),De($({keywords:e,cStyleComments:!0}),["java"]),De($({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),De($({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),De($({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),De($({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),De($({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),De($({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),De(Y([],[[y,/^[\s\S]+/]]),["regex"]);function pe(se){var Q=se.langExtension;try{var G=j(se.sourceNode,se.pre),J=G.sourceCode;se.sourceCode=J,se.spans=G.spans,se.basePos=0,He(Q,J)(se),ge(se)}catch(ve){c.console&&console.log(ve&&ve.stack||ve)}}function Ue(se,Q,G){var J=G||!1,ve=Q||null,de=document.createElement("div");de.innerHTML="<pre>"+se+"</pre>",de=de.firstChild,J&&ne(de,J,!0);var Ce={langExtension:ve,numberLines:J,sourceNode:de,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return pe(Ce),de.innerHTML}function oe(se,Q){var G=Q||document.body,J=G.ownerDocument||document;function ve(Tt){return G.getElementsByTagName(Tt)}for(var de=[ve("pre"),ve("code"),ve("xmp")],Ce=[],Ee=0;Ee<de.length;++Ee)for(var le=0,fe=de[Ee].length;le<fe;++le)Ce.push(de[Ee][le]);de=null;var xe=Date;xe.now||(xe={now:function(){return+new Date}});var Qe=0,ot=/\blang(?:uage)?-([\w.]+)(?!\S)/,Je=/\bprettyprint\b/,Te=/\bprettyprinted\b/,et=/pre|xmp/i,ze=/^code$/i,nt=/^(?:pre|code|xmp)$/i,Ot={};function Ct(){for(var Tt=c.PR_SHOULD_USE_CONTINUATION?xe.now()+250:Infinity;Qe<Ce.length&&xe.now()<Tt;Qe++){for(var Dt=Ce[Qe],Be=Ot,ie=Dt;ie=ie.previousSibling;){var X=ie.nodeType,Fe=(X===7||X===8)&&ie.nodeValue;if(Fe?!/^\??prettify\b/.test(Fe):X!==3||/\S/.test(ie.nodeValue))break;if(Fe){Be={},Fe.replace(/\b(\w+)=([\w:.%+-]+)/g,function(dt,Hr,dn){Be[Hr]=dn});break}}var Ne=Dt.className;if((Be!==Ot||Je.test(Ne))&&!Te.test(Ne)){for(var q=!1,ht=Dt.parentNode;ht;ht=ht.parentNode){var Rt=ht.tagName;if(nt.test(Rt)&&ht.className&&Je.test(ht.className)){q=!0;break}}if(!q){Dt.className+=" prettyprinted";var ut=Be.lang;if(!ut){ut=Ne.match(ot);var Xt;!ut&&(Xt=z(Dt))&&ze.test(Xt.tagName)&&(ut=Xt.className.match(ot)),ut&&(ut=ut[1])}var or;if(et.test(Dt.tagName))or=1;else{var Zr=Dt.currentStyle,ar=J.defaultView,dr=Zr?Zr.whiteSpace:ar&&ar.getComputedStyle?ar.getComputedStyle(Dt,null).getPropertyValue("white-space"):0;or=dr&&dr.substring(0,3)==="pre"}var er=Be.linenums;(er=er==="true"||+er)||(er=Ne.match(/\blinenums\b(?::(\d+))?/),er=er?er[1]&&er[1].length?+er[1]:!0:!1),er&&ne(Dt,er,or);var Ht={langExtension:ut,sourceNode:Dt,numberLines:er,pre:or,sourceCode:null,basePos:null,spans:null,decorations:null};pe(Ht)}}}Qe<Ce.length?c.setTimeout(Ct,250):typeof se=="function"&&se()}Ct()}var ee=c.PR={createSimpleLexer:Y,registerLangHandler:De,sourceDecorator:$,PR_ATTRIB_NAME:R,PR_ATTRIB_VALUE:P,PR_COMMENT:T,PR_DECLARATION:N,PR_KEYWORD:x,PR_LITERAL:b,PR_NOCODE:M,PR_PLAIN:I,PR_PUNCTUATION:_,PR_SOURCE:D,PR_STRING:y,PR_TAG:L,PR_TYPE:S,prettyPrintOne:C?c.prettyPrintOne=Ue:m=Ue,prettyPrint:f=C?c.prettyPrint=oe:f=oe},Xe=c.define;typeof Xe=="function"&&Xe.amd&&Xe("google-code-prettify",[],function(){return ee})})()},SKnc:function(H,B,d){var O=d("bYtY"),E=d("QuXc"),C=function(m,f,c,o,r,i){this.x=m==null?0:m,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,E.call(this,r)};C.prototype={constructor:C},O.inherits(C,E);var A=C;H.exports=A},"SKx+":function(H,B,d){var O=d("ProS"),E=O.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),C=E;H.exports=C},SMc4:function(H,B,d){var O=d("bYtY"),E=d("bLfw"),C=d("nkfE"),A=d("ICMv"),w=E.extend({type:"cartesian2dAxis",axis:null,init:function(){w.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){w.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){w.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function m(o,r){return r.type||(r.data?"category":"value")}O.merge(w.prototype,A);var f={offset:0};C("x",w,m,f),C("y",w,m,f);var c=w;H.exports=c},SRve:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},SUKs:function(H,B,d){var O=d("LPTA"),E=O.debugMode,C=function(){};E===1&&(C=console.error);var A=C;H.exports=A},SZEN:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.clientToElement=O;function O(E,C,A){var w=A.getBoundingClientRect(),m={x:0,y:0};return E<w.left?m.x=0:E>=w.right?m.x=w.width-1:m.x=E-w.left,C<w.top?m.y=0:C>=w.bottom?m.y=w.height-1:m.y=C-w.top,m}},Sdc0:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("q1tI"),m=d("rePB"),f=d("ODXe"),c=d("Ff2n"),o=d("TSYQ"),r=d.n(o),i=d("6cGi"),n=d("4IlW"),e=w.forwardRef(function(x,T){var S,b=x.prefixCls,_=b===void 0?"rc-switch":b,I=x.className,L=x.checked,N=x.defaultChecked,D=x.disabled,R=x.loadingIcon,P=x.checkedChildren,M=x.unCheckedChildren,U=x.onClick,F=x.onChange,j=x.onKeyDown,W=Object(c.a)(x,["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),Y=z[0],$=z[1];function ue(De,He){var pe=Y;return D||(pe=De,$(pe),F==null||F(pe,He)),pe}function ne(De){De.which===n.a.LEFT?ue(!1,De):De.which===n.a.RIGHT&&ue(!0,De),j==null||j(De)}function ge(De){var He=ue(!Y,De);U==null||U(He,De)}var Oe=r()(_,I,(S={},Object(m.a)(S,"".concat(_,"-checked"),Y),Object(m.a)(S,"".concat(_,"-disabled"),D),S));return w.createElement("button",Object.assign({},W,{type:"button",role:"switch","aria-checked":Y,disabled:D,className:Oe,ref:T,onKeyDown:ne,onClick:ge}),R,w.createElement("span",{className:"".concat(_,"-inner")},Y?P:M))});e.displayName="Switch";var s=e,t=d("gZBC"),a=d.n(t),l=d("g0mS"),u=d("H84U"),h=d("3Nzz"),p=d("uaoM"),g=function(x,T){var S={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&T.indexOf(b)<0&&(S[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)T.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(S[b[_]]=x[b[_]]);return S},v=w.forwardRef(function(x,T){var S,b=x.prefixCls,_=x.size,I=x.loading,L=x.className,N=L===void 0?"":L,D=x.disabled,R=g(x,["prefixCls","size","loading","className","disabled"]);Object(p.a)("checked"in R||!("value"in R),"Switch","`value` is not a valid prop, do you mean `checked`?");var P=w.useContext(u.b),M=P.getPrefixCls,U=P.direction,F=w.useContext(h.b),j=M("switch",b),W=w.createElement("div",{className:"".concat(j,"-handle")},I&&w.createElement(a.a,{className:"".concat(j,"-loading-icon")})),V=r()(N,(S={},A()(S,"".concat(j,"-small"),(_||F)==="small"),A()(S,"".concat(j,"-loading"),I),A()(S,"".concat(j,"-rtl"),U==="rtl"),S));return w.createElement(l.a,{insertExtraNode:!0},w.createElement(s,E()({},R,{prefixCls:j,className:V,disabled:D||I,ref:T,loadingIcon:W})))});v.__ANT_SWITCH=!0,v.displayName="Switch";var y=B.a=v},SehX:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("2B6p"),A=C.updateCenterAndZoom;O.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(w,m){var f=w.componentType||"series";m.eachComponent({mainType:f,query:w},function(c){var o=c.coordinateSystem;if(o.type!=="geo")return;var r=A(o,w,c.get("scaleLimit"));c.setCenter&&c.setCenter(r.center),c.setZoom&&c.setZoom(r.zoom),f==="series"&&E.each(c.seriesGroup,function(i){i.setCenter(r.center),i.setZoom(r.zoom)})})})},SgGq:function(H,B,d){var O=d("bYtY"),E=d("H6uX"),C=d("YH21"),A=d("pP6R");function w(t){this.pointerChecker,this._zr=t,this._opt={};var a=O.bind,l=a(m,this),u=a(f,this),h=a(c,this),p=a(o,this),g=a(r,this);E.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",l),t.on("mousemove",u),t.on("mouseup",h)),(v===!0||v==="scale"||v==="zoom")&&(t.on("mousewheel",p),t.on("pinch",g))},this.disable=function(){t.off("mousedown",l),t.off("mousemove",u),t.off("mouseup",h),t.off("mousewheel",p),t.off("pinch",g)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}O.mixin(w,E);function m(t){if(C.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)return;var a=t.offsetX,l=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,l)&&(this._x=a,this._y=l,this._dragging=!0)}function f(t){if(!this._dragging||!e("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||A.isTaken(this._zr,"globalPan"))return;var a=t.offsetX,l=t.offsetY,u=this._x,h=this._y,p=a-u,g=l-h;this._x=a,this._y=l,this._opt.preventDefaultMouseMove&&C.stop(t.event),n(this,"pan","moveOnMouseMove",t,{dx:p,dy:g,oldX:u,oldY:h,newX:a,newY:l})}function c(t){C.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function o(t){var a=e("zoomOnMouseWheel",t,this._opt),l=e("moveOnMouseWheel",t,this._opt),u=t.wheelDelta,h=Math.abs(u),p=t.offsetX,g=t.offsetY;if(u===0||!a&&!l)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:g})}if(l){var x=Math.abs(u),T=(u>0?1:-1)*(x>3?.4:x>1?.15:.05);i(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:T,originX:p,originY:g})}}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,l,u,h){t.pointerChecker&&t.pointerChecker(u,h.originX,h.originY)&&(C.stop(u.event),n(t,a,l,u,h))}function n(t,a,l,u,h){h.isAvailableBehavior=O.bind(e,null,l,u),t.trigger(a,h)}function e(t,a,l){var u=l[t];return!t||u&&(!O.isString(u)||a.event[u+"Key"])}var s=w;H.exports=s},SgaC:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function E(w,m){for(var f=0;f<m.length;f++){var c=m[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(w,c.key,c)}}function C(w,m,f){return m&&E(w.prototype,m),f&&E(w,f),w}var A=function(){function w(){O(this,w),this._subrects=0}return C(w,[{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 s=i.rQshiftBytes(4);n.fillRect(f,c,o,r,s)}for(;this._subrects>0;){if(i.rQwait("RRE",4+8))return!1;var t=i.rQshiftBytes(4),a=i.rQshift16(),l=i.rQshift16(),u=i.rQshift16(),h=i.rQshift16();n.fillRect(f+a,c+l,u,h,t),this._subrects--}return!0}}]),w}();B.default=A},Sj0X:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("XuBP")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="DownOutlined";var c=A.forwardRef(f);B.default=c},Sj9i:function(H,B,d){var O=d("QBsz"),E=O.create,C=O.distSquare,A=Math.pow,w=Math.sqrt,m=1e-8,f=1e-4,c=w(3),o=1/3,r=E(),i=E(),n=E();function e(b){return b>-m&&b<m}function s(b){return b>m||b<-m}function t(b,_,I,L,N){var D=1-N;return D*D*(D*b+3*N*_)+N*N*(N*L+3*D*I)}function a(b,_,I,L,N){var D=1-N;return 3*(((_-b)*D+2*(I-_)*N)*D+(L-I)*N*N)}function l(b,_,I,L,N,D){var R=L+3*(_-I)-b,P=3*(I-_*2+b),M=3*(_-b),U=b-N,F=P*P-3*R*M,j=P*M-9*R*U,W=M*M-3*P*U,V=0;if(e(F)&&e(j))if(e(P))D[0]=0;else{var z=-M/P;z>=0&&z<=1&&(D[V++]=z)}else{var Y=j*j-4*F*W;if(e(Y)){var $=j/F,z=-P/R+$,ue=-$/2;z>=0&&z<=1&&(D[V++]=z),ue>=0&&ue<=1&&(D[V++]=ue)}else if(Y>0){var ne=w(Y),ge=F*P+1.5*R*(-j+ne),Oe=F*P+1.5*R*(-j-ne);ge<0?ge=-A(-ge,o):ge=A(ge,o),Oe<0?Oe=-A(-Oe,o):Oe=A(Oe,o);var z=(-P-(ge+Oe))/(3*R);z>=0&&z<=1&&(D[V++]=z)}else{var De=(2*F*P-3*R*j)/(2*w(F*F*F)),He=Math.acos(De)/3,pe=w(F),Ue=Math.cos(He),z=(-P-2*pe*Ue)/(3*R),ue=(-P+pe*(Ue+c*Math.sin(He)))/(3*R),oe=(-P+pe*(Ue-c*Math.sin(He)))/(3*R);z>=0&&z<=1&&(D[V++]=z),ue>=0&&ue<=1&&(D[V++]=ue),oe>=0&&oe<=1&&(D[V++]=oe)}}return V}function u(b,_,I,L,N){var D=6*I-12*_+6*b,R=9*_+3*L-3*b-9*I,P=3*_-3*b,M=0;if(e(R)){if(s(D)){var U=-P/D;U>=0&&U<=1&&(N[M++]=U)}}else{var F=D*D-4*R*P;if(e(F))N[0]=-D/(2*R);else if(F>0){var j=w(F),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 h(b,_,I,L,N,D){var R=(_-b)*N+b,P=(I-_)*N+_,M=(L-I)*N+I,U=(P-R)*N+R,F=(M-P)*N+P,j=(F-U)*N+U;D[0]=b,D[1]=R,D[2]=U,D[3]=j,D[4]=j,D[5]=F,D[6]=M,D[7]=L}function p(b,_,I,L,N,D,R,P,M,U,F){var j,W=.005,V=Infinity,z,Y,$,ue;r[0]=M,r[1]=U;for(var ne=0;ne<1;ne+=.05)i[0]=t(b,I,N,R,ne),i[1]=t(_,L,D,P,ne),$=C(r,i),$<V&&(j=ne,V=$);V=Infinity;for(var ge=0;ge<32&&!(W<f);ge++)z=j-W,Y=j+W,i[0]=t(b,I,N,R,z),i[1]=t(_,L,D,P,z),$=C(i,r),z>=0&&$<V?(j=z,V=$):(n[0]=t(b,I,N,R,Y),n[1]=t(_,L,D,P,Y),ue=C(n,r),Y<=1&&ue<V?(j=Y,V=ue):W*=.5);return F&&(F[0]=t(b,I,N,R,j),F[1]=t(_,L,D,P,j)),w(V)}function g(b,_,I,L){var N=1-L;return N*(N*b+2*L*_)+L*L*I}function v(b,_,I,L){return 2*((1-L)*(_-b)+L*(I-_))}function y(b,_,I,L,N){var D=b-2*_+I,R=2*(_-b),P=b-L,M=0;if(e(D)){if(s(R)){var U=-P/R;U>=0&&U<=1&&(N[M++]=U)}}else{var F=R*R-4*D*P;if(e(F)){var U=-R/(2*D);U>=0&&U<=1&&(N[M++]=U)}else if(F>0){var j=w(F),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 x(b,_,I){var L=b+I-2*_;return L===0?.5:(b-_)/L}function T(b,_,I,L,N){var D=(_-b)*L+b,R=(I-_)*L+_,P=(R-D)*L+D;N[0]=b,N[1]=D,N[2]=P,N[3]=P,N[4]=R,N[5]=I}function S(b,_,I,L,N,D,R,P,M){var U,F=.005,j=Infinity;r[0]=R,r[1]=P;for(var W=0;W<1;W+=.05){i[0]=g(b,I,N,W),i[1]=g(_,L,D,W);var V=C(r,i);V<j&&(U=W,j=V)}j=Infinity;for(var z=0;z<32&&!(F<f);z++){var Y=U-F,$=U+F;i[0]=g(b,I,N,Y),i[1]=g(_,L,D,Y);var V=C(i,r);if(Y>=0&&V<j)U=Y,j=V;else{n[0]=g(b,I,N,$),n[1]=g(_,L,D,$);var ue=C(n,r);$<=1&&ue<j?(U=$,j=ue):F*=.5}}return M&&(M[0]=g(b,I,N,U),M[1]=g(_,L,D,U)),w(j)}B.cubicAt=t,B.cubicDerivativeAt=a,B.cubicRootAt=l,B.cubicExtrema=u,B.cubicSubdivide=h,B.cubicProjectPoint=p,B.quadraticAt=g,B.quadraticDerivativeAt=v,B.quadraticRootAt=y,B.quadraticExtremum=x,B.quadraticSubdivide=T,B.quadraticProjectPoint=S},Sp2Z:function(H,B,d){var O=d("3LNs"),E=d("/y7N"),C=d("AVZG"),A=d("Znkb"),w=O.extend({makeElOption:function(r,i,n,e,s){var t=n.axis,a=t.grid,l=e.get("type"),u=m(a,t).getOtherAxis(t).getGlobalExtent(),h=t.toGlobalCoord(t.dataToCoord(i,!0));if(l&&l!=="none"){var p=E.buildElStyle(e),g=f[l](t,h,u);g.style=p,r.graphicKey=g.type,r.pointer=g}var v=C.layout(a.model,n);E.buildCartesianSingleLabelElOption(i,r,v,n,e,s)},getHandleTransform:function(r,i,n){var e=C.layout(i.axis.grid.model,i,{labelInside:!1});return e.labelMargin=n.get("handle.margin"),{position:E.getTransformedPosition(i.axis,r,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(r,i,n,e){var s=n.axis,t=s.grid,a=s.getGlobalExtent(!0),l=m(t,s).getOtherAxis(s).getGlobalExtent(),u=s.dim==="x"?0:1,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=(l[1]+l[0])/2,g=[p,p];g[u]=h[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{position:h,rotation:r.rotation,cursorPoint:g,tooltipOption:v[u]}}});function m(r,i){var n={};return n[i.dim+"AxisIndex"]=i.index,r.getCartesian(n)}var f={line:function(r,i,n){var e=E.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()),s=n[1]-n[0];return{type:"Rect",shape:E.makeRectShape([i-e/2,n[0]],[e,s],c(r))}}};function c(r){return r.dim==="x"?0:1}A.registerAxisPointerClass("CartesianAxisPointer",w);var o=w;H.exports=o},Sq3C:function(H,B,d){var O=d("sKgW"),E=d("zoYe"),C=d("wy8a"),A=d("quyA"),w=d("Z1HP"),m=d("Em2t"),f=Math.ceil;function c(o,r){r=r===void 0?" ":E(r);var i=r.length;if(i<2)return i?O(r,o):r;var n=O(r,f(o/w(r)));return A(r)?C(m(n),0,o).join(""):n.slice(0,o)}H.exports=c},SqI9:function(H,B,d){var O=d("y+Vt"),E=d("iXp4"),C=O.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:E(O.prototype.brush),buildPath:function(w,m){var f=m.cx,c=m.cy,o=Math.max(m.r0||0,0),r=Math.max(m.r,0),i=m.startAngle,n=m.endAngle,e=m.clockwise,s=Math.cos(i),t=Math.sin(i);w.moveTo(s*o+f,t*o+c),w.lineTo(s*r+f,t*r+c),w.arc(f,c,r,i,n,!e),w.lineTo(Math.cos(n)*o+f,Math.sin(n)*o+c),o!==0&&w.arc(f,c,o,n,i,e),w.closePath()}});H.exports=C},SrGk:function(H,B,d){var O=d("hydK"),E=O.createElement,C=d("bYtY"),A=d("y+Vt"),w=d("Dagg"),m=d("dqUG"),f=d("P47w"),c=f.path,o=f.image,r=f.text,i="0",n="1";function e(t,a,l,u,h){this._zrId=t,this._svgRoot=a,this._tagNames=typeof l=="string"?[l]:l,this._markLabel=u,this._domName=h||"_dom",this.nextId=0}e.prototype.createElement=E,e.prototype.getDefs=function(t){var a=this._svgRoot,l=this._svgRoot.getElementsByTagName("defs");return l.length===0?t?(l=a.insertBefore(this.createElement("defs"),a.firstChild),l.contains||(l.contains=function(u){var h=l.children;if(!h)return!1;for(var p=h.length-1;p>=0;--p)if(h[p]===u)return!0;return!1}),l):null:l[0]},e.prototype.update=function(t,a){if(!t)return;var l=this.getDefs(!1);if(t[this._domName]&&l.contains(t[this._domName]))typeof a=="function"&&a(t);else{var u=this.add(t);u&&(t[this._domName]=u)}},e.prototype.addDom=function(t){var a=this.getDefs(!0);a.appendChild(t)},e.prototype.removeDom=function(t){var a=this.getDefs(!1);a&&t[this._domName]&&(a.removeChild(t[this._domName]),t[this._domName]=null)},e.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var a=[];return C.each(this._tagNames,function(l){var u=t.getElementsByTagName(l);a=a.concat([].slice.call(u))}),a},e.prototype.markAllUnused=function(){var t=this.getDoms(),a=this;C.each(t,function(l){l[a._markLabel]=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(),l=this;C.each(a,function(u){u[l._markLabel]!==n&&t.removeChild(u)})},e.prototype.getSvgProxy=function(t){return t instanceof A?c:t instanceof w?o:t instanceof m?r:c},e.prototype.getTextSvgElement=function(t){return t.__textSvgEl},e.prototype.getSvgElement=function(t){return t.__svgEl};var s=e;H.exports=s},Swgg:function(H,B,d){var O=d("fc+c"),E=O.extend({type:"dataZoom.select"});H.exports=E},Sxd8:function(H,B,d){var O=d("ZCgT");function E(C){var A=O(C),w=A%1;return A===A?w?A-w:A:0}H.exports=E},T1rO:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("zdCA"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},T4UG:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("ItGF"),w=d("7aKB"),m=w.formatTime,f=w.encodeHTML,c=w.addCommas,o=w.getTooltipMarker,r=d("4NO4"),i=d("bLfw"),n=d("5Hur"),e=d("OKJ2"),s=d("+TT/"),t=s.getLayoutParams,a=s.mergeLayoutParam,l=d("9H2F"),u=l.createTask,h=d("D5nY"),p=h.prepareSource,g=h.getSource,v=d("KxfA"),y=v.retrieveRawValue,x=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,F,j){this.seriesIndex=this.componentIndex,this.dataTask=u({count:_,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(M,F),p(this);var W=this.getInitialData(M,F);N(W,this),this.dataTask.context.data=W,x(this).dataBeforeProcessed=W,S(this)},mergeDefaultAndTheme:function(M,U){var F=this.layoutMode,j=F?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),F&&a(M,j,F)},mergeOption:function(M,U){M=C.merge(this.option,M,!0),this.fillDataTextStyle(M.data);var F=this.layoutMode;F&&a(this.option,M,F),p(this);var j=this.getInitialData(M,U);N(j,this),this.dataTask.dirty(),this.dataTask.context.data=j,x(this).dataBeforeProcessed=j,S(this)},fillDataTextStyle:function(M){if(M&&!C.isTypedArray(M))for(var U=["show"],F=0;F<M.length;F++)M[F]&&M[F].label&&r.defaultEmphasis(M[F],"label",U)},getInitialData:function(){},appendData:function(M){var U=this.getRawData();U.appendData(M.data)},getData:function(M){var U=R(this);if(U){var F=U.context.data;return M==null?F:F.getLinkedData(M)}else return x(this).data},setData:function(M){var U=R(this);if(U){var F=U.context;F.data!==M&&U.modifyOutputEnd&&U.setOutputEnd(M.count()),F.outputData=M,U!==this.dataTask&&(F.data=M)}x(this).data=M},getSource:function(){return g(this)},getRawData:function(){return x(this).dataBeforeProcessed},getBaseAxis:function(){var M=this.coordinateSystem;return M&&M.getBaseAxis&&M.getBaseAxis()},formatTooltip:function(M,U,F,j){var W=this;j=j||"html";var V=j==="html"?"<br/>":`
|
|
|
`,z=j==="richText",Y={},$=0;function ue(de){var Ce=C.reduce(de,function(Qe,ot,Je){var Te=ge.getDimensionInfo(Je);return Qe|=Te&&Te.tooltip!==!1&&Te.displayName!=null},0),Ee=[];Oe.length?C.each(Oe,function(Qe){le(y(ge,M,Qe),Qe)}):C.each(de,le);function le(Qe,ot){var Je=ge.getDimensionInfo(ot);if(!Je||Je.otherDims.tooltip===!1)return;var Te=Je.type,et="sub"+W.seriesIndex+"at"+$,ze=o({color:Ue,type:"subItem",renderMode:j,markerId:et}),nt=typeof ze=="string"?ze:ze.content,Ot=(Ce?nt+f(Je.displayName||"-")+": ":"")+f(Te==="ordinal"?Qe+"":Te==="time"?U?"":m("yyyy/MM/dd hh:mm:ss",Qe):c(Qe));Ot&&Ee.push(Ot),z&&(Y[et]=Ue,++$)}var fe=Ce?z?`
|
|
|
`:"<br/>":"",xe=fe+Ee.join(fe||", ");return{renderMode:j,content:xe,style:Y}}function ne(de){return{renderMode:j,content:f(c(de)),style:Y}}var ge=this.getData(),Oe=ge.mapDimension("defaultedTooltip",!0),De=Oe.length,He=this.getRawValue(M),pe=C.isArray(He),Ue=ge.getItemVisual(M,"color");C.isObject(Ue)&&Ue.colorStops&&(Ue=(Ue.colorStops[0]||{}).color),Ue=Ue||"transparent";var oe=De>1||pe&&!De?ue(He):ne(De?y(ge,M,Oe[0]):pe?He[0]:He),ee=oe.content,Xe=W.seriesIndex+"at"+$,se=o({color:Ue,type:"item",renderMode:j,markerId:Xe});Y[Xe]=Ue,++$;var Q=ge.getName(M),G=this.name;r.isNameSpecified(this)||(G=""),G=G?f(G)+(U?": ":V):"";var J=typeof se=="string"?se:se.content,ve=U?J+G+ee:G+J+(Q?f(Q)+": "+ee:ee);return{html:ve,markers:Y}},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,F){var j=this.ecModel,W=n.getColorFromPalette.call(this,M,U,F);return W||(W=j.getColorFromPalette(M,U,F)),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 S(M){var U=M.name;r.isNameSpecified(M)||(M.name=b(M)||U)}function b(M){var U=M.getRawData(),F=U.mapDimension("seriesName",!0),j=[];return C.each(F,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(F){M.wrapMethod(F,C.curry(D,U))})}function D(M){var U=R(M);U&&U.setOutputEnd(this.count())}function R(M){var U=(M.ecModel||{}).scheduler,F=U&&U.getPipeline(M.uid);if(F){var j=F.currentTask;if(j){var W=j.agentStubMap;W&&(j=W.get(M.uid))}return j}}var P=T;H.exports=P},T6xi:function(H,B,d){var O=d("YgsL"),E=d("nCxF");function C(A,w,m){var f=w.points,c=w.smooth;if(f&&f.length>=2){if(c&&c!=="spline"){var o=E(f,c,m,w.smoothConstraint);A.moveTo(f[0][0],f[0][1]);for(var r=f.length,i=0;i<(m?r:r-1);i++){var n=o[i*2],e=o[i*2+1],s=f[(i+1)%r];A.bezierCurveTo(n[0],n[1],e[0],e[1],s[0],s[1])}}else{c==="spline"&&(f=O(f,m)),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])}m&&A.closePath()}}B.buildPath=C},TIY9:function(H,B,d){var O=d("bYtY"),E=O.each,C=d("vafp"),A=d("4NO4"),w=A.makeInner,m=d("Mgri"),f=d("F5Ls"),c=d("a9QJ"),o=d("p/La"),r=w(),i={load:function(e,s,t){var a=r(s).parsed;if(a)return a;var l=s.specialAreas||{},u=s.geoJSON,h;try{h=u?C(u,t):[]}catch(p){throw new Error(`Invalid geoJson format
|
|
|
`+p.message)}return m(e,h),E(h,function(p){var g=p.name;f(e,p),c(e,p),o(e,p);var v=l[g];v&&p.transformTo(v.left,v.top,v.width,v.height)}),r(s).parsed={regions:h,boundingRect:n(h)}}};function n(e){for(var s,t=0;t<e.length;t++){var a=e[t].getBoundingRect();s=s||a.clone(),s.union(a)}return s}H.exports=i},TJmX:function(H,B,d){var O=d("zM3Q"),E=["itemStyle","borderColor"],C=["itemStyle","borderColor0"],A=["itemStyle","color"],w=["itemStyle","color0"],m={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(s,t){for(var a;(a=s.next())!=null;){var l=t.getItemModel(a),u=t.getItemLayout(a).sign;t.setItemVisual(a,{color:n(u,l),borderColor:e(u,l)})}}function n(s,t){return t.get(s>0?A:w)}function e(s,t){return t.get(s>0?E:C)}}};H.exports=m},TNol:function(H,B,d){"use strict";d.d(B,"b",function(){return w});var O=d("q1tI"),E=d.n(O),C=d("MNnm"),A=Object(C.a)()?O.useLayoutEffect:O.useEffect;B.a=A;var w=function(f,c){var o=O.useRef(!0);A(function(){if(!o.current)return f()},c),A(function(){return o.current=!1,function(){o.current=!0}},[])}},TWL2:function(H,B,d){var O=d("IwbS"),E=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(s,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 w=A.prototype,m=["itemStyle","opacity"];w.updateData=function(o,r,i){var n=this.childAt(0),e=o.hostModel,s=o.getItemModel(r),t=o.getItemLayout(r),a=o.getItemModel(r).get(m);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 l=s.getModel("itemStyle"),u=o.getItemVisual(r,"color");n.setStyle(E.defaults({lineJoin:"round",fill:u},l.getItemStyle(["opacity"]))),n.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(o,r),O.setHoverStyle(this)},w._updateLabel=function(o,r){var i=this.childAt(1),n=this.childAt(2),e=o.hostModel,s=o.getItemModel(r),t=o.getItemLayout(r),a=t.label,l=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=s.getModel("label"),h=s.getModel("emphasis.label"),p=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine"),l=o.getItemVisual(r,"color");O.setLabelStyle(n.style,n.hoverStyle={},u,h,{labelFetcher:o.hostModel,labelDataIndex:r,defaultText:o.getName(r),autoColor:l,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=!g.get("show"),i.setStyle({stroke:l}),i.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=g.getModel("lineStyle").getLineStyle()},E.inherits(A,O.Group);var f=C.extend({type:"funnel",render:function(o,r,i){var n=o.getData(),e=this._data,s=this.group;n.diff(e).add(function(t){var a=new A(n,t);n.setItemGraphicEl(t,a),s.add(a)}).update(function(t,a){var l=e.getItemGraphicEl(a);l.updateData(n,t),s.add(l),n.setItemGraphicEl(t,l)}).remove(function(t){var a=e.getItemGraphicEl(t);s.remove(a)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=f;H.exports=c},TYVI:function(H,B,d){var O=d("5GtS"),E=d("T4UG"),C=E.extend({type:"series.gauge",getInitialData:function(w,m){return O(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),A=C;H.exports=A},Tghj:function(H,B,d){(function(O){var E;typeof window!="undefined"?E=window.__DEV__:typeof O!="undefined"&&(E=O.__DEV__),typeof E=="undefined"&&(E=!0);var C=E;B.__DEV__=C}).call(this,d("yLpj"))},ThAp:function(H,B,d){var O=d("bYtY"),E=d("5GtS"),C=d("T4UG"),A=d("7aKB"),w=A.encodeHTML,m=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=E(this,{coordDimensions:["value"],encodeDefaulter:O.curry(n,this)}),l=a.mapDimension("value"),u=O.createHashMap(),h=[],p=[],g=0,v=a.count();g<v;g++){var y=a.getName(g);u.set(y,!0),h.push({name:y,value:a.get(l,g),selected:o(a,g,"selected")})}var x=r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return O.each(x.regions,function(T){var S=T.name;u.get(S)||(h.push({name:S}),p.push(S))}),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(),l=m(this.getRawValue(t)),u=a.getName(t),h=this.seriesGroup,p=[],g=0;g<h.length;g++){var v=h[g].originalData.indexOfName(u),y=a.mapDimension("value");isNaN(h[g].originalData.get(y,v))||p.push(w(h[g].name))}return p.join(", ")+"<br />"+w(u+" : "+l)},getTooltipPosition:function(t){if(t!=null){var a=this.getData().getName(t),l=this.coordinateSystem,u=l.getRegion(a);return u&&l.dataToPoint(u.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});O.mixin(e,f);var s=e;H.exports=s},TkdX:function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},A=2,w=4;function m(e,s,t){E.Group.call(this);var a=new E.Sector({z2:A});a.seriesIndex=s.seriesIndex;var l=new E.Text({z2:w,silent:e.getModel("label").get("silent")});this.add(a),this.add(l),this.updateData(!0,e,"normal",s,t);function u(){l.ignore=l.hoverIgnore}function h(){l.ignore=l.normalIgnore}this.on("emphasis",u).on("normal",h).on("mouseover",u).on("mouseout",h)}var f=m.prototype;f.updateData=function(e,s,t,a,l){this.node=s,s.piece=this,a=a||this._seriesModel,l=l||this._ecModel;var u=this.childAt(0);u.dataIndex=s.dataIndex;var h=s.getModel(),p=s.getLayout(),g=O.extend({},p);g.label=null;var v=o(s,a,l);n(s,a,v);var y=h.getModel("itemStyle").getItemStyle(),x;if(t==="normal")x=y;else{var T=h.getModel(t+".itemStyle").getItemStyle();x=O.merge(T,y)}x=O.defaults({lineJoin:"bevel",fill:x.fill||v},x),e?(u.setShape(g),u.shape.r=p.r0,E.updateProps(u,{shape:{r:p.r}},a,s.dataIndex),u.useStyle(x)):typeof x.fill=="object"&&x.fill.type||typeof u.style.fill=="object"&&u.style.fill.type?(E.updateProps(u,{shape:g},a),u.useStyle(x)):E.updateProps(u,{shape:g,style:x},a),this._updateLabel(a,v,t);var S=h.getShallow("cursor");if(S&&u.attr("cursor",S),e){var b=a.getShallow("highlightPolicy");this._initEvents(u,s,a,b)}this._seriesModel=a||this._seriesModel,this._ecModel=l||this._ecModel,E.setHoverStyle(this)},f.onEmphasis=function(e){var s=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(s.node===t?t.piece.updateData(!1,t,"emphasis"):i(t,s.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,s,t){var a=this.node.getModel(),l=a.getModel("label"),u=t==="normal"||t==="emphasis"?l: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 g=this.node.getLayout(),v=u.get("minAngle");v==null&&(v=l.get("minAngle")),v=v/180*Math.PI;var y=g.endAngle-g.startAngle;v!=null&&Math.abs(y)<v&&(p="");var x=this.childAt(1);E.setLabelStyle(x.style,x.hoverStyle||{},l,h,{defaultText:u.getShallow("show")?p:null,autoColor:s,useInsideStyle:!0});var T=(g.startAngle+g.endAngle)/2,S=Math.cos(T),b=Math.sin(T),_,I=U("position"),L=U("distance")||0,N=U("align");I==="outside"?(_=g.r+L,N=T>Math.PI/2?"right":"left"):!N||N==="center"?(_=(g.r+g.r0)/2,N="center"):N==="left"?(_=g.r0+L,T>Math.PI/2&&(N="right")):N==="right"&&(_=g.r-L,T>Math.PI/2&&(N="left")),x.attr("style",{text:p,textAlign:N,textVerticalAlign:U("verticalAlign")||"middle",opacity:U("opacity")});var D=_*S+g.cx,R=_*b+g.cy;x.attr("position",[D,R]);var P=U("rotate"),M=0;P==="radial"?(M=-T,M<-Math.PI/2&&(M+=Math.PI)):P==="tangential"?(M=Math.PI/2-T,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):typeof P=="number"&&(M=P*Math.PI/180),x.attr("rotation",M);function U(F){var j=u.get(F);return j==null?l.get(F):j}},f._initEvents=function(e,s,t,a){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var l=this,u=function(){l.onEmphasis(a)},h=function(){l.onNormal()},p=function(){l.onDownplay()},g=function(){l.onHighlight()};t.isAnimationEnabled()&&e.on("mouseover",u).on("mouseout",h).on("emphasis",u).on("normal",h).on("downplay",p).on("highlight",g)},O.inherits(m,E.Group);var c=m;function o(e,s,t){var a=e.getVisual("color"),l=e.getVisual("visualMeta");(!l||l.length===0)&&(a=null);var u=e.getModel("itemStyle").get("color");if(u)return u;if(a)return a;if(e.depth===0)return t.option.color[0];var h=t.option.color.length;return u=t.option.color[r(e)%h],u}function r(e){for(var s=e;s.depth>1;)s=s.parentNode;var t=e.getAncestors()[0];return O.indexOf(t.children,s)}function i(e,s,t){return t===C.NONE?!1:t===C.SELF?e===s:t===C.ANCESTOR?e===s||e.isAncestorOf(s):e===s||e.isDescendantOf(s)}function n(e,s,t){var a=s.getData();a.setItemVisual(e.dataIndex,"color",t)}H.exports=c},Tp9H:function(H,B,d){var O=d("ItGF"),E=d("Kagy"),C=d("IUWy"),A=E.toolbox.saveAsImage;function w(c){this.model=c}w.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:A.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:A.lang.slice()},w.prototype.unusable=!O.canvasSupported;var m=w.prototype;m.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",s=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=s;var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob){for(var l=atob(s.split(",")[1]),u=l.length,h=new Uint8Array(u);u--;)h[u]=l.charCodeAt(u);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,i+"."+e)}else{var g=r.get("lang"),v='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(g&&g[0]||"")+'" /></body>',y=window.open();y.document.write(v)}},C.register("saveAsImage",w);var f=w;H.exports=f},"U/Mo":function(H,B){function d(E){var C=E.coordinateSystem;if(C.type!=="view")return 1;var A=E.option.nodeScaleRatio,w=C.scale,m=w&&w[0]||1,f=C.getZoom(),c=(f-1)*A+1;return c/m}function O(E){var C=E.getVisual("symbolSize");return C instanceof Array&&(C=(C[0]+C[1])/2),+C}B.getNodeGlobalScale=d,B.getSymbolSize=O},UADf:function(H,B,d){},UESt:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="RightOutlined";var f=B.a=E.forwardRef(m)},UOVi:function(H,B,d){var O=d("bYtY"),E=d("7aKB"),C=["x","y","z","radius","angle","single"],A=["cartesian2d","polar","singleAxis"];function w(o){return O.indexOf(A,o)>=0}function m(o,r){o=o.slice();var i=O.map(o,E.capitalFirst);r=(r||[]).slice();var n=O.map(r,E.capitalFirst);return function(e,s){O.each(o,function(t,a){for(var l={name:t,capital:i[a]},u=0;u<r.length;u++)l[r[u]]=t+n[u];e.call(s,l)})}}var f=m(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;s(t,a);var l;do l=!1,o(u);while(l);function u(h){!n(h,a)&&e(h,a)&&(s(h,a),l=!0)}return a};function n(t,a){return O.indexOf(a.nodes,t)>=0}function e(t,a){var l=!1;return r(function(u){O.each(i(t,u)||[],function(h){a.records[u.name][h]&&(l=!0)})}),l}function s(t,a){a.nodes.push(t),r(function(l){O.each(i(t,l)||[],function(u){a.records[l.name][u]=!0})})}}B.isCoordSupported=w,B.createNameEach=m,B.eachAxisDim=f,B.createLinkedNodesFinder=c},Uc92:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},UnoB:function(H,B,d){var O=d("bYtY"),E=d("OELB");function C(m,f){m.eachSeriesByType("themeRiver",function(c){var o=c.getData(),r=c.coordinateSystem,i={},n=r.getRect();i.rect=n;var e=c.get("boundaryGap"),s=r.getAxis();if(i.boundaryGap=e,s.orient==="horizontal"){e[0]=E.parsePercent(e[0],n.height),e[1]=E.parsePercent(e[1],n.height);var t=n.height-e[0]-e[1];A(o,c,t)}else{e[0]=E.parsePercent(e[0],n.width),e[1]=E.parsePercent(e[1],n.width);var a=n.width-e[0]-e[1];A(o,c,a)}o.setLayout("layoutInfo",i)})}function A(m,f,c){if(!m.count())return;for(var o=f.coordinateSystem,r=f.getLayerSeries(),i=m.mapDimension("single"),n=m.mapDimension("value"),e=O.map(r,function(v){return O.map(v.indices,function(y){var x=o.dataToPoint(m.get(i,y));return x[1]=m.get(n,y),x})}),s=w(e),t=s.y0,a=c/s.max,l=r.length,u=r[0].indices.length,h,p=0;p<u;++p){h=t[p]*a,m.setItemLayout(r[0].indices[p],{layerIndex:0,x:e[0][p][0],y0:h,y:e[0][p][1]*a});for(var g=1;g<l;++g)h+=e[g-1][p][1]*a,m.setItemLayout(r[g].indices[p],{layerIndex:g,x:e[g][p][0],y0:h,y:e[g][p][1]*a})}}function w(m){for(var f=m.length,c=m[0].length,o=[],r=[],i=0,n,e={},s=0;s<c;++s){for(var t=0,n=0;t<f;++t)n+=m[t][s][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 l=0;l<c;++l){var u=o[l]+r[l];u>i&&(i=u)}return e.y0=r,e.max=i,e}H.exports=C},Urep:function(H,B,d){},V7ic:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("digP")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="FileTwoTone";var c=A.forwardRef(f);B.default=c},VFCP:function(H,B,d){d("dBmv"),d("KamJ")},VPsl:function(H,B){function d(O){O.eachSeriesByType("map",function(E){var C=E.get("color"),A=E.getModel("itemStyle"),w=A.get("areaColor"),m=A.get("color")||C[E.seriesIndex%C.length];E.getData().setVisual({areaColor:w,color:m})})}H.exports=d},VR9l:function(H,B,d){var O=d("KCsZ"),E=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),C={getItemStyle:function(A,w){var m=E(this,A,w),f=this.getBorderLineDash();return f&&(m.lineDash=f),m},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,B,d){d("I+Bx"),d("F0hE"),d("bBKM")},VSMT:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.decodeUTF8=O,B.encodeUTF8=E;function O(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(C))}catch(w){if(w instanceof URIError&&A)return C;throw w}}function E(C){return unescape(encodeURIComponent(C))}},VXYp:function(H,B,d){var O=d("bYtY"),E=d("SgGq"),C=d("iLNv"),A="\0_ec_dataZoom_roams";function w(e,s){var t=c(e),a=s.dataZoomId,l=s.coordId;O.each(t,function(p,g){var v=p.dataZoomInfos;v[a]&&O.indexOf(s.allCoordIds,l)<0&&(delete v[a],p.count--)}),r(t);var u=t[l];u||(u=t[l]={coordId:l,dataZoomInfos:{},count:0},u.controller=o(e,u),u.dispatchAction=O.curry(i,e)),!u.dataZoomInfos[a]&&u.count++,u.dataZoomInfos[a]=s;var h=n(u.dataZoomInfos);u.controller.enable(h.controlType,h.opt),u.controller.setPointerChecker(s.containsPoint),C.createOrUpdate(u,"dispatchAction",s.dataZoomModel.get("throttle",!0),"fixRate")}function m(e,s){var t=c(e);O.each(t,function(a){a.controller.dispose();var l=a.dataZoomInfos;l[s]&&(delete l[s],a.count--)}),r(t)}function f(e){return e.type+"\0_"+e.id}function c(e){var s=e.getZr();return s[A]||(s[A]={})}function o(e,s){var t=new E(e.getZr());return O.each(["pan","zoom","scrollMove"],function(a){t.on(a,function(l){var u=[];O.each(s.dataZoomInfos,function(h){if(!l.isAvailableBehavior(h.dataZoomModel.option))return;var p=(h.getRange||{})[a],g=p&&p(s.controller,l);!h.dataZoomModel.get("disabled",!0)&&g&&u.push({dataZoomId:h.dataZoomId,start:g[0],end:g[1]})}),u.length&&s.dispatchAction(u)})}),t}function r(e){O.each(e,function(s,t){s.count||(s.controller.dispose(),delete e[t])})}function i(e,s){e.dispatchAction({type:"dataZoom",batch:s})}function n(e){var s,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return O.each(e,function(u){var h=u.dataZoomModel,p=h.get("disabled",!0)?!1:h.get("zoomLock",!0)?"move":!0;a[t+p]>a[t+s]&&(s=p),l&=h.get("preventDefaultMouseMove",!0)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l}}}B.register=w,B.unregister=m,B.generateCoordId=f},VaxA:function(H,B,d){var O=d("bYtY");function E(m,f,c){if(m&&O.indexOf(f,m.type)>=0){var o=c.getData().tree.root,r=m.targetNode;if(typeof r=="string"&&(r=o.getNodeById(r)),r&&o.contains(r))return{node:r};var i=m.targetNodeId;if(i!=null&&(r=o.getNodeById(i)))return{node:r}}}function C(m){for(var f=[];m;)m=m.parentNode,m&&f.push(m);return f.reverse()}function A(m,f){var c=C(m);return O.indexOf(c,f)>=0}function w(m,f){for(var c=[];m;){var o=m.dataIndex;c.push({name:m.name,dataIndex:o,value:f.getRawValue(o)}),m=m.parentNode}return c.reverse(),c}B.retrieveTargetInfo=E,B.getPathToRoot=C,B.aboveViewRoot=A,B.wrapTreePathInfo=w},Vi4m:function(H,B,d){var O=d("bYtY");function E(A){A!=null&&O.extend(this,A),this.otherDims={}}var C=E;H.exports=C},Vl3Y:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("J4zp"),A=d.n(C),w=d("lSNA"),m=d.n(w),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(){}}),s=f.createContext({updateItemErrors:function(){}}),t=function(ht){var Rt=Object(n.default)(ht,["prefixCls"]);return f.createElement(r.FormProvider,Rt)};function a(q){return typeof q=="object"&&q!=null&&q.nodeType===1}function l(q,ht){return(!ht||q!=="hidden")&&q!=="visible"&&q!=="clip"}function u(q,ht){if(q.clientHeight<q.scrollHeight||q.clientWidth<q.scrollWidth){var Rt=getComputedStyle(q,null);return l(Rt.overflowY,ht)||l(Rt.overflowX,ht)||function(ut){var Xt=function(or){if(!or.ownerDocument||!or.ownerDocument.defaultView)return null;try{return or.ownerDocument.defaultView.frameElement}catch(Zr){return null}}(ut);return!!Xt&&(Xt.clientHeight<ut.scrollHeight||Xt.clientWidth<ut.scrollWidth)}(q)}return!1}function h(q,ht,Rt,ut,Xt,or,Zr,ar){return or<q&&Zr>ht||or>q&&Zr<ht?0:or<=q&&ar<=Rt||Zr>=ht&&ar>=Rt?or-q-ut:Zr>ht&&ar<Rt||or<q&&ar>Rt?Zr-ht+Xt:0}var p=function(q,ht){var Rt=window,ut=ht.scrollMode,Xt=ht.block,or=ht.inline,Zr=ht.boundary,ar=ht.skipOverflowHiddenElements,dr=typeof Zr=="function"?Zr:function(Dn){return Dn!==Zr};if(!a(q))throw new TypeError("Invalid target");for(var er=document.scrollingElement||document.documentElement,Ht=[],dt=q;a(dt)&&dr(dt);){if((dt=dt.parentElement)===er){Ht.push(dt);break}dt!=null&&dt===document.body&&u(dt)&&!u(document.documentElement)||dt!=null&&u(dt,ar)&&Ht.push(dt)}for(var Hr=Rt.visualViewport?Rt.visualViewport.width:innerWidth,dn=Rt.visualViewport?Rt.visualViewport.height:innerHeight,Nn=window.scrollX||pageXOffset,Vn=window.scrollY||pageYOffset,gi=q.getBoundingClientRect(),bn=gi.height,Mn=gi.width,jt=gi.top,St=gi.right,Ie=gi.bottom,_e=gi.left,Le=Xt==="start"||Xt==="nearest"?jt:Xt==="end"?Ie:jt+bn/2,Ze=or==="center"?_e+Mn/2:or==="end"?St:_e,it=[],ft=0;ft<Ht.length;ft++){var Nt=Ht[ft],Ar=Nt.getBoundingClientRect(),Mr=Ar.height,un=Ar.width,Mt=Ar.top,at=Ar.right,lt=Ar.bottom,rr=Ar.left;if(ut==="if-needed"&&jt>=0&&_e>=0&&Ie<=dn&&St<=Hr&&jt>=Mt&&Ie<=lt&&_e>=rr&&St<=at)return it;var Bt=getComputedStyle(Nt),_t=parseInt(Bt.borderLeftWidth,10),Kt=parseInt(Bt.borderTopWidth,10),wt=parseInt(Bt.borderRightWidth,10),Ut=parseInt(Bt.borderBottomWidth,10),Sr=0,hr=0,gr="offsetWidth"in Nt?Nt.offsetWidth-Nt.clientWidth-_t-wt:0,Jr="offsetHeight"in Nt?Nt.offsetHeight-Nt.clientHeight-Kt-Ut:0;if(er===Nt)Sr=Xt==="start"?Le:Xt==="end"?Le-dn:Xt==="nearest"?h(Vn,Vn+dn,dn,Kt,Ut,Vn+Le,Vn+Le+bn,bn):Le-dn/2,hr=or==="start"?Ze:or==="center"?Ze-Hr/2:or==="end"?Ze-Hr:h(Nn,Nn+Hr,Hr,_t,wt,Nn+Ze,Nn+Ze+Mn,Mn),Sr=Math.max(0,Sr+Vn),hr=Math.max(0,hr+Nn);else{Sr=Xt==="start"?Le-Mt-Kt:Xt==="end"?Le-lt+Ut+Jr:Xt==="nearest"?h(Mt,lt,Mr,Kt,Ut+Jr,Le,Le+bn,bn):Le-(Mt+Mr/2)+Jr/2,hr=or==="start"?Ze-rr-_t:or==="center"?Ze-(rr+un/2)+gr/2:or==="end"?Ze-at+wt+gr:h(rr,at,un,_t,wt+gr,Ze,Ze+Mn,Mn);var $r=Nt.scrollLeft,Pn=Nt.scrollTop;Le+=Pn-(Sr=Math.max(0,Math.min(Pn+Sr,Nt.scrollHeight-Mr+Jr))),Ze+=$r-(hr=Math.max(0,Math.min($r+hr,Nt.scrollWidth-un+gr)))}it.push({el:Nt,top:Sr,left:hr})}return it};function g(q){return q===Object(q)&&Object.keys(q).length!==0}function v(q,ht){ht===void 0&&(ht="auto");var Rt="scrollBehavior"in document.body.style;q.forEach(function(ut){var Xt=ut.el,or=ut.top,Zr=ut.left;Xt.scroll&&Rt?Xt.scroll({top:or,left:Zr,behavior:ht}):(Xt.scrollTop=or,Xt.scrollLeft=Zr)})}function y(q){return q===!1?{block:"end",inline:"nearest"}:g(q)?q:{block:"start",inline:"nearest"}}function x(q,ht){var Rt=q.isConnected||q.ownerDocument.documentElement.contains(q);if(g(ht)&&typeof ht.behavior=="function")return ht.behavior(Rt?p(q,ht):[]);if(!Rt)return;var ut=y(ht);return v(p(q,ut),ut.behavior)}var T=x;function S(q){return q===void 0||q===!1?[]:Array.isArray(q)?q:[q]}function b(q,ht){if(!q.length)return;var Rt=q.join("_");return ht?"".concat(ht,"_").concat(Rt):Rt}function _(q){var ht=S(q);return ht.join("_")}function I(q){var ht=Object(r.useForm)(),Rt=A()(ht,1),ut=Rt[0],Xt=Object(f.useRef)({}),or=Object(f.useMemo)(function(){return q||E()(E()({},ut),{__INTERNAL__:{itemRef:function(ar){return function(dr){var er=_(ar);dr?Xt.current[er]=dr:delete Xt.current[er]}}},scrollToField:function(ar){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},er=S(ar),Ht=b(er,or.__INTERNAL__.name),dt=Ht?document.getElementById(Ht):null;dt&&T(dt,E()({scrollMode:"if-needed",block:"nearest"},dr))},getFieldInstance:function(ar){var dr=_(ar);return Xt.current[dr]}})},[q,ut]);return[or]}var L=d("3Nzz"),N=function(q,ht){var Rt={};for(var ut in q)Object.prototype.hasOwnProperty.call(q,ut)&&ht.indexOf(ut)<0&&(Rt[ut]=q[ut]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,ut=Object.getOwnPropertySymbols(q);Xt<ut.length;Xt++)ht.indexOf(ut[Xt])<0&&Object.prototype.propertyIsEnumerable.call(q,ut[Xt])&&(Rt[ut[Xt]]=q[ut[Xt]]);return Rt},D=function(ht,Rt){var ut,Xt=f.useContext(L.b),or=f.useContext(i.b),Zr=or.getPrefixCls,ar=or.direction,dr=ht.name,er=ht.prefixCls,Ht=ht.className,dt=Ht===void 0?"":Ht,Hr=ht.size,dn=Hr===void 0?Xt:Hr,Nn=ht.form,Vn=ht.colon,gi=ht.labelAlign,bn=ht.labelCol,Mn=ht.wrapperCol,jt=ht.hideRequiredMark,St=ht.layout,Ie=St===void 0?"horizontal":St,_e=ht.scrollToFirstError,Le=ht.requiredMark,Ze=ht.onFinishFailed,it=N(ht,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),ft=Object(f.useMemo)(function(){return Le!==void 0?Le:!jt},[jt,Le]),Nt=Zr("form",er),Ar=o()(Nt,(ut={},m()(ut,"".concat(Nt,"-").concat(Ie),!0),m()(ut,"".concat(Nt,"-hide-required-mark"),ft===!1),m()(ut,"".concat(Nt,"-rtl"),ar==="rtl"),m()(ut,"".concat(Nt,"-").concat(dn),dn),ut),dt),Mr=I(Nn),un=A()(Mr,1),Mt=un[0],at=Mt.__INTERNAL__;at.name=dr;var lt=Object(f.useMemo)(function(){return{name:dr,labelAlign:gi,labelCol:bn,wrapperCol:Mn,vertical:Ie==="vertical",colon:Vn,requiredMark:ft,itemRef:at.itemRef}},[dr,gi,bn,Mn,Ie,Vn,ft]);f.useImperativeHandle(Rt,function(){return Mt});var rr=function(_t){Ze&&Ze(_t),_e&&_t.errorFields.length&&Mt.scrollToField(_t.errorFields[0].name)};return f.createElement(L.a,{size:dn},f.createElement(e.Provider,{value:lt},f.createElement(r.default,E()({id:dr},it,{onFinishFailed:rr,form:Mt,className:Ar}))))},R=f.forwardRef(D),P=R,M=d("cDf5"),U=d.n(M),F=d("RIqP"),j=d.n(F),W=d("Y+p1"),V=d.n(W),z=d("KW7l"),Y=d("c+Xe"),$=d("qrJ5"),ue=d("CWQg"),ne=d("uaoM"),ge=d("/kpp"),Oe=d("YMnH"),De=d("ZvpZ"),He=function(ht){var Rt=ht.prefixCls,ut=ht.label,Xt=ht.htmlFor,or=ht.labelCol,Zr=ht.labelAlign,ar=ht.colon,dr=ht.required,er=ht.requiredMark,Ht=Object(Oe.b)("Form"),dt=A()(Ht,1),Hr=dt[0];return ut?f.createElement(e.Consumer,{key:"label"},function(dn){var Nn,Vn=dn.vertical,gi=dn.labelAlign,bn=dn.labelCol,Mn=dn.colon,jt,St=or||bn||{},Ie=Zr||gi,_e="".concat(Rt,"-item-label"),Le=o()(_e,Ie==="left"&&"".concat(_e,"-left"),St.className),Ze=ut,it=ar===!0||Mn!==!1&&ar!==!1,ft=it&&!Vn;ft&&typeof ut=="string"&&ut.trim()!==""&&(Ze=ut.replace(/[:|:]\s*$/,"")),er==="optional"&&!dr&&(Ze=f.createElement(f.Fragment,null,Ze,f.createElement("span",{className:"".concat(Rt,"-item-optional")},(Hr==null?void 0:Hr.optional)||((jt=De.a.Form)===null||jt===void 0?void 0:jt.optional))));var Nt=o()((Nn={},m()(Nn,"".concat(Rt,"-item-required"),dr),m()(Nn,"".concat(Rt,"-item-required-mark-optional"),er==="optional"),m()(Nn,"".concat(Rt,"-item-no-colon"),!it),Nn));return f.createElement(ge.a,E()({},St,{className:Le}),f.createElement("label",{htmlFor:Xt,className:Nt,title:typeof ut=="string"?ut:""},Ze))}):null},pe=He,Ue=d("gZBC"),oe=d.n(Ue),ee=d("kbBi"),Xe=d.n(ee),se=d("J84W"),Q=d.n(se),G=d("sKbD"),J=d.n(G),ve=d("YrtM"),de=d("HTfv"),Ce=d("hkKa");function Ee(q,ht,Rt){var ut=f.useRef({errors:q,visible:!!q.length}),Xt=Object(Ce.a)(),or=function(){var ar=ut.current.visible,dr=!!q.length,er=ut.current.errors;ut.current.errors=q,ut.current.visible=dr,ar!==dr?ht(dr):(er.length!==q.length||er.some(function(Ht,dt){return Ht!==q[dt]}))&&Xt()};return f.useEffect(function(){if(!Rt){var Zr=setTimeout(or,10);return function(){return clearTimeout(Zr)}}},[q]),Rt&&or(),[ut.current.visible,ut.current.errors]}var le={success:Q.a,warning:J.a,error:Xe.a,validating:oe.a},fe=function(ht){var Rt=ht.prefixCls,ut=ht.wrapperCol,Xt=ht.children,or=ht.help,Zr=ht.errors,ar=ht.onDomErrorVisibleChange,dr=ht.hasFeedback,er=ht.validateStatus,Ht=ht.extra,dt=Object(Ce.a)(),Hr="".concat(Rt,"-item"),dn=f.useContext(e),Nn=ut||dn.wrapperCol||{},Vn=o()("".concat(Hr,"-control"),Nn.className),gi=Ee(Zr,function(Ze){Ze&&Promise.resolve().then(function(){ar(!0)}),dt()},!!or),bn=A()(gi,2),Mn=bn[0],jt=bn[1];f.useEffect(function(){return function(){ar(!1)}},[]);var St=Object(ve.a)(function(){return jt},Mn,function(Ze,it){return it}),Ie=er&&le[er],_e=dr&&Ie?f.createElement("span",{className:"".concat(Hr,"-children-icon")},f.createElement(Ie,null)):null,Le=E()({},dn);return delete Le.labelCol,delete Le.wrapperCol,f.createElement(e.Provider,{value:Le},f.createElement(ge.a,E()({},Nn,{className:Vn}),f.createElement("div",{className:"".concat(Hr,"-control-input")},f.createElement("div",{className:"".concat(Hr,"-control-input-content")},Xt),_e),f.createElement(de.default,{motionDeadline:500,visible:Mn,motionName:"show-help",onLeaveEnd:function(){ar(!1)},motionAppear:!0,removeOnLeave:!0},function(Ze){var it=Ze.className;return f.createElement("div",{className:o()("".concat(Hr,"-explain"),it),key:"help"},St.map(function(ft,Nt){return f.createElement("div",{key:Nt,role:"alert"},ft)}))}),Ht&&f.createElement("div",{className:"".concat(Hr,"-extra")},Ht)))},xe=fe,Qe=d("0n0R"),ot=d("xEkU"),Je=d.n(ot);function Te(q){var ht=f.useState(q),Rt=A()(ht,2),ut=Rt[0],Xt=Rt[1],or=Object(f.useRef)(null),Zr=Object(f.useRef)([]),ar=Object(f.useRef)(!1);f.useEffect(function(){return function(){ar.current=!0,Je.a.cancel(or.current)}},[]);function dr(er){if(ar.current)return;or.current===null&&(Zr.current=[],or.current=Je()(function(){or.current=null,Xt(function(Ht){var dt=Ht;return Zr.current.forEach(function(Hr){dt=Hr(dt)}),dt})})),Zr.current.push(er)}return[ut,dr]}function et(){var q=f.useContext(e),ht=q.itemRef,Rt=f.useRef({});function ut(Xt,or){var Zr=or&&U()(or)==="object"&&or.ref,ar=Xt.join("_");return(Rt.current.name!==ar||Rt.current.originRef!==Zr)&&(Rt.current.name=ar,Rt.current.originRef=Zr,Rt.current.ref=Object(Y.a)(ht(Xt),Zr)),Rt.current.ref}return ut}var ze=function(q,ht){var Rt={};for(var ut in q)Object.prototype.hasOwnProperty.call(q,ut)&&ht.indexOf(ut)<0&&(Rt[ut]=q[ut]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,ut=Object.getOwnPropertySymbols(q);Xt<ut.length;Xt++)ht.indexOf(ut[Xt])<0&&Object.prototype.propertyIsEnumerable.call(q,ut[Xt])&&(Rt[ut[Xt]]=q[ut[Xt]]);return Rt},nt=Object(ue.a)("success","warning","error","validating",""),Ot=f.memo(function(q){var ht=q.children;return ht},function(q,ht){return q.value===ht.value&&q.update===ht.update});function Ct(q){return q===null&&Object(ne.a)(!1,"Form.Item","`null` is passed as `name` property"),!(q==null)}function Tt(q){var ht=q.name,Rt=q.fieldKey,ut=q.noStyle,Xt=q.dependencies,or=q.prefixCls,Zr=q.style,ar=q.className,dr=q.shouldUpdate,er=q.hasFeedback,Ht=q.help,dt=q.rules,Hr=q.validateStatus,dn=q.children,Nn=q.required,Vn=q.label,gi=q.trigger,bn=gi===void 0?"onChange":gi,Mn=q.validateTrigger,jt=q.hidden,St=ze(q,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Ie=f.useRef(!1),_e=f.useContext(i.b),Le=_e.getPrefixCls,Ze=f.useContext(e),it=Ze.name,ft=Ze.requiredMark,Nt=f.useContext(s),Ar=Nt.updateItemErrors,Mr=f.useState(!!Ht),un=A()(Mr,2),Mt=un[0],at=un[1],lt=f.useRef(Hr),rr=Te({}),Bt=A()(rr,2),_t=Bt[0],Kt=Bt[1],wt=f.useContext(z.b),Ut=wt.validateTrigger,Sr=Mn!==void 0?Mn:Ut;function hr($e){Ie.current||at($e)}var gr=Ct(ht),Jr=f.useRef([]);f.useEffect(function(){return function(){Ie.current=!0,Ar(Jr.current.join("__SPLIT__"),[])}},[]);var $r=Le("form",or),Pn=ut?Ar:function($e,Se){Kt(function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V()(Re[$e],Se)?Re:E()(E()({},Re),m()({},$e,Se))})},Dn=et();function Zn($e,Se,Re,je){var Ye,Ve;if(ut&&!jt)return $e;var qe=[];Object.keys(_t).forEach(function(Rr){qe=[].concat(j()(qe),j()(_t[Rr]||[]))});var xt;Ht!=null?xt=S(Ht):(xt=Re?Re.errors:[],xt=[].concat(j()(xt),j()(qe)));var ct="";Hr!==void 0?ct=Hr:(Re==null?void 0:Re.validating)?ct="validating":((Ve=Re==null?void 0:Re.errors)===null||Ve===void 0?void 0:Ve.length)||qe.length?ct="error":(Re==null?void 0:Re.touched)&&(ct="success"),Mt&&Ht&&(lt.current=ct);var Jt=(Ye={},m()(Ye,"".concat($r,"-item"),!0),m()(Ye,"".concat($r,"-item-with-help"),Mt||Ht),m()(Ye,"".concat(ar),!!ar),m()(Ye,"".concat($r,"-item-has-feedback"),ct&&er),m()(Ye,"".concat($r,"-item-has-success"),ct==="success"),m()(Ye,"".concat($r,"-item-has-warning"),ct==="warning"),m()(Ye,"".concat($r,"-item-has-error"),ct==="error"),m()(Ye,"".concat($r,"-item-has-error-leave"),!Ht&&Mt&<.current==="error"),m()(Ye,"".concat($r,"-item-is-validating"),ct==="validating"),m()(Ye,"".concat($r,"-item-hidden"),jt),Ye);return f.createElement($.a,E()({className:o()(Jt),style:Zr,key:"row"},Object(n.default)(St,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),f.createElement(pe,E()({htmlFor:Se,required:je,requiredMark:ft},q,{prefixCls:$r})),f.createElement(xe,E()({},q,Re,{errors:xt,prefixCls:$r,onDomErrorVisibleChange:hr,validateStatus:ct}),f.createElement(s.Provider,{value:{updateItemErrors:Pn}},$e)))}var li=typeof dn=="function",Ai=f.useRef(0);if(Ai.current+=1,!gr&&!li&&!Xt)return Zn(dn);var Ii={};return typeof Vn=="string"&&(Ii.label=Vn),f.createElement(r.Field,E()({},q,{messageVariables:Ii,trigger:bn,validateTrigger:Sr,onReset:function(){hr(!1)}}),function($e,Se,Re){var je=Se.errors,Ye=S(ht).length&&Se?Se.name:[],Ve=b(Ye,it);if(ut){if(Jr.current=j()(Ye),Rt){var qe=Array.isArray(Rt)?Rt:[Rt];Jr.current=[].concat(j()(Ye.slice(0,-1)),j()(qe))}Ar(Jr.current.join("__SPLIT__"),je)}var xt=Nn!==void 0?Nn:!!(dt&&dt.some(function(Xr){if(Xr&&U()(Xr)==="object"&&Xr.required)return!0;if(typeof Xr=="function"){var qt=Xr(Re);return qt&&qt.required}return!1})),ct=E()({},$e),Jt=null;if(Object(ne.a)(!(dr&&Xt),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(dn)&&gr)Object(ne.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),Jt=dn;else if(li&&(!(dr||Xt)||gr))Object(ne.a)(!!(dr||Xt),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(ne.a)(!gr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(Xt&&!li&&!gr)Object(ne.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Qe.b)(dn)){Object(ne.a)(dn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Rr=E()(E()({},dn.props),ct);Rr.id||(Rr.id=Ve),Object(Y.c)(dn)&&(Rr.ref=Dn(Ye,dn));var Ir=new Set([].concat(j()(S(bn)),j()(S(Sr))));Ir.forEach(function(Xr){Rr[Xr]=function(){for(var qt,pn,fr,mn,en,kr=arguments.length,Gn=new Array(kr),di=0;di<kr;di++)Gn[di]=arguments[di];(fr=ct[Xr])===null||fr===void 0||(qt=fr).call.apply(qt,[ct].concat(Gn)),(en=(mn=dn.props)[Xr])===null||en===void 0||(pn=en).call.apply(pn,[mn].concat(Gn))}}),Jt=f.createElement(Ot,{value:ct[q.valuePropName||"value"],update:Ai.current},Object(Qe.a)(dn,Rr))}else li&&(dr||Xt)&&!gr?Jt=dn(Re):(Object(ne.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."),Jt=dn);return Zn(Jt,Ve,Se,xt)})}var Dt=Tt,Be=function(q,ht){var Rt={};for(var ut in q)Object.prototype.hasOwnProperty.call(q,ut)&&ht.indexOf(ut)<0&&(Rt[ut]=q[ut]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,ut=Object.getOwnPropertySymbols(q);Xt<ut.length;Xt++)ht.indexOf(ut[Xt])<0&&Object.prototype.propertyIsEnumerable.call(q,ut[Xt])&&(Rt[ut[Xt]]=q[ut[Xt]]);return Rt},ie=function(ht){var Rt=ht.children,ut=Be(ht,["children"]);return Object(ne.a)(!!ut.name,"Form.List","Miss `name` prop."),f.createElement(r.List,ut,function(Xt,or){return Rt(Xt.map(function(Zr){return E()(E()({},Zr),{fieldKey:Zr.key})}),or)})},X=ie,Fe=P;Fe.Item=Dt,Fe.List=X,Fe.useForm=I,Fe.Provider=t,Fe.create=function(){Object(ne.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var Ne=B.a=Fe},VpOo:function(H,B){function d(O,E){var C=E.x,A=E.y,w=E.width,m=E.height,f=E.r,c,o,r,i;w<0&&(C=C+w,w=-w),m<0&&(A=A+m,m=-m),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>w&&(n=c+o,c*=w/n,o*=w/n),r+i>w&&(n=r+i,r*=w/n,i*=w/n),o+r>m&&(n=o+r,o*=m/n,r*=m/n),c+i>m&&(n=c+i,c*=m/n,i*=m/n),O.moveTo(C+c,A),O.lineTo(C+w-o,A),o!==0&&O.arc(C+w-o,A+o,o,-Math.PI/2,0),O.lineTo(C+w,A+m-r),r!==0&&O.arc(C+w-r,A+m-r,r,0,Math.PI/2),O.lineTo(C+i,A+m),i!==0&&O.arc(C+i,A+m-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)}B.buildPath=d},"VrN/":function(H,B,d){(function(O,E){H.exports=E()})(this,function(){"use strict";var O=navigator.userAgent,E=navigator.platform,C=/gecko\/\d/i.test(O),A=/MSIE \d/.test(O),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),m=/Edge\/(\d+)/.exec(O),f=A||w||m,c=f&&(A?document.documentMode||6:+(m||w)[1]),o=!m&&/WebKit\//.test(O),r=o&&/Qt\/\d+\.\d+/.test(O),i=!m&&/Chrome\//.test(O),n=/Opera\//.test(O),e=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),t=/PhantomJS/.test(O),a=!m&&/AppleWebKit/.test(O)&&/Mobile\/\w+/.test(O),l=/Android/.test(O),u=a||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),h=a||/Mac/.test(E),p=/\bCrOS\b/.test(O),g=/win/i.test(E),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)),x=C||f&&c>=9;function T(k){return new RegExp("(^|\\s)"+k+"(?:$|\\s)\\s*")}var S=function(K,Z){var re=K.className,ce=T(Z).exec(re);if(ce){var Pe=re.slice(ce.index+ce[0].length);K.className=re.slice(0,ce.index)+(Pe?ce[1]+Pe:"")}};function b(k){for(var K=k.childNodes.length;K>0;--K)k.removeChild(k.firstChild);return k}function _(k,K){return b(k).appendChild(K)}function I(k,K,Z,re){var ce=document.createElement(k);if(Z&&(ce.className=Z),re&&(ce.style.cssText=re),typeof K=="string")ce.appendChild(document.createTextNode(K));else if(K)for(var Pe=0;Pe<K.length;++Pe)ce.appendChild(K[Pe]);return ce}function L(k,K,Z,re){var ce=I(k,K,Z,re);return ce.setAttribute("role","presentation"),ce}var N;document.createRange?N=function(K,Z,re,ce){var Pe=document.createRange();return Pe.setEnd(ce||K,re),Pe.setStart(K,Z),Pe}:N=function(K,Z,re){var ce=document.body.createTextRange();try{ce.moveToElementText(K.parentNode)}catch(Pe){return ce}return ce.collapse(!0),ce.moveEnd("character",re),ce.moveStart("character",Z),ce};function D(k,K){if(K.nodeType==3&&(K=K.parentNode),k.contains)return k.contains(K);do if(K.nodeType==11&&(K=K.host),K==k)return!0;while(K=K.parentNode)}function R(){var k;try{k=document.activeElement}catch(K){k=document.body||null}for(;k&&k.shadowRoot&&k.shadowRoot.activeElement;)k=k.shadowRoot.activeElement;return k}function P(k,K){var Z=k.className;T(K).test(Z)||(k.className+=(Z?" ":"")+K)}function M(k,K){for(var Z=k.split(" "),re=0;re<Z.length;re++)Z[re]&&!T(Z[re]).test(K)&&(K+=" "+Z[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(Z){}});function F(k){var K=Array.prototype.slice.call(arguments,1);return function(){return k.apply(null,K)}}function j(k,K,Z){K||(K={});for(var re in k)k.hasOwnProperty(re)&&(Z!==!1||!K.hasOwnProperty(re))&&(K[re]=k[re]);return K}function W(k,K,Z,re,ce){K==null&&(K=k.search(/[^\s\u00a0]/),K==-1&&(K=k.length));for(var Pe=re||0,mt=ce||0;;){var Wt=k.indexOf(" ",Pe);if(Wt<0||Wt>=K)return mt+(K-Pe);mt+=Wt-Pe,mt+=Z-mt%Z,Pe=Wt+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};V.prototype.onTimeout=function(k){k.id=0,k.time<=+new Date?k.f():setTimeout(k.handler,k.time-+new Date)},V.prototype.set=function(k,K){this.f=K;var Z=+new Date+k;(!this.id||Z<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,k),this.time=Z)};function z(k,K){for(var Z=0;Z<k.length;++Z)if(k[Z]==K)return Z;return-1}var Y=50,$={toString:function(){return"CodeMirror.Pass"}},ue={scroll:!1},ne={origin:"*mouse"},ge={origin:"+move"};function Oe(k,K,Z){for(var re=0,ce=0;;){var Pe=k.indexOf(" ",re);Pe==-1&&(Pe=k.length);var mt=Pe-re;if(Pe==k.length||ce+mt>=K)return re+Math.min(mt,K-ce);if(ce+=Pe-re,ce+=Z-ce%Z,re=Pe+1,ce>=K)return re}}var De=[""];function He(k){for(;De.length<=k;)De.push(pe(De)+" ");return De[k]}function pe(k){return k[k.length-1]}function Ue(k,K){for(var Z=[],re=0;re<k.length;re++)Z[re]=K(k[re],re);return Z}function oe(k,K,Z){for(var re=0,ce=Z(K);re<k.length&&Z(k[re])<=ce;)re++;k.splice(re,0,K)}function ee(){}function Xe(k,K){var Z;return Object.create?Z=Object.create(k):(ee.prototype=k,Z=new ee),K&&j(K,Z),Z}var se=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Q(k){return/\w/.test(k)||k>"\x80"&&(k.toUpperCase()!=k.toLowerCase()||se.test(k))}function G(k,K){return K?K.source.indexOf("\\w")>-1&&Q(k)?!0:K.test(k):Q(k)}function J(k){for(var K in k)if(k.hasOwnProperty(K)&&k[K])return!1;return!0}var ve=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function de(k){return k.charCodeAt(0)>=768&&ve.test(k)}function Ce(k,K,Z){for(;(Z<0?K>0:K<k.length)&&de(k.charAt(K));)K+=Z;return K}function Ee(k,K,Z){for(var re=K>Z?-1:1;;){if(K==Z)return K;var ce=(K+Z)/2,Pe=re<0?Math.ceil(ce):Math.floor(ce);if(Pe==K)return k(Pe)?K:Z;k(Pe)?Z=Pe:K=Pe+re}}function le(k,K,Z,re){if(!k)return re(K,Z,"ltr",0);for(var ce=!1,Pe=0;Pe<k.length;++Pe){var mt=k[Pe];(mt.from<Z&&mt.to>K||K==Z&&mt.to==K)&&(re(Math.max(mt.from,K),Math.min(mt.to,Z),mt.level==1?"rtl":"ltr",Pe),ce=!0)}ce||re(K,Z,"ltr")}var fe=null;function xe(k,K,Z){var re;fe=null;for(var ce=0;ce<k.length;++ce){var Pe=k[ce];if(Pe.from<K&&Pe.to>K)return ce;Pe.to==K&&(Pe.from!=Pe.to&&Z=="before"?re=ce:fe=ce),Pe.from==K&&(Pe.from!=Pe.to&&Z!="before"?re=ce:fe=ce)}return re!=null?re:fe}var Qe=function(){var k="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",K="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Z(pr){return pr<=247?k.charAt(pr):1424<=pr&&pr<=1524?"R":1536<=pr&&pr<=1785?K.charAt(pr-1536):1774<=pr&&pr<=2220?"r":8192<=pr&&pr<=8203?"w":pr==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ce=/[stwN]/,Pe=/[LRr]/,mt=/[Lb1n]/,Wt=/[1n]/;function sr(pr,wn,Rn){this.level=pr,this.from=wn,this.to=Rn}return function(pr,wn){var Rn=wn=="ltr"?"L":"R";if(pr.length==0||wn=="ltr"&&!re.test(pr))return!1;for(var ei=pr.length,ni=[],Mi=0;Mi<ei;++Mi)ni.push(Z(pr.charCodeAt(Mi)));for(var Zi=0,da=Rn;Zi<ei;++Zi){var ia=ni[Zi];ia=="m"?ni[Zi]=da:da=ia}for(var na=0,xa=Rn;na<ei;++na){var Ma=ni[na];Ma=="1"&&xa=="r"?ni[na]="n":Pe.test(Ma)&&(xa=Ma,Ma=="r"&&(ni[na]="R"))}for(var To=1,no=ni[0];To<ei-1;++To){var Wo=ni[To];Wo=="+"&&no=="1"&&ni[To+1]=="1"?ni[To]="1":Wo==","&&no==ni[To+1]&&(no=="1"||no=="n")&&(ni[To]=no),no=Wo}for(var ps=0;ps<ei;++ps){var Us=ni[ps];if(Us==",")ni[ps]="N";else if(Us=="%"){var Ts=void 0;for(Ts=ps+1;Ts<ei&&ni[Ts]=="%";++Ts);for(var tl=ps&&ni[ps-1]=="!"||Ts<ei&&ni[Ts]=="1"?"1":"N",ul=ps;ul<Ts;++ul)ni[ul]=tl;ps=Ts-1}}for(var Gs=0,cl=Rn;Gs<ei;++Gs){var rl=ni[Gs];cl=="L"&&rl=="1"?ni[Gs]="L":Pe.test(rl)&&(cl=rl)}for(var ya=0;ya<ei;++ya)if(ce.test(ni[ya])){var Ms=void 0;for(Ms=ya+1;Ms<ei&&ce.test(ni[Ms]);++Ms);for(var Ls=(ya?ni[ya-1]:Rn)=="L",Ws=(Ms<ei?ni[Ms]:Rn)=="L",Lu=Ls==Ws?Ls?"L":"R":Rn,ns=ya;ns<Ms;++ns)ni[ns]=Lu;ya=Ms-1}for(var Uo=[],Rl,al=0;al<ei;)if(mt.test(ni[al])){var Nu=al;for(++al;al<ei&&mt.test(ni[al]);++al);Uo.push(new sr(0,Nu,al))}else{var Ql=al,Ml=Uo.length,vu=wn=="rtl"?1:0;for(++al;al<ei&&ni[al]!="L";++al);for(var gl=Ql;gl<al;)if(Wt.test(ni[gl])){Ql<gl&&(Uo.splice(Ml,0,new sr(1,Ql,gl)),Ml+=vu);var Jl=gl;for(++gl;gl<al&&Wt.test(ni[gl]);++gl);Uo.splice(Ml,0,new sr(2,Jl,gl)),Ml+=vu,Ql=gl}else++gl;Ql<al&&Uo.splice(Ml,0,new sr(1,Ql,al))}return wn=="ltr"&&(Uo[0].level==1&&(Rl=pr.match(/^\s+/))&&(Uo[0].from=Rl[0].length,Uo.unshift(new sr(0,0,Rl[0].length))),pe(Uo).level==1&&(Rl=pr.match(/\s+$/))&&(pe(Uo).to-=Rl[0].length,Uo.push(new sr(0,ei-Rl[0].length,ei)))),wn=="rtl"?Uo.reverse():Uo}}();function ot(k,K){var Z=k.order;return Z==null&&(Z=k.order=Qe(k.text,K)),Z}var Je=[],Te=function(K,Z,re){if(K.addEventListener)K.addEventListener(Z,re,!1);else if(K.attachEvent)K.attachEvent("on"+Z,re);else{var ce=K._handlers||(K._handlers={});ce[Z]=(ce[Z]||Je).concat(re)}};function et(k,K){return k._handlers&&k._handlers[K]||Je}function ze(k,K,Z){if(k.removeEventListener)k.removeEventListener(K,Z,!1);else if(k.detachEvent)k.detachEvent("on"+K,Z);else{var re=k._handlers,ce=re&&re[K];if(ce){var Pe=z(ce,Z);Pe>-1&&(re[K]=ce.slice(0,Pe).concat(ce.slice(Pe+1)))}}}function nt(k,K){var Z=et(k,K);if(!Z.length)return;for(var re=Array.prototype.slice.call(arguments,2),ce=0;ce<Z.length;++ce)Z[ce].apply(null,re)}function Ot(k,K,Z){return typeof K=="string"&&(K={type:K,preventDefault:function(){this.defaultPrevented=!0}}),nt(k,Z||K.type,k,K),X(K)||K.codemirrorIgnore}function Ct(k){var K=k._handlers&&k._handlers.cursorActivity;if(!K)return;for(var Z=k.curOp.cursorActivityHandlers||(k.curOp.cursorActivityHandlers=[]),re=0;re<K.length;++re)z(Z,K[re])==-1&&Z.push(K[re])}function Tt(k,K){return et(k,K).length>0}function Dt(k){k.prototype.on=function(K,Z){Te(this,K,Z)},k.prototype.off=function(K,Z){ze(this,K,Z)}}function Be(k){k.preventDefault?k.preventDefault():k.returnValue=!1}function ie(k){k.stopPropagation?k.stopPropagation():k.cancelBubble=!0}function X(k){return k.defaultPrevented!=null?k.defaultPrevented:k.returnValue==!1}function Fe(k){Be(k),ie(k)}function Ne(k){return k.target||k.srcElement}function q(k){var K=k.which;return K==null&&(k.button&1?K=1:k.button&2?K=3:k.button&4&&(K=2)),h&&k.ctrlKey&&K==1&&(K=3),K}var ht=function(){if(f&&c<9)return!1;var k=I("div");return"draggable"in k||"dragDrop"in k}(),Rt;function ut(k){if(Rt==null){var K=I("span","\u200B");_(k,I("span",[K,document.createTextNode("x")])),k.firstChild.offsetHeight!=0&&(Rt=K.offsetWidth<=1&&K.offsetHeight>2&&!(f&&c<8))}var Z=Rt?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Z.setAttribute("cm-text",""),Z}var Xt;function or(k){if(Xt!=null)return Xt;var K=_(k,document.createTextNode("A\u062EA")),Z=N(K,0,1).getBoundingClientRect(),re=N(K,1,2).getBoundingClientRect();return b(k),!Z||Z.left==Z.right?!1:Xt=re.right-Z.right<3}var Zr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(k){for(var K=0,Z=[],re=k.length;K<=re;){var ce=k.indexOf(`
|
|
|
`,K);ce==-1&&(ce=k.length);var Pe=k.slice(K,k.charAt(ce-1)=="\r"?ce-1:ce),mt=Pe.indexOf("\r");mt!=-1?(Z.push(Pe.slice(0,mt)),K+=mt+1):(Z.push(Pe),K=ce+1)}return Z}:function(k){return k.split(/\r\n?|\n/)},ar=window.getSelection?function(k){try{return k.selectionStart!=k.selectionEnd}catch(K){return!1}}:function(k){var K;try{K=k.ownerDocument.selection.createRange()}catch(Z){}return!K||K.parentElement()!=k?!1:K.compareEndPoints("StartToEnd",K)!=0},dr=function(){var k=I("div");return"oncopy"in k?!0:(k.setAttribute("oncopy","return;"),typeof k.oncopy=="function")}(),er=null;function Ht(k){if(er!=null)return er;var K=_(k,I("span","x")),Z=K.getBoundingClientRect(),re=N(K,0,1).getBoundingClientRect();return er=Math.abs(Z.left-re.left)>1}var dt={},Hr={};function dn(k,K){arguments.length>2&&(K.dependencies=Array.prototype.slice.call(arguments,2)),dt[k]=K}function Nn(k,K){Hr[k]=K}function Vn(k){if(typeof k=="string"&&Hr.hasOwnProperty(k))k=Hr[k];else if(k&&typeof k.name=="string"&&Hr.hasOwnProperty(k.name)){var K=Hr[k.name];typeof K=="string"&&(K={name:K}),k=Xe(K,k),k.name=K.name}else{if(typeof k=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(k))return Vn("application/xml");if(typeof k=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(k))return Vn("application/json")}return typeof k=="string"?{name:k}:k||{name:"null"}}function gi(k,K){K=Vn(K);var Z=dt[K.name];if(!Z)return gi(k,"text/plain");var re=Z(k,K);if(bn.hasOwnProperty(K.name)){var ce=bn[K.name];for(var Pe in ce){if(!ce.hasOwnProperty(Pe))continue;re.hasOwnProperty(Pe)&&(re["_"+Pe]=re[Pe]),re[Pe]=ce[Pe]}}if(re.name=K.name,K.helperType&&(re.helperType=K.helperType),K.modeProps)for(var mt in K.modeProps)re[mt]=K.modeProps[mt];return re}var bn={};function Mn(k,K){var Z=bn.hasOwnProperty(k)?bn[k]:bn[k]={};j(K,Z)}function jt(k,K){if(K===!0)return K;if(k.copyState)return k.copyState(K);var Z={};for(var re in K){var ce=K[re];ce instanceof Array&&(ce=ce.concat([])),Z[re]=ce}return Z}function St(k,K){for(var Z;k.innerMode&&!(Z=k.innerMode(K),!Z||Z.mode==k);)K=Z.state,k=Z.mode;return Z||{mode:k,state:K}}function Ie(k,K,Z){return k.startState?k.startState(K,Z):!0}var _e=function(K,Z,re){this.pos=this.start=0,this.string=K,this.tabSize=Z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};_e.prototype.eol=function(){return this.pos>=this.string.length},_e.prototype.sol=function(){return this.pos==this.lineStart},_e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_e.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_e.prototype.eat=function(k){var K=this.string.charAt(this.pos),Z;if(typeof k=="string"?Z=K==k:Z=K&&(k.test?k.test(K):k(K)),Z)return++this.pos,K},_e.prototype.eatWhile=function(k){for(var K=this.pos;this.eat(k););return this.pos>K},_e.prototype.eatSpace=function(){for(var k=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>k},_e.prototype.skipToEnd=function(){this.pos=this.string.length},_e.prototype.skipTo=function(k){var K=this.string.indexOf(k,this.pos);if(K>-1)return this.pos=K,!0},_e.prototype.backUp=function(k){this.pos-=k},_e.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)},_e.prototype.indentation=function(){return W(this.string,null,this.tabSize)-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},_e.prototype.match=function(k,K,Z){if(typeof k=="string"){var re=function(Wt){return Z?Wt.toLowerCase():Wt},ce=this.string.substr(this.pos,k.length);if(re(ce)==re(k))return K!==!1&&(this.pos+=k.length),!0}else{var Pe=this.string.slice(this.pos).match(k);return Pe&&Pe.index>0?null:(Pe&&K!==!1&&(this.pos+=Pe[0].length),Pe)}},_e.prototype.current=function(){return this.string.slice(this.start,this.pos)},_e.prototype.hideFirstChars=function(k,K){this.lineStart+=k;try{return K()}finally{this.lineStart-=k}},_e.prototype.lookAhead=function(k){var K=this.lineOracle;return K&&K.lookAhead(k)},_e.prototype.baseToken=function(){var k=this.lineOracle;return k&&k.baseToken(this.pos)};function Le(k,K){if(K-=k.first,K<0||K>=k.size)throw new Error("There is no line "+(K+k.first)+" in the document.");for(var Z=k;!Z.lines;)for(var re=0;;++re){var ce=Z.children[re],Pe=ce.chunkSize();if(K<Pe){Z=ce;break}K-=Pe}return Z.lines[K]}function Ze(k,K,Z){var re=[],ce=K.line;return k.iter(K.line,Z.line+1,function(Pe){var mt=Pe.text;ce==Z.line&&(mt=mt.slice(0,Z.ch)),ce==K.line&&(mt=mt.slice(K.ch)),re.push(mt),++ce}),re}function it(k,K,Z){var re=[];return k.iter(K,Z,function(ce){re.push(ce.text)}),re}function ft(k,K){var Z=K-k.height;if(Z)for(var re=k;re;re=re.parent)re.height+=Z}function Nt(k){if(k.parent==null)return null;for(var K=k.parent,Z=z(K.lines,k),re=K.parent;re;K=re,re=re.parent)for(var ce=0;!(re.children[ce]==K);++ce)Z+=re.children[ce].chunkSize();return Z+K.first}function Ar(k,K){var Z=k.first;e:do{for(var re=0;re<k.children.length;++re){var ce=k.children[re],Pe=ce.height;if(K<Pe){k=ce;continue e}K-=Pe,Z+=ce.chunkSize()}return Z}while(!k.lines);for(var mt=0;mt<k.lines.length;++mt){var Wt=k.lines[mt],sr=Wt.height;if(K<sr)break;K-=sr}return Z+mt}function Mr(k,K){return K>=k.first&&K<k.first+k.size}function un(k,K){return String(k.lineNumberFormatter(K+k.firstLineNumber))}function Mt(k,K,Z){if(Z===void 0&&(Z=null),!(this instanceof Mt))return new Mt(k,K,Z);this.line=k,this.ch=K,this.sticky=Z}function at(k,K){return k.line-K.line||k.ch-K.ch}function lt(k,K){return k.sticky==K.sticky&&at(k,K)==0}function rr(k){return Mt(k.line,k.ch)}function Bt(k,K){return at(k,K)<0?K:k}function _t(k,K){return at(k,K)<0?k:K}function Kt(k,K){return Math.max(k.first,Math.min(K,k.first+k.size-1))}function wt(k,K){if(K.line<k.first)return Mt(k.first,0);var Z=k.first+k.size-1;return K.line>Z?Mt(Z,Le(k,Z).text.length):Ut(K,Le(k,K.line).text.length)}function Ut(k,K){var Z=k.ch;return Z==null||Z>K?Mt(k.line,K):Z<0?Mt(k.line,0):k}function Sr(k,K){for(var Z=[],re=0;re<K.length;re++)Z[re]=wt(k,K[re]);return Z}var hr=function(K,Z){this.state=K,this.lookAhead=Z},gr=function(K,Z,re,ce){this.state=Z,this.doc=K,this.line=re,this.maxLookAhead=ce||0,this.baseTokens=null,this.baseTokenPos=1};gr.prototype.lookAhead=function(k){var K=this.doc.getLine(this.line+k);return K!=null&&k>this.maxLookAhead&&(this.maxLookAhead=k),K},gr.prototype.baseToken=function(k){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=k;)this.baseTokenPos+=2;var K=this.baseTokens[this.baseTokenPos+1];return{type:K&&K.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-k}},gr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gr.fromSaved=function(k,K,Z){return K instanceof hr?new gr(k,jt(k.mode,K.state),Z,K.lookAhead):new gr(k,jt(k.mode,K),Z)},gr.prototype.save=function(k){var K=k!==!1?jt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new hr(K,this.maxLookAhead):K};function Jr(k,K,Z,re){var ce=[k.state.modeGen],Pe={};Se(k,K.text,k.doc.mode,Z,function(pr,wn){return ce.push(pr,wn)},Pe,re);for(var mt=Z.state,Wt=function(wn){Z.baseTokens=ce;var Rn=k.state.overlays[wn],ei=1,ni=0;Z.state=!0,Se(k,K.text,Rn.mode,Z,function(Mi,Zi){for(var da=ei;ni<Mi;){var ia=ce[ei];ia>Mi&&ce.splice(ei,1,Mi,ce[ei+1],ia),ei+=2,ni=Math.min(Mi,ia)}if(!Zi)return;if(Rn.opaque)ce.splice(da,ei-da,Mi,"overlay "+Zi),ei=da+2;else for(;da<ei;da+=2){var na=ce[da+1];ce[da+1]=(na?na+" ":"")+"overlay "+Zi}},Pe),Z.state=mt,Z.baseTokens=null,Z.baseTokenPos=1},sr=0;sr<k.state.overlays.length;++sr)Wt(sr);return{styles:ce,classes:Pe.bgClass||Pe.textClass?Pe:null}}function $r(k,K,Z){if(!K.styles||K.styles[0]!=k.state.modeGen){var re=Pn(k,Nt(K)),ce=K.text.length>k.options.maxHighlightLength&&jt(k.doc.mode,re.state),Pe=Jr(k,K,re);ce&&(re.state=ce),K.stateAfter=re.save(!ce),K.styles=Pe.styles,Pe.classes?K.styleClasses=Pe.classes:K.styleClasses&&(K.styleClasses=null),Z===k.doc.highlightFrontier&&(k.doc.modeFrontier=Math.max(k.doc.modeFrontier,++k.doc.highlightFrontier))}return K.styles}function Pn(k,K,Z){var re=k.doc,ce=k.display;if(!re.mode.startState)return new gr(re,!0,K);var Pe=Re(k,K,Z),mt=Pe>re.first&&Le(re,Pe-1).stateAfter,Wt=mt?gr.fromSaved(re,mt,Pe):new gr(re,Ie(re.mode),Pe);return re.iter(Pe,K,function(sr){Dn(k,sr.text,Wt);var pr=Wt.line;sr.stateAfter=pr==K-1||pr%5==0||pr>=ce.viewFrom&&pr<ce.viewTo?Wt.save():null,Wt.nextLine()}),Z&&(re.modeFrontier=Wt.line),Wt}function Dn(k,K,Z,re){var ce=k.doc.mode,Pe=new _e(K,k.options.tabSize,Z);for(Pe.start=Pe.pos=re||0,K==""&&Zn(ce,Z.state);!Pe.eol();)li(ce,Pe,Z.state),Pe.start=Pe.pos}function Zn(k,K){if(k.blankLine)return k.blankLine(K);if(!k.innerMode)return;var Z=St(k,K);if(Z.mode.blankLine)return Z.mode.blankLine(Z.state)}function li(k,K,Z,re){for(var ce=0;ce<10;ce++){re&&(re[0]=St(k,Z).mode);var Pe=k.token(K,Z);if(K.pos>K.start)return Pe}throw new Error("Mode "+k.name+" failed to advance stream.")}var Ai=function(K,Z,re){this.start=K.start,this.end=K.pos,this.string=K.current(),this.type=Z||null,this.state=re};function Ii(k,K,Z,re){var ce=k.doc,Pe=ce.mode,mt;K=wt(ce,K);var Wt=Le(ce,K.line),sr=Pn(k,K.line,Z),pr=new _e(Wt.text,k.options.tabSize,sr),wn;for(re&&(wn=[]);(re||pr.pos<K.ch)&&!pr.eol();)pr.start=pr.pos,mt=li(Pe,pr,sr.state),re&&wn.push(new Ai(pr,mt,jt(ce.mode,sr.state)));return re?wn:new Ai(pr,mt,sr.state)}function $e(k,K){if(k)for(;;){var Z=k.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Z)break;k=k.slice(0,Z.index)+k.slice(Z.index+Z[0].length);var re=Z[1]?"bgClass":"textClass";K[re]==null?K[re]=Z[2]:new RegExp("(?:^|\\s)"+Z[2]+"(?:$|\\s)").test(K[re])||(K[re]+=" "+Z[2])}return k}function Se(k,K,Z,re,ce,Pe,mt){var Wt=Z.flattenSpans;Wt==null&&(Wt=k.options.flattenSpans);var sr=0,pr=null,wn=new _e(K,k.options.tabSize,re),Rn,ei=k.options.addModeClass&&[null];for(K==""&&$e(Zn(Z,re.state),Pe);!wn.eol();){if(wn.pos>k.options.maxHighlightLength?(Wt=!1,mt&&Dn(k,K,re,wn.pos),wn.pos=K.length,Rn=null):Rn=$e(li(Z,wn,re.state,ei),Pe),ei){var ni=ei[0].name;ni&&(Rn="m-"+(Rn?ni+" "+Rn:ni))}if(!Wt||pr!=Rn){for(;sr<wn.start;)sr=Math.min(wn.start,sr+5e3),ce(sr,pr);pr=Rn}wn.start=wn.pos}for(;sr<wn.pos;){var Mi=Math.min(wn.pos,sr+5e3);ce(Mi,pr),sr=Mi}}function Re(k,K,Z){for(var re,ce,Pe=k.doc,mt=Z?-1:K-(k.doc.mode.innerMode?1e3:100),Wt=K;Wt>mt;--Wt){if(Wt<=Pe.first)return Pe.first;var sr=Le(Pe,Wt-1),pr=sr.stateAfter;if(pr&&(!Z||Wt+(pr instanceof hr?pr.lookAhead:0)<=Pe.modeFrontier))return Wt;var wn=W(sr.text,null,k.options.tabSize);(ce==null||re>wn)&&(ce=Wt-1,re=wn)}return ce}function je(k,K){if(k.modeFrontier=Math.min(k.modeFrontier,K),k.highlightFrontier<K-10)return;for(var Z=k.first,re=K-1;re>Z;re--){var ce=Le(k,re).stateAfter;if(ce&&(!(ce instanceof hr)||re+ce.lookAhead<K)){Z=re+1;break}}k.highlightFrontier=Math.min(k.highlightFrontier,Z)}var Ye=!1,Ve=!1;function qe(){Ye=!0}function xt(){Ve=!0}function ct(k,K,Z){this.marker=k,this.from=K,this.to=Z}function Jt(k,K){if(k)for(var Z=0;Z<k.length;++Z){var re=k[Z];if(re.marker==K)return re}}function Rr(k,K){for(var Z,re=0;re<k.length;++re)k[re]!=K&&(Z||(Z=[])).push(k[re]);return Z}function Ir(k,K){k.markedSpans=k.markedSpans?k.markedSpans.concat([K]):[K],K.marker.attachLine(k)}function Xr(k,K,Z){var re;if(k)for(var ce=0;ce<k.length;++ce){var Pe=k[ce],mt=Pe.marker,Wt=Pe.from==null||(mt.inclusiveLeft?Pe.from<=K:Pe.from<K);if(Wt||Pe.from==K&&mt.type=="bookmark"&&(!Z||!Pe.marker.insertLeft)){var sr=Pe.to==null||(mt.inclusiveRight?Pe.to>=K:Pe.to>K);(re||(re=[])).push(new ct(mt,Pe.from,sr?null:Pe.to))}}return re}function qt(k,K,Z){var re;if(k)for(var ce=0;ce<k.length;++ce){var Pe=k[ce],mt=Pe.marker,Wt=Pe.to==null||(mt.inclusiveRight?Pe.to>=K:Pe.to>K);if(Wt||Pe.from==K&&mt.type=="bookmark"&&(!Z||Pe.marker.insertLeft)){var sr=Pe.from==null||(mt.inclusiveLeft?Pe.from<=K:Pe.from<K);(re||(re=[])).push(new ct(mt,sr?null:Pe.from-K,Pe.to==null?null:Pe.to-K))}}return re}function pn(k,K){if(K.full)return null;var Z=Mr(k,K.from.line)&&Le(k,K.from.line).markedSpans,re=Mr(k,K.to.line)&&Le(k,K.to.line).markedSpans;if(!Z&&!re)return null;var ce=K.from.ch,Pe=K.to.ch,mt=at(K.from,K.to)==0,Wt=Xr(Z,ce,mt),sr=qt(re,Pe,mt),pr=K.text.length==1,wn=pe(K.text).length+(pr?ce:0);if(Wt)for(var Rn=0;Rn<Wt.length;++Rn){var ei=Wt[Rn];if(ei.to==null){var ni=Jt(sr,ei.marker);ni?pr&&(ei.to=ni.to==null?null:ni.to+wn):ei.to=ce}}if(sr)for(var Mi=0;Mi<sr.length;++Mi){var Zi=sr[Mi];if(Zi.to!=null&&(Zi.to+=wn),Zi.from==null){var da=Jt(Wt,Zi.marker);da||(Zi.from=wn,pr&&(Wt||(Wt=[])).push(Zi))}else Zi.from+=wn,pr&&(Wt||(Wt=[])).push(Zi)}Wt&&(Wt=fr(Wt)),sr&&sr!=Wt&&(sr=fr(sr));var ia=[Wt];if(!pr){var na=K.text.length-2,xa;if(na>0&&Wt)for(var Ma=0;Ma<Wt.length;++Ma)Wt[Ma].to==null&&(xa||(xa=[])).push(new ct(Wt[Ma].marker,null,null));for(var To=0;To<na;++To)ia.push(xa);ia.push(sr)}return ia}function fr(k){for(var K=0;K<k.length;++K){var Z=k[K];Z.from!=null&&Z.from==Z.to&&Z.marker.clearWhenEmpty!==!1&&k.splice(K--,1)}return k.length?k:null}function mn(k,K,Z){var re=null;if(k.iter(K.line,Z.line+1,function(ni){if(ni.markedSpans)for(var Mi=0;Mi<ni.markedSpans.length;++Mi){var Zi=ni.markedSpans[Mi].marker;Zi.readOnly&&(!re||z(re,Zi)==-1)&&(re||(re=[])).push(Zi)}}),!re)return null;for(var ce=[{from:K,to:Z}],Pe=0;Pe<re.length;++Pe)for(var mt=re[Pe],Wt=mt.find(0),sr=0;sr<ce.length;++sr){var pr=ce[sr];if(at(pr.to,Wt.from)<0||at(pr.from,Wt.to)>0)continue;var wn=[sr,1],Rn=at(pr.from,Wt.from),ei=at(pr.to,Wt.to);(Rn<0||!mt.inclusiveLeft&&!Rn)&&wn.push({from:pr.from,to:Wt.from}),(ei>0||!mt.inclusiveRight&&!ei)&&wn.push({from:Wt.to,to:pr.to}),ce.splice.apply(ce,wn),sr+=wn.length-3}return ce}function en(k){var K=k.markedSpans;if(!K)return;for(var Z=0;Z<K.length;++Z)K[Z].marker.detachLine(k);k.markedSpans=null}function kr(k,K){if(!K)return;for(var Z=0;Z<K.length;++Z)K[Z].marker.attachLine(k);k.markedSpans=K}function Gn(k){return k.inclusiveLeft?-1:0}function di(k){return k.inclusiveRight?1:0}function _i(k,K){var Z=k.lines.length-K.lines.length;if(Z!=0)return Z;var re=k.find(),ce=K.find(),Pe=at(re.from,ce.from)||Gn(k)-Gn(K);if(Pe)return-Pe;var mt=at(re.to,ce.to)||di(k)-di(K);return mt||K.id-k.id}function Br(k,K){var Z=Ve&&k.markedSpans,re;if(Z)for(var ce=void 0,Pe=0;Pe<Z.length;++Pe)ce=Z[Pe],ce.marker.collapsed&&(K?ce.from:ce.to)==null&&(!re||_i(re,ce.marker)<0)&&(re=ce.marker);return re}function sn(k){return Br(k,!0)}function Sn(k){return Br(k,!1)}function Pt(k,K){var Z=Ve&&k.markedSpans,re;if(Z)for(var ce=0;ce<Z.length;++ce){var Pe=Z[ce];Pe.marker.collapsed&&(Pe.from==null||Pe.from<K)&&(Pe.to==null||Pe.to>K)&&(!re||_i(re,Pe.marker)<0)&&(re=Pe.marker)}return re}function gt(k,K,Z,re,ce){var Pe=Le(k,K),mt=Ve&&Pe.markedSpans;if(mt)for(var Wt=0;Wt<mt.length;++Wt){var sr=mt[Wt];if(!sr.marker.collapsed)continue;var pr=sr.marker.find(0),wn=at(pr.from,Z)||Gn(sr.marker)-Gn(ce),Rn=at(pr.to,re)||di(sr.marker)-di(ce);if(wn>=0&&Rn<=0||wn<=0&&Rn>=0)continue;if(wn<=0&&(sr.marker.inclusiveRight&&ce.inclusiveLeft?at(pr.to,Z)>=0:at(pr.to,Z)>0)||wn>=0&&(sr.marker.inclusiveRight&&ce.inclusiveLeft?at(pr.from,re)<=0:at(pr.from,re)<0))return!0}}function Et(k){for(var K;K=sn(k);)k=K.find(-1,!0).line;return k}function Lt(k){for(var K;K=Sn(k);)k=K.find(1,!0).line;return k}function kt(k){for(var K,Z;K=Sn(k);)k=K.find(1,!0).line,(Z||(Z=[])).push(k);return Z}function yt(k,K){var Z=Le(k,K),re=Et(Z);return Z==re?K:Nt(re)}function Qt(k,K){if(K>k.lastLine())return K;var Z=Le(k,K),re;if(!tr(k,Z))return K;for(;re=Sn(Z);)Z=re.find(1,!0).line;return Nt(Z)+1}function tr(k,K){var Z=Ve&&K.markedSpans;if(Z)for(var re=void 0,ce=0;ce<Z.length;++ce){if(re=Z[ce],!re.marker.collapsed)continue;if(re.from==null)return!0;if(re.marker.widgetNode)continue;if(re.from==0&&re.marker.inclusiveLeft&&ir(k,K,re))return!0}}function ir(k,K,Z){if(Z.to==null){var re=Z.marker.find(1,!0);return ir(k,re.line,Jt(re.line.markedSpans,Z.marker))}if(Z.marker.inclusiveRight&&Z.to==K.text.length)return!0;for(var ce=void 0,Pe=0;Pe<K.markedSpans.length;++Pe)if(ce=K.markedSpans[Pe],ce.marker.collapsed&&!ce.marker.widgetNode&&ce.from==Z.to&&(ce.to==null||ce.to!=Z.from)&&(ce.marker.inclusiveLeft||Z.marker.inclusiveRight)&&ir(k,K,ce))return!0}function yr(k){k=Et(k);for(var K=0,Z=k.parent,re=0;re<Z.lines.length;++re){var ce=Z.lines[re];if(ce==k)break;K+=ce.height}for(var Pe=Z.parent;Pe;Z=Pe,Pe=Z.parent)for(var mt=0;mt<Pe.children.length;++mt){var Wt=Pe.children[mt];if(Wt==Z)break;K+=Wt.height}return K}function xn(k){if(k.height==0)return 0;for(var K=k.text.length,Z,re=k;Z=sn(re);){var ce=Z.find(0,!0);re=ce.from.line,K+=ce.from.ch-ce.to.ch}for(re=k;Z=Sn(re);){var Pe=Z.find(0,!0);K-=re.text.length-Pe.from.ch,re=Pe.to.line,K+=re.text.length-Pe.to.ch}return K}function vn(k){var K=k.display,Z=k.doc;K.maxLine=Le(Z,Z.first),K.maxLineLength=xn(K.maxLine),K.maxLineChanged=!0,Z.iter(function(re){var ce=xn(re);ce>K.maxLineLength&&(K.maxLineLength=ce,K.maxLine=re)})}var Wn=function(K,Z,re){this.text=K,kr(this,Z),this.height=re?re(this):1};Wn.prototype.lineNo=function(){return Nt(this)},Dt(Wn);function Yr(k,K,Z,re){k.text=K,k.stateAfter&&(k.stateAfter=null),k.styles&&(k.styles=null),k.order!=null&&(k.order=null),en(k),kr(k,Z);var ce=re?re(k):1;ce!=k.height&&ft(k,ce)}function xr(k){k.parent=null,en(k)}var ln={},On={};function In(k,K){if(!k||/^\s*$/.test(k))return null;var Z=K.addModeClass?On:ln;return Z[k]||(Z[k]=k.replace(/\S+/g,"cm-$&"))}function Un(k,K){var Z=L("span",null,null,o?"padding-right: .1px":null),re={pre:L("pre",[Z],"CodeMirror-line"),content:Z,col:0,pos:0,cm:k,trailingSpace:!1,splitSpaces:k.getOption("lineWrapping")};K.measure={};for(var ce=0;ce<=(K.rest?K.rest.length:0);ce++){var Pe=ce?K.rest[ce-1]:K.line,mt=void 0;re.pos=0,re.addToken=ui,or(k.display.measure)&&(mt=ot(Pe,k.doc.direction))&&(re.addToken=Pi(re.addToken,mt)),re.map=[];var Wt=K!=k.display.externalMeasured&&Nt(Pe);Ri(Pe,re,$r(k,Pe,Wt)),Pe.styleClasses&&(Pe.styleClasses.bgClass&&(re.bgClass=M(Pe.styleClasses.bgClass,re.bgClass||"")),Pe.styleClasses.textClass&&(re.textClass=M(Pe.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(ut(k.display.measure))),ce==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 sr=re.content.lastChild;(/\bcm-tab\b/.test(sr.className)||sr.querySelector&&sr.querySelector(".cm-tab"))&&(re.content.className="cm-tab-wrap-hack")}return nt(k,"renderLine",k,K.line,re.pre),re.pre.className&&(re.textClass=M(re.pre.className,re.textClass||"")),re}function ti(k){var K=I("span","\u2022","cm-invalidchar");return K.title="\\u"+k.charCodeAt(0).toString(16),K.setAttribute("aria-label",K.title),K}function ui(k,K,Z,re,ce,Pe,mt){if(!K)return;var Wt=k.splitSpaces?si(K,k.trailingSpace):K,sr=k.cm.state.specialChars,pr=!1,wn;if(!sr.test(K))k.col+=K.length,wn=document.createTextNode(Wt),k.map.push(k.pos,k.pos+K.length,wn),f&&c<9&&(pr=!0),k.pos+=K.length;else{wn=document.createDocumentFragment();for(var Rn=0;;){sr.lastIndex=Rn;var ei=sr.exec(K),ni=ei?ei.index-Rn:K.length-Rn;if(ni){var Mi=document.createTextNode(Wt.slice(Rn,Rn+ni));f&&c<9?wn.appendChild(I("span",[Mi])):wn.appendChild(Mi),k.map.push(k.pos,k.pos+ni,Mi),k.col+=ni,k.pos+=ni}if(!ei)break;Rn+=ni+1;var Zi=void 0;if(ei[0]==" "){var da=k.cm.options.tabSize,ia=da-k.col%da;Zi=wn.appendChild(I("span",He(ia),"cm-tab")),Zi.setAttribute("role","presentation"),Zi.setAttribute("cm-text"," "),k.col+=ia}else ei[0]=="\r"||ei[0]==`
|
|
|
`?(Zi=wn.appendChild(I("span",ei[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Zi.setAttribute("cm-text",ei[0]),k.col+=1):(Zi=k.cm.options.specialCharPlaceholder(ei[0]),Zi.setAttribute("cm-text",ei[0]),f&&c<9?wn.appendChild(I("span",[Zi])):wn.appendChild(Zi),k.col+=1);k.map.push(k.pos,k.pos+1,Zi),k.pos++}}if(k.trailingSpace=Wt.charCodeAt(K.length-1)==32,Z||re||ce||pr||Pe||mt){var na=Z||"";re&&(na+=re),ce&&(na+=ce);var xa=I("span",[wn],na,Pe);if(mt)for(var Ma in mt)mt.hasOwnProperty(Ma)&&Ma!="style"&&Ma!="class"&&xa.setAttribute(Ma,mt[Ma]);return k.content.appendChild(xa)}k.content.appendChild(wn)}function si(k,K){if(k.length>1&&!/ /.test(k))return k;for(var Z=K,re="",ce=0;ce<k.length;ce++){var Pe=k.charAt(ce);Pe==" "&&Z&&(ce==k.length-1||k.charCodeAt(ce+1)==32)&&(Pe="\xA0"),re+=Pe,Z=Pe==" "}return re}function Pi(k,K){return function(Z,re,ce,Pe,mt,Wt,sr){ce=ce?ce+" cm-force-border":"cm-force-border";for(var pr=Z.pos,wn=pr+re.length;;){for(var Rn=void 0,ei=0;ei<K.length&&!(Rn=K[ei],Rn.to>pr&&Rn.from<=pr);ei++);if(Rn.to>=wn)return k(Z,re,ce,Pe,mt,Wt,sr);k(Z,re.slice(0,Rn.to-pr),ce,Pe,null,Wt,sr),Pe=null,re=re.slice(Rn.to-pr),pr=Rn.to}}}function zi(k,K,Z,re){var ce=!re&&Z.widgetNode;ce&&k.map.push(k.pos,k.pos+K,ce),!re&&k.cm.display.input.needsContentAttribute&&(ce||(ce=k.content.appendChild(document.createElement("span"))),ce.setAttribute("cm-marker",Z.id)),ce&&(k.cm.display.input.setUneditable(ce),k.content.appendChild(ce)),k.pos+=K,k.trailingSpace=!1}function Ri(k,K,Z){var re=k.markedSpans,ce=k.text,Pe=0;if(!re){for(var mt=1;mt<Z.length;mt+=2)K.addToken(K,ce.slice(Pe,Pe=Z[mt]),In(Z[mt+1],K.cm.options));return}for(var Wt=ce.length,sr=0,pr=1,wn="",Rn,ei,ni=0,Mi,Zi,da,ia,na;;){if(ni==sr){Mi=Zi=da=ei="",na=null,ia=null,ni=Infinity;for(var xa=[],Ma=void 0,To=0;To<re.length;++To){var no=re[To],Wo=no.marker;if(Wo.type=="bookmark"&&no.from==sr&&Wo.widgetNode)xa.push(Wo);else if(no.from<=sr&&(no.to==null||no.to>sr||Wo.collapsed&&no.to==sr&&no.from==sr)){if(no.to!=null&&no.to!=sr&&ni>no.to&&(ni=no.to,Zi=""),Wo.className&&(Mi+=" "+Wo.className),Wo.css&&(ei=(ei?ei+";":"")+Wo.css),Wo.startStyle&&no.from==sr&&(da+=" "+Wo.startStyle),Wo.endStyle&&no.to==ni&&(Ma||(Ma=[])).push(Wo.endStyle,no.to),Wo.title&&((na||(na={})).title=Wo.title),Wo.attributes)for(var ps in Wo.attributes)(na||(na={}))[ps]=Wo.attributes[ps];Wo.collapsed&&(!ia||_i(ia.marker,Wo)<0)&&(ia=no)}else no.from>sr&&ni>no.from&&(ni=no.from)}if(Ma)for(var Us=0;Us<Ma.length;Us+=2)Ma[Us+1]==ni&&(Zi+=" "+Ma[Us]);if(!ia||ia.from==sr)for(var Ts=0;Ts<xa.length;++Ts)zi(K,0,xa[Ts]);if(ia&&(ia.from||0)==sr){if(zi(K,(ia.to==null?Wt+1:ia.to)-sr,ia.marker,ia.from==null),ia.to==null)return;ia.to==sr&&(ia=!1)}}if(sr>=Wt)break;for(var tl=Math.min(Wt,ni);;){if(wn){var ul=sr+wn.length;if(!ia){var Gs=ul>tl?wn.slice(0,tl-sr):wn;K.addToken(K,Gs,Rn?Rn+Mi:Mi,da,sr+Gs.length==ni?Zi:"",ei,na)}if(ul>=tl){wn=wn.slice(tl-sr),sr=tl;break}sr=ul,da=""}wn=ce.slice(Pe,Pe=Z[pr++]),Rn=In(Z[pr++],K.cm.options)}}}function Yi(k,K,Z){this.line=K,this.rest=kt(K),this.size=this.rest?Nt(pe(this.rest))-Z+1:1,this.node=this.text=null,this.hidden=tr(k,K)}function $n(k,K,Z){for(var re=[],ce,Pe=K;Pe<Z;Pe=ce){var mt=new Yi(k.doc,Le(k.doc,Pe),Pe);ce=Pe+mt.size,re.push(mt)}return re}var gn=null;function mi(k){gn?gn.ops.push(k):k.ownsGroup=gn={ops:[k],delayedCallbacks:[]}}function Hi(k){var K=k.delayedCallbacks,Z=0;do{for(;Z<K.length;Z++)K[Z].call(null);for(var re=0;re<k.ops.length;re++){var ce=k.ops[re];if(ce.cursorActivityHandlers)for(;ce.cursorActivityCalled<ce.cursorActivityHandlers.length;)ce.cursorActivityHandlers[ce.cursorActivityCalled++].call(null,ce.cm)}}while(Z<K.length)}function Li(k,K){var Z=k.ownsGroup;if(!Z)return;try{Hi(Z)}finally{gn=null,K(Z)}}var Bi=null;function wr(k,K){var Z=et(k,K);if(!Z.length)return;var re=Array.prototype.slice.call(arguments,2),ce;gn?ce=gn.delayedCallbacks:Bi?ce=Bi:(ce=Bi=[],setTimeout(lr,0));for(var Pe=function(sr){ce.push(function(){return Z[sr].apply(null,re)})},mt=0;mt<Z.length;++mt)Pe(mt)}function lr(){var k=Bi;Bi=null;for(var K=0;K<k.length;++K)k[K]()}function on(k,K,Z,re){for(var ce=0;ce<K.changes.length;ce++){var Pe=K.changes[ce];Pe=="text"?Wr(k,K):Pe=="gutter"?bt(k,K,Z,re):Pe=="class"?An(k,K):Pe=="widget"&&mr(k,K,re)}K.changes=null}function Zt(k){return k.node==k.text&&(k.node=I("div",null,null,"position: relative"),k.text.parentNode&&k.text.parentNode.replaceChild(k.node,k.text),k.node.appendChild(k.text),f&&c<8&&(k.node.style.zIndex=2)),k.node}function br(k,K){var Z=K.bgClass?K.bgClass+" "+(K.line.bgClass||""):K.line.bgClass;if(Z&&(Z+=" CodeMirror-linebackground"),K.background)Z?K.background.className=Z:(K.background.parentNode.removeChild(K.background),K.background=null);else if(Z){var re=Zt(K);K.background=re.insertBefore(I("div",null,Z),re.firstChild),k.display.input.setUneditable(K.background)}}function Or(k,K){var Z=k.display.externalMeasured;return Z&&Z.line==K.line?(k.display.externalMeasured=null,K.measure=Z.measure,Z.built):Un(k,K)}function Wr(k,K){var Z=K.text.className,re=Or(k,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,An(k,K)):Z&&(K.text.className=Z)}function An(k,K){br(k,K),K.line.wrapClass?Zt(K).className=K.line.wrapClass:K.node!=K.text&&(K.node.className="");var Z=K.textClass?K.textClass+" "+(K.line.textClass||""):K.line.textClass;K.text.className=Z||""}function bt(k,K,Z,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 ce=Zt(K);K.gutterBackground=I("div",null,"CodeMirror-gutter-background "+K.line.gutterClass,"left: "+(k.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),k.display.input.setUneditable(K.gutterBackground),ce.insertBefore(K.gutterBackground,K.text)}var Pe=K.line.gutterMarkers;if(k.options.lineNumbers||Pe){var mt=Zt(K),Wt=K.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(k.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(k.display.input.setUneditable(Wt),mt.insertBefore(Wt,K.text),K.line.gutterClass&&(Wt.className+=" "+K.line.gutterClass),k.options.lineNumbers&&(!Pe||!Pe["CodeMirror-linenumbers"])&&(K.lineNumber=Wt.appendChild(I("div",un(k.options,Z),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+k.display.lineNumInnerWidth+"px"))),Pe)for(var sr=0;sr<k.display.gutterSpecs.length;++sr){var pr=k.display.gutterSpecs[sr].className,wn=Pe.hasOwnProperty(pr)&&Pe[pr];wn&&Wt.appendChild(I("div",[wn],"CodeMirror-gutter-elt","left: "+re.gutterLeft[pr]+"px; width: "+re.gutterWidth[pr]+"px"))}}}function mr(k,K,Z){K.alignable&&(K.alignable=null);for(var re=T("CodeMirror-linewidget"),ce=K.node.firstChild,Pe=void 0;ce;ce=Pe)Pe=ce.nextSibling,re.test(ce.className)&&K.node.removeChild(ce);Fr(k,K,Z)}function vr(k,K,Z,re){var ce=Or(k,K);return K.text=K.node=ce.pre,ce.bgClass&&(K.bgClass=ce.bgClass),ce.textClass&&(K.textClass=ce.textClass),An(k,K),bt(k,K,Z,re),Fr(k,K,re),K.node}function Fr(k,K,Z){if(nn(k,K.line,K,Z,!0),K.rest)for(var re=0;re<K.rest.length;re++)nn(k,K.rest[re],K,Z,!1)}function nn(k,K,Z,re,ce){if(!K.widgets)return;for(var Pe=Zt(Z),mt=0,Wt=K.widgets;mt<Wt.length;++mt){var sr=Wt[mt],pr=I("div",[sr.node],"CodeMirror-linewidget"+(sr.className?" "+sr.className:""));sr.handleMouseEvents||pr.setAttribute("cm-ignore-events","true"),cn(sr,pr,Z,re),k.display.input.setUneditable(pr),ce&&sr.above?Pe.insertBefore(pr,Z.gutter||Z.text):Pe.appendChild(pr),wr(sr,"redraw")}}function cn(k,K,Z,re){if(k.noHScroll){(Z.alignable||(Z.alignable=[])).push(K);var ce=re.wrapperWidth;K.style.left=re.fixedPos+"px",k.coverGutter||(ce-=re.gutterTotalWidth,K.style.paddingLeft=re.gutterTotalWidth+"px"),K.style.width=ce+"px"}k.coverGutter&&(K.style.zIndex=5,K.style.position="relative",k.noHScroll||(K.style.marginLeft=-re.gutterTotalWidth+"px"))}function tn(k){if(k.height!=null)return k.height;var K=k.doc.cm;if(!K)return 0;if(!D(document.body,k.node)){var Z="position: relative;";k.coverGutter&&(Z+="margin-left: -"+K.display.gutters.offsetWidth+"px;"),k.noHScroll&&(Z+="width: "+K.display.wrapper.clientWidth+"px;"),_(K.display.measure,I("div",[k.node],null,Z))}return k.height=k.node.parentNode.offsetHeight}function Ln(k,K){for(var Z=Ne(K);Z!=k.wrapper;Z=Z.parentNode)if(!Z||Z.nodeType==1&&Z.getAttribute("cm-ignore-events")=="true"||Z.parentNode==k.sizer&&Z!=k.mover)return!0}function Tn(k){return k.lineSpace.offsetTop}function Xn(k){return k.mover.offsetHeight-k.lineSpace.offsetHeight}function ci(k){if(k.cachedPaddingH)return k.cachedPaddingH;var K=_(k.measure,I("pre","x","CodeMirror-line-like")),Z=window.getComputedStyle?window.getComputedStyle(K):K.currentStyle,re={left:parseInt(Z.paddingLeft),right:parseInt(Z.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(k.cachedPaddingH=re),re}function Jn(k){return Y-k.display.nativeBarWidth}function pi(k){return k.display.scroller.clientWidth-Jn(k)-k.display.barWidth}function Si(k){return k.display.scroller.clientHeight-Jn(k)-k.display.barHeight}function Ni(k,K,Z){var re=k.options.lineWrapping,ce=re&&pi(k);if(!K.measure.heights||re&&K.measure.width!=ce){var Pe=K.measure.heights=[];if(re){K.measure.width=ce;for(var mt=K.text.firstChild.getClientRects(),Wt=0;Wt<mt.length-1;Wt++){var sr=mt[Wt],pr=mt[Wt+1];Math.abs(sr.bottom-pr.bottom)>2&&Pe.push((sr.bottom+pr.top)/2-Z.top)}}Pe.push(Z.bottom-Z.top)}}function xi(k,K,Z){if(k.line==K)return{map:k.measure.map,cache:k.measure.cache};for(var re=0;re<k.rest.length;re++)if(k.rest[re]==K)return{map:k.measure.maps[re],cache:k.measure.caches[re]};for(var ce=0;ce<k.rest.length;ce++)if(Nt(k.rest[ce])>Z)return{map:k.measure.maps[ce],cache:k.measure.caches[ce],before:!0}}function yi(k,K){K=Et(K);var Z=Nt(K),re=k.display.externalMeasured=new Yi(k.doc,K,Z);re.lineN=Z;var ce=re.built=Un(k,re);return re.text=ce.pre,_(k.display.lineMeasure,ce.pre),re}function vi(k,K,Z,re){return $i(k,Ui(k,K),Z,re)}function Ti(k,K){if(K>=k.display.viewFrom&&K<k.display.viewTo)return k.display.view[Fa(k,K)];var Z=k.display.externalMeasured;if(Z&&K>=Z.lineN&&K<Z.lineN+Z.size)return Z}function Ui(k,K){var Z=Nt(K),re=Ti(k,Z);re&&!re.text?re=null:re&&re.changes&&(on(k,re,Z,Ro(k)),k.curOp.forceUpdate=!0),re||(re=yi(k,K));var ce=xi(re,K,Z);return{line:K,view:re,rect:null,map:ce.map,cache:ce.cache,before:ce.before,hasHeights:!1}}function $i(k,K,Z,re,ce){K.before&&(Z=-1);var Pe=Z+(re||""),mt;return K.cache.hasOwnProperty(Pe)?mt=K.cache[Pe]:(K.rect||(K.rect=K.view.text.getBoundingClientRect()),K.hasHeights||(Ni(k,K.view,K.rect),K.hasHeights=!0),mt=Gi(k,K,Z,re),mt.bogus||(K.cache[Pe]=mt)),{left:mt.left,right:mt.right,top:ce?mt.rtop:mt.top,bottom:ce?mt.rbottom:mt.bottom}}var Di={left:0,right:0,top:0,bottom:0};function ua(k,K,Z){for(var re,ce,Pe,mt,Wt,sr,pr=0;pr<k.length;pr+=3)if(Wt=k[pr],sr=k[pr+1],K<Wt?(ce=0,Pe=1,mt="left"):K<sr?(ce=K-Wt,Pe=ce+1):(pr==k.length-3||K==sr&&k[pr+3]>K)&&(Pe=sr-Wt,ce=Pe-1,K>=sr&&(mt="right")),ce!=null){if(re=k[pr+2],Wt==sr&&Z==(re.insertLeft?"left":"right")&&(mt=Z),Z=="left"&&ce==0)for(;pr&&k[pr-2]==k[pr-3]&&k[pr-1].insertLeft;)re=k[(pr-=3)+2],mt="left";if(Z=="right"&&ce==sr-Wt)for(;pr<k.length-3&&k[pr+3]==k[pr+4]&&!k[pr+5].insertLeft;)re=k[(pr+=3)+2],mt="right";break}return{node:re,start:ce,end:Pe,collapse:mt,coverStart:Wt,coverEnd:sr}}function aa(k,K){var Z=Di;if(K=="left")for(var re=0;re<k.length&&!((Z=k[re]).left!=Z.right);re++);else for(var ce=k.length-1;ce>=0&&!((Z=k[ce]).left!=Z.right);ce--);return Z}function Gi(k,K,Z,re){var ce=ua(K.map,Z,re),Pe=ce.node,mt=ce.start,Wt=ce.end,sr=ce.collapse,pr;if(Pe.nodeType==3){for(var wn=0;wn<4;wn++){for(;mt&&de(K.line.text.charAt(ce.coverStart+mt));)--mt;for(;ce.coverStart+Wt<ce.coverEnd&&de(K.line.text.charAt(ce.coverStart+Wt));)++Wt;if(f&&c<9&&mt==0&&Wt==ce.coverEnd-ce.coverStart?pr=Pe.parentNode.getBoundingClientRect():pr=aa(N(Pe,mt,Wt).getClientRects(),re),pr.left||pr.right||mt==0)break;Wt=mt,mt=mt-1,sr="right"}f&&c<11&&(pr=Vi(k.display.measure,pr))}else{mt>0&&(sr=re="right");var Rn;k.options.lineWrapping&&(Rn=Pe.getClientRects()).length>1?pr=Rn[re=="right"?Rn.length-1:0]:pr=Pe.getBoundingClientRect()}if(f&&c<9&&!mt&&(!pr||!pr.left&&!pr.right)){var ei=Pe.parentNode.getClientRects()[0];ei?pr={left:ei.left,right:ei.left+oo(k.display),top:ei.top,bottom:ei.bottom}:pr=Di}for(var ni=pr.top-K.rect.top,Mi=pr.bottom-K.rect.top,Zi=(ni+Mi)/2,da=K.view.measure.heights,ia=0;ia<da.length-1&&!(Zi<da[ia]);ia++);var na=ia?da[ia-1]:0,xa=da[ia],Ma={left:(sr=="right"?pr.right:pr.left)-K.rect.left,right:(sr=="left"?pr.left:pr.right)-K.rect.left,top:na,bottom:xa};return!pr.left&&!pr.right&&(Ma.bogus=!0),k.options.singleCursorHeightPerLine||(Ma.rtop=ni,Ma.rbottom=Mi),Ma}function Vi(k,K){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ht(k))return K;var Z=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:K.left*Z,right:K.right*Z,top:K.top*re,bottom:K.bottom*re}}function ta(k){if(k.measure&&(k.measure.cache={},k.measure.heights=null,k.rest))for(var K=0;K<k.rest.length;K++)k.measure.caches[K]={}}function Xi(k){k.display.externalMeasure=null,b(k.display.lineMeasure);for(var K=0;K<k.display.view.length;K++)ta(k.display.view[K])}function ga(k){Xi(k),k.display.cachedCharWidth=k.display.cachedTextHeight=k.display.cachedPaddingH=null,k.options.lineWrapping||(k.display.maxLineChanged=!0),k.display.lineNumChars=null}function ra(){return i&&l?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pa(){return i&&l?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _a(k){var K=0;if(k.widgets)for(var Z=0;Z<k.widgets.length;++Z)k.widgets[Z].above&&(K+=tn(k.widgets[Z]));return K}function Da(k,K,Z,re,ce){if(!ce){var Pe=_a(K);Z.top+=Pe,Z.bottom+=Pe}if(re=="line")return Z;re||(re="local");var mt=yr(K);if(re=="local"?mt+=Tn(k.display):mt-=k.display.viewOffset,re=="page"||re=="window"){var Wt=k.display.lineSpace.getBoundingClientRect();mt+=Wt.top+(re=="window"?0:pa());var sr=Wt.left+(re=="window"?0:ra());Z.left+=sr,Z.right+=sr}return Z.top+=mt,Z.bottom+=mt,Z}function Ra(k,K,Z){if(Z=="div")return K;var re=K.left,ce=K.top;if(Z=="page")re-=ra(),ce-=pa();else if(Z=="local"||!Z){var Pe=k.display.sizer.getBoundingClientRect();re+=Pe.left,ce+=Pe.top}var mt=k.display.lineSpace.getBoundingClientRect();return{left:re-mt.left,top:ce-mt.top}}function Ao(k,K,Z,re,ce){return re||(re=Le(k.doc,K.line)),Da(k,re,vi(k,re,K.ch,ce),Z)}function ja(k,K,Z,re,ce,Pe){re=re||Le(k.doc,K.line),ce||(ce=Ui(k,re));function mt(Mi,Zi){var da=$i(k,ce,Mi,Zi?"right":"left",Pe);return Zi?da.left=da.right:da.right=da.left,Da(k,re,da,Z)}var Wt=ot(re,k.doc.direction),sr=K.ch,pr=K.sticky;if(sr>=re.text.length?(sr=re.text.length,pr="before"):sr<=0&&(sr=0,pr="after"),!Wt)return mt(pr=="before"?sr-1:sr,pr=="before");function wn(Mi,Zi,da){var ia=Wt[Zi],na=ia.level==1;return mt(da?Mi-1:Mi,na!=da)}var Rn=xe(Wt,sr,pr),ei=fe,ni=wn(sr,Rn,pr=="before");return ei!=null&&(ni.other=wn(sr,ei,pr!="before")),ni}function Ya(k,K){var Z=0;K=wt(k.doc,K),k.options.lineWrapping||(Z=oo(k.display)*K.ch);var re=Le(k.doc,K.line),ce=yr(re)+Tn(k.display);return{left:Z,right:Z,top:ce,bottom:ce+re.height}}function Ia(k,K,Z,re,ce){var Pe=Mt(k,K,Z);return Pe.xRel=ce,re&&(Pe.outside=re),Pe}function Va(k,K,Z){var re=k.doc;if(Z+=k.display.viewOffset,Z<0)return Ia(re.first,0,null,-1,-1);var ce=Ar(re,Z),Pe=re.first+re.size-1;if(ce>Pe)return Ia(re.first+re.size-1,Le(re,Pe).text.length,null,1,1);K<0&&(K=0);for(var mt=Le(re,ce);;){var Wt=uo(k,mt,ce,K,Z),sr=Pt(mt,Wt.ch+(Wt.xRel>0||Wt.outside>0?1:0));if(!sr)return Wt;var pr=sr.find(1);if(pr.line==ce)return pr;mt=Le(re,ce=pr.line)}}function co(k,K,Z,re){re-=_a(K);var ce=K.text.length,Pe=Ee(function(mt){return $i(k,Z,mt-1).bottom<=re},ce,0);return ce=Ee(function(mt){return $i(k,Z,mt).top>re},Pe,ce),{begin:Pe,end:ce}}function Ca(k,K,Z,re){Z||(Z=Ui(k,K));var ce=Da(k,K,$i(k,Z,re),"line").top;return co(k,K,Z,ce)}function yo(k,K,Z,re){return k.bottom<=Z?!1:k.top>Z?!0:(re?k.left:k.right)>K}function uo(k,K,Z,re,ce){ce-=yr(K);var Pe=Ui(k,K),mt=_a(K),Wt=0,sr=K.text.length,pr=!0,wn=ot(K,k.doc.direction);if(wn){var Rn=(k.options.lineWrapping?Oo:Ga)(k,K,Z,Pe,wn,re,ce);pr=Rn.level!=1,Wt=pr?Rn.from:Rn.to-1,sr=pr?Rn.to:Rn.from-1}var ei=null,ni=null,Mi=Ee(function(To){var no=$i(k,Pe,To);return no.top+=mt,no.bottom+=mt,yo(no,re,ce,!1)?(no.top<=ce&&no.left<=re&&(ei=To,ni=no),!0):!1},Wt,sr),Zi,da,ia=!1;if(ni){var na=re-ni.left<ni.right-re,xa=na==pr;Mi=ei+(xa?0:1),da=xa?"after":"before",Zi=na?ni.left:ni.right}else{!pr&&(Mi==sr||Mi==Wt)&&Mi++,da=Mi==0?"after":Mi==K.text.length?"before":$i(k,Pe,Mi-(pr?1:0)).bottom+mt<=ce==pr?"after":"before";var Ma=ja(k,Mt(Z,Mi,da),"line",K,Pe);Zi=Ma.left,ia=ce<Ma.top?-1:ce>=Ma.bottom?1:0}return Mi=Ce(K.text,Mi,1),Ia(Z,Mi,da,ia,re-Zi)}function Ga(k,K,Z,re,ce,Pe,mt){var Wt=Ee(function(Rn){var ei=ce[Rn],ni=ei.level!=1;return yo(ja(k,Mt(Z,ni?ei.to:ei.from,ni?"before":"after"),"line",K,re),Pe,mt,!0)},0,ce.length-1),sr=ce[Wt];if(Wt>0){var pr=sr.level!=1,wn=ja(k,Mt(Z,pr?sr.from:sr.to,pr?"after":"before"),"line",K,re);yo(wn,Pe,mt,!0)&&wn.top>mt&&(sr=ce[Wt-1])}return sr}function Oo(k,K,Z,re,ce,Pe,mt){var Wt=co(k,K,re,mt),sr=Wt.begin,pr=Wt.end;/\s/.test(K.text.charAt(pr-1))&&pr--;for(var wn=null,Rn=null,ei=0;ei<ce.length;ei++){var ni=ce[ei];if(ni.from>=pr||ni.to<=sr)continue;var Mi=ni.level!=1,Zi=$i(k,re,Mi?Math.min(pr,ni.to)-1:Math.max(sr,ni.from)).right,da=Zi<Pe?Pe-Zi+1e9:Zi-Pe;(!wn||Rn>da)&&(wn=ni,Rn=da)}return wn||(wn=ce[ce.length-1]),wn.from<sr&&(wn={from:sr,to:wn.to,level:wn.level}),wn.to>pr&&(wn={from:wn.from,to:pr,level:wn.level}),wn}var oa;function qa(k){if(k.cachedTextHeight!=null)return k.cachedTextHeight;if(oa==null){oa=I("pre",null,"CodeMirror-line-like");for(var K=0;K<49;++K)oa.appendChild(document.createTextNode("x")),oa.appendChild(I("br"));oa.appendChild(document.createTextNode("x"))}_(k.measure,oa);var Z=oa.offsetHeight/50;return Z>3&&(k.cachedTextHeight=Z),b(k.measure),Z||1}function oo(k){if(k.cachedCharWidth!=null)return k.cachedCharWidth;var K=I("span","xxxxxxxxxx"),Z=I("pre",[K],"CodeMirror-line-like");_(k.measure,Z);var re=K.getBoundingClientRect(),ce=(re.right-re.left)/10;return ce>2&&(k.cachedCharWidth=ce),ce||10}function Ro(k){for(var K=k.display,Z={},re={},ce=K.gutters.clientLeft,Pe=K.gutters.firstChild,mt=0;Pe;Pe=Pe.nextSibling,++mt){var Wt=k.display.gutterSpecs[mt].className;Z[Wt]=Pe.offsetLeft+Pe.clientLeft+ce,re[Wt]=Pe.clientWidth}return{fixedPos:Xa(K),gutterTotalWidth:K.gutters.offsetWidth,gutterLeft:Z,gutterWidth:re,wrapperWidth:K.wrapper.clientWidth}}function Xa(k){return k.scroller.getBoundingClientRect().left-k.sizer.getBoundingClientRect().left}function _o(k){var K=qa(k.display),Z=k.options.lineWrapping,re=Z&&Math.max(5,k.display.scroller.clientWidth/oo(k.display)-3);return function(ce){if(tr(k.doc,ce))return 0;var Pe=0;if(ce.widgets)for(var mt=0;mt<ce.widgets.length;mt++)ce.widgets[mt].height&&(Pe+=ce.widgets[mt].height);return Z?Pe+(Math.ceil(ce.text.length/re)||1)*K:Pe+K}}function go(k){var K=k.doc,Z=_o(k);K.iter(function(re){var ce=Z(re);ce!=re.height&&ft(re,ce)})}function Ja(k,K,Z,re){var ce=k.display;if(!Z&&Ne(K).getAttribute("cm-not-content")=="true")return null;var Pe,mt,Wt=ce.lineSpace.getBoundingClientRect();try{Pe=K.clientX-Wt.left,mt=K.clientY-Wt.top}catch(Rn){return null}var sr=Va(k,Pe,mt),pr;if(re&&sr.xRel>0&&(pr=Le(k.doc,sr.line).text).length==sr.ch){var wn=W(pr,pr.length,k.options.tabSize)-pr.length;sr=Mt(sr.line,Math.max(0,Math.round((Pe-ci(k.display).left)/oo(k.display))-wn))}return sr}function Fa(k,K){if(K>=k.display.viewTo)return null;if(K-=k.display.viewFrom,K<0)return null;for(var Z=k.display.view,re=0;re<Z.length;re++)if(K-=Z[re].size,K<0)return re}function ha(k,K,Z,re){K==null&&(K=k.doc.first),Z==null&&(Z=k.doc.first+k.doc.size),re||(re=0);var ce=k.display;if(re&&Z<ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>K)&&(ce.updateLineNumbers=K),k.curOp.viewChanged=!0,K>=ce.viewTo)Ve&&yt(k.doc,K)<ce.viewTo&&cr(k);else if(Z<=ce.viewFrom)Ve&&Qt(k.doc,Z+re)>ce.viewFrom?cr(k):(ce.viewFrom+=re,ce.viewTo+=re);else if(K<=ce.viewFrom&&Z>=ce.viewTo)cr(k);else if(K<=ce.viewFrom){var Pe=Pr(k,Z,Z+re,1);Pe?(ce.view=ce.view.slice(Pe.index),ce.viewFrom=Pe.lineN,ce.viewTo+=re):cr(k)}else if(Z>=ce.viewTo){var mt=Pr(k,K,K,-1);mt?(ce.view=ce.view.slice(0,mt.index),ce.viewTo=mt.lineN):cr(k)}else{var Wt=Pr(k,K,K,-1),sr=Pr(k,Z,Z+re,1);Wt&&sr?(ce.view=ce.view.slice(0,Wt.index).concat($n(k,Wt.lineN,sr.lineN)).concat(ce.view.slice(sr.index)),ce.viewTo+=re):cr(k)}var pr=ce.externalMeasured;pr&&(Z<pr.lineN?pr.lineN+=re:K<pr.lineN+pr.size&&(ce.externalMeasured=null))}function rt(k,K,Z){k.curOp.viewChanged=!0;var re=k.display,ce=k.display.externalMeasured;if(ce&&K>=ce.lineN&&K<ce.lineN+ce.size&&(re.externalMeasured=null),K<re.viewFrom||K>=re.viewTo)return;var Pe=re.view[Fa(k,K)];if(Pe.node==null)return;var mt=Pe.changes||(Pe.changes=[]);z(mt,Z)==-1&&mt.push(Z)}function cr(k){k.display.viewFrom=k.display.viewTo=k.doc.first,k.display.view=[],k.display.viewOffset=0}function Pr(k,K,Z,re){var ce=Fa(k,K),Pe,mt=k.display.view;if(!Ve||Z==k.doc.first+k.doc.size)return{index:ce,lineN:Z};for(var Wt=k.display.viewFrom,sr=0;sr<ce;sr++)Wt+=mt[sr].size;if(Wt!=K){if(re>0){if(ce==mt.length-1)return null;Pe=Wt+mt[ce].size-K,ce++}else Pe=Wt-K;K+=Pe,Z+=Pe}for(;yt(k.doc,Z)!=Z;){if(ce==(re<0?0:mt.length-1))return null;Z+=re*mt[ce-(re<0?1:0)].size,ce+=re}return{index:ce,lineN:Z}}function Lr(k,K,Z){var re=k.display,ce=re.view;ce.length==0||K>=re.viewTo||Z<=re.viewFrom?(re.view=$n(k,K,Z),re.viewFrom=K):(re.viewFrom>K?re.view=$n(k,K,re.viewFrom).concat(re.view):re.viewFrom<K&&(re.view=re.view.slice(Fa(k,K))),re.viewFrom=K,re.viewTo<Z?re.view=re.view.concat($n(k,re.viewTo,Z)):re.viewTo>Z&&(re.view=re.view.slice(0,Fa(k,Z)))),re.viewTo=Z}function _n(k){for(var K=k.display.view,Z=0,re=0;re<K.length;re++){var ce=K[re];!ce.hidden&&(!ce.node||ce.changes)&&++Z}return Z}function Vr(k){k.display.input.showSelection(k.display.input.prepareSelection())}function _r(k,K){K===void 0&&(K=!0);for(var Z=k.doc,re={},ce=re.cursors=document.createDocumentFragment(),Pe=re.selection=document.createDocumentFragment(),mt=0;mt<Z.sel.ranges.length;mt++){if(!K&&mt==Z.sel.primIndex)continue;var Wt=Z.sel.ranges[mt];if(Wt.from().line>=k.display.viewTo||Wt.to().line<k.display.viewFrom)continue;var sr=Wt.empty();(sr||k.options.showCursorWhenSelecting)&&kn(k,Wt.head,ce),sr||En(k,Wt,Pe)}return re}function kn(k,K,Z){var re=ja(k,K,"div",null,null,!k.options.singleCursorHeightPerLine),ce=Z.appendChild(I("div","\xA0","CodeMirror-cursor"));if(ce.style.left=re.left+"px",ce.style.top=re.top+"px",ce.style.height=Math.max(0,re.bottom-re.top)*k.options.cursorHeight+"px",re.other){var Pe=Z.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Pe.style.display="",Pe.style.left=re.other.left+"px",Pe.style.top=re.other.top+"px",Pe.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function Ur(k,K){return k.top-K.top||k.left-K.left}function En(k,K,Z){var re=k.display,ce=k.doc,Pe=document.createDocumentFragment(),mt=ci(k.display),Wt=mt.left,sr=Math.max(re.sizerWidth,pi(k)-re.sizer.offsetLeft)-mt.right,pr=ce.direction=="ltr";function wn(xa,Ma,To,no){Ma<0&&(Ma=0),Ma=Math.round(Ma),no=Math.round(no),Pe.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+xa+`px;
|
|
|
top: `+Ma+"px; width: "+(To==null?sr-xa:To)+`px;
|
|
|
height: `+(no-Ma)+"px"))}function Rn(xa,Ma,To){var no=Le(ce,xa),Wo=no.text.length,ps,Us;function Ts(Gs,cl){return Ao(k,Mt(xa,Gs),"div",no,cl)}function tl(Gs,cl,rl){var ya=Ca(k,no,null,Gs),Ms=cl=="ltr"==(rl=="after")?"left":"right",Ls=rl=="after"?ya.begin:ya.end-(/\s/.test(no.text.charAt(ya.end-1))?2:1);return Ts(Ls,Ms)[Ms]}var ul=ot(no,ce.direction);return le(ul,Ma||0,To==null?Wo:To,function(Gs,cl,rl,ya){var Ms=rl=="ltr",Ls=Ts(Gs,Ms?"left":"right"),Ws=Ts(cl-1,Ms?"right":"left"),Lu=Ma==null&&Gs==0,ns=To==null&&cl==Wo,Uo=ya==0,Rl=!ul||ya==ul.length-1;if(Ws.top-Ls.top<=3){var al=(pr?Lu:ns)&&Uo,Nu=(pr?ns:Lu)&&Rl,Ql=al?Wt:(Ms?Ls:Ws).left,Ml=Nu?sr:(Ms?Ws:Ls).right;wn(Ql,Ls.top,Ml-Ql,Ls.bottom)}else{var vu,gl,Jl,ju;Ms?(vu=pr&&Lu&&Uo?Wt:Ls.left,gl=pr?sr:tl(Gs,rl,"before"),Jl=pr?Wt:tl(cl,rl,"after"),ju=pr&&ns&&Rl?sr:Ws.right):(vu=pr?tl(Gs,rl,"before"):Wt,gl=!pr&&Lu&&Uo?sr:Ls.right,Jl=!pr&&ns&&Rl?Wt:Ws.left,ju=pr?tl(cl,rl,"after"):sr),wn(vu,Ls.top,gl-vu,Ls.bottom),Ls.bottom<Ws.top&&wn(Wt,Ls.bottom,null,Ws.top),wn(Jl,Ws.top,ju-Jl,Ws.bottom)}(!ps||Ur(Ls,ps)<0)&&(ps=Ls),Ur(Ws,ps)<0&&(ps=Ws),(!Us||Ur(Ls,Us)<0)&&(Us=Ls),Ur(Ws,Us)<0&&(Us=Ws)}),{start:ps,end:Us}}var ei=K.from(),ni=K.to();if(ei.line==ni.line)Rn(ei.line,ei.ch,ni.ch);else{var Mi=Le(ce,ei.line),Zi=Le(ce,ni.line),da=Et(Mi)==Et(Zi),ia=Rn(ei.line,ei.ch,da?Mi.text.length+1:null).end,na=Rn(ni.line,da?0:null,ni.ch).start;da&&(ia.top<na.top-2?(wn(ia.right,ia.top,null,ia.bottom),wn(Wt,na.top,na.left,na.bottom)):wn(ia.right,ia.top,na.left-ia.right,ia.bottom)),ia.bottom<na.top&&wn(Wt,ia.bottom,null,na.top)}Z.appendChild(Pe)}function jn(k){if(!k.state.focused)return;var K=k.display;clearInterval(K.blinker);var Z=!0;K.cursorDiv.style.visibility="",k.options.cursorBlinkRate>0?K.blinker=setInterval(function(){k.hasFocus()||Yn(k),K.cursorDiv.style.visibility=(Z=!Z)?"":"hidden"},k.options.cursorBlinkRate):k.options.cursorBlinkRate<0&&(K.cursorDiv.style.visibility="hidden")}function Hn(k){k.state.focused||(k.display.input.focus(),ri(k))}function Bn(k){k.state.delayingBlurEvent=!0,setTimeout(function(){k.state.delayingBlurEvent&&(k.state.delayingBlurEvent=!1,Yn(k))},100)}function ri(k,K){if(k.state.delayingBlurEvent&&(k.state.delayingBlurEvent=!1),k.options.readOnly=="nocursor")return;k.state.focused||(nt(k,"focus",k,K),k.state.focused=!0,P(k.display.wrapper,"CodeMirror-focused"),!k.curOp&&k.display.selForContextMenu!=k.doc.sel&&(k.display.input.reset(),o&&setTimeout(function(){return k.display.input.reset(!0)},20)),k.display.input.receivedFocus()),jn(k)}function Yn(k,K){if(k.state.delayingBlurEvent)return;k.state.focused&&(nt(k,"blur",k,K),k.state.focused=!1,S(k.display.wrapper,"CodeMirror-focused")),clearInterval(k.display.blinker),setTimeout(function(){k.state.focused||(k.display.shift=!1)},150)}function ii(k){for(var K=k.display,Z=K.lineDiv.offsetTop,re=0;re<K.view.length;re++){var ce=K.view[re],Pe=k.options.lineWrapping,mt=void 0,Wt=0;if(ce.hidden)continue;if(f&&c<8){var sr=ce.node.offsetTop+ce.node.offsetHeight;mt=sr-Z,Z=sr}else{var pr=ce.node.getBoundingClientRect();mt=pr.bottom-pr.top,!Pe&&ce.text.firstChild&&(Wt=ce.text.firstChild.getBoundingClientRect().right-pr.left-1)}var wn=ce.line.height-mt;if((wn>.005||wn<-.005)&&(ft(ce.line,mt),ai(ce.line),ce.rest))for(var Rn=0;Rn<ce.rest.length;Rn++)ai(ce.rest[Rn]);if(Wt>k.display.sizerWidth){var ei=Math.ceil(Wt/oo(k.display));ei>k.display.maxLineLength&&(k.display.maxLineLength=ei,k.display.maxLine=ce.line,k.display.maxLineChanged=!0)}}}function ai(k){if(k.widgets)for(var K=0;K<k.widgets.length;++K){var Z=k.widgets[K],re=Z.node.parentNode;re&&(Z.height=re.offsetHeight)}}function ki(k,K,Z){var re=Z&&Z.top!=null?Math.max(0,Z.top):k.scroller.scrollTop;re=Math.floor(re-Tn(k));var ce=Z&&Z.bottom!=null?Z.bottom:re+k.wrapper.clientHeight,Pe=Ar(K,re),mt=Ar(K,ce);if(Z&&Z.ensure){var Wt=Z.ensure.from.line,sr=Z.ensure.to.line;Wt<Pe?(Pe=Wt,mt=Ar(K,yr(Le(K,Wt))+k.wrapper.clientHeight)):Math.min(sr,K.lastLine())>=mt&&(Pe=Ar(K,yr(Le(K,sr))-k.wrapper.clientHeight),mt=sr)}return{from:Pe,to:Math.max(mt,Pe+1)}}function bi(k,K){if(Ot(k,"scrollCursorIntoView"))return;var Z=k.display,re=Z.sizer.getBoundingClientRect(),ce=null;if(K.top+re.top<0?ce=!0:K.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(ce=!1),ce!=null&&!t){var Pe=I("div","\u200B",null,`position: absolute;
|
|
|
top: `+(K.top-Z.viewOffset-Tn(k.display))+`px;
|
|
|
height: `+(K.bottom-K.top+Jn(k)+Z.barHeight)+`px;
|
|
|
left: `+K.left+"px; width: "+Math.max(2,K.right-K.left)+"px;");k.display.lineSpace.appendChild(Pe),Pe.scrollIntoView(ce),k.display.lineSpace.removeChild(Pe)}}function Ki(k,K,Z,re){re==null&&(re=0);var ce;!k.options.lineWrapping&&K==Z&&(K=K.ch?Mt(K.line,K.sticky=="before"?K.ch-1:K.ch,"after"):K,Z=K.sticky=="before"?Mt(K.line,K.ch+1,"before"):K);for(var Pe=0;Pe<5;Pe++){var mt=!1,Wt=ja(k,K),sr=!Z||Z==K?Wt:ja(k,Z);ce={left:Math.min(Wt.left,sr.left),top:Math.min(Wt.top,sr.top)-re,right:Math.max(Wt.left,sr.left),bottom:Math.max(Wt.bottom,sr.bottom)+re};var pr=ea(k,ce),wn=k.doc.scrollTop,Rn=k.doc.scrollLeft;if(pr.scrollTop!=null&&(qi(k,pr.scrollTop),Math.abs(k.doc.scrollTop-wn)>1&&(mt=!0)),pr.scrollLeft!=null&&(ma(k,pr.scrollLeft),Math.abs(k.doc.scrollLeft-Rn)>1&&(mt=!0)),!mt)break}return ce}function Aa(k,K){var Z=ea(k,K);Z.scrollTop!=null&&qi(k,Z.scrollTop),Z.scrollLeft!=null&&ma(k,Z.scrollLeft)}function ea(k,K){var Z=k.display,re=qa(k.display);K.top<0&&(K.top=0);var ce=k.curOp&&k.curOp.scrollTop!=null?k.curOp.scrollTop:Z.scroller.scrollTop,Pe=Si(k),mt={};K.bottom-K.top>Pe&&(K.bottom=K.top+Pe);var Wt=k.doc.height+Xn(Z),sr=K.top<re,pr=K.bottom>Wt-re;if(K.top<ce)mt.scrollTop=sr?0:K.top;else if(K.bottom>ce+Pe){var wn=Math.min(K.top,(pr?Wt:K.bottom)-Pe);wn!=ce&&(mt.scrollTop=wn)}var Rn=k.options.fixedGutter?0:Z.gutters.offsetWidth,ei=k.curOp&&k.curOp.scrollLeft!=null?k.curOp.scrollLeft:Z.scroller.scrollLeft-Rn,ni=pi(k)-Z.gutters.offsetWidth,Mi=K.right-K.left>ni;return Mi&&(K.right=K.left+ni),K.left<10?mt.scrollLeft=0:K.left<ei?mt.scrollLeft=Math.max(0,K.left+Rn-(Mi?0:10)):K.right>ni+ei-3&&(mt.scrollLeft=K.right+(Mi?0:10)-ni),mt}function Ji(k,K){if(K==null)return;Qa(k),k.curOp.scrollTop=(k.curOp.scrollTop==null?k.doc.scrollTop:k.curOp.scrollTop)+K}function sa(k){Qa(k);var K=k.getCursor();k.curOp.scrollToPos={from:K,to:K,margin:k.options.cursorScrollMargin}}function fa(k,K,Z){(K!=null||Z!=null)&&Qa(k),K!=null&&(k.curOp.scrollLeft=K),Z!=null&&(k.curOp.scrollTop=Z)}function xo(k,K){Qa(k),k.curOp.scrollToPos=K}function Qa(k){var K=k.curOp.scrollToPos;if(K){k.curOp.scrollToPos=null;var Z=Ya(k,K.from),re=Ya(k,K.to);Wi(k,Z,re,K.margin)}}function Wi(k,K,Z,re){var ce=ea(k,{left:Math.min(K.left,Z.left),top:Math.min(K.top,Z.top)-re,right:Math.max(K.right,Z.right),bottom:Math.max(K.bottom,Z.bottom)+re});fa(k,ce.scrollLeft,ce.scrollTop)}function qi(k,K){if(Math.abs(k.doc.scrollTop-K)<2)return;C||bs(k,{top:K}),ca(k,K,!0),C&&bs(k),zo(k,100)}function ca(k,K,Z){if(K=Math.max(0,Math.min(k.display.scroller.scrollHeight-k.display.scroller.clientHeight,K)),k.display.scroller.scrollTop==K&&!Z)return;k.doc.scrollTop=K,k.display.scrollbars.setScrollTop(K),k.display.scroller.scrollTop!=K&&(k.display.scroller.scrollTop=K)}function ma(k,K,Z,re){if(K=Math.max(0,Math.min(K,k.display.scroller.scrollWidth-k.display.scroller.clientWidth)),(Z?K==k.doc.scrollLeft:Math.abs(k.doc.scrollLeft-K)<2)&&!re)return;k.doc.scrollLeft=K,_s(k),k.display.scroller.scrollLeft!=K&&(k.display.scroller.scrollLeft=K),k.display.scrollbars.setScrollLeft(K)}function ka(k){var K=k.display,Z=K.gutters.offsetWidth,re=Math.round(k.doc.height+Xn(k.display));return{clientHeight:K.scroller.clientHeight,viewHeight:K.wrapper.clientHeight,scrollWidth:K.scroller.scrollWidth,clientWidth:K.scroller.clientWidth,viewWidth:K.wrapper.clientWidth,barLeft:k.options.fixedGutter?Z:0,docHeight:re,scrollHeight:re+Jn(k)+K.barHeight,nativeBarWidth:K.nativeBarWidth,gutterWidth:Z}}var La=function(K,Z,re){this.cm=re;var ce=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Pe=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ce.tabIndex=Pe.tabIndex=-1,K(ce),K(Pe),Te(ce,"scroll",function(){ce.clientHeight&&Z(ce.scrollTop,"vertical")}),Te(Pe,"scroll",function(){Pe.clientWidth&&Z(Pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};La.prototype.update=function(k){var K=k.scrollWidth>k.clientWidth+1,Z=k.scrollHeight>k.clientHeight+1,re=k.nativeBarWidth;if(Z){this.vert.style.display="block",this.vert.style.bottom=K?re+"px":"0";var ce=k.viewHeight-(K?re:0);this.vert.firstChild.style.height=Math.max(0,k.scrollHeight-k.clientHeight+ce)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(K){this.horiz.style.display="block",this.horiz.style.right=Z?re+"px":"0",this.horiz.style.left=k.barLeft+"px";var Pe=k.viewWidth-k.barLeft-(Z?re:0);this.horiz.firstChild.style.width=Math.max(0,k.scrollWidth-k.clientWidth+Pe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&k.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Z?re:0,bottom:K?re:0}},La.prototype.setScrollLeft=function(k){this.horiz.scrollLeft!=k&&(this.horiz.scrollLeft=k),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},La.prototype.setScrollTop=function(k){this.vert.scrollTop!=k&&(this.vert.scrollTop=k),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},La.prototype.zeroWidthHack=function(){var k=h&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=k,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},La.prototype.enableZeroWidthBar=function(k,K,Z){k.style.pointerEvents="auto";function re(){var ce=k.getBoundingClientRect(),Pe=Z=="vert"?document.elementFromPoint(ce.right-1,(ce.top+ce.bottom)/2):document.elementFromPoint((ce.right+ce.left)/2,ce.bottom-1);Pe!=k?k.style.pointerEvents="none":K.set(1e3,re)}K.set(1e3,re)},La.prototype.clear=function(){var k=this.horiz.parentNode;k.removeChild(this.horiz),k.removeChild(this.vert)};var Za=function(){};Za.prototype.update=function(){return{bottom:0,right:0}},Za.prototype.setScrollLeft=function(){},Za.prototype.setScrollTop=function(){},Za.prototype.clear=function(){};function eo(k,K){K||(K=ka(k));var Z=k.display.barWidth,re=k.display.barHeight;Po(k,K);for(var ce=0;ce<4&&Z!=k.display.barWidth||re!=k.display.barHeight;ce++)Z!=k.display.barWidth&&k.options.lineWrapping&&ii(k),Po(k,ka(k)),Z=k.display.barWidth,re=k.display.barHeight}function Po(k,K){var Z=k.display,re=Z.scrollbars.update(K);Z.sizer.style.paddingRight=(Z.barWidth=re.right)+"px",Z.sizer.style.paddingBottom=(Z.barHeight=re.bottom)+"px",Z.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?(Z.scrollbarFiller.style.display="block",Z.scrollbarFiller.style.height=re.bottom+"px",Z.scrollbarFiller.style.width=re.right+"px"):Z.scrollbarFiller.style.display="",re.bottom&&k.options.coverGutterNextToScrollbar&&k.options.fixedGutter?(Z.gutterFiller.style.display="block",Z.gutterFiller.style.height=re.bottom+"px",Z.gutterFiller.style.width=K.gutterWidth+"px"):Z.gutterFiller.style.display=""}var jo={native:La,null:Za};function cs(k){k.display.scrollbars&&(k.display.scrollbars.clear(),k.display.scrollbars.addClass&&S(k.display.wrapper,k.display.scrollbars.addClass)),k.display.scrollbars=new jo[k.options.scrollbarStyle](function(K){k.display.wrapper.insertBefore(K,k.display.scrollbarFiller),Te(K,"mousedown",function(){k.state.focused&&setTimeout(function(){return k.display.input.focus()},0)}),K.setAttribute("cm-not-content","true")},function(K,Z){Z=="horizontal"?ma(k,K):qi(k,K)},k),k.display.scrollbars.addClass&&P(k.display.wrapper,k.display.scrollbars.addClass)}var Mo=0;function Lo(k){k.curOp={cm:k,viewChanged:!1,startHeight:k.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Mo},mi(k.curOp)}function Ba(k){var K=k.curOp;K&&Li(K,function(Z){for(var re=0;re<Z.ops.length;re++)Z.ops[re].cm.curOp=null;za(Z)})}function za(k){for(var K=k.ops,Z=0;Z<K.length;Z++)Ta(K[Z]);for(var re=0;re<K.length;re++)ko(K[re]);for(var ce=0;ce<K.length;ce++)Qo(K[ce]);for(var Pe=0;Pe<K.length;Pe++)so(K[Pe]);for(var mt=0;mt<K.length;mt++)Os(K[mt])}function Ta(k){var K=k.cm,Z=K.display;Js(K),k.updateMaxLine&&vn(K),k.mustUpdate=k.viewChanged||k.forceUpdate||k.scrollTop!=null||k.scrollToPos&&(k.scrollToPos.from.line<Z.viewFrom||k.scrollToPos.to.line>=Z.viewTo)||Z.maxLineChanged&&K.options.lineWrapping,k.update=k.mustUpdate&&new es(K,k.mustUpdate&&{top:k.scrollTop,ensure:k.scrollToPos},k.forceUpdate)}function ko(k){k.updatedDisplay=k.mustUpdate&&Ko(k.cm,k.update)}function Qo(k){var K=k.cm,Z=K.display;k.updatedDisplay&&ii(K),k.barMeasure=ka(K),Z.maxLineChanged&&!K.options.lineWrapping&&(k.adjustWidthTo=vi(K,Z.maxLine,Z.maxLine.text.length).left+3,K.display.sizerWidth=k.adjustWidthTo,k.barMeasure.scrollWidth=Math.max(Z.scroller.clientWidth,Z.sizer.offsetLeft+k.adjustWidthTo+Jn(K)+K.display.barWidth),k.maxScrollLeft=Math.max(0,Z.sizer.offsetLeft+k.adjustWidthTo-pi(K))),(k.updatedDisplay||k.selectionChanged)&&(k.preparedSelection=Z.input.prepareSelection())}function so(k){var K=k.cm;k.adjustWidthTo!=null&&(K.display.sizer.style.minWidth=k.adjustWidthTo+"px",k.maxScrollLeft<K.doc.scrollLeft&&ma(K,Math.min(K.display.scroller.scrollLeft,k.maxScrollLeft),!0),K.display.maxLineChanged=!1);var Z=k.focus&&k.focus==R();k.preparedSelection&&K.display.input.showSelection(k.preparedSelection,Z),(k.updatedDisplay||k.startHeight!=K.doc.height)&&eo(K,k.barMeasure),k.updatedDisplay&&us(K,k.barMeasure),k.selectionChanged&&jn(K),K.state.focused&&k.updateInput&&K.display.input.reset(k.typing),Z&&Hn(k.cm)}function Os(k){var K=k.cm,Z=K.display,re=K.doc;if(k.updatedDisplay&&hs(K,k.update),Z.wheelStartX!=null&&(k.scrollTop!=null||k.scrollLeft!=null||k.scrollToPos)&&(Z.wheelStartX=Z.wheelStartY=null),k.scrollTop!=null&&ca(K,k.scrollTop,k.forceScroll),k.scrollLeft!=null&&ma(K,k.scrollLeft,!0,!0),k.scrollToPos){var ce=Ki(K,wt(re,k.scrollToPos.from),wt(re,k.scrollToPos.to),k.scrollToPos.margin);bi(K,ce)}var Pe=k.maybeHiddenMarkers,mt=k.maybeUnhiddenMarkers;if(Pe)for(var Wt=0;Wt<Pe.length;++Wt)Pe[Wt].lines.length||nt(Pe[Wt],"hide");if(mt)for(var sr=0;sr<mt.length;++sr)mt[sr].lines.length&&nt(mt[sr],"unhide");Z.wrapper.offsetHeight&&(re.scrollTop=K.display.scroller.scrollTop),k.changeObjs&&nt(K,"changes",K,k.changeObjs),k.update&&k.update.finish()}function ho(k,K){if(k.curOp)return K();Lo(k);try{return K()}finally{Ba(k)}}function bo(k,K){return function(){if(k.curOp)return K.apply(k,arguments);Lo(k);try{return K.apply(k,arguments)}finally{Ba(k)}}}function ds(k){return function(){if(this.curOp)return k.apply(this,arguments);Lo(this);try{return k.apply(this,arguments)}finally{Ba(this)}}}function Ho(k){return function(){var K=this.cm;if(!K||K.curOp)return k.apply(this,arguments);Lo(K);try{return k.apply(this,arguments)}finally{Ba(K)}}}function zo(k,K){k.doc.highlightFrontier<k.display.viewTo&&k.state.highlight.set(K,F(rn,k))}function rn(k){var K=k.doc;if(K.highlightFrontier>=k.display.viewTo)return;var Z=+new Date+k.options.workTime,re=Pn(k,K.highlightFrontier),ce=[];K.iter(re.line,Math.min(K.first+K.size,k.display.viewTo+500),function(Pe){if(re.line>=k.display.viewFrom){var mt=Pe.styles,Wt=Pe.text.length>k.options.maxHighlightLength?jt(K.mode,re.state):null,sr=Jr(k,Pe,re,!0);Wt&&(re.state=Wt),Pe.styles=sr.styles;var pr=Pe.styleClasses,wn=sr.classes;wn?Pe.styleClasses=wn:pr&&(Pe.styleClasses=null);for(var Rn=!mt||mt.length!=Pe.styles.length||pr!=wn&&(!pr||!wn||pr.bgClass!=wn.bgClass||pr.textClass!=wn.textClass),ei=0;!Rn&&ei<mt.length;++ei)Rn=mt[ei]!=Pe.styles[ei];Rn&&ce.push(re.line),Pe.stateAfter=re.save(),re.nextLine()}else Pe.text.length<=k.options.maxHighlightLength&&Dn(k,Pe.text,re),Pe.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>Z)return zo(k,k.options.workDelay),!0}),K.highlightFrontier=re.line,K.modeFrontier=Math.max(K.modeFrontier,re.line),ce.length&&ho(k,function(){for(var Pe=0;Pe<ce.length;Pe++)rt(k,ce[Pe],"text")})}var es=function(K,Z,re){var ce=K.display;this.viewport=Z,this.visible=ki(ce,K.doc,Z),this.editorIsHidden=!ce.wrapper.offsetWidth,this.wrapperHeight=ce.wrapper.clientHeight,this.wrapperWidth=ce.wrapper.clientWidth,this.oldDisplayWidth=pi(K),this.force=re,this.dims=Ro(K),this.events=[]};es.prototype.signal=function(k,K){Tt(k,K)&&this.events.push(arguments)},es.prototype.finish=function(){for(var k=0;k<this.events.length;k++)nt.apply(null,this.events[k])};function Js(k){var K=k.display;!K.scrollbarsClipped&&K.scroller.offsetWidth&&(K.nativeBarWidth=K.scroller.offsetWidth-K.scroller.clientWidth,K.heightForcer.style.height=Jn(k)+"px",K.sizer.style.marginBottom=-K.nativeBarWidth+"px",K.sizer.style.borderRightWidth=Jn(k)+"px",K.scrollbarsClipped=!0)}function Es(k){if(k.hasFocus())return null;var K=R();if(!K||!D(k.display.lineDiv,K))return null;var Z={activeElt:K};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&D(k.display.lineDiv,re.anchorNode)&&(Z.anchorNode=re.anchorNode,Z.anchorOffset=re.anchorOffset,Z.focusNode=re.focusNode,Z.focusOffset=re.focusOffset)}return Z}function gs(k){if(!k||!k.activeElt||k.activeElt==R())return;if(k.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(k.activeElt.nodeName)&&k.anchorNode&&D(document.body,k.anchorNode)&&D(document.body,k.focusNode)){var K=window.getSelection(),Z=document.createRange();Z.setEnd(k.anchorNode,k.anchorOffset),Z.collapse(!1),K.removeAllRanges(),K.addRange(Z),K.extend(k.focusNode,k.focusOffset)}}function Ko(k,K){var Z=k.display,re=k.doc;if(K.editorIsHidden)return cr(k),!1;if(!K.force&&K.visible.from>=Z.viewFrom&&K.visible.to<=Z.viewTo&&(Z.updateLineNumbers==null||Z.updateLineNumbers>=Z.viewTo)&&Z.renderedView==Z.view&&_n(k)==0)return!1;vs(k)&&(cr(k),K.dims=Ro(k));var ce=re.first+re.size,Pe=Math.max(K.visible.from-k.options.viewportMargin,re.first),mt=Math.min(ce,K.visible.to+k.options.viewportMargin);Z.viewFrom<Pe&&Pe-Z.viewFrom<20&&(Pe=Math.max(re.first,Z.viewFrom)),Z.viewTo>mt&&Z.viewTo-mt<20&&(mt=Math.min(ce,Z.viewTo)),Ve&&(Pe=yt(k.doc,Pe),mt=Qt(k.doc,mt));var Wt=Pe!=Z.viewFrom||mt!=Z.viewTo||Z.lastWrapHeight!=K.wrapperHeight||Z.lastWrapWidth!=K.wrapperWidth;Lr(k,Pe,mt),Z.viewOffset=yr(Le(k.doc,Z.viewFrom)),k.display.mover.style.top=Z.viewOffset+"px";var sr=_n(k);if(!Wt&&sr==0&&!K.force&&Z.renderedView==Z.view&&(Z.updateLineNumbers==null||Z.updateLineNumbers>=Z.viewTo))return!1;var pr=Es(k);return sr>4&&(Z.lineDiv.style.display="none"),ws(k,Z.updateLineNumbers,K.dims),sr>4&&(Z.lineDiv.style.display=""),Z.renderedView=Z.view,gs(pr),b(Z.cursorDiv),b(Z.selectionDiv),Z.gutters.style.height=Z.sizer.style.minHeight=0,Wt&&(Z.lastWrapHeight=K.wrapperHeight,Z.lastWrapWidth=K.wrapperWidth,zo(k,400)),Z.updateLineNumbers=null,!0}function hs(k,K){for(var Z=K.viewport,re=!0;;re=!1){if(!re||!k.options.lineWrapping||K.oldDisplayWidth==pi(k)){if(Z&&Z.top!=null&&(Z={top:Math.min(k.doc.height+Xn(k.display)-Si(k),Z.top)}),K.visible=ki(k.display,k.doc,Z),K.visible.from>=k.display.viewFrom&&K.visible.to<=k.display.viewTo)break}else re&&(K.visible=ki(k.display,k.doc,Z));if(!Ko(k,K))break;ii(k);var ce=ka(k);Vr(k),eo(k,ce),us(k,ce),K.force=!1}K.signal(k,"update",k),(k.display.viewFrom!=k.display.reportedViewFrom||k.display.viewTo!=k.display.reportedViewTo)&&(K.signal(k,"viewportChange",k,k.display.viewFrom,k.display.viewTo),k.display.reportedViewFrom=k.display.viewFrom,k.display.reportedViewTo=k.display.viewTo)}function bs(k,K){var Z=new es(k,K);if(Ko(k,Z)){ii(k),hs(k,Z);var re=ka(k);Vr(k),eo(k,re),us(k,re),Z.finish()}}function ws(k,K,Z){var re=k.display,ce=k.options.lineNumbers,Pe=re.lineDiv,mt=Pe.firstChild;function Wt(Mi){var Zi=Mi.nextSibling;return o&&h&&k.display.currentWheelTarget==Mi?Mi.style.display="none":Mi.parentNode.removeChild(Mi),Zi}for(var sr=re.view,pr=re.viewFrom,wn=0;wn<sr.length;wn++){var Rn=sr[wn];if(!Rn.hidden)if(!Rn.node||Rn.node.parentNode!=Pe){var ei=vr(k,Rn,pr,Z);Pe.insertBefore(ei,mt)}else{for(;mt!=Rn.node;)mt=Wt(mt);var ni=ce&&K!=null&&K<=pr&&Rn.lineNumber;Rn.changes&&(z(Rn.changes,"gutter")>-1&&(ni=!1),on(k,Rn,pr,Z)),ni&&(b(Rn.lineNumber),Rn.lineNumber.appendChild(document.createTextNode(un(k.options,pr)))),mt=Rn.node.nextSibling}pr+=Rn.size}for(;mt;)mt=Wt(mt)}function qo(k){var K=k.gutters.offsetWidth;k.sizer.style.marginLeft=K+"px"}function us(k,K){k.display.sizer.style.minHeight=K.docHeight+"px",k.display.heightForcer.style.top=K.docHeight+"px",k.display.gutters.style.height=K.docHeight+k.display.barHeight+Jn(k)+"px"}function _s(k){var K=k.display,Z=K.view;if(!K.alignWidgets&&(!K.gutters.firstChild||!k.options.fixedGutter))return;for(var re=Xa(K)-K.scroller.scrollLeft+k.doc.scrollLeft,ce=K.gutters.offsetWidth,Pe=re+"px",mt=0;mt<Z.length;mt++)if(!Z[mt].hidden){k.options.fixedGutter&&(Z[mt].gutter&&(Z[mt].gutter.style.left=Pe),Z[mt].gutterBackground&&(Z[mt].gutterBackground.style.left=Pe));var Wt=Z[mt].alignable;if(Wt)for(var sr=0;sr<Wt.length;sr++)Wt[sr].style.left=Pe}k.options.fixedGutter&&(K.gutters.style.left=re+ce+"px")}function vs(k){if(!k.options.lineNumbers)return!1;var K=k.doc,Z=un(k.options,K.first+K.size-1),re=k.display;if(Z.length!=re.lineNumChars){var ce=re.measure.appendChild(I("div",[I("div",Z)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Pe=ce.firstChild.offsetWidth,mt=ce.offsetWidth-Pe;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(Pe,re.lineGutter.offsetWidth-mt)+1,re.lineNumWidth=re.lineNumInnerWidth+mt,re.lineNumChars=re.lineNumInnerWidth?Z.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",qo(k.display),!0}return!1}function vo(k,K){for(var Z=[],re=!1,ce=0;ce<k.length;ce++){var Pe=k[ce],mt=null;if(typeof Pe!="string"&&(mt=Pe.style,Pe=Pe.className),Pe=="CodeMirror-linenumbers")if(K)re=!0;else continue;Z.push({className:Pe,style:mt})}return K&&!re&&Z.push({className:"CodeMirror-linenumbers",style:null}),Z}function to(k){var K=k.gutters,Z=k.gutterSpecs;b(K),k.lineGutter=null;for(var re=0;re<Z.length;++re){var ce=Z[re],Pe=ce.className,mt=ce.style,Wt=K.appendChild(I("div",null,"CodeMirror-gutter "+Pe));mt&&(Wt.style.cssText=mt),Pe=="CodeMirror-linenumbers"&&(k.lineGutter=Wt,Wt.style.width=(k.lineNumWidth||1)+"px")}K.style.display=Z.length?"":"none",qo(k)}function Jo(k){to(k.display),ha(k),_s(k)}function ts(k,K,Z,re){var ce=this;this.input=Z,ce.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),ce.scrollbarFiller.setAttribute("cm-not-content","true"),ce.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),ce.gutterFiller.setAttribute("cm-not-content","true"),ce.lineDiv=L("div",null,"CodeMirror-code"),ce.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),ce.cursorDiv=I("div",null,"CodeMirror-cursors"),ce.measure=I("div",null,"CodeMirror-measure"),ce.lineMeasure=I("div",null,"CodeMirror-measure"),ce.lineSpace=L("div",[ce.measure,ce.lineMeasure,ce.selectionDiv,ce.cursorDiv,ce.lineDiv],null,"position: relative; outline: none");var Pe=L("div",[ce.lineSpace],"CodeMirror-lines");ce.mover=I("div",[Pe],null,"position: relative"),ce.sizer=I("div",[ce.mover],"CodeMirror-sizer"),ce.sizerWidth=null,ce.heightForcer=I("div",null,null,"position: absolute; height: "+Y+"px; width: 1px;"),ce.gutters=I("div",null,"CodeMirror-gutters"),ce.lineGutter=null,ce.scroller=I("div",[ce.sizer,ce.heightForcer,ce.gutters],"CodeMirror-scroll"),ce.scroller.setAttribute("tabIndex","-1"),ce.wrapper=I("div",[ce.scrollbarFiller,ce.gutterFiller,ce.scroller],"CodeMirror"),f&&c<8&&(ce.gutters.style.zIndex=-1,ce.scroller.style.paddingRight=0),!o&&!(C&&u)&&(ce.scroller.draggable=!0),k&&(k.appendChild?k.appendChild(ce.wrapper):k(ce.wrapper)),ce.viewFrom=ce.viewTo=K.first,ce.reportedViewFrom=ce.reportedViewTo=K.first,ce.view=[],ce.renderedView=null,ce.externalMeasured=null,ce.viewOffset=0,ce.lastWrapHeight=ce.lastWrapWidth=0,ce.updateLineNumbers=null,ce.nativeBarWidth=ce.barHeight=ce.barWidth=0,ce.scrollbarsClipped=!1,ce.lineNumWidth=ce.lineNumInnerWidth=ce.lineNumChars=null,ce.alignWidgets=!1,ce.cachedCharWidth=ce.cachedTextHeight=ce.cachedPaddingH=null,ce.maxLine=null,ce.maxLineLength=0,ce.maxLineChanged=!1,ce.wheelDX=ce.wheelDY=ce.wheelStartX=ce.wheelStartY=null,ce.shift=!1,ce.selForContextMenu=null,ce.activeTouch=null,ce.gutterSpecs=vo(re.gutters,re.lineNumbers),to(ce),Z.init(ce)}var Ha=0,It=null;f?It=-.53:C?It=15:i?It=-.7:e&&(It=-1/3);function Vt(k){var K=k.wheelDeltaX,Z=k.wheelDeltaY;return K==null&&k.detail&&k.axis==k.HORIZONTAL_AXIS&&(K=k.detail),Z==null&&k.detail&&k.axis==k.VERTICAL_AXIS?Z=k.detail:Z==null&&(Z=k.wheelDelta),{x:K,y:Z}}function hn(k){var K=Vt(k);return K.x*=It,K.y*=It,K}function zn(k,K){var Z=Vt(K),re=Z.x,ce=Z.y,Pe=k.display,mt=Pe.scroller,Wt=mt.scrollWidth>mt.clientWidth,sr=mt.scrollHeight>mt.clientHeight;if(!(re&&Wt||ce&&sr))return;if(ce&&h&&o){e:for(var pr=K.target,wn=Pe.view;pr!=mt;pr=pr.parentNode)for(var Rn=0;Rn<wn.length;Rn++)if(wn[Rn].node==pr){k.display.currentWheelTarget=pr;break e}}if(re&&!C&&!n&&It!=null){ce&&sr&&qi(k,Math.max(0,mt.scrollTop+ce*It)),ma(k,Math.max(0,mt.scrollLeft+re*It)),(!ce||ce&&sr)&&Be(K),Pe.wheelStartX=null;return}if(ce&&It!=null){var ei=ce*It,ni=k.doc.scrollTop,Mi=ni+Pe.wrapper.clientHeight;ei<0?ni=Math.max(0,ni+ei-50):Mi=Math.min(k.doc.height,Mi+ei+50),bs(k,{top:ni,bottom:Mi})}Ha<20&&(Pe.wheelStartX==null?(Pe.wheelStartX=mt.scrollLeft,Pe.wheelStartY=mt.scrollTop,Pe.wheelDX=re,Pe.wheelDY=ce,setTimeout(function(){if(Pe.wheelStartX==null)return;var Zi=mt.scrollLeft-Pe.wheelStartX,da=mt.scrollTop-Pe.wheelStartY,ia=da&&Pe.wheelDY&&da/Pe.wheelDY||Zi&&Pe.wheelDX&&Zi/Pe.wheelDX;if(Pe.wheelStartX=Pe.wheelStartY=null,!ia)return;It=(It*Ha+ia)/(Ha+1),++Ha},200)):(Pe.wheelDX+=re,Pe.wheelDY+=ce))}var vt=function(K,Z){this.ranges=K,this.primIndex=Z};vt.prototype.primary=function(){return this.ranges[this.primIndex]},vt.prototype.equals=function(k){if(k==this)return!0;if(k.primIndex!=this.primIndex||k.ranges.length!=this.ranges.length)return!1;for(var K=0;K<this.ranges.length;K++){var Z=this.ranges[K],re=k.ranges[K];if(!lt(Z.anchor,re.anchor)||!lt(Z.head,re.head))return!1}return!0},vt.prototype.deepCopy=function(){for(var k=[],K=0;K<this.ranges.length;K++)k[K]=new ae(rr(this.ranges[K].anchor),rr(this.ranges[K].head));return new vt(k,this.primIndex)},vt.prototype.somethingSelected=function(){for(var k=0;k<this.ranges.length;k++)if(!this.ranges[k].empty())return!0;return!1},vt.prototype.contains=function(k,K){K||(K=k);for(var Z=0;Z<this.ranges.length;Z++){var re=this.ranges[Z];if(at(K,re.from())>=0&&at(k,re.to())<=0)return Z}return-1};var ae=function(K,Z){this.anchor=K,this.head=Z};ae.prototype.from=function(){return _t(this.anchor,this.head)},ae.prototype.to=function(){return Bt(this.anchor,this.head)},ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function me(k,K,Z){var re=k&&k.options.selectionsMayTouch,ce=K[Z];K.sort(function(ei,ni){return at(ei.from(),ni.from())}),Z=z(K,ce);for(var Pe=1;Pe<K.length;Pe++){var mt=K[Pe],Wt=K[Pe-1],sr=at(Wt.to(),mt.from());if(re&&!mt.empty()?sr>0:sr>=0){var pr=_t(Wt.from(),mt.from()),wn=Bt(Wt.to(),mt.to()),Rn=Wt.empty()?mt.from()==mt.head:Wt.from()==Wt.head;Pe<=Z&&--Z,K.splice(--Pe,2,new ae(Rn?wn:pr,Rn?pr:wn))}}return new vt(K,Z)}function be(k,K){return new vt([new ae(k,K||k)],0)}function Ke(k){return k.text?Mt(k.from.line+k.text.length-1,pe(k.text).length+(k.text.length==1?k.from.ch:0)):k.to}function At(k,K){if(at(k,K.from)<0)return k;if(at(k,K.to)<=0)return Ke(K);var Z=k.line+K.text.length-(K.to.line-K.from.line)-1,re=k.ch;return k.line==K.to.line&&(re+=Ke(K).ch-K.to.ch),Mt(Z,re)}function Gt(k,K){for(var Z=[],re=0;re<k.sel.ranges.length;re++){var ce=k.sel.ranges[re];Z.push(new ae(At(ce.anchor,K),At(ce.head,K)))}return me(k.cm,Z,k.sel.primIndex)}function Dr(k,K,Z){return k.line==K.line?Mt(Z.line,k.ch-K.ch+Z.ch):Mt(Z.line+(k.line-K.line),k.ch)}function Gr(k,K,Z){for(var re=[],ce=Mt(k.first,0),Pe=ce,mt=0;mt<K.length;mt++){var Wt=K[mt],sr=Dr(Wt.from,ce,Pe),pr=Dr(Ke(Wt),ce,Pe);if(ce=Wt.to,Pe=pr,Z=="around"){var wn=k.sel.ranges[mt],Rn=at(wn.head,wn.anchor)<0;re[mt]=new ae(Rn?pr:sr,Rn?sr:pr)}else re[mt]=new ae(sr,sr)}return new vt(re,k.sel.primIndex)}function fn(k){k.doc.mode=gi(k.options,k.doc.modeOption),Kn(k)}function Kn(k){k.doc.iter(function(K){K.stateAfter&&(K.stateAfter=null),K.styles&&(K.styles=null)}),k.doc.modeFrontier=k.doc.highlightFrontier=k.doc.first,zo(k,100),k.state.modeGen++,k.curOp&&ha(k)}function qn(k,K){return K.from.ch==0&&K.to.ch==0&&pe(K.text)==""&&(!k.cm||k.cm.options.wholeLineUpdateBefore)}function Qn(k,K,Z,re){function ce(na){return Z?Z[na]:null}function Pe(na,xa,Ma){Yr(na,xa,Ma,re),wr(na,"change",na,K)}function mt(na,xa){for(var Ma=[],To=na;To<xa;++To)Ma.push(new Wn(pr[To],ce(To),re));return Ma}var Wt=K.from,sr=K.to,pr=K.text,wn=Le(k,Wt.line),Rn=Le(k,sr.line),ei=pe(pr),ni=ce(pr.length-1),Mi=sr.line-Wt.line;if(K.full)k.insert(0,mt(0,pr.length)),k.remove(pr.length,k.size-pr.length);else if(qn(k,K)){var Zi=mt(0,pr.length-1);Pe(Rn,Rn.text,ni),Mi&&k.remove(Wt.line,Mi),Zi.length&&k.insert(Wt.line,Zi)}else if(wn==Rn)if(pr.length==1)Pe(wn,wn.text.slice(0,Wt.ch)+ei+wn.text.slice(sr.ch),ni);else{var da=mt(1,pr.length-1);da.push(new Wn(ei+wn.text.slice(sr.ch),ni,re)),Pe(wn,wn.text.slice(0,Wt.ch)+pr[0],ce(0)),k.insert(Wt.line+1,da)}else if(pr.length==1)Pe(wn,wn.text.slice(0,Wt.ch)+pr[0]+Rn.text.slice(sr.ch),ce(0)),k.remove(Wt.line+1,Mi);else{Pe(wn,wn.text.slice(0,Wt.ch)+pr[0],ce(0)),Pe(Rn,ei+Rn.text.slice(sr.ch),ni);var ia=mt(1,pr.length-1);Mi>1&&k.remove(Wt.line+1,Mi-1),k.insert(Wt.line+1,ia)}wr(k,"change",k,K)}function Ei(k,K,Z){function re(ce,Pe,mt){if(ce.linked)for(var Wt=0;Wt<ce.linked.length;++Wt){var sr=ce.linked[Wt];if(sr.doc==Pe)continue;var pr=mt&&sr.sharedHist;if(Z&&!pr)continue;K(sr.doc,pr),re(sr.doc,ce,pr)}}re(k,null,!0)}function Fi(k,K){if(K.cm)throw new Error("This document is already in use.");k.doc=K,K.cm=k,go(k),fn(k),va(k),k.options.lineWrapping||vn(k),k.options.mode=K.modeOption,ha(k)}function va(k){(k.doc.direction=="rtl"?P:S)(k.display.lineDiv,"CodeMirror-rtl")}function Oa(k){ho(k,function(){va(k),ha(k)})}function fo(k){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=k||1}function wo(k,K){var Z={from:rr(K.from),to:Ke(K),text:Ze(k,K.from,K.to)};return is(k,Z,K.from.line,K.to.line+1),Ei(k,function(re){return is(re,Z,K.from.line,K.to.line+1)},!0),Z}function lo(k){for(;k.length;){var K=pe(k);if(K.ranges)k.pop();else break}}function Yo(k,K){if(K)return lo(k.done),pe(k.done);if(k.done.length&&!pe(k.done).ranges)return pe(k.done);if(k.done.length>1&&!k.done[k.done.length-2].ranges)return k.done.pop(),pe(k.done)}function Vo(k,K,Z,re){var ce=k.history;ce.undone.length=0;var Pe=+new Date,mt,Wt;if((ce.lastOp==re||ce.lastOrigin==K.origin&&K.origin&&(K.origin.charAt(0)=="+"&&ce.lastModTime>Pe-(k.cm?k.cm.options.historyEventDelay:500)||K.origin.charAt(0)=="*"))&&(mt=Yo(ce,ce.lastOp==re)))Wt=pe(mt.changes),at(K.from,K.to)==0&&at(K.from,Wt.to)==0?Wt.to=Ke(K):mt.changes.push(wo(k,K));else{var sr=pe(ce.done);for((!sr||!sr.ranges)&&Ka(k.sel,ce.done),mt={changes:[wo(k,K)],generation:ce.generation},ce.done.push(mt);ce.done.length>ce.undoDepth;)ce.done.shift(),ce.done[0].ranges||ce.done.shift()}ce.done.push(Z),ce.generation=++ce.maxGeneration,ce.lastModTime=ce.lastSelTime=Pe,ce.lastOp=ce.lastSelOp=re,ce.lastOrigin=ce.lastSelOrigin=K.origin,Wt||nt(k,"historyAdded")}function No(k,K,Z,re){var ce=K.charAt(0);return ce=="*"||ce=="+"&&Z.ranges.length==re.ranges.length&&Z.somethingSelected()==re.somethingSelected()&&new Date-k.history.lastSelTime<=(k.cm?k.cm.options.historyEventDelay:500)}function ao(k,K,Z,re){var ce=k.history,Pe=re&&re.origin;Z==ce.lastSelOp||Pe&&ce.lastSelOrigin==Pe&&(ce.lastModTime==ce.lastSelTime&&ce.lastOrigin==Pe||No(k,Pe,pe(ce.done),K))?ce.done[ce.done.length-1]=K:Ka(K,ce.done),ce.lastSelTime=+new Date,ce.lastSelOrigin=Pe,ce.lastSelOp=Z,re&&re.clearRedo!==!1&&lo(ce.undone)}function Ka(k,K){var Z=pe(K);Z&&Z.ranges&&Z.equals(k)||K.push(k)}function is(k,K,Z,re){var ce=K["spans_"+k.id],Pe=0;k.iter(Math.max(k.first,Z),Math.min(k.first+k.size,re),function(mt){mt.markedSpans&&((ce||(ce=K["spans_"+k.id]={}))[Pe]=mt.markedSpans),++Pe})}function Is(k){if(!k)return null;for(var K,Z=0;Z<k.length;++Z)k[Z].marker.explicitlyCleared?K||(K=k.slice(0,Z)):K&&K.push(k[Z]);return K?K.length?K:null:k}function Go(k,K){var Z=K["spans_"+k.id];if(!Z)return null;for(var re=[],ce=0;ce<K.text.length;++ce)re.push(Is(Z[ce]));return re}function la(k,K){var Z=Go(k,K),re=pn(k,K);if(!Z)return re;if(!re)return Z;for(var ce=0;ce<Z.length;++ce){var Pe=Z[ce],mt=re[ce];if(Pe&&mt){e:for(var Wt=0;Wt<mt.length;++Wt){for(var sr=mt[Wt],pr=0;pr<Pe.length;++pr)if(Pe[pr].marker==sr.marker)continue e;Pe.push(sr)}}else mt&&(Z[ce]=mt)}return Z}function Vs(k,K,Z){for(var re=[],ce=0;ce<k.length;++ce){var Pe=k[ce];if(Pe.ranges){re.push(Z?vt.prototype.deepCopy.call(Pe):Pe);continue}var mt=Pe.changes,Wt=[];re.push({changes:Wt});for(var sr=0;sr<mt.length;++sr){var pr=mt[sr],wn=void 0;if(Wt.push({from:pr.from,to:pr.to,text:pr.text}),K)for(var Rn in pr)(wn=Rn.match(/^spans_(\d+)$/))&&(z(K,Number(wn[1]))>-1&&(pe(Wt)[Rn]=pr[Rn],delete pr[Rn]))}}return re}function Hs(k,K,Z,re){if(re){var ce=k.anchor;if(Z){var Pe=at(K,ce)<0;Pe!=at(Z,ce)<0?(ce=K,K=Z):Pe!=at(K,Z)<0&&(K=Z)}return new ae(ce,K)}else return new ae(Z||K,K)}function fs(k,K,Z,re,ce){ce==null&&(ce=k.cm&&(k.cm.display.shift||k.extend)),Zo(k,new vt([Hs(k.sel.primary(),K,Z,ce)],0),re)}function as(k,K,Z){for(var re=[],ce=k.cm&&(k.cm.display.shift||k.extend),Pe=0;Pe<k.sel.ranges.length;Pe++)re[Pe]=Hs(k.sel.ranges[Pe],K[Pe],null,ce);var mt=me(k.cm,re,k.sel.primIndex);Zo(k,mt,Z)}function Ss(k,K,Z,re){var ce=k.sel.ranges.slice(0);ce[K]=Z,Zo(k,me(k.cm,ce,k.sel.primIndex),re)}function xl(k,K,Z,re){Zo(k,be(K,Z),re)}function vl(k,K,Z){var re={ranges:K.ranges,update:function(Pe){this.ranges=[];for(var mt=0;mt<Pe.length;mt++)this.ranges[mt]=new ae(wt(k,Pe[mt].anchor),wt(k,Pe[mt].head))},origin:Z&&Z.origin};return nt(k,"beforeSelectionChange",k,re),k.cm&&nt(k.cm,"beforeSelectionChange",k.cm,re),re.ranges!=K.ranges?me(k.cm,re.ranges,re.ranges.length-1):K}function zs(k,K,Z){var re=k.history.done,ce=pe(re);ce&&ce.ranges?(re[re.length-1]=K,As(k,K,Z)):Zo(k,K,Z)}function Zo(k,K,Z){As(k,K,Z),ao(k,k.sel,k.cm?k.cm.curOp.id:NaN,Z)}function As(k,K,Z){(Tt(k,"beforeSelectionChange")||k.cm&&Tt(k.cm,"beforeSelectionChange"))&&(K=vl(k,K,Z));var re=Z&&Z.bias||(at(K.primary().head,k.sel.primary().head)<0?-1:1);nl(k,po(k,K,re,!0)),!(Z&&Z.scroll===!1)&&k.cm&&sa(k.cm)}function nl(k,K){if(K.equals(k.sel))return;k.sel=K,k.cm&&(k.cm.curOp.updateInput=1,k.cm.curOp.selectionChanged=!0,Ct(k.cm)),wr(k,"cursorActivity",k)}function Ps(k){nl(k,po(k,k.sel,null,!1))}function po(k,K,Z,re){for(var ce,Pe=0;Pe<K.ranges.length;Pe++){var mt=K.ranges[Pe],Wt=K.ranges.length==k.sel.ranges.length&&k.sel.ranges[Pe],sr=Eo(k,mt.anchor,Wt&&Wt.anchor,Z,re),pr=Eo(k,mt.head,Wt&&Wt.head,Z,re);(ce||sr!=mt.anchor||pr!=mt.head)&&(ce||(ce=K.ranges.slice(0,Pe)),ce[Pe]=new ae(sr,pr))}return ce?me(k.cm,ce,K.primIndex):K}function Wa(k,K,Z,re,ce){var Pe=Le(k,K.line);if(Pe.markedSpans)for(var mt=0;mt<Pe.markedSpans.length;++mt){var Wt=Pe.markedSpans[mt],sr=Wt.marker,pr="selectLeft"in sr?!sr.selectLeft:sr.inclusiveLeft,wn="selectRight"in sr?!sr.selectRight:sr.inclusiveRight;if((Wt.from==null||(pr?Wt.from<=K.ch:Wt.from<K.ch))&&(Wt.to==null||(wn?Wt.to>=K.ch:Wt.to>K.ch))){if(ce&&(nt(sr,"beforeCursorEnter"),sr.explicitlyCleared))if(Pe.markedSpans){--mt;continue}else break;if(!sr.atomic)continue;if(Z){var Rn=sr.find(re<0?1:-1),ei=void 0;if((re<0?wn:pr)&&(Rn=Xo(k,Rn,-re,Rn&&Rn.line==K.line?Pe:null)),Rn&&Rn.line==K.line&&(ei=at(Rn,Z))&&(re<0?ei<0:ei>0))return Wa(k,Rn,K,re,ce)}var ni=sr.find(re<0?-1:1);return(re<0?pr:wn)&&(ni=Xo(k,ni,re,ni.line==K.line?Pe:null)),ni?Wa(k,ni,K,re,ce):null}}return K}function Eo(k,K,Z,re,ce){var Pe=re||1,mt=Wa(k,K,Z,Pe,ce)||!ce&&Wa(k,K,Z,Pe,!0)||Wa(k,K,Z,-Pe,ce)||!ce&&Wa(k,K,Z,-Pe,!0);return mt||(k.cantEdit=!0,Mt(k.first,0))}function Xo(k,K,Z,re){return Z<0&&K.ch==0?K.line>k.first?wt(k,Mt(K.line-1)):null:Z>0&&K.ch==(re||Le(k,K.line)).text.length?K.line<k.first+k.size-1?Mt(K.line+1,0):null:new Mt(K.line,K.ch+Z)}function $o(k){k.setSelection(Mt(k.firstLine(),0),Mt(k.lastLine()),ue)}function Co(k,K,Z){var re={canceled:!1,from:K.from,to:K.to,text:K.text,origin:K.origin,cancel:function(){return re.canceled=!0}};return Z&&(re.update=function(ce,Pe,mt,Wt){ce&&(re.from=wt(k,ce)),Pe&&(re.to=wt(k,Pe)),mt&&(re.text=mt),Wt!==void 0&&(re.origin=Wt)}),nt(k,"beforeChange",k,re),k.cm&&nt(k.cm,"beforeChange",k.cm,re),re.canceled?(k.cm&&(k.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function rs(k,K,Z){if(k.cm){if(!k.cm.curOp)return bo(k.cm,rs)(k,K,Z);if(k.cm.state.suppressEdits)return}if((Tt(k,"beforeChange")||k.cm&&Tt(k.cm,"beforeChange"))&&(K=Co(k,K,!0),!K))return;var re=Ye&&!Z&&mn(k,K.from,K.to);if(re)for(var ce=re.length-1;ce>=0;--ce)os(k,{from:re[ce].from,to:re[ce].to,text:ce?[""]:K.text,origin:K.origin});else os(k,K)}function os(k,K){if(K.text.length==1&&K.text[0]==""&&at(K.from,K.to)==0)return;var Z=Gt(k,K);Vo(k,K,Z,k.cm?k.cm.curOp.id:NaN),Zs(k,K,Z,pn(k,K));var re=[];Ei(k,function(ce,Pe){!Pe&&z(re,ce.history)==-1&&(Ns(ce.history,K),re.push(ce.history)),Zs(ce,K,null,pn(ce,K))})}function Fs(k,K,Z){var re=k.cm&&k.cm.state.suppressEdits;if(re&&!Z)return;for(var ce=k.history,Pe,mt=k.sel,Wt=K=="undo"?ce.done:ce.undone,sr=K=="undo"?ce.undone:ce.done,pr=0;pr<Wt.length&&!(Pe=Wt[pr],Z?Pe.ranges&&!Pe.equals(k.sel):!Pe.ranges);pr++);if(pr==Wt.length)return;for(ce.lastOrigin=ce.lastSelOrigin=null;;)if(Pe=Wt.pop(),Pe.ranges){if(Ka(Pe,sr),Z&&!Pe.equals(k.sel)){Zo(k,Pe,{clearRedo:!1});return}mt=Pe}else if(re){Wt.push(Pe);return}else break;var wn=[];Ka(mt,sr),sr.push({changes:wn,generation:ce.generation}),ce.generation=Pe.generation||++ce.maxGeneration;for(var Rn=Tt(k,"beforeChange")||k.cm&&Tt(k.cm,"beforeChange"),ei=function(da){var ia=Pe.changes[da];if(ia.origin=K,Rn&&!Co(k,ia,!1))return Wt.length=0,{};wn.push(wo(k,ia));var na=da?Gt(k,ia):pe(Wt);Zs(k,ia,na,la(k,ia)),!da&&k.cm&&k.cm.scrollIntoView({from:ia.from,to:Ke(ia)});var xa=[];Ei(k,function(Ma,To){!To&&z(xa,Ma.history)==-1&&(Ns(Ma.history,ia),xa.push(Ma.history)),Zs(Ma,ia,null,la(Ma,ia))})},ni=Pe.changes.length-1;ni>=0;--ni){var Mi=ei(ni);if(Mi)return Mi.v}}function ol(k,K){if(K==0)return;if(k.first+=K,k.sel=new vt(Ue(k.sel.ranges,function(ce){return new ae(Mt(ce.anchor.line+K,ce.anchor.ch),Mt(ce.head.line+K,ce.head.ch))}),k.sel.primIndex),k.cm){ha(k.cm,k.first,k.first-K,K);for(var Z=k.cm.display,re=Z.viewFrom;re<Z.viewTo;re++)rt(k.cm,re,"gutter")}}function Zs(k,K,Z,re){if(k.cm&&!k.cm.curOp)return bo(k.cm,Zs)(k,K,Z,re);if(K.to.line<k.first){ol(k,K.text.length-1-(K.to.line-K.from.line));return}if(K.from.line>k.lastLine())return;if(K.from.line<k.first){var ce=K.text.length-1-(k.first-K.from.line);ol(k,ce),K={from:Mt(k.first,0),to:Mt(K.to.line+ce,K.to.ch),text:[pe(K.text)],origin:K.origin}}var Pe=k.lastLine();K.to.line>Pe&&(K={from:K.from,to:Mt(Pe,Le(k,Pe).text.length),text:[K.text[0]],origin:K.origin}),K.removed=Ze(k,K.from,K.to),Z||(Z=Gt(k,K)),k.cm?dl(k.cm,K,re):Qn(k,K,re),As(k,Z,ue),k.cantEdit&&Eo(k,Mt(k.firstLine(),0))&&(k.cantEdit=!1)}function dl(k,K,Z){var re=k.doc,ce=k.display,Pe=K.from,mt=K.to,Wt=!1,sr=Pe.line;k.options.lineWrapping||(sr=Nt(Et(Le(re,Pe.line))),re.iter(sr,mt.line+1,function(ni){if(ni==ce.maxLine)return Wt=!0,!0})),re.sel.contains(K.from,K.to)>-1&&Ct(k),Qn(re,K,Z,_o(k)),k.options.lineWrapping||(re.iter(sr,Pe.line+K.text.length,function(ni){var Mi=xn(ni);Mi>ce.maxLineLength&&(ce.maxLine=ni,ce.maxLineLength=Mi,ce.maxLineChanged=!0,Wt=!1)}),Wt&&(k.curOp.updateMaxLine=!0)),je(re,Pe.line),zo(k,400);var pr=K.text.length-(mt.line-Pe.line)-1;K.full?ha(k):Pe.line==mt.line&&K.text.length==1&&!qn(k.doc,K)?rt(k,Pe.line,"text"):ha(k,Pe.line,mt.line+1,pr);var wn=Tt(k,"changes"),Rn=Tt(k,"change");if(Rn||wn){var ei={from:Pe,to:mt,text:K.text,removed:K.removed,origin:K.origin};Rn&&wr(k,"change",k,ei),wn&&(k.curOp.changeObjs||(k.curOp.changeObjs=[])).push(ei)}k.display.selForContextMenu=null}function hl(k,K,Z,re,ce){var Pe;re||(re=Z),at(re,Z)<0&&(Pe=[re,Z],Z=Pe[0],re=Pe[1]),typeof K=="string"&&(K=k.splitLines(K)),rs(k,{from:Z,to:re,text:K,origin:ce})}function sl(k,K,Z,re){Z<k.line?k.line+=re:K<k.line&&(k.line=K,k.ch=0)}function yl(k,K,Z,re){for(var ce=0;ce<k.length;++ce){var Pe=k[ce],mt=!0;if(Pe.ranges){Pe.copied||(Pe=k[ce]=Pe.deepCopy(),Pe.copied=!0);for(var Wt=0;Wt<Pe.ranges.length;Wt++)sl(Pe.ranges[Wt].anchor,K,Z,re),sl(Pe.ranges[Wt].head,K,Z,re);continue}for(var sr=0;sr<Pe.changes.length;++sr){var pr=Pe.changes[sr];if(Z<pr.from.line)pr.from=Mt(pr.from.line+re,pr.from.ch),pr.to=Mt(pr.to.line+re,pr.to.ch);else if(K<=pr.to.line){mt=!1;break}}mt||(k.splice(0,ce+1),ce=0)}}function Ns(k,K){var Z=K.from.line,re=K.to.line,ce=K.text.length-(re-Z)-1;yl(k.done,Z,re,ce),yl(k.undone,Z,re,ce)}function ys(k,K,Z,re){var ce=K,Pe=K;return typeof K=="number"?Pe=Le(k,Kt(k,K)):ce=Nt(K),ce==null?null:(re(Pe,ce)&&k.cm&&rt(k.cm,ce,Z),Pe)}function Ds(k){this.lines=k,this.parent=null;for(var K=0,Z=0;Z<k.length;++Z)k[Z].parent=this,K+=k[Z].height;this.height=K}Ds.prototype={chunkSize:function(){return this.lines.length},removeInner:function(K,Z){for(var re=K,ce=K+Z;re<ce;++re){var Pe=this.lines[re];this.height-=Pe.height,xr(Pe),wr(Pe,"delete")}this.lines.splice(K,Z)},collapse:function(K){K.push.apply(K,this.lines)},insertInner:function(K,Z,re){this.height+=re,this.lines=this.lines.slice(0,K).concat(Z).concat(this.lines.slice(K));for(var ce=0;ce<Z.length;++ce)Z[ce].parent=this},iterN:function(K,Z,re){for(var ce=K+Z;K<ce;++K)if(re(this.lines[K]))return!0}};function xs(k){this.children=k;for(var K=0,Z=0,re=0;re<k.length;++re){var ce=k[re];K+=ce.chunkSize(),Z+=ce.height,ce.parent=this}this.size=K,this.height=Z,this.parent=null}xs.prototype={chunkSize:function(){return this.size},removeInner:function(K,Z){this.size-=Z;for(var re=0;re<this.children.length;++re){var ce=this.children[re],Pe=ce.chunkSize();if(K<Pe){var mt=Math.min(Z,Pe-K),Wt=ce.height;if(ce.removeInner(K,mt),this.height-=Wt-ce.height,Pe==mt&&(this.children.splice(re--,1),ce.parent=null),(Z-=mt)==0)break;K=0}else K-=Pe}if(this.size-Z<25&&(this.children.length>1||!(this.children[0]instanceof Ds))){var sr=[];this.collapse(sr),this.children=[new Ds(sr)],this.children[0].parent=this}},collapse:function(K){for(var Z=0;Z<this.children.length;++Z)this.children[Z].collapse(K)},insertInner:function(K,Z,re){this.size+=Z.length,this.height+=re;for(var ce=0;ce<this.children.length;++ce){var Pe=this.children[ce],mt=Pe.chunkSize();if(K<=mt){if(Pe.insertInner(K,Z,re),Pe.lines&&Pe.lines.length>50){for(var Wt=Pe.lines.length%25+25,sr=Wt;sr<Pe.lines.length;){var pr=new Ds(Pe.lines.slice(sr,sr+=25));Pe.height-=pr.height,this.children.splice(++ce,0,pr),pr.parent=this}Pe.lines=Pe.lines.slice(0,Wt),this.maybeSpill()}break}K-=mt}},maybeSpill:function(){if(this.children.length<=10)return;var K=this;do{var Z=K.children.splice(K.children.length-5,5),re=new xs(Z);if(K.parent){K.size-=re.size,K.height-=re.height;var Pe=z(K.parent.children,K);K.parent.children.splice(Pe+1,0,re)}else{var ce=new xs(K.children);ce.parent=K,K.children=[ce,re],K=ce}re.parent=K.parent}while(K.children.length>10);K.parent.maybeSpill()},iterN:function(K,Z,re){for(var ce=0;ce<this.children.length;++ce){var Pe=this.children[ce],mt=Pe.chunkSize();if(K<mt){var Wt=Math.min(Z,mt-K);if(Pe.iterN(K,Wt,re))return!0;if((Z-=Wt)==0)break;K=0}else K-=mt}}};var Xs=function(K,Z,re){if(re)for(var ce in re)re.hasOwnProperty(ce)&&(this[ce]=re[ce]);this.doc=K,this.node=Z};Xs.prototype.clear=function(){var k=this.doc.cm,K=this.line.widgets,Z=this.line,re=Nt(Z);if(re==null||!K)return;for(var ce=0;ce<K.length;++ce)K[ce]==this&&K.splice(ce--,1);K.length||(Z.widgets=null);var Pe=tn(this);ft(Z,Math.max(0,Z.height-Pe)),k&&(ho(k,function(){ll(k,Z,-Pe),rt(k,re,"widget")}),wr(k,"lineWidgetCleared",k,this,re))},Xs.prototype.changed=function(){var k=this,K=this.height,Z=this.doc.cm,re=this.line;this.height=null;var ce=tn(this)-K;if(!ce)return;tr(this.doc,re)||ft(re,re.height+ce),Z&&ho(Z,function(){Z.curOp.forceUpdate=!0,ll(Z,re,ce),wr(Z,"lineWidgetChanged",Z,k,Nt(re))})},Dt(Xs);function ll(k,K,Z){yr(K)<(k.curOp&&k.curOp.scrollTop||k.doc.scrollTop)&&Ji(k,Z)}function El(k,K,Z,re){var ce=new Xs(k,Z,re),Pe=k.cm;return Pe&&ce.noHScroll&&(Pe.display.alignWidgets=!0),ys(k,K,"widget",function(mt){var Wt=mt.widgets||(mt.widgets=[]);if(ce.insertAt==null?Wt.push(ce):Wt.splice(Math.min(Wt.length-1,Math.max(0,ce.insertAt)),0,ce),ce.line=mt,Pe&&!tr(k,mt)){var sr=yr(mt)<k.scrollTop;ft(mt,mt.height+tn(ce)),sr&&Ji(Pe,ce.height),Pe.curOp.forceUpdate=!0}return!0}),Pe&&wr(Pe,"lineWidgetAdded",Pe,ce,typeof K=="number"?K:Nt(K)),ce}var jl=0,$s=function(K,Z){this.lines=[],this.type=Z,this.doc=K,this.id=++jl};$s.prototype.clear=function(){if(this.explicitlyCleared)return;var k=this.doc.cm,K=k&&!k.curOp;if(K&&Lo(k),Tt(this,"clear")){var Z=this.find();Z&&wr(this,"clear",Z.from,Z.to)}for(var re=null,ce=null,Pe=0;Pe<this.lines.length;++Pe){var mt=this.lines[Pe],Wt=Jt(mt.markedSpans,this);k&&!this.collapsed?rt(k,Nt(mt),"text"):k&&(Wt.to!=null&&(ce=Nt(mt)),Wt.from!=null&&(re=Nt(mt))),mt.markedSpans=Rr(mt.markedSpans,Wt),Wt.from==null&&this.collapsed&&!tr(this.doc,mt)&&k&&ft(mt,qa(k.display))}if(k&&this.collapsed&&!k.options.lineWrapping)for(var sr=0;sr<this.lines.length;++sr){var pr=Et(this.lines[sr]),wn=xn(pr);wn>k.display.maxLineLength&&(k.display.maxLine=pr,k.display.maxLineLength=wn,k.display.maxLineChanged=!0)}re!=null&&k&&this.collapsed&&ha(k,re,ce+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,k&&Ps(k.doc)),k&&wr(k,"markerCleared",k,this,re,ce),K&&Ba(k),this.parent&&this.parent.clear()},$s.prototype.find=function(k,K){k==null&&this.type=="bookmark"&&(k=1);for(var Z,re,ce=0;ce<this.lines.length;++ce){var Pe=this.lines[ce],mt=Jt(Pe.markedSpans,this);if(mt.from!=null&&(Z=Mt(K?Pe:Nt(Pe),mt.from),k==-1))return Z;if(mt.to!=null&&(re=Mt(K?Pe:Nt(Pe),mt.to),k==1))return re}return Z&&{from:Z,to:re}},$s.prototype.changed=function(){var k=this,K=this.find(-1,!0),Z=this,re=this.doc.cm;if(!K||!re)return;ho(re,function(){var ce=K.line,Pe=Nt(K.line),mt=Ti(re,Pe);if(mt&&(ta(mt),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!tr(Z.doc,ce)&&Z.height!=null){var Wt=Z.height;Z.height=null;var sr=tn(Z)-Wt;sr&&ft(ce,ce.height+sr)}wr(re,"markerChanged",re,k)})},$s.prototype.attachLine=function(k){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(k)},$s.prototype.detachLine=function(k){if(this.lines.splice(z(this.lines,k),1),!this.lines.length&&this.doc.cm){var K=this.doc.cm.curOp;(K.maybeHiddenMarkers||(K.maybeHiddenMarkers=[])).push(this)}},Dt($s);function Nl(k,K,Z,re,ce){if(re&&re.shared)return yu(k,K,Z,re,ce);if(k.cm&&!k.cm.curOp)return bo(k.cm,Nl)(k,K,Z,re,ce);var Pe=new $s(k,ce),mt=at(K,Z);if(re&&j(re,Pe,!1),mt>0||mt==0&&Pe.clearWhenEmpty!==!1)return Pe;if(Pe.replacedWith&&(Pe.collapsed=!0,Pe.widgetNode=L("span",[Pe.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||Pe.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(Pe.widgetNode.insertLeft=!0)),Pe.collapsed){if(gt(k,K.line,K,Z,Pe)||K.line!=Z.line&>(k,Z.line,K,Z,Pe))throw new Error("Inserting collapsed marker partially overlapping an existing one");xt()}Pe.addToHistory&&Vo(k,{from:K,to:Z,origin:"markText"},k.sel,NaN);var Wt=K.line,sr=k.cm,pr;if(k.iter(Wt,Z.line+1,function(Rn){sr&&Pe.collapsed&&!sr.options.lineWrapping&&Et(Rn)==sr.display.maxLine&&(pr=!0),Pe.collapsed&&Wt!=K.line&&ft(Rn,0),Ir(Rn,new ct(Pe,Wt==K.line?K.ch:null,Wt==Z.line?Z.ch:null)),++Wt}),Pe.collapsed&&k.iter(K.line,Z.line+1,function(Rn){tr(k,Rn)&&ft(Rn,0)}),Pe.clearOnEnter&&Te(Pe,"beforeCursorEnter",function(){return Pe.clear()}),Pe.readOnly&&(qe(),(k.history.done.length||k.history.undone.length)&&k.clearHistory()),Pe.collapsed&&(Pe.id=++jl,Pe.atomic=!0),sr){if(pr&&(sr.curOp.updateMaxLine=!0),Pe.collapsed)ha(sr,K.line,Z.line+1);else if(Pe.className||Pe.startStyle||Pe.endStyle||Pe.css||Pe.attributes||Pe.title)for(var wn=K.line;wn<=Z.line;wn++)rt(sr,wn,"text");Pe.atomic&&Ps(sr.doc),wr(sr,"markerAdded",sr,Pe)}return Pe}var kl=function(K,Z){this.markers=K,this.primary=Z;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 k=0;k<this.markers.length;++k)this.markers[k].clear();wr(this,"clear")},kl.prototype.find=function(k,K){return this.primary.find(k,K)},Dt(kl);function yu(k,K,Z,re,ce){re=j(re),re.shared=!1;var Pe=[Nl(k,K,Z,re,ce)],mt=Pe[0],Wt=re.widgetNode;return Ei(k,function(sr){Wt&&(re.widgetNode=Wt.cloneNode(!0)),Pe.push(Nl(sr,wt(sr,K),wt(sr,Z),re,ce));for(var pr=0;pr<sr.linked.length;++pr)if(sr.linked[pr].isParent)return;mt=pe(Pe)}),new kl(Pe,mt)}function cu(k){return k.findMarks(Mt(k.first,0),k.clipPos(Mt(k.lastLine())),function(K){return K.parent})}function eu(k,K){for(var Z=0;Z<K.length;Z++){var re=K[Z],ce=re.find(),Pe=k.clipPos(ce.from),mt=k.clipPos(ce.to);if(at(Pe,mt)){var Wt=Nl(k,Pe,mt,re.primary,re.primary.type);re.markers.push(Wt),Wt.parent=re}}}function tu(k){for(var K=function(ce){var Pe=k[ce],mt=[Pe.primary.doc];Ei(Pe.primary.doc,function(pr){return mt.push(pr)});for(var Wt=0;Wt<Pe.markers.length;Wt++){var sr=Pe.markers[Wt];z(mt,sr.doc)==-1&&(sr.parent=null,Pe.markers.splice(Wt--,1))}},Z=0;Z<k.length;Z++)K(Z)}var Vl=0,Ys=function k(K,Z,re,ce,Pe){if(!(this instanceof k))return new k(K,Z,re,ce,Pe);re==null&&(re=0),xs.call(this,[new Ds([new Wn("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var mt=Mt(re,0);this.sel=be(mt),this.history=new fo(null),this.id=++Vl,this.modeOption=Z,this.lineSep=ce,this.direction=Pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof K=="string"&&(K=this.splitLines(K)),Qn(this,{from:mt,to:mt,text:K}),Zo(this,be(mt),ue)};Ys.prototype=Xe(xs.prototype,{constructor:Ys,iter:function(K,Z,re){re?this.iterN(K-this.first,Z-K,re):this.iterN(this.first,this.first+this.size,K)},insert:function(K,Z){for(var re=0,ce=0;ce<Z.length;++ce)re+=Z[ce].height;this.insertInner(K-this.first,Z,re)},remove:function(K,Z){this.removeInner(K-this.first,Z)},getValue:function(K){var Z=it(this,this.first,this.first+this.size);return K===!1?Z:Z.join(K||this.lineSeparator())},setValue:Ho(function(k){var K=Mt(this.first,0),Z=this.first+this.size-1;rs(this,{from:K,to:Mt(Z,Le(this,Z).text.length),text:this.splitLines(k),origin:"setValue",full:!0},!0),this.cm&&fa(this.cm,0,0),Zo(this,be(K),ue)}),replaceRange:function(K,Z,re,ce){Z=wt(this,Z),re=re?wt(this,re):Z,hl(this,K,Z,re,ce)},getRange:function(K,Z,re){var ce=Ze(this,wt(this,K),wt(this,Z));return re===!1?ce:ce.join(re||this.lineSeparator())},getLine:function(K){var Z=this.getLineHandle(K);return Z&&Z.text},getLineHandle:function(K){if(Mr(this,K))return Le(this,K)},getLineNumber:function(K){return Nt(K)},getLineHandleVisualStart:function(K){return typeof K=="number"&&(K=Le(this,K)),Et(K)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(K){return wt(this,K)},getCursor:function(K){var Z=this.sel.primary(),re;return K==null||K=="head"?re=Z.head:K=="anchor"?re=Z.anchor:K=="end"||K=="to"||K===!1?re=Z.to():re=Z.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ho(function(k,K,Z){xl(this,wt(this,typeof k=="number"?Mt(k,K||0):k),null,Z)}),setSelection:Ho(function(k,K,Z){xl(this,wt(this,k),wt(this,K||k),Z)}),extendSelection:Ho(function(k,K,Z){fs(this,wt(this,k),K&&wt(this,K),Z)}),extendSelections:Ho(function(k,K){as(this,Sr(this,k),K)}),extendSelectionsBy:Ho(function(k,K){var Z=Ue(this.sel.ranges,k);as(this,Sr(this,Z),K)}),setSelections:Ho(function(k,K,Z){if(!k.length)return;for(var re=[],ce=0;ce<k.length;ce++)re[ce]=new ae(wt(this,k[ce].anchor),wt(this,k[ce].head));K==null&&(K=Math.min(k.length-1,this.sel.primIndex)),Zo(this,me(this.cm,re,K),Z)}),addSelection:Ho(function(k,K,Z){var re=this.sel.ranges.slice(0);re.push(new ae(wt(this,k),wt(this,K||k))),Zo(this,me(this.cm,re,re.length-1),Z)}),getSelection:function(K){for(var Z=this.sel.ranges,re,ce=0;ce<Z.length;ce++){var Pe=Ze(this,Z[ce].from(),Z[ce].to());re=re?re.concat(Pe):Pe}return K===!1?re:re.join(K||this.lineSeparator())},getSelections:function(K){for(var Z=[],re=this.sel.ranges,ce=0;ce<re.length;ce++){var Pe=Ze(this,re[ce].from(),re[ce].to());K!==!1&&(Pe=Pe.join(K||this.lineSeparator())),Z[ce]=Pe}return Z},replaceSelection:function(K,Z,re){for(var ce=[],Pe=0;Pe<this.sel.ranges.length;Pe++)ce[Pe]=K;this.replaceSelections(ce,Z,re||"+input")},replaceSelections:Ho(function(k,K,Z){for(var re=[],ce=this.sel,Pe=0;Pe<ce.ranges.length;Pe++){var mt=ce.ranges[Pe];re[Pe]={from:mt.from(),to:mt.to(),text:this.splitLines(k[Pe]),origin:Z}}for(var Wt=K&&K!="end"&&Gr(this,re,K),sr=re.length-1;sr>=0;sr--)rs(this,re[sr]);Wt?zs(this,Wt):this.cm&&sa(this.cm)}),undo:Ho(function(){Fs(this,"undo")}),redo:Ho(function(){Fs(this,"redo")}),undoSelection:Ho(function(){Fs(this,"undo",!0)}),redoSelection:Ho(function(){Fs(this,"redo",!0)}),setExtending:function(K){this.extend=K},getExtending:function(){return this.extend},historySize:function(){for(var K=this.history,Z=0,re=0,ce=0;ce<K.done.length;ce++)K.done[ce].ranges||++Z;for(var Pe=0;Pe<K.undone.length;Pe++)K.undone[Pe].ranges||++re;return{undo:Z,redo:re}},clearHistory:function(){var K=this;this.history=new fo(this.history.maxGeneration),Ei(this,function(Z){return Z.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:Vs(this.history.done),undone:Vs(this.history.undone)}},setHistory:function(K){var Z=this.history=new fo(this.history.maxGeneration);Z.done=Vs(K.done.slice(0),null,!0),Z.undone=Vs(K.undone.slice(0),null,!0)},setGutterMarker:Ho(function(k,K,Z){return ys(this,k,"gutter",function(re){var ce=re.gutterMarkers||(re.gutterMarkers={});return ce[K]=Z,!Z&&J(ce)&&(re.gutterMarkers=null),!0})}),clearGutter:Ho(function(k){var K=this;this.iter(function(Z){Z.gutterMarkers&&Z.gutterMarkers[k]&&ys(K,Z,"gutter",function(){return Z.gutterMarkers[k]=null,J(Z.gutterMarkers)&&(Z.gutterMarkers=null),!0})})}),lineInfo:function(K){var Z;if(typeof K=="number"){if(!Mr(this,K))return null;if(Z=K,K=Le(this,K),!K)return null}else if(Z=Nt(K),Z==null)return null;return{line:Z,handle:K,text:K.text,gutterMarkers:K.gutterMarkers,textClass:K.textClass,bgClass:K.bgClass,wrapClass:K.wrapClass,widgets:K.widgets}},addLineClass:Ho(function(k,K,Z){return ys(this,k,K=="gutter"?"gutter":"class",function(re){var ce=K=="text"?"textClass":K=="background"?"bgClass":K=="gutter"?"gutterClass":"wrapClass";if(!re[ce])re[ce]=Z;else{if(T(Z).test(re[ce]))return!1;re[ce]+=" "+Z}return!0})}),removeLineClass:Ho(function(k,K,Z){return ys(this,k,K=="gutter"?"gutter":"class",function(re){var ce=K=="text"?"textClass":K=="background"?"bgClass":K=="gutter"?"gutterClass":"wrapClass",Pe=re[ce];if(Pe)if(Z==null)re[ce]=null;else{var mt=Pe.match(T(Z));if(!mt)return!1;var Wt=mt.index+mt[0].length;re[ce]=Pe.slice(0,mt.index)+(!mt.index||Wt==Pe.length?"":" ")+Pe.slice(Wt)||null}else return!1;return!0})}),addLineWidget:Ho(function(k,K,Z){return El(this,k,K,Z)}),removeLineWidget:function(K){K.clear()},markText:function(K,Z,re){return Nl(this,wt(this,K),wt(this,Z),re,re&&re.type||"range")},setBookmark:function(K,Z){var re={replacedWith:Z&&(Z.nodeType==null?Z.widget:Z),insertLeft:Z&&Z.insertLeft,clearWhenEmpty:!1,shared:Z&&Z.shared,handleMouseEvents:Z&&Z.handleMouseEvents};return K=wt(this,K),Nl(this,K,K,re,"bookmark")},findMarksAt:function(K){K=wt(this,K);var Z=[],re=Le(this,K.line).markedSpans;if(re)for(var ce=0;ce<re.length;++ce){var Pe=re[ce];(Pe.from==null||Pe.from<=K.ch)&&(Pe.to==null||Pe.to>=K.ch)&&Z.push(Pe.marker.parent||Pe.marker)}return Z},findMarks:function(K,Z,re){K=wt(this,K),Z=wt(this,Z);var ce=[],Pe=K.line;return this.iter(K.line,Z.line+1,function(mt){var Wt=mt.markedSpans;if(Wt)for(var sr=0;sr<Wt.length;sr++){var pr=Wt[sr];!(pr.to!=null&&Pe==K.line&&K.ch>=pr.to||pr.from==null&&Pe!=K.line||pr.from!=null&&Pe==Z.line&&pr.from>=Z.ch)&&(!re||re(pr.marker))&&ce.push(pr.marker.parent||pr.marker)}++Pe}),ce},getAllMarks:function(){var K=[];return this.iter(function(Z){var re=Z.markedSpans;if(re)for(var ce=0;ce<re.length;++ce)re[ce].from!=null&&K.push(re[ce].marker)}),K},posFromIndex:function(K){var Z,re=this.first,ce=this.lineSeparator().length;return this.iter(function(Pe){var mt=Pe.text.length+ce;if(mt>K)return Z=K,!0;K-=mt,++re}),wt(this,Mt(re,Z))},indexFromPos:function(K){K=wt(this,K);var Z=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(ce){Z+=ce.text.length+re}),Z},copy:function(K){var Z=new Ys(it(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return Z.scrollTop=this.scrollTop,Z.scrollLeft=this.scrollLeft,Z.sel=this.sel,Z.extend=!1,K&&(Z.history.undoDepth=this.history.undoDepth,Z.setHistory(this.getHistory())),Z},linkedDoc:function(K){K||(K={});var Z=this.first,re=this.first+this.size;K.from!=null&&K.from>Z&&(Z=K.from),K.to!=null&&K.to<re&&(re=K.to);var ce=new Ys(it(this,Z,re),K.mode||this.modeOption,Z,this.lineSep,this.direction);return K.sharedHist&&(ce.history=this.history),(this.linked||(this.linked=[])).push({doc:ce,sharedHist:K.sharedHist}),ce.linked=[{doc:this,isParent:!0,sharedHist:K.sharedHist}],eu(ce,cu(this)),ce},unlinkDoc:function(K){if(K instanceof Tr&&(K=K.doc),this.linked)for(var Z=0;Z<this.linked.length;++Z){var re=this.linked[Z];if(re.doc!=K)continue;this.linked.splice(Z,1),K.unlinkDoc(this),tu(cu(this));break}if(K.history==this.history){var ce=[K.id];Ei(K,function(Pe){return ce.push(Pe.id)},!0),K.history=new fo(null),K.history.done=Vs(this.history.done,ce),K.history.undone=Vs(this.history.undone,ce)}},iterLinkedDocs:function(K){Ei(this,K)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(K){return this.lineSep?K.split(this.lineSep):Zr(K)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ho(function(k){if(k!="rtl"&&(k="ltr"),k==this.direction)return;this.direction=k,this.iter(function(K){return K.order=null}),this.cm&&Oa(this.cm)})}),Ys.prototype.eachLine=Ys.prototype.iter;var il=0;function fl(k){var K=this;if(ru(K),Ot(K,k)||Ln(K.display,k))return;Be(k),f&&(il=+new Date);var Z=Ja(K,k,!0),re=k.dataTransfer.files;if(!Z||K.isReadOnly())return;if(re&&re.length&&window.FileReader&&window.File)for(var ce=re.length,Pe=Array(ce),mt=0,Wt=function(){++mt==ce&&bo(K,function(){Z=wt(K.doc,Z);var Mi={from:Z,to:Z,text:K.doc.splitLines(Pe.filter(function(Zi){return Zi!=null}).join(K.doc.lineSeparator())),origin:"paste"};rs(K.doc,Mi),zs(K.doc,be(wt(K.doc,Z),wt(K.doc,Ke(Mi))))})()},sr=function(Mi,Zi){if(K.options.allowDropFileTypes&&z(K.options.allowDropFileTypes,Mi.type)==-1){Wt();return}var da=new FileReader;da.onerror=function(){return Wt()},da.onload=function(){var ia=da.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ia)){Wt();return}Pe[Zi]=ia,Wt()},da.readAsText(Mi)},pr=0;pr<re.length;pr++)sr(re[pr],pr);else{if(K.state.draggingText&&K.doc.sel.contains(Z)>-1){K.state.draggingText(k),setTimeout(function(){return K.display.input.focus()},20);return}try{var wn=k.dataTransfer.getData("Text");if(wn){var Rn;if(K.state.draggingText&&!K.state.draggingText.copy&&(Rn=K.listSelections()),As(K.doc,be(Z,Z)),Rn)for(var ei=0;ei<Rn.length;++ei)hl(K.doc,"",Rn[ei].anchor,Rn[ei].head,"drag");K.replaceSelection(wn,"around","paste"),K.display.input.focus()}}catch(ni){}}}function Pl(k,K){if(f&&(!k.state.draggingText||+new Date-il<100)){Fe(K);return}if(Ot(k,K)||Ln(k.display,K))return;if(K.dataTransfer.setData("Text",k.getSelection()),K.dataTransfer.effectAllowed="copyMove",K.dataTransfer.setDragImage&&!e){var Z=I("img",null,null,"position: fixed; left: 0; top: 0;");Z.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n&&(Z.width=Z.height=1,k.display.wrapper.appendChild(Z),Z._top=Z.offsetTop),K.dataTransfer.setDragImage(Z,0,0),n&&Z.parentNode.removeChild(Z)}}function du(k,K){var Z=Ja(k,K);if(!Z)return;var re=document.createDocumentFragment();kn(k,Z,re),k.display.dragCursor||(k.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),k.display.lineSpace.insertBefore(k.display.dragCursor,k.display.cursorDiv)),_(k.display.dragCursor,re)}function ru(k){k.display.dragCursor&&(k.display.lineSpace.removeChild(k.display.dragCursor),k.display.dragCursor=null)}function nu(k){if(!document.getElementsByClassName)return;for(var K=document.getElementsByClassName("CodeMirror"),Z=[],re=0;re<K.length;re++){var ce=K[re].CodeMirror;ce&&Z.push(ce)}Z.length&&Z[0].operation(function(){for(var Pe=0;Pe<Z.length;Pe++)k(Z[Pe])})}var Qs=!1;function iu(){if(Qs)return;au(),Qs=!0}function au(){var k;Te(window,"resize",function(){k==null&&(k=setTimeout(function(){k=null,nu(bu)},100))}),Te(window,"blur",function(){return nu(Yn)})}function bu(k){var K=k.display;K.cachedCharWidth=K.cachedTextHeight=K.cachedPaddingH=null,K.scrollbarsClipped=!1,k.setSize()}for(var bl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fl=0;Fl<10;Fl++)bl[Fl+48]=bl[Fl+96]=String(Fl);for(var Hl=65;Hl<=90;Hl++)bl[Hl]=String.fromCharCode(Hl);for(var Gl=1;Gl<=12;Gl++)bl[Gl+111]=bl[Gl+63235]="F"+Gl;var Tl={};Tl.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"},Tl.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"},Tl.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"},Tl.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"]},Tl.default=h?Tl.macDefault:Tl.pcDefault;function Tu(k){var K=k.split(/-(?!$)/);k=K[K.length-1];for(var Z,re,ce,Pe,mt=0;mt<K.length-1;mt++){var Wt=K[mt];if(/^(cmd|meta|m)$/i.test(Wt))Pe=!0;else if(/^a(lt)?$/i.test(Wt))Z=!0;else if(/^(c|ctrl|control)$/i.test(Wt))re=!0;else if(/^s(hift)?$/i.test(Wt))ce=!0;else throw new Error("Unrecognized modifier name: "+Wt)}return Z&&(k="Alt-"+k),re&&(k="Ctrl-"+k),Pe&&(k="Cmd-"+k),ce&&(k="Shift-"+k),k}function Cu(k){var K={};for(var Z in k)if(k.hasOwnProperty(Z)){var re=k[Z];if(/^(name|fallthrough|(de|at)tach)$/.test(Z))continue;if(re=="..."){delete k[Z];continue}for(var ce=Ue(Z.split(" "),Tu),Pe=0;Pe<ce.length;Pe++){var mt=void 0,Wt=void 0;Pe==ce.length-1?(Wt=ce.join(" "),mt=re):(Wt=ce.slice(0,Pe+1).join(" "),mt="...");var sr=K[Wt];if(!sr)K[Wt]=mt;else if(sr!=mt)throw new Error("Inconsistent bindings for "+Wt)}delete k[Z]}for(var pr in K)k[pr]=K[pr];return k}function Cl(k,K,Z,re){K=Rs(K);var ce=K.call?K.call(k,re):K[k];if(ce===!1)return"nothing";if(ce==="...")return"multi";if(ce!=null&&Z(ce))return"handled";if(K.fallthrough){if(Object.prototype.toString.call(K.fallthrough)!="[object Array]")return Cl(k,K.fallthrough,Z,re);for(var Pe=0;Pe<K.fallthrough.length;Pe++){var mt=Cl(k,K.fallthrough[Pe],Z,re);if(mt)return mt}}}function ou(k){var K=typeof k=="string"?k:bl[k.keyCode];return K=="Ctrl"||K=="Alt"||K=="Shift"||K=="Mod"}function hu(k,K,Z){var re=k;return K.altKey&&re!="Alt"&&(k="Alt-"+k),(y?K.metaKey:K.ctrlKey)&&re!="Ctrl"&&(k="Ctrl-"+k),(y?K.ctrlKey:K.metaKey)&&re!="Mod"&&(k="Cmd-"+k),!Z&&K.shiftKey&&re!="Shift"&&(k="Shift-"+k),k}function su(k,K){if(n&&k.keyCode==34&&k.char)return!1;var Z=bl[k.keyCode];return Z==null||k.altGraphKey?!1:(k.keyCode==3&&k.code&&(Z=k.code),hu(Z,k,K))}function Rs(k){return typeof k=="string"?Tl[k]:k}function el(k,K){for(var Z=k.doc.sel.ranges,re=[],ce=0;ce<Z.length;ce++){for(var Pe=K(Z[ce]);re.length&&at(Pe.from,pe(re).to)<=0;){var mt=re.pop();if(at(mt.from,Pe.from)<0){Pe.from=mt.from;break}}re.push(Pe)}ho(k,function(){for(var Wt=re.length-1;Wt>=0;Wt--)hl(k.doc,"",re[Wt].from,re[Wt].to,"+delete");sa(k)})}function Bl(k,K,Z){var re=Ce(k.text,K+Z,Z);return re<0||re>k.text.length?null:re}function wu(k,K,Z){var re=Bl(k,K.ch,Z);return re==null?null:new Mt(K.line,re,Z<0?"after":"before")}function fu(k,K,Z,re,ce){if(k){K.doc.direction=="rtl"&&(ce=-ce);var Pe=ot(Z,K.doc.direction);if(Pe){var mt=ce<0?pe(Pe):Pe[0],Wt=ce<0==(mt.level==1),sr=Wt?"after":"before",pr;if(mt.level>0||K.doc.direction=="rtl"){var wn=Ui(K,Z);pr=ce<0?Z.text.length-1:0;var Rn=$i(K,wn,pr).top;pr=Ee(function(ei){return $i(K,wn,ei).top==Rn},ce<0==(mt.level==1)?mt.from:mt.to-1,pr),sr=="before"&&(pr=Bl(Z,pr,1))}else pr=ce<0?mt.to:mt.from;return new Mt(re,pr,sr)}}return new Mt(re,ce<0?Z.text.length:0,ce<0?"before":"after")}function Xl(k,K,Z,re){var ce=ot(K,k.doc.direction);if(!ce)return wu(K,Z,re);Z.ch>=K.text.length?(Z.ch=K.text.length,Z.sticky="before"):Z.ch<=0&&(Z.ch=0,Z.sticky="after");var Pe=xe(ce,Z.ch,Z.sticky),mt=ce[Pe];if(k.doc.direction=="ltr"&&mt.level%2==0&&(re>0?mt.to>Z.ch:mt.from<Z.ch))return wu(K,Z,re);var Wt=function(na,xa){return Bl(K,na instanceof Mt?na.ch:na,xa)},sr,pr=function(na){return k.options.lineWrapping?(sr=sr||Ui(k,K),Ca(k,K,sr,na)):{begin:0,end:K.text.length}},wn=pr(Z.sticky=="before"?Wt(Z,-1):Z.ch);if(k.doc.direction=="rtl"||mt.level==1){var Rn=mt.level==1==re<0,ei=Wt(Z,Rn?1:-1);if(ei!=null&&(Rn?ei<=mt.to&&ei<=wn.end:ei>=mt.from&&ei>=wn.begin)){var ni=Rn?"before":"after";return new Mt(Z.line,ei,ni)}}var Mi=function(na,xa,Ma){for(var To=function(Ts,tl){return tl?new Mt(Z.line,Wt(Ts,1),"before"):new Mt(Z.line,Ts,"after")};na>=0&&na<ce.length;na+=xa){var no=ce[na],Wo=xa>0==(no.level!=1),ps=Wo?Ma.begin:Wt(Ma.end,-1);if(no.from<=ps&&ps<no.to)return To(ps,Wo);if(ps=Wo?no.from:Wt(no.to,-1),Ma.begin<=ps&&ps<Ma.end)return To(ps,Wo)}},Zi=Mi(Pe+re,re,wn);if(Zi)return Zi;var da=re>0?wn.end:Wt(wn.begin,-1);return da!=null&&!(re>0&&da==K.text.length)&&(Zi=Mi(re>0?0:ce.length-1,re,pr(da)),Zi)?Zi:null}var Kl={selectAll:$o,singleSelection:function(K){return K.setSelection(K.getCursor("anchor"),K.getCursor("head"),ue)},killLine:function(K){return el(K,function(Z){if(Z.empty()){var re=Le(K.doc,Z.head.line).text.length;return Z.head.ch==re&&Z.head.line<K.lastLine()?{from:Z.head,to:Mt(Z.head.line+1,0)}:{from:Z.head,to:Mt(Z.head.line,re)}}else return{from:Z.from(),to:Z.to()}})},deleteLine:function(K){return el(K,function(Z){return{from:Mt(Z.from().line,0),to:wt(K.doc,Mt(Z.to().line+1,0))}})},delLineLeft:function(K){return el(K,function(Z){return{from:Mt(Z.from().line,0),to:Z.from()}})},delWrappedLineLeft:function(K){return el(K,function(Z){var re=K.charCoords(Z.head,"div").top+5,ce=K.coordsChar({left:0,top:re},"div");return{from:ce,to:Z.from()}})},delWrappedLineRight:function(K){return el(K,function(Z){var re=K.charCoords(Z.head,"div").top+5,ce=K.coordsChar({left:K.display.lineDiv.offsetWidth+100,top:re},"div");return{from:Z.from(),to:ce}})},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(Mt(K.firstLine(),0))},goDocEnd:function(K){return K.extendSelection(Mt(K.lastLine()))},goLineStart:function(K){return K.extendSelectionsBy(function(Z){return lu(K,Z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(K){return K.extendSelectionsBy(function(Z){return mu(K,Z.head)},{origin:"+move",bias:1})},goLineEnd:function(K){return K.extendSelectionsBy(function(Z){return pu(K,Z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(K){return K.extendSelectionsBy(function(Z){var re=K.cursorCoords(Z.head,"div").top+5;return K.coordsChar({left:K.display.lineDiv.offsetWidth+100,top:re},"div")},ge)},goLineLeft:function(K){return K.extendSelectionsBy(function(Z){var re=K.cursorCoords(Z.head,"div").top+5;return K.coordsChar({left:0,top:re},"div")},ge)},goLineLeftSmart:function(K){return K.extendSelectionsBy(function(Z){var re=K.cursorCoords(Z.head,"div").top+5,ce=K.coordsChar({left:0,top:re},"div");return ce.ch<K.getLine(ce.line).search(/\S/)?mu(K,Z.head):ce},ge)},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 Z=[],re=K.listSelections(),ce=K.options.tabSize,Pe=0;Pe<re.length;Pe++){var mt=re[Pe].from(),Wt=W(K.getLine(mt.line),mt.ch,ce);Z.push(He(ce-Wt%ce))}K.replaceSelections(Z)},defaultTab:function(K){K.somethingSelected()?K.indentSelection("add"):K.execCommand("insertTab")},transposeChars:function(K){return ho(K,function(){for(var Z=K.listSelections(),re=[],ce=0;ce<Z.length;ce++){if(!Z[ce].empty())continue;var Pe=Z[ce].head,mt=Le(K.doc,Pe.line).text;if(mt){if(Pe.ch==mt.length&&(Pe=new Mt(Pe.line,Pe.ch-1)),Pe.ch>0)Pe=new Mt(Pe.line,Pe.ch+1),K.replaceRange(mt.charAt(Pe.ch-1)+mt.charAt(Pe.ch-2),Mt(Pe.line,Pe.ch-2),Pe,"+transpose");else if(Pe.line>K.doc.first){var Wt=Le(K.doc,Pe.line-1).text;Wt&&(Pe=new Mt(Pe.line,1),K.replaceRange(mt.charAt(0)+K.doc.lineSeparator()+Wt.charAt(Wt.length-1),Mt(Pe.line-1,Wt.length-1),Pe,"+transpose"))}}re.push(new ae(Pe,Pe))}K.setSelections(re)})},newlineAndIndent:function(K){return ho(K,function(){for(var Z=K.listSelections(),re=Z.length-1;re>=0;re--)K.replaceRange(K.doc.lineSeparator(),Z[re].anchor,Z[re].head,"+input");Z=K.listSelections();for(var ce=0;ce<Z.length;ce++)K.indentLine(Z[ce].from().line,null,!0);sa(K)})},openLine:function(K){return K.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(K){return K.toggleOverwrite()}};function lu(k,K){var Z=Le(k.doc,K),re=Et(Z);return re!=Z&&(K=Nt(re)),fu(!0,k,re,K,1)}function pu(k,K){var Z=Le(k.doc,K),re=Lt(Z);return re!=Z&&(K=Nt(re)),fu(!0,k,Z,K,-1)}function mu(k,K){var Z=lu(k,K.line),re=Le(k.doc,Z.line),ce=ot(re,k.doc.direction);if(!ce||ce[0].level==0){var Pe=Math.max(Z.ch,re.text.search(/\S/)),mt=K.line==Z.line&&K.ch<=Pe&&K.ch;return Mt(Z.line,mt?0:Pe,Z.sticky)}return Z}function pl(k,K,Z){if(typeof K=="string"&&(K=Kl[K],!K))return!1;k.display.input.ensurePolled();var re=k.display.shift,ce=!1;try{k.isReadOnly()&&(k.state.suppressEdits=!0),Z&&(k.display.shift=!1),ce=K(k)!=$}finally{k.display.shift=re,k.state.suppressEdits=!1}return ce}function wl(k,K,Z){for(var re=0;re<k.state.keyMaps.length;re++){var ce=Cl(K,k.state.keyMaps[re],Z,k);if(ce)return ce}return k.options.extraKeys&&Cl(K,k.options.extraKeys,Z,k)||Cl(K,k.options.keyMap,Z,k)}var Dl=new V;function Bo(k,K,Z,re){var ce=k.state.keySeq;if(ce){if(ou(K))return"handled";if(/\'$/.test(K)?k.state.keySeq=null:Dl.set(50,function(){k.state.keySeq==ce&&(k.state.keySeq=null,k.display.input.reset())}),Na(k,ce+" "+K,Z,re))return!0}return Na(k,K,Z,re)}function Na(k,K,Z,re){var ce=wl(k,K,re);return ce=="multi"&&(k.state.keySeq=K),ce=="handled"&&wr(k,"keyHandled",k,K,Z),(ce=="handled"||ce=="multi")&&(Be(Z),jn(k)),!!ce}function ro(k,K){var Z=su(K,!0);return Z?K.shiftKey&&!k.state.keySeq?Bo(k,"Shift-"+Z,K,function(re){return pl(k,re,!0)})||Bo(k,Z,K,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return pl(k,re)}):Bo(k,Z,K,function(re){return pl(k,re)}):!1}function Io(k,K,Z){return Bo(k,"'"+Z+"'",K,function(re){return pl(k,re,!0)})}var Bs=null;function Ol(k){var K=this;if(k.target&&k.target!=K.display.input.getField())return;if(K.curOp.focus=R(),Ot(K,k))return;f&&c<11&&k.keyCode==27&&(k.returnValue=!1);var Z=k.keyCode;K.display.shift=Z==16||k.shiftKey;var re=ro(K,k);n&&(Bs=re?Z:null,!re&&Z==88&&!dr&&(h?k.metaKey:k.ctrlKey)&&K.replaceSelection("",null,"cut")),C&&!h&&!re&&Z==46&&k.shiftKey&&!k.ctrlKey&&document.execCommand&&document.execCommand("cut"),Z==18&&!/\bCodeMirror-crosshair\b/.test(K.display.lineDiv.className)&&_l(K)}function _l(k){var K=k.display.lineDiv;P(K,"CodeMirror-crosshair");function Z(re){(re.keyCode==18||!re.altKey)&&(S(K,"CodeMirror-crosshair"),ze(document,"keyup",Z),ze(document,"mouseover",Z))}Te(document,"keyup",Z),Te(document,"mouseover",Z)}function ml(k){k.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,k)}function Al(k){var K=this;if(k.target&&k.target!=K.display.input.getField())return;if(Ln(K.display,k)||Ot(K,k)||k.ctrlKey&&!k.altKey||h&&k.metaKey)return;var Z=k.keyCode,re=k.charCode;if(n&&Z==Bs){Bs=null,Be(k);return}if(n&&(!k.which||k.which<10)&&ro(K,k))return;var ce=String.fromCharCode(re==null?Z:re);if(ce=="\b")return;if(Io(K,k,ce))return;K.display.input.onKeyPress(k)}var Il=400,Ll=function(K,Z,re){this.time=K,this.pos=Z,this.button=re};Ll.prototype.compare=function(k,K,Z){return this.time+Il>k&&at(K,this.pos)==0&&Z==this.button};var Ks,Yl;function gu(k,K){var Z=+new Date;return Yl&&Yl.compare(Z,k,K)?(Ks=Yl=null,"triple"):Ks&&Ks.compare(Z,k,K)?(Yl=new Ll(Z,k,K),Ks=null,"double"):(Ks=new Ll(Z,k,K),Yl=null,"single")}function uu(k){var K=this,Z=K.display;if(Ot(K,k)||Z.activeTouch&&Z.input.supportsTouch())return;if(Z.input.ensurePolled(),Z.shift=k.shiftKey,Ln(Z,k)){o||(Z.scroller.draggable=!1,setTimeout(function(){return Z.scroller.draggable=!0},100));return}if(Uu(K,k))return;var re=Ja(K,k),ce=q(k),Pe=re?gu(re,ce):"single";if(window.focus(),ce==1&&K.state.selectingText&&K.state.selectingText(k),re&&Ou(K,ce,re,Pe,k))return;ce==1?re?Fu(K,re,Pe,k):Ne(k)==Z.scroller&&Be(k):ce==2?(re&&fs(K.doc,re),setTimeout(function(){return Z.input.focus()},20)):ce==3&&(x?K.display.input.onContextMenu(k):Bn(K))}function Ou(k,K,Z,re,ce){var Pe="Click";return re=="double"?Pe="Double"+Pe:re=="triple"&&(Pe="Triple"+Pe),Pe=(K==1?"Left":K==2?"Middle":"Right")+Pe,Bo(k,hu(Pe,ce),ce,function(mt){if(typeof mt=="string"&&(mt=Kl[mt]),!mt)return!1;var Wt=!1;try{k.isReadOnly()&&(k.state.suppressEdits=!0),Wt=mt(k,Z)!=$}finally{k.state.suppressEdits=!1}return Wt})}function Vu(k,K,Z){var re=k.getOption("configureMouse"),ce=re?re(k,K,Z):{};if(ce.unit==null){var Pe=p?Z.shiftKey&&Z.metaKey:Z.altKey;ce.unit=Pe?"rectangle":K=="single"?"char":K=="double"?"word":"line"}return(ce.extend==null||k.doc.extend)&&(ce.extend=k.doc.extend||Z.shiftKey),ce.addNew==null&&(ce.addNew=h?Z.metaKey:Z.ctrlKey),ce.moveOnDrag==null&&(ce.moveOnDrag=!(h?Z.altKey:Z.ctrlKey)),ce}function Fu(k,K,Z,re){f?setTimeout(F(Hn,k),0):k.curOp.focus=R();var ce=Vu(k,Z,re),Pe=k.doc.sel,mt;k.options.dragDrop&&ht&&!k.isReadOnly()&&Z=="single"&&(mt=Pe.contains(K))>-1&&(at((mt=Pe.ranges[mt]).from(),K)<0||K.xRel>0)&&(at(mt.to(),K)>0||K.xRel<0)?ec(k,re,K,ce):Gu(k,re,K,ce)}function ec(k,K,Z,re){var ce=k.display,Pe=!1,mt=bo(k,function(pr){o&&(ce.scroller.draggable=!1),k.state.draggingText=!1,ze(ce.wrapper.ownerDocument,"mouseup",mt),ze(ce.wrapper.ownerDocument,"mousemove",Wt),ze(ce.scroller,"dragstart",sr),ze(ce.scroller,"drop",mt),Pe||(Be(pr),re.addNew||fs(k.doc,Z,null,null,re.extend),o&&!e||f&&c==9?setTimeout(function(){ce.wrapper.ownerDocument.body.focus({preventScroll:!0}),ce.input.focus()},20):ce.input.focus())}),Wt=function(wn){Pe=Pe||Math.abs(K.clientX-wn.clientX)+Math.abs(K.clientY-wn.clientY)>=10},sr=function(){return Pe=!0};o&&(ce.scroller.draggable=!0),k.state.draggingText=mt,mt.copy=!re.moveOnDrag,ce.scroller.dragDrop&&ce.scroller.dragDrop(),Te(ce.wrapper.ownerDocument,"mouseup",mt),Te(ce.wrapper.ownerDocument,"mousemove",Wt),Te(ce.scroller,"dragstart",sr),Te(ce.scroller,"drop",mt),Bn(k),setTimeout(function(){return ce.input.focus()},20)}function Bu(k,K,Z){if(Z=="char")return new ae(K,K);if(Z=="word")return k.findWordAt(K);if(Z=="line")return new ae(Mt(K.line,0),wt(k.doc,Mt(K.line+1,0)));var re=Z(k,K);return new ae(re.from,re.to)}function Gu(k,K,Z,re){var ce=k.display,Pe=k.doc;Be(K);var mt,Wt,sr=Pe.sel,pr=sr.ranges;if(re.addNew&&!re.extend?(Wt=Pe.sel.contains(Z),Wt>-1?mt=pr[Wt]:mt=new ae(Z,Z)):(mt=Pe.sel.primary(),Wt=Pe.sel.primIndex),re.unit=="rectangle")re.addNew||(mt=new ae(Z,Z)),Z=Ja(k,K,!0,!0),Wt=-1;else{var wn=Bu(k,Z,re.unit);re.extend?mt=Hs(mt,wn.anchor,wn.head,re.extend):mt=wn}re.addNew?Wt==-1?(Wt=pr.length,Zo(Pe,me(k,pr.concat([mt]),Wt),{scroll:!1,origin:"*mouse"})):pr.length>1&&pr[Wt].empty()&&re.unit=="char"&&!re.extend?(Zo(Pe,me(k,pr.slice(0,Wt).concat(pr.slice(Wt+1)),0),{scroll:!1,origin:"*mouse"}),sr=Pe.sel):Ss(Pe,Wt,mt,ne):(Wt=0,Zo(Pe,new vt([mt],0),ne),sr=Pe.sel);var Rn=Z;function ei(xa){if(at(Rn,xa)==0)return;if(Rn=xa,re.unit=="rectangle"){for(var Ma=[],To=k.options.tabSize,no=W(Le(Pe,Z.line).text,Z.ch,To),Wo=W(Le(Pe,xa.line).text,xa.ch,To),ps=Math.min(no,Wo),Us=Math.max(no,Wo),Ts=Math.min(Z.line,xa.line),tl=Math.min(k.lastLine(),Math.max(Z.line,xa.line));Ts<=tl;Ts++){var ul=Le(Pe,Ts).text,Gs=Oe(ul,ps,To);ps==Us?Ma.push(new ae(Mt(Ts,Gs),Mt(Ts,Gs))):ul.length>Gs&&Ma.push(new ae(Mt(Ts,Gs),Mt(Ts,Oe(ul,Us,To))))}Ma.length||Ma.push(new ae(Z,Z)),Zo(Pe,me(k,sr.ranges.slice(0,Wt).concat(Ma),Wt),{origin:"*mouse",scroll:!1}),k.scrollIntoView(xa)}else{var cl=mt,rl=Bu(k,xa,re.unit),ya=cl.anchor,Ms;at(rl.anchor,ya)>0?(Ms=rl.head,ya=_t(cl.from(),rl.anchor)):(Ms=rl.anchor,ya=Bt(cl.to(),rl.head));var Ls=sr.ranges.slice(0);Ls[Wt]=Xu(k,new ae(wt(Pe,ya),Ms)),Zo(Pe,me(k,Ls,Wt),ne)}}var ni=ce.wrapper.getBoundingClientRect(),Mi=0;function Zi(xa){var Ma=++Mi,To=Ja(k,xa,!0,re.unit=="rectangle");if(!To)return;if(at(To,Rn)!=0){k.curOp.focus=R(),ei(To);var no=ki(ce,Pe);(To.line>=no.to||To.line<no.from)&&setTimeout(bo(k,function(){Mi==Ma&&Zi(xa)}),150)}else{var Wo=xa.clientY<ni.top?-20:xa.clientY>ni.bottom?20:0;Wo&&setTimeout(bo(k,function(){if(Mi!=Ma)return;ce.scroller.scrollTop+=Wo,Zi(xa)}),50)}}function da(xa){k.state.selectingText=!1,Mi=Infinity,xa&&(Be(xa),ce.input.focus()),ze(ce.wrapper.ownerDocument,"mousemove",ia),ze(ce.wrapper.ownerDocument,"mouseup",na),Pe.history.lastSelOrigin=null}var ia=bo(k,function(xa){xa.buttons===0||!q(xa)?da(xa):Zi(xa)}),na=bo(k,da);k.state.selectingText=na,Te(ce.wrapper.ownerDocument,"mousemove",ia),Te(ce.wrapper.ownerDocument,"mouseup",na)}function Xu(k,K){var Z=K.anchor,re=K.head,ce=Le(k.doc,Z.line);if(at(Z,re)==0&&Z.sticky==re.sticky)return K;var Pe=ot(ce);if(!Pe)return K;var mt=xe(Pe,Z.ch,Z.sticky),Wt=Pe[mt];if(Wt.from!=Z.ch&&Wt.to!=Z.ch)return K;var sr=mt+(Wt.from==Z.ch==(Wt.level!=1)?0:1);if(sr==0||sr==Pe.length)return K;var pr;if(re.line!=Z.line)pr=(re.line-Z.line)*(k.doc.direction=="ltr"?1:-1)>0;else{var wn=xe(Pe,re.ch,re.sticky),Rn=wn-mt||(re.ch-Z.ch)*(Wt.level==1?-1:1);wn==sr-1||wn==sr?pr=Rn<0:pr=Rn>0}var ei=Pe[sr+(pr?-1:0)],ni=pr==(ei.level==1),Mi=ni?ei.from:ei.to,Zi=ni?"after":"before";return Z.ch==Mi&&Z.sticky==Zi?K:new ae(new Mt(Z.line,Mi,Zi),re)}function Yu(k,K,Z,re){var ce,Pe;if(K.touches)ce=K.touches[0].clientX,Pe=K.touches[0].clientY;else try{ce=K.clientX,Pe=K.clientY}catch(ei){return!1}if(ce>=Math.floor(k.display.gutters.getBoundingClientRect().right))return!1;re&&Be(K);var mt=k.display,Wt=mt.lineDiv.getBoundingClientRect();if(Pe>Wt.bottom||!Tt(k,Z))return X(K);Pe-=Wt.top-mt.viewOffset;for(var sr=0;sr<k.display.gutterSpecs.length;++sr){var pr=mt.gutters.childNodes[sr];if(pr&&pr.getBoundingClientRect().right>=ce){var wn=Ar(k.doc,Pe),Rn=k.display.gutterSpecs[sr];return nt(k,Z,k,wn,Rn.className,K),X(K)}}}function Uu(k,K){return Yu(k,K,"gutterClick",!0)}function _u(k,K){if(Ln(k.display,K)||Ul(k,K))return;if(Ot(k,K,"contextmenu"))return;x||k.display.input.onContextMenu(K)}function Ul(k,K){return Tt(k,"gutterContextMenu")?Yu(k,K,"gutterContextMenu",!1):!1}function Iu(k){k.display.wrapper.className=k.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+k.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ga(k)}var Wl={toString:function(){return"CodeMirror.Init"}},Su={},Ae={};function We(k){var K=k.optionHandlers;function Z(re,ce,Pe,mt){k.defaults[re]=ce,Pe&&(K[re]=mt?function(Wt,sr,pr){pr!=Wl&&Pe(Wt,sr,pr)}:Pe)}k.defineOption=Z,k.Init=Wl,Z("value","",function(re,ce){return re.setValue(ce)},!0),Z("mode",null,function(re,ce){re.doc.modeOption=ce,fn(re)},!0),Z("indentUnit",2,fn,!0),Z("indentWithTabs",!1),Z("smartIndent",!0),Z("tabSize",4,function(re){Kn(re),ga(re),ha(re)},!0),Z("lineSeparator",null,function(re,ce){if(re.doc.lineSep=ce,!ce)return;var Pe=[],mt=re.doc.first;re.doc.iter(function(sr){for(var pr=0;;){var wn=sr.text.indexOf(ce,pr);if(wn==-1)break;pr=wn+ce.length,Pe.push(Mt(mt,wn))}mt++});for(var Wt=Pe.length-1;Wt>=0;Wt--)hl(re.doc,ce,Pe[Wt],Mt(Pe[Wt].line,Pe[Wt].ch+ce.length))}),Z("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,ce,Pe){re.state.specialChars=new RegExp(ce.source+(ce.test(" ")?"":"| "),"g"),Pe!=Wl&&re.refresh()}),Z("specialCharPlaceholder",ti,function(re){return re.refresh()},!0),Z("electricChars",!0),Z("inputStyle",u?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Z("spellcheck",!1,function(re,ce){return re.getInputField().spellcheck=ce},!0),Z("autocorrect",!1,function(re,ce){return re.getInputField().autocorrect=ce},!0),Z("autocapitalize",!1,function(re,ce){return re.getInputField().autocapitalize=ce},!0),Z("rtlMoveVisually",!g),Z("wholeLineUpdateBefore",!0),Z("theme","default",function(re){Iu(re),Jo(re)},!0),Z("keyMap","default",function(re,ce,Pe){var mt=Rs(ce),Wt=Pe!=Wl&&Rs(Pe);Wt&&Wt.detach&&Wt.detach(re,mt),mt.attach&&mt.attach(re,Wt||null)}),Z("extraKeys",null),Z("configureMouse",null),Z("lineWrapping",!1,nr,!0),Z("gutters",[],function(re,ce){re.display.gutterSpecs=vo(ce,re.options.lineNumbers),Jo(re)},!0),Z("fixedGutter",!0,function(re,ce){re.display.gutters.style.left=ce?Xa(re.display)+"px":"0",re.refresh()},!0),Z("coverGutterNextToScrollbar",!1,function(re){return eo(re)},!0),Z("scrollbarStyle","native",function(re){cs(re),eo(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),Z("lineNumbers",!1,function(re,ce){re.display.gutterSpecs=vo(re.options.gutters,ce),Jo(re)},!0),Z("firstLineNumber",1,Jo,!0),Z("lineNumberFormatter",function(re){return re},Jo,!0),Z("showCursorWhenSelecting",!1,Vr,!0),Z("resetSelectionOnContextMenu",!0),Z("lineWiseCopyCut",!0),Z("pasteLinesPerSelection",!0),Z("selectionsMayTouch",!1),Z("readOnly",!1,function(re,ce){ce=="nocursor"&&(Yn(re),re.display.input.blur()),re.display.input.readOnlyChanged(ce)}),Z("screenReaderLabel",null,function(re,ce){ce=ce===""?null:ce,re.display.input.screenReaderLabelChanged(ce)}),Z("disableInput",!1,function(re,ce){ce||re.display.input.reset()},!0),Z("dragDrop",!0,pt),Z("allowDropFileTypes",null),Z("cursorBlinkRate",530),Z("cursorScrollMargin",0),Z("cursorHeight",1,Vr,!0),Z("singleCursorHeightPerLine",!0,Vr,!0),Z("workTime",100),Z("workDelay",100),Z("flattenSpans",!0,Kn,!0),Z("addModeClass",!1,Kn,!0),Z("pollInterval",100),Z("undoDepth",200,function(re,ce){return re.doc.history.undoDepth=ce}),Z("historyEventDelay",1250),Z("viewportMargin",10,function(re){return re.refresh()},!0),Z("maxHighlightLength",1e4,Kn,!0),Z("moveInputWithCursor",!0,function(re,ce){ce||re.display.input.resetPosition()}),Z("tabindex",null,function(re,ce){return re.display.input.getField().tabIndex=ce||""}),Z("autofocus",null),Z("direction","ltr",function(re,ce){return re.doc.setDirection(ce)},!0),Z("phrases",null)}function pt(k,K,Z){var re=Z&&Z!=Wl;if(!K!=!re){var ce=k.display.dragFunctions,Pe=K?Te:ze;Pe(k.display.scroller,"dragstart",ce.start),Pe(k.display.scroller,"dragenter",ce.enter),Pe(k.display.scroller,"dragover",ce.over),Pe(k.display.scroller,"dragleave",ce.leave),Pe(k.display.scroller,"drop",ce.drop)}}function nr(k){k.options.lineWrapping?(P(k.display.wrapper,"CodeMirror-wrap"),k.display.sizer.style.minWidth="",k.display.sizerWidth=null):(S(k.display.wrapper,"CodeMirror-wrap"),vn(k)),go(k),ha(k),ga(k),setTimeout(function(){return eo(k)},100)}function Tr(k,K){var Z=this;if(!(this instanceof Tr))return new Tr(k,K);this.options=K=K?j(K):{},j(Su,K,!1);var re=K.value;typeof re=="string"?re=new Ys(re,K.mode,null,K.lineSeparator,K.direction):K.mode&&(re.modeOption=K.mode),this.doc=re;var ce=new Tr.inputStyles[K.inputStyle](this),Pe=this.display=new ts(k,re,ce,K);Pe.wrapper.CodeMirror=this,Iu(this),K.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),cs(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&&Pe.input.focus(),f&&c<11&&setTimeout(function(){return Z.display.input.reset(!0)},20),zr(this),iu(),Lo(this),this.curOp.forceUpdate=!0,Fi(this,re),K.autofocus&&!u||this.hasFocus()?setTimeout(function(){Z.hasFocus()&&!Z.state.focused&&ri(Z)},20):Yn(this);for(var mt in Ae)Ae.hasOwnProperty(mt)&&Ae[mt](this,K[mt],Wl);vs(this),K.finishInit&&K.finishInit(this);for(var Wt=0;Wt<Me.length;++Wt)Me[Wt](this);Ba(this),o&&K.lineWrapping&&getComputedStyle(Pe.lineDiv).textRendering=="optimizelegibility"&&(Pe.lineDiv.style.textRendering="auto")}Tr.defaults=Su,Tr.optionHandlers=Ae;function zr(k){var K=k.display;Te(K.scroller,"mousedown",bo(k,uu)),f&&c<11?Te(K.scroller,"dblclick",bo(k,function(sr){if(Ot(k,sr))return;var pr=Ja(k,sr);if(!pr||Uu(k,sr)||Ln(k.display,sr))return;Be(sr);var wn=k.findWordAt(pr);fs(k.doc,wn.anchor,wn.head)})):Te(K.scroller,"dblclick",function(sr){return Ot(k,sr)||Be(sr)}),Te(K.scroller,"contextmenu",function(sr){return _u(k,sr)}),Te(K.input.getField(),"contextmenu",function(sr){K.scroller.contains(sr.target)||_u(k,sr)});var Z,re={end:0};function ce(){K.activeTouch&&(Z=setTimeout(function(){return K.activeTouch=null},1e3),re=K.activeTouch,re.end=+new Date)}function Pe(sr){if(sr.touches.length!=1)return!1;var pr=sr.touches[0];return pr.radiusX<=1&&pr.radiusY<=1}function mt(sr,pr){if(pr.left==null)return!0;var wn=pr.left-sr.left,Rn=pr.top-sr.top;return wn*wn+Rn*Rn>20*20}Te(K.scroller,"touchstart",function(sr){if(!Ot(k,sr)&&!Pe(sr)&&!Uu(k,sr)){K.input.ensurePolled(),clearTimeout(Z);var pr=+new Date;K.activeTouch={start:pr,moved:!1,prev:pr-re.end<=300?re:null},sr.touches.length==1&&(K.activeTouch.left=sr.touches[0].pageX,K.activeTouch.top=sr.touches[0].pageY)}}),Te(K.scroller,"touchmove",function(){K.activeTouch&&(K.activeTouch.moved=!0)}),Te(K.scroller,"touchend",function(sr){var pr=K.activeTouch;if(pr&&!Ln(K,sr)&&pr.left!=null&&!pr.moved&&new Date-pr.start<300){var wn=k.coordsChar(K.activeTouch,"page"),Rn;!pr.prev||mt(pr,pr.prev)?Rn=new ae(wn,wn):!pr.prev.prev||mt(pr,pr.prev.prev)?Rn=k.findWordAt(wn):Rn=new ae(Mt(wn.line,0),wt(k.doc,Mt(wn.line+1,0))),k.setSelection(Rn.anchor,Rn.head),k.focus(),Be(sr)}ce()}),Te(K.scroller,"touchcancel",ce),Te(K.scroller,"scroll",function(){K.scroller.clientHeight&&(qi(k,K.scroller.scrollTop),ma(k,K.scroller.scrollLeft,!0),nt(k,"scroll",k))}),Te(K.scroller,"mousewheel",function(sr){return zn(k,sr)}),Te(K.scroller,"DOMMouseScroll",function(sr){return zn(k,sr)}),Te(K.wrapper,"scroll",function(){return K.wrapper.scrollTop=K.wrapper.scrollLeft=0}),K.dragFunctions={enter:function(pr){Ot(k,pr)||Fe(pr)},over:function(pr){Ot(k,pr)||(du(k,pr),Fe(pr))},start:function(pr){return Pl(k,pr)},drop:bo(k,fl),leave:function(pr){Ot(k,pr)||ru(k)}};var Wt=K.input.getField();Te(Wt,"keyup",function(sr){return ml.call(k,sr)}),Te(Wt,"keydown",bo(k,Ol)),Te(Wt,"keypress",bo(k,Al)),Te(Wt,"focus",function(sr){return ri(k,sr)}),Te(Wt,"blur",function(sr){return Yn(k,sr)})}var Me=[];Tr.defineInitHook=function(k){return Me.push(k)};function te(k,K,Z,re){var ce=k.doc,Pe;Z==null&&(Z="add"),Z=="smart"&&(ce.mode.indent?Pe=Pn(k,K).state:Z="prev");var mt=k.options.tabSize,Wt=Le(ce,K),sr=W(Wt.text,null,mt);Wt.stateAfter&&(Wt.stateAfter=null);var pr=Wt.text.match(/^\s*/)[0],wn;if(!re&&!/\S/.test(Wt.text))wn=0,Z="not";else if(Z=="smart"&&(wn=ce.mode.indent(Pe,Wt.text.slice(pr.length),Wt.text),wn==$||wn>150)){if(!re)return;Z="prev"}Z=="prev"?K>ce.first?wn=W(Le(ce,K-1).text,null,mt):wn=0:Z=="add"?wn=sr+k.options.indentUnit:Z=="subtract"?wn=sr-k.options.indentUnit:typeof Z=="number"&&(wn=sr+Z),wn=Math.max(0,wn);var Rn="",ei=0;if(k.options.indentWithTabs)for(var ni=Math.floor(wn/mt);ni;--ni)ei+=mt,Rn+=" ";if(ei<wn&&(Rn+=He(wn-ei)),Rn!=pr)return hl(ce,Rn,Mt(K,0),Mt(K,pr.length),"+input"),Wt.stateAfter=null,!0;for(var Mi=0;Mi<ce.sel.ranges.length;Mi++){var Zi=ce.sel.ranges[Mi];if(Zi.head.line==K&&Zi.head.ch<pr.length){var da=Mt(K,pr.length);Ss(ce,Mi,new ae(da,da));break}}}var ye=null;function Ge(k){ye=k}function st(k,K,Z,re,ce){var Pe=k.doc;k.display.shift=!1,re||(re=Pe.sel);var mt=+new Date-200,Wt=ce=="paste"||k.state.pasteIncoming>mt,sr=Zr(K),pr=null;if(Wt&&re.ranges.length>1)if(ye&&ye.text.join(`
|
|
|
`)==K){if(re.ranges.length%ye.text.length==0){pr=[];for(var wn=0;wn<ye.text.length;wn++)pr.push(Pe.splitLines(ye.text[wn]))}}else sr.length==re.ranges.length&&k.options.pasteLinesPerSelection&&(pr=Ue(sr,function(ia){return[ia]}));for(var Rn=k.curOp.updateInput,ei=re.ranges.length-1;ei>=0;ei--){var ni=re.ranges[ei],Mi=ni.from(),Zi=ni.to();ni.empty()&&(Z&&Z>0?Mi=Mt(Mi.line,Mi.ch-Z):k.state.overwrite&&!Wt?Zi=Mt(Zi.line,Math.min(Le(Pe,Zi.line).text.length,Zi.ch+pe(sr).length)):Wt&&ye&&ye.lineWise&&ye.text.join(`
|
|
|
`)==sr.join(`
|
|
|
`)&&(Mi=Zi=Mt(Mi.line,0)));var da={from:Mi,to:Zi,text:pr?pr[ei%pr.length]:sr,origin:ce||(Wt?"paste":k.state.cutIncoming>mt?"cut":"+input")};rs(k.doc,da),wr(k,"inputRead",k,da)}K&&!Wt&&zt(k,K),sa(k),k.curOp.updateInput<2&&(k.curOp.updateInput=Rn),k.curOp.typing=!0,k.state.pasteIncoming=k.state.cutIncoming=-1}function Ft(k,K){var Z=k.clipboardData&&k.clipboardData.getData("Text");if(Z)return k.preventDefault(),!K.isReadOnly()&&!K.options.disableInput&&ho(K,function(){return st(K,Z,0,null,"paste")}),!0}function zt(k,K){if(!k.options.electricChars||!k.options.smartIndent)return;for(var Z=k.doc.sel,re=Z.ranges.length-1;re>=0;re--){var ce=Z.ranges[re];if(ce.head.ch>100||re&&Z.ranges[re-1].head.line==ce.head.line)continue;var Pe=k.getModeAt(ce.head),mt=!1;if(Pe.electricChars){for(var Wt=0;Wt<Pe.electricChars.length;Wt++)if(K.indexOf(Pe.electricChars.charAt(Wt))>-1){mt=te(k,ce.head.line,"smart");break}}else Pe.electricInput&&(Pe.electricInput.test(Le(k.doc,ce.head.line).text.slice(0,ce.head.ch))&&(mt=te(k,ce.head.line,"smart")));mt&&wr(k,"electricInput",k,ce.head.line)}}function Yt(k){for(var K=[],Z=[],re=0;re<k.doc.sel.ranges.length;re++){var ce=k.doc.sel.ranges[re].head.line,Pe={anchor:Mt(ce,0),head:Mt(ce+1,0)};Z.push(Pe),K.push(k.getRange(Pe.anchor,Pe.head))}return{text:K,ranges:Z}}function Nr(k,K,Z,re){k.setAttribute("autocorrect",Z?"":"off"),k.setAttribute("autocapitalize",re?"":"off"),k.setAttribute("spellcheck",!!K)}function Qr(){var k=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),K=I("div",[k],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return o?k.style.width="1000px":k.setAttribute("wrap","off"),a&&(k.style.border="1px solid black"),Nr(k),K}function Cr(k){var K=k.optionHandlers,Z=k.helpers={};k.prototype={constructor:k,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ce,Pe){var mt=this.options,Wt=mt[ce];if(mt[ce]==Pe&&ce!="mode")return;mt[ce]=Pe,K.hasOwnProperty(ce)&&bo(this,K[ce])(this,Pe,Wt),nt(this,"optionChange",this,ce)},getOption:function(ce){return this.options[ce]},getDoc:function(){return this.doc},addKeyMap:function(ce,Pe){this.state.keyMaps[Pe?"push":"unshift"](Rs(ce))},removeKeyMap:function(ce){for(var Pe=this.state.keyMaps,mt=0;mt<Pe.length;++mt)if(Pe[mt]==ce||Pe[mt].name==ce)return Pe.splice(mt,1),!0},addOverlay:ds(function(re,ce){var Pe=re.token?re:k.getMode(this.options,re);if(Pe.startState)throw new Error("Overlays may not be stateful.");oe(this.state.overlays,{mode:Pe,modeSpec:re,opaque:ce&&ce.opaque,priority:ce&&ce.priority||0},function(mt){return mt.priority}),this.state.modeGen++,ha(this)}),removeOverlay:ds(function(re){for(var ce=this.state.overlays,Pe=0;Pe<ce.length;++Pe){var mt=ce[Pe].modeSpec;if(mt==re||typeof re=="string"&&mt.name==re){ce.splice(Pe,1),this.state.modeGen++,ha(this);return}}}),indentLine:ds(function(re,ce,Pe){typeof ce!="string"&&typeof ce!="number"&&(ce==null?ce=this.options.smartIndent?"smart":"prev":ce=ce?"add":"subtract"),Mr(this.doc,re)&&te(this,re,ce,Pe)}),indentSelection:ds(function(re){for(var ce=this.doc.sel.ranges,Pe=-1,mt=0;mt<ce.length;mt++){var Wt=ce[mt];if(Wt.empty())Wt.head.line>Pe&&(te(this,Wt.head.line,re,!0),Pe=Wt.head.line,mt==this.doc.sel.primIndex&&sa(this));else{var sr=Wt.from(),pr=Wt.to(),wn=Math.max(Pe,sr.line);Pe=Math.min(this.lastLine(),pr.line-(pr.ch?0:1))+1;for(var Rn=wn;Rn<Pe;++Rn)te(this,Rn,re);var ei=this.doc.sel.ranges;sr.ch==0&&ce.length==ei.length&&ei[mt].from().ch>0&&Ss(this.doc,mt,new ae(sr,ei[mt].to()),ue)}}}),getTokenAt:function(ce,Pe){return Ii(this,ce,Pe)},getLineTokens:function(ce,Pe){return Ii(this,Mt(ce),Pe,!0)},getTokenTypeAt:function(ce){ce=wt(this.doc,ce);var Pe=$r(this,Le(this.doc,ce.line)),mt=0,Wt=(Pe.length-1)/2,sr=ce.ch,pr;if(sr==0)pr=Pe[2];else for(;;){var wn=mt+Wt>>1;if((wn?Pe[wn*2-1]:0)>=sr)Wt=wn;else if(Pe[wn*2+1]<sr)mt=wn+1;else{pr=Pe[wn*2+2];break}}var Rn=pr?pr.indexOf("overlay "):-1;return Rn<0?pr:Rn==0?null:pr.slice(0,Rn-1)},getModeAt:function(ce){var Pe=this.doc.mode;return Pe.innerMode?k.innerMode(Pe,this.getTokenAt(ce).state).mode:Pe},getHelper:function(ce,Pe){return this.getHelpers(ce,Pe)[0]},getHelpers:function(ce,Pe){var mt=[];if(!Z.hasOwnProperty(Pe))return mt;var Wt=Z[Pe],sr=this.getModeAt(ce);if(typeof sr[Pe]=="string")Wt[sr[Pe]]&&mt.push(Wt[sr[Pe]]);else if(sr[Pe])for(var pr=0;pr<sr[Pe].length;pr++){var wn=Wt[sr[Pe][pr]];wn&&mt.push(wn)}else sr.helperType&&Wt[sr.helperType]?mt.push(Wt[sr.helperType]):Wt[sr.name]&&mt.push(Wt[sr.name]);for(var Rn=0;Rn<Wt._global.length;Rn++){var ei=Wt._global[Rn];ei.pred(sr,this)&&z(mt,ei.val)==-1&&mt.push(ei.val)}return mt},getStateAfter:function(ce,Pe){var mt=this.doc;return ce=Kt(mt,ce==null?mt.first+mt.size-1:ce),Pn(this,ce+1,Pe).state},cursorCoords:function(ce,Pe){var mt,Wt=this.doc.sel.primary();return ce==null?mt=Wt.head:typeof ce=="object"?mt=wt(this.doc,ce):mt=ce?Wt.from():Wt.to(),ja(this,mt,Pe||"page")},charCoords:function(ce,Pe){return Ao(this,wt(this.doc,ce),Pe||"page")},coordsChar:function(ce,Pe){return ce=Ra(this,ce,Pe||"page"),Va(this,ce.left,ce.top)},lineAtHeight:function(ce,Pe){return ce=Ra(this,{top:ce,left:0},Pe||"page").top,Ar(this.doc,ce+this.display.viewOffset)},heightAtLine:function(ce,Pe,mt){var Wt=!1,sr;if(typeof ce=="number"){var pr=this.doc.first+this.doc.size-1;ce<this.doc.first?ce=this.doc.first:ce>pr&&(ce=pr,Wt=!0),sr=Le(this.doc,ce)}else sr=ce;return Da(this,sr,{top:0,left:0},Pe||"page",mt||Wt).top+(Wt?this.doc.height-yr(sr):0)},defaultTextHeight:function(){return qa(this.display)},defaultCharWidth:function(){return oo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ce,Pe,mt,Wt,sr){var pr=this.display;ce=ja(this,wt(this.doc,ce));var wn=ce.bottom,Rn=ce.left;if(Pe.style.position="absolute",Pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Pe),pr.sizer.appendChild(Pe),Wt=="over")wn=ce.top;else if(Wt=="above"||Wt=="near"){var ei=Math.max(pr.wrapper.clientHeight,this.doc.height),ni=Math.max(pr.sizer.clientWidth,pr.lineSpace.clientWidth);(Wt=="above"||ce.bottom+Pe.offsetHeight>ei)&&ce.top>Pe.offsetHeight?wn=ce.top-Pe.offsetHeight:ce.bottom+Pe.offsetHeight<=ei&&(wn=ce.bottom),Rn+Pe.offsetWidth>ni&&(Rn=ni-Pe.offsetWidth)}Pe.style.top=wn+"px",Pe.style.left=Pe.style.right="",sr=="right"?(Rn=pr.sizer.clientWidth-Pe.offsetWidth,Pe.style.right="0px"):(sr=="left"?Rn=0:sr=="middle"&&(Rn=(pr.sizer.clientWidth-Pe.offsetWidth)/2),Pe.style.left=Rn+"px"),mt&&Aa(this,{left:Rn,top:wn,right:Rn+Pe.offsetWidth,bottom:wn+Pe.offsetHeight})},triggerOnKeyDown:ds(Ol),triggerOnKeyPress:ds(Al),triggerOnKeyUp:ml,triggerOnMouseDown:ds(uu),execCommand:function(ce){if(Kl.hasOwnProperty(ce))return Kl[ce].call(null,this)},triggerElectric:ds(function(re){zt(this,re)}),findPosH:function(ce,Pe,mt,Wt){var sr=1;Pe<0&&(sr=-1,Pe=-Pe);for(var pr=wt(this.doc,ce),wn=0;wn<Pe&&!(pr=Er(this.doc,pr,sr,mt,Wt),pr.hitSide);++wn);return pr},moveH:ds(function(re,ce){var Pe=this;this.extendSelectionsBy(function(mt){return Pe.display.shift||Pe.doc.extend||mt.empty()?Er(Pe.doc,mt.head,re,ce,Pe.options.rtlMoveVisually):re<0?mt.from():mt.to()},ge)}),deleteH:ds(function(re,ce){var Pe=this.doc.sel,mt=this.doc;Pe.somethingSelected()?mt.replaceSelection("",null,"+delete"):el(this,function(Wt){var sr=Er(mt,Wt.head,re,ce,!1);return re<0?{from:sr,to:Wt.head}:{from:Wt.head,to:sr}})}),findPosV:function(ce,Pe,mt,Wt){var sr=1,pr=Wt;Pe<0&&(sr=-1,Pe=-Pe);for(var wn=wt(this.doc,ce),Rn=0;Rn<Pe;++Rn){var ei=ja(this,wn,"div");if(pr==null?pr=ei.left:ei.left=pr,wn=Kr(this,ei,sr,mt),wn.hitSide)break}return wn},moveV:ds(function(re,ce){var Pe=this,mt=this.doc,Wt=[],sr=!this.display.shift&&!mt.extend&&mt.sel.somethingSelected();if(mt.extendSelectionsBy(function(wn){if(sr)return re<0?wn.from():wn.to();var Rn=ja(Pe,wn.head,"div");wn.goalColumn!=null&&(Rn.left=wn.goalColumn),Wt.push(Rn.left);var ei=Kr(Pe,Rn,re,ce);return ce=="page"&&wn==mt.sel.primary()&&Ji(Pe,Ao(Pe,ei,"div").top-Rn.top),ei},ge),Wt.length)for(var pr=0;pr<mt.sel.ranges.length;pr++)mt.sel.ranges[pr].goalColumn=Wt[pr]}),findWordAt:function(ce){var Pe=this.doc,mt=Le(Pe,ce.line).text,Wt=ce.ch,sr=ce.ch;if(mt){var pr=this.getHelper(ce,"wordChars");(ce.sticky=="before"||sr==mt.length)&&Wt?--Wt:++sr;for(var wn=mt.charAt(Wt),Rn=G(wn,pr)?function(ei){return G(ei,pr)}:/\s/.test(wn)?function(ei){return/\s/.test(ei)}:function(ei){return!/\s/.test(ei)&&!G(ei)};Wt>0&&Rn(mt.charAt(Wt-1));)--Wt;for(;sr<mt.length&&Rn(mt.charAt(sr));)++sr}return new ae(Mt(ce.line,Wt),Mt(ce.line,sr))},toggleOverwrite:function(ce){if(ce!=null&&ce==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?P(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),nt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==R()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ds(function(re,ce){fa(this,re,ce)}),getScrollInfo:function(){var ce=this.display.scroller;return{left:ce.scrollLeft,top:ce.scrollTop,height:ce.scrollHeight-Jn(this)-this.display.barHeight,width:ce.scrollWidth-Jn(this)-this.display.barWidth,clientHeight:Si(this),clientWidth:pi(this)}},scrollIntoView:ds(function(re,ce){re==null?(re={from:this.doc.sel.primary().head,to:null},ce==null&&(ce=this.options.cursorScrollMargin)):typeof re=="number"?re={from:Mt(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=ce||0,re.from.line!=null?xo(this,re):Wi(this,re.from,re.to,re.margin)}),setSize:ds(function(re,ce){var Pe=this,mt=function(pr){return typeof pr=="number"||/^\d+$/.test(String(pr))?pr+"px":pr};re!=null&&(this.display.wrapper.style.width=mt(re)),ce!=null&&(this.display.wrapper.style.height=mt(ce)),this.options.lineWrapping&&Xi(this);var Wt=this.display.viewFrom;this.doc.iter(Wt,this.display.viewTo,function(sr){if(sr.widgets){for(var pr=0;pr<sr.widgets.length;pr++)if(sr.widgets[pr].noHScroll){rt(Pe,Wt,"widget");break}}++Wt}),this.curOp.forceUpdate=!0,nt(this,"refresh",this)}),operation:function(ce){return ho(this,ce)},startOperation:function(){return Lo(this)},endOperation:function(){return Ba(this)},refresh:ds(function(){var re=this.display.cachedTextHeight;ha(this),this.curOp.forceUpdate=!0,ga(this),fa(this,this.doc.scrollLeft,this.doc.scrollTop),qo(this.display),(re==null||Math.abs(re-qa(this.display))>.5||this.options.lineWrapping)&&go(this),nt(this,"refresh",this)}),swapDoc:ds(function(re){var ce=this.doc;return ce.cm=null,this.state.selectingText&&this.state.selectingText(),Fi(this,re),ga(this),this.display.input.reset(),fa(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,wr(this,"swapDoc",this,ce),ce}),phrase:function(ce){var Pe=this.options.phrases;return Pe&&Object.prototype.hasOwnProperty.call(Pe,ce)?Pe[ce]:ce},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}},Dt(k),k.registerHelper=function(re,ce,Pe){Z.hasOwnProperty(re)||(Z[re]=k[re]={_global:[]}),Z[re][ce]=Pe},k.registerGlobalHelper=function(re,ce,Pe,mt){k.registerHelper(re,ce,mt),Z[re]._global.push({pred:Pe,val:mt})}}function Er(k,K,Z,re,ce){var Pe=K,mt=Z,Wt=Le(k,K.line),sr=ce&&k.direction=="rtl"?-Z:Z;function pr(){var na=K.line+sr;return na<k.first||na>=k.first+k.size?!1:(K=new Mt(na,K.ch,K.sticky),Wt=Le(k,na))}function wn(na){var xa;if(re=="codepoint"){var Ma=Wt.text.charCodeAt(K.ch+(re>0?0:-1));isNaN(Ma)?xa=null:xa=new Mt(K.line,Math.max(0,Math.min(Wt.text.length,K.ch+Z*(Ma>=55296&&Ma<56320?2:1))),-Z)}else ce?xa=Xl(k.cm,Wt,K,Z):xa=wu(Wt,K,Z);if(xa==null)if(!na&&pr())K=fu(ce,k.cm,Wt,K.line,sr);else return!1;else K=xa;return!0}if(re=="char"||re=="codepoint")wn();else if(re=="column")wn(!0);else if(re=="word"||re=="group")for(var Rn=null,ei=re=="group",ni=k.cm&&k.cm.getHelper(K,"wordChars"),Mi=!0;!(Z<0&&!wn(!Mi));Mi=!1){var Zi=Wt.text.charAt(K.ch)||`
|
|
|
`,da=G(Zi,ni)?"w":ei&&Zi==`
|
|
|
`?"n":!ei||/\s/.test(Zi)?null:"p";if(ei&&!Mi&&!da&&(da="s"),Rn&&Rn!=da){Z<0&&(Z=1,wn(),K.sticky="after");break}if(da&&(Rn=da),Z>0&&!wn(!Mi))break}var ia=Eo(k,K,Pe,mt,!0);return lt(Pe,ia)&&(ia.hitSide=!0),ia}function Kr(k,K,Z,re){var ce=k.doc,Pe=K.left,mt;if(re=="page"){var Wt=Math.min(k.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),sr=Math.max(Wt-.5*qa(k.display),3);mt=(Z>0?K.bottom:K.top)+Z*sr}else re=="line"&&(mt=Z>0?K.bottom+3:K.top-3);for(var pr;!(pr=Va(k,Pe,mt),!pr.outside);){if(Z<0?mt<=0:mt>=ce.height){pr.hitSide=!0;break}mt+=Z*5}return pr}var qr=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};qr.prototype.init=function(k){var K=this,Z=this,re=Z.cm,ce=Z.div=k.lineDiv;Nr(ce,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function Pe(Wt){for(var sr=Wt.target;sr;sr=sr.parentNode){if(sr==ce)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(sr.className))break}return!1}Te(ce,"paste",function(Wt){if(!Pe(Wt)||Ot(re,Wt)||Ft(Wt,re))return;c<=11&&setTimeout(bo(re,function(){return K.updateFromDOM()}),20)}),Te(ce,"compositionstart",function(Wt){K.composing={data:Wt.data,done:!1}}),Te(ce,"compositionupdate",function(Wt){K.composing||(K.composing={data:Wt.data,done:!1})}),Te(ce,"compositionend",function(Wt){K.composing&&(Wt.data!=K.composing.data&&K.readFromDOMSoon(),K.composing.done=!0)}),Te(ce,"touchstart",function(){return Z.forceCompositionEnd()}),Te(ce,"input",function(){K.composing||K.readFromDOMSoon()});function mt(Wt){if(!Pe(Wt)||Ot(re,Wt))return;if(re.somethingSelected())Ge({lineWise:!1,text:re.getSelections()}),Wt.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var sr=Yt(re);Ge({lineWise:!0,text:sr.text}),Wt.type=="cut"&&re.operation(function(){re.setSelections(sr.ranges,0,ue),re.replaceSelection("",null,"cut")})}else return;if(Wt.clipboardData){Wt.clipboardData.clearData();var pr=ye.text.join(`
|
|
|
`);if(Wt.clipboardData.setData("Text",pr),Wt.clipboardData.getData("Text")==pr){Wt.preventDefault();return}}var wn=Qr(),Rn=wn.firstChild;re.display.lineSpace.insertBefore(wn,re.display.lineSpace.firstChild),Rn.value=ye.text.join(`
|
|
|
`);var ei=document.activeElement;U(Rn),setTimeout(function(){re.display.lineSpace.removeChild(wn),ei.focus(),ei==ce&&Z.showPrimarySelection()},50)}Te(ce,"copy",mt),Te(ce,"cut",mt)},qr.prototype.screenReaderLabelChanged=function(k){k?this.div.setAttribute("aria-label",k):this.div.removeAttribute("aria-label")},qr.prototype.prepareSelection=function(){var k=_r(this.cm,!1);return k.focus=document.activeElement==this.div,k},qr.prototype.showSelection=function(k,K){if(!k||!this.cm.display.view.length)return;(k.focus||K)&&this.showPrimarySelection(),this.showMultipleSelections(k)},qr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qr.prototype.showPrimarySelection=function(){var k=this.getSelection(),K=this.cm,Z=K.doc.sel.primary(),re=Z.from(),ce=Z.to();if(K.display.viewTo==K.display.viewFrom||re.line>=K.display.viewTo||ce.line<K.display.viewFrom){k.removeAllRanges();return}var Pe=Oi(K,k.anchorNode,k.anchorOffset),mt=Oi(K,k.focusNode,k.focusOffset);if(Pe&&!Pe.bad&&mt&&!mt.bad&&at(_t(Pe,mt),re)==0&&at(Bt(Pe,mt),ce)==0)return;var Wt=K.display.view,sr=re.line>=K.display.viewFrom&&Cn(K,re)||{node:Wt[0].measure.map[2],offset:0},pr=ce.line<K.display.viewTo&&Cn(K,ce);if(!pr){var wn=Wt[Wt.length-1].measure,Rn=wn.maps?wn.maps[wn.maps.length-1]:wn.map;pr={node:Rn[Rn.length-1],offset:Rn[Rn.length-2]-Rn[Rn.length-3]}}if(!sr||!pr){k.removeAllRanges();return}var ei=k.rangeCount&&k.getRangeAt(0),ni;try{ni=N(sr.node,sr.offset,pr.offset,pr.node)}catch(Mi){}ni&&(!C&&K.state.focused?(k.collapse(sr.node,sr.offset),ni.collapsed||(k.removeAllRanges(),k.addRange(ni))):(k.removeAllRanges(),k.addRange(ni)),ei&&k.anchorNode==null?k.addRange(ei):C&&this.startGracePeriod()),this.rememberSelection()},qr.prototype.startGracePeriod=function(){var k=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){k.gracePeriod=!1,k.selectionChanged()&&k.cm.operation(function(){return k.cm.curOp.selectionChanged=!0})},20)},qr.prototype.showMultipleSelections=function(k){_(this.cm.display.cursorDiv,k.cursors),_(this.cm.display.selectionDiv,k.selection)},qr.prototype.rememberSelection=function(){var k=this.getSelection();this.lastAnchorNode=k.anchorNode,this.lastAnchorOffset=k.anchorOffset,this.lastFocusNode=k.focusNode,this.lastFocusOffset=k.focusOffset},qr.prototype.selectionInEditor=function(){var k=this.getSelection();if(!k.rangeCount)return!1;var K=k.getRangeAt(0).commonAncestorContainer;return D(this.div,K)},qr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},qr.prototype.blur=function(){this.div.blur()},qr.prototype.getField=function(){return this.div},qr.prototype.supportsTouch=function(){return!0},qr.prototype.receivedFocus=function(){var k=this;this.selectionInEditor()?this.pollSelection():ho(this.cm,function(){return k.cm.curOp.selectionChanged=!0});function K(){k.cm.state.focused&&(k.pollSelection(),k.polling.set(k.cm.options.pollInterval,K))}this.polling.set(this.cm.options.pollInterval,K)},qr.prototype.selectionChanged=function(){var k=this.getSelection();return k.anchorNode!=this.lastAnchorNode||k.anchorOffset!=this.lastAnchorOffset||k.focusNode!=this.lastFocusNode||k.focusOffset!=this.lastFocusOffset},qr.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var k=this.getSelection(),K=this.cm;if(l&&i&&this.cm.display.gutterSpecs.length&&oi(k.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var Z=Oi(K,k.anchorNode,k.anchorOffset),re=Oi(K,k.focusNode,k.focusOffset);Z&&re&&ho(K,function(){Zo(K.doc,be(Z,re),ue),(Z.bad||re.bad)&&(K.curOp.selectionChanged=!0)})},qr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var k=this.cm,K=k.display,Z=k.doc.sel.primary(),re=Z.from(),ce=Z.to();if(re.ch==0&&re.line>k.firstLine()&&(re=Mt(re.line-1,Le(k.doc,re.line-1).length)),ce.ch==Le(k.doc,ce.line).text.length&&ce.line<k.lastLine()&&(ce=Mt(ce.line+1,0)),re.line<K.viewFrom||ce.line>K.viewTo-1)return!1;var Pe,mt,Wt;re.line==K.viewFrom||(Pe=Fa(k,re.line))==0?(mt=Nt(K.view[0].line),Wt=K.view[0].node):(mt=Nt(K.view[Pe].line),Wt=K.view[Pe-1].node.nextSibling);var sr=Fa(k,ce.line),pr,wn;if(sr==K.view.length-1?(pr=K.viewTo-1,wn=K.lineDiv.lastChild):(pr=Nt(K.view[sr+1].line)-1,wn=K.view[sr+1].node.previousSibling),!Wt)return!1;for(var Rn=k.doc.splitLines(ji(k,Wt,wn,mt,pr)),ei=Ze(k.doc,Mt(mt,0),Mt(pr,Le(k.doc,pr).text.length));Rn.length>1&&ei.length>1;)if(pe(Rn)==pe(ei))Rn.pop(),ei.pop(),pr--;else if(Rn[0]==ei[0])Rn.shift(),ei.shift(),mt++;else break;for(var ni=0,Mi=0,Zi=Rn[0],da=ei[0],ia=Math.min(Zi.length,da.length);ni<ia&&Zi.charCodeAt(ni)==da.charCodeAt(ni);)++ni;for(var na=pe(Rn),xa=pe(ei),Ma=Math.min(na.length-(Rn.length==1?ni:0),xa.length-(ei.length==1?ni:0));Mi<Ma&&na.charCodeAt(na.length-Mi-1)==xa.charCodeAt(xa.length-Mi-1);)++Mi;if(Rn.length==1&&ei.length==1&&mt==re.line)for(;ni&&ni>re.ch&&na.charCodeAt(na.length-Mi-1)==xa.charCodeAt(xa.length-Mi-1);)ni--,Mi++;Rn[Rn.length-1]=na.slice(0,na.length-Mi).replace(/^\u200b+/,""),Rn[0]=Rn[0].slice(ni).replace(/\u200b+$/,"");var To=Mt(mt,ni),no=Mt(pr,ei.length?pe(ei).length-Mi:0);if(Rn.length>1||Rn[0]||at(To,no))return hl(k.doc,Rn,To,no,"+input"),!0},qr.prototype.ensurePolled=function(){this.forceCompositionEnd()},qr.prototype.reset=function(){this.forceCompositionEnd()},qr.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},qr.prototype.readFromDOMSoon=function(){var k=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(k.readDOMTimeout=null,k.composing)if(k.composing.done)k.composing=null;else return;k.updateFromDOM()},80)},qr.prototype.updateFromDOM=function(){var k=this;(this.cm.isReadOnly()||!this.pollContent())&&ho(this.cm,function(){return ha(k.cm)})},qr.prototype.setUneditable=function(k){k.contentEditable="false"},qr.prototype.onKeyPress=function(k){if(k.charCode==0||this.composing)return;k.preventDefault(),this.cm.isReadOnly()||bo(this.cm,st)(this.cm,String.fromCharCode(k.charCode==null?k.keyCode:k.charCode),0)},qr.prototype.readOnlyChanged=function(k){this.div.contentEditable=String(k!="nocursor")},qr.prototype.onContextMenu=function(){},qr.prototype.resetPosition=function(){},qr.prototype.needsContentAttribute=!0;function Cn(k,K){var Z=Ti(k,K.line);if(!Z||Z.hidden)return null;var re=Le(k.doc,K.line),ce=xi(Z,re,K.line),Pe=ot(re,k.doc.direction),mt="left";if(Pe){var Wt=xe(Pe,K.ch);mt=Wt%2?"right":"left"}var sr=ua(ce.map,K.ch,mt);return sr.offset=sr.collapse=="right"?sr.end:sr.start,sr}function oi(k){for(var K=k;K;K=K.parentNode)if(/CodeMirror-gutter-wrapper/.test(K.className))return!0;return!1}function hi(k,K){return K&&(k.bad=!0),k}function ji(k,K,Z,re,ce){var Pe="",mt=!1,Wt=k.doc.lineSeparator(),sr=!1;function pr(ni){return function(Mi){return Mi.id==ni}}function wn(){mt&&(Pe+=Wt,sr&&(Pe+=Wt),mt=sr=!1)}function Rn(ni){ni&&(wn(),Pe+=ni)}function ei(ni){if(ni.nodeType==1){var Mi=ni.getAttribute("cm-text");if(Mi){Rn(Mi);return}var Zi=ni.getAttribute("cm-marker"),da;if(Zi){var ia=k.findMarks(Mt(re,0),Mt(ce+1,0),pr(+Zi));ia.length&&(da=ia[0].find(0))&&Rn(Ze(k.doc,da.from,da.to).join(Wt));return}if(ni.getAttribute("contenteditable")=="false")return;var na=/^(pre|div|p|li|table|br)$/i.test(ni.nodeName);if(!/^br$/i.test(ni.nodeName)&&ni.textContent.length==0)return;na&&wn();for(var xa=0;xa<ni.childNodes.length;xa++)ei(ni.childNodes[xa]);/^(pre|p)$/i.test(ni.nodeName)&&(sr=!0),na&&(mt=!0)}else ni.nodeType==3&&Rn(ni.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(ei(K),K==Z);)K=K.nextSibling,sr=!1;return Pe}function Oi(k,K,Z){var re;if(K==k.display.lineDiv){if(re=k.display.lineDiv.childNodes[Z],!re)return hi(k.clipPos(Mt(k.display.viewTo-1)),!0);K=null,Z=0}else for(re=K;;re=re.parentNode){if(!re||re==k.display.lineDiv)return null;if(re.parentNode&&re.parentNode==k.display.lineDiv)break}for(var ce=0;ce<k.display.view.length;ce++){var Pe=k.display.view[ce];if(Pe.node==re)return wa(Pe,K,Z)}}function wa(k,K,Z){var re=k.text.firstChild,ce=!1;if(!K||!D(re,K))return hi(Mt(Nt(k.line),0),!0);if(K==re&&(ce=!0,K=re.childNodes[Z],Z=0,!K)){var Pe=k.rest?pe(k.rest):k.line;return hi(Mt(Nt(Pe),Pe.text.length),ce)}var mt=K.nodeType==3?K:null,Wt=K;for(!mt&&K.childNodes.length==1&&K.firstChild.nodeType==3&&(mt=K.firstChild,Z&&(Z=mt.nodeValue.length));Wt.parentNode!=re;)Wt=Wt.parentNode;var sr=k.measure,pr=sr.maps;function wn(da,ia,na){for(var xa=-1;xa<(pr?pr.length:0);xa++)for(var Ma=xa<0?sr.map:pr[xa],To=0;To<Ma.length;To+=3){var no=Ma[To+2];if(no==da||no==ia){var Wo=Nt(xa<0?k.line:k.rest[xa]),ps=Ma[To]+na;return(na<0||no!=da)&&(ps=Ma[To+(na?1:0)]),Mt(Wo,ps)}}}var Rn=wn(mt,Wt,Z);if(Rn)return hi(Rn,ce);for(var ei=Wt.nextSibling,ni=mt?mt.nodeValue.length-Z:0;ei;ei=ei.nextSibling){if(Rn=wn(ei,ei.firstChild,0),Rn)return hi(Mt(Rn.line,Rn.ch-ni),ce);ni+=ei.textContent.length}for(var Mi=Wt.previousSibling,Zi=Z;Mi;Mi=Mi.previousSibling){if(Rn=wn(Mi,Mi.firstChild,-1),Rn)return hi(Mt(Rn.line,Rn.ch+Zi),ce);Zi+=Mi.textContent.length}}var Qi=function(K){this.cm=K,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};Qi.prototype.init=function(k){var K=this,Z=this,re=this.cm;this.createField(k);var ce=this.textarea;k.wrapper.insertBefore(this.wrapper,k.wrapper.firstChild),a&&(ce.style.width="0px"),Te(ce,"input",function(){f&&c>=9&&K.hasSelection&&(K.hasSelection=null),Z.poll()}),Te(ce,"paste",function(mt){if(Ot(re,mt)||Ft(mt,re))return;re.state.pasteIncoming=+new Date,Z.fastPoll()});function Pe(mt){if(Ot(re,mt))return;if(re.somethingSelected())Ge({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var Wt=Yt(re);Ge({lineWise:!0,text:Wt.text}),mt.type=="cut"?re.setSelections(Wt.ranges,null,ue):(Z.prevInput="",ce.value=Wt.text.join(`
|
|
|
`),U(ce))}else return;mt.type=="cut"&&(re.state.cutIncoming=+new Date)}Te(ce,"cut",Pe),Te(ce,"copy",Pe),Te(k.scroller,"paste",function(mt){if(Ln(k,mt)||Ot(re,mt))return;if(!ce.dispatchEvent){re.state.pasteIncoming=+new Date,Z.focus();return}var Wt=new Event("paste");Wt.clipboardData=mt.clipboardData,ce.dispatchEvent(Wt)}),Te(k.lineSpace,"selectstart",function(mt){Ln(k,mt)||Be(mt)}),Te(ce,"compositionstart",function(){var mt=re.getCursor("from");Z.composing&&Z.composing.range.clear(),Z.composing={start:mt,range:re.markText(mt,re.getCursor("to"),{className:"CodeMirror-composing"})}}),Te(ce,"compositionend",function(){Z.composing&&(Z.poll(),Z.composing.range.clear(),Z.composing=null)})},Qi.prototype.createField=function(k){this.wrapper=Qr(),this.textarea=this.wrapper.firstChild},Qi.prototype.screenReaderLabelChanged=function(k){k?this.textarea.setAttribute("aria-label",k):this.textarea.removeAttribute("aria-label")},Qi.prototype.prepareSelection=function(){var k=this.cm,K=k.display,Z=k.doc,re=_r(k);if(k.options.moveInputWithCursor){var ce=ja(k,Z.sel.primary().head,"div"),Pe=K.wrapper.getBoundingClientRect(),mt=K.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(K.wrapper.clientHeight-10,ce.top+mt.top-Pe.top)),re.teLeft=Math.max(0,Math.min(K.wrapper.clientWidth-10,ce.left+mt.left-Pe.left))}return re},Qi.prototype.showSelection=function(k){var K=this.cm,Z=K.display;_(Z.cursorDiv,k.cursors),_(Z.selectionDiv,k.selection),k.teTop!=null&&(this.wrapper.style.top=k.teTop+"px",this.wrapper.style.left=k.teLeft+"px")},Qi.prototype.reset=function(k){if(this.contextMenuPending||this.composing)return;var K=this.cm;if(K.somethingSelected()){this.prevInput="";var Z=K.getSelection();this.textarea.value=Z,K.state.focused&&U(this.textarea),f&&c>=9&&(this.hasSelection=Z)}else k||(this.prevInput=this.textarea.value="",f&&c>=9&&(this.hasSelection=null))},Qi.prototype.getField=function(){return this.textarea},Qi.prototype.supportsTouch=function(){return!1},Qi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!u||R()!=this.textarea))try{this.textarea.focus()}catch(k){}},Qi.prototype.blur=function(){this.textarea.blur()},Qi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qi.prototype.receivedFocus=function(){this.slowPoll()},Qi.prototype.slowPoll=function(){var k=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){k.poll(),k.cm.state.focused&&k.slowPoll()})},Qi.prototype.fastPoll=function(){var k=!1,K=this;K.pollingFast=!0;function Z(){var re=K.poll();!re&&!k?(k=!0,K.polling.set(60,Z)):(K.pollingFast=!1,K.slowPoll())}K.polling.set(20,Z)},Qi.prototype.poll=function(){var k=this,K=this.cm,Z=this.textarea,re=this.prevInput;if(this.contextMenuPending||!K.state.focused||ar(Z)&&!re&&!this.composing||K.isReadOnly()||K.options.disableInput||K.state.keySeq)return!1;var ce=Z.value;if(ce==re&&!K.somethingSelected())return!1;if(f&&c>=9&&this.hasSelection===ce||h&&/[\uf700-\uf7ff]/.test(ce))return K.display.input.reset(),!1;if(K.doc.sel==K.display.selForContextMenu){var Pe=ce.charCodeAt(0);if(Pe==8203&&!re&&(re="\u200B"),Pe==8666)return this.reset(),this.cm.execCommand("undo")}for(var mt=0,Wt=Math.min(re.length,ce.length);mt<Wt&&re.charCodeAt(mt)==ce.charCodeAt(mt);)++mt;return ho(K,function(){st(K,ce.slice(mt),re.length-mt,null,k.composing?"*compose":null),ce.length>1e3||ce.indexOf(`
|
|
|
`)>-1?Z.value=k.prevInput="":k.prevInput=ce,k.composing&&(k.composing.range.clear(),k.composing.range=K.markText(k.composing.start,K.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qi.prototype.onKeyPress=function(){f&&c>=9&&(this.hasSelection=null),this.fastPoll()},Qi.prototype.onContextMenu=function(k){var K=this,Z=K.cm,re=Z.display,ce=K.textarea;K.contextMenuPending&&K.contextMenuPending();var Pe=Ja(Z,k),mt=re.scroller.scrollTop;if(!Pe||n)return;var Wt=Z.options.resetSelectionOnContextMenu;Wt&&Z.doc.sel.contains(Pe)==-1&&bo(Z,Zo)(Z.doc,be(Pe),ue);var sr=ce.style.cssText,pr=K.wrapper.style.cssText,wn=K.wrapper.offsetParent.getBoundingClientRect();K.wrapper.style.cssText="position: static",ce.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(k.clientY-wn.top-5)+"px; left: "+(k.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(),Z.somethingSelected()||(ce.value=K.prevInput=" "),K.contextMenuPending=ni,re.selForContextMenu=Z.doc.sel,clearTimeout(re.detectingSelectAll);function ei(){if(ce.selectionStart!=null){var Zi=Z.somethingSelected(),da="\u200B"+(Zi?ce.value:"");ce.value="\u21DA",ce.value=da,K.prevInput=Zi?"":"\u200B",ce.selectionStart=1,ce.selectionEnd=da.length,re.selForContextMenu=Z.doc.sel}}function ni(){if(K.contextMenuPending!=ni)return;if(K.contextMenuPending=!1,K.wrapper.style.cssText=pr,ce.style.cssText=sr,f&&c<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=mt),ce.selectionStart!=null){(!f||f&&c<9)&&ei();var Zi=0,da=function ia(){re.selForContextMenu==Z.doc.sel&&ce.selectionStart==0&&ce.selectionEnd>0&&K.prevInput=="\u200B"?bo(Z,$o)(Z):Zi++<10?re.detectingSelectAll=setTimeout(ia,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(da,200)}}if(f&&c>=9&&ei(),x){Fe(k);var Mi=function Zi(){ze(window,"mouseup",Zi),setTimeout(ni,20)};Te(window,"mouseup",Mi)}else setTimeout(ni,50)},Qi.prototype.readOnlyChanged=function(k){k||this.reset(),this.textarea.disabled=k=="nocursor",this.textarea.readOnly=!!k},Qi.prototype.setUneditable=function(){},Qi.prototype.needsContentAttribute=!1;function Ua(k,K){if(K=K?j(K):{},K.value=k.value,!K.tabindex&&k.tabIndex&&(K.tabindex=k.tabIndex),!K.placeholder&&k.placeholder&&(K.placeholder=k.placeholder),K.autofocus==null){var Z=R();K.autofocus=Z==k||k.getAttribute("autofocus")!=null&&Z==document.body}function re(){k.value=Wt.getValue()}var ce;if(k.form&&(Te(k.form,"submit",re),!K.leaveSubmitMethodAlone)){var Pe=k.form;ce=Pe.submit;try{var mt=Pe.submit=function(){re(),Pe.submit=ce,Pe.submit(),Pe.submit=mt}}catch(sr){}}K.finishInit=function(sr){sr.save=re,sr.getTextArea=function(){return k},sr.toTextArea=function(){sr.toTextArea=isNaN,re(),k.parentNode.removeChild(sr.getWrapperElement()),k.style.display="",k.form&&(ze(k.form,"submit",re),!K.leaveSubmitMethodAlone&&typeof k.form.submit=="function"&&(k.form.submit=ce))}},k.style.display="none";var Wt=Tr(function(sr){return k.parentNode.insertBefore(sr,k.nextSibling)},K);return Wt}function Sa(k){k.off=ze,k.on=Te,k.wheelEventPixels=hn,k.Doc=Ys,k.splitLines=Zr,k.countColumn=W,k.findColumn=Oe,k.isWordChar=Q,k.Pass=$,k.signal=nt,k.Line=Wn,k.changeEnd=Ke,k.scrollbarModel=jo,k.Pos=Mt,k.cmpPos=at,k.modes=dt,k.mimeModes=Hr,k.resolveMode=Vn,k.getMode=gi,k.modeExtensions=bn,k.extendMode=Mn,k.copyState=jt,k.startState=Ie,k.innerMode=St,k.commands=Kl,k.keyMap=Tl,k.keyName=su,k.isModifierKey=ou,k.lookupKey=Cl,k.normalizeKeyMap=Cu,k.StringStream=_e,k.SharedTextMarker=kl,k.TextMarker=$s,k.LineWidget=Xs,k.e_preventDefault=Be,k.e_stopPropagation=ie,k.e_stop=Fe,k.addClass=P,k.contains=D,k.rmClass=S,k.keyNames=bl}We(Tr),Cr(Tr);var So="iter insert remove copy getEditor constructor".split(" ");for(var Fo in Ys.prototype)Ys.prototype.hasOwnProperty(Fo)&&z(So,Fo)<0&&(Tr.prototype[Fo]=function(k){return function(){return k.apply(this.doc,arguments)}}(Ys.prototype[Fo]));return Dt(Ys),Tr.inputStyles={textarea:Qi,contenteditable:qr},Tr.defineMode=function(k){!Tr.defaults.mode&&k!="null"&&(Tr.defaults.mode=k),dn.apply(this,arguments)},Tr.defineMIME=Nn,Tr.defineMode("null",function(){return{token:function(K){return K.skipToEnd()}}}),Tr.defineMIME("text/plain","null"),Tr.defineExtension=function(k,K){Tr.prototype[k]=K},Tr.defineDocExtension=function(k,K){Ys.prototype[k]=K},Tr.fromTextArea=Ua,Sa(Tr),Tr.version="5.58.2",Tr})},Vy0f:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("iYpf"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},W2nI:function(H,B,d){var O=d("IwbS"),E=d("ProS"),C=d("bYtY"),A=["itemStyle","opacity"],w=["emphasis","itemStyle","opacity"],m=["lineStyle","opacity"],f=["emphasis","lineStyle","opacity"];function c(s,t){return s.getVisual("opacity")||s.getModel().get(t)}function o(s,t,a){var l=s.getGraphicEl(),u=c(s,t);a!=null&&(u==null&&(u=1),u*=a),l.downplay&&l.downplay(),l.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",u)})}function r(s,t){var a=c(s,t),l=s.getGraphicEl();l.traverse(function(u){u.type!=="group"&&u.setStyle("opacity",a)}),l.highlight&&l.highlight()}var 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(s,t){var a=t.extent;s.moveTo(t.x1,t.y1),s.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient==="vertical"?(s.lineTo(t.x2+a,t.y2),s.bezierCurveTo(t.cpx2+a,t.cpy2,t.cpx1+a,t.cpy1,t.x1+a,t.y1)):(s.lineTo(t.x2,t.y2+a),s.bezierCurveTo(t.cpx2,t.cpy2+a,t.cpx1,t.cpy1+a,t.x1,t.y1+a)),s.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),n=E.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(s,t,a){var l=this,u=s.getGraph(),h=this.group,p=s.layoutInfo,g=p.width,v=p.height,y=s.getData(),x=s.getData("edge"),T=s.get("orient");this._model=s,h.removeAll(),h.attr("position",[p.x,p.y]),u.eachEdge(function(S){var b=new i;b.dataIndex=S.dataIndex,b.seriesIndex=s.seriesIndex,b.dataType="edge";var _=S.getModel("lineStyle"),I=_.get("curveness"),L=S.node1.getLayout(),N=S.node1.getModel(),D=N.get("localX"),R=N.get("localY"),P=S.node2.getLayout(),M=S.node2.getModel(),U=M.get("localX"),F=M.get("localY"),j=S.getLayout(),W,V,z,Y,$,ue,ne,ge;b.shape.extent=Math.max(1,j.dy),b.shape.orient=T,T==="vertical"?(W=(D!=null?D*g:L.x)+j.sy,V=(R!=null?R*v:L.y)+L.dy,z=(U!=null?U*g:P.x)+j.ty,Y=F!=null?F*v:P.y,$=W,ue=V*(1-I)+Y*I,ne=z,ge=V*I+Y*(1-I)):(W=(D!=null?D*g:L.x)+L.dx,V=(R!=null?R*v:L.y)+j.sy,z=U!=null?U*g:P.x,Y=(F!=null?F*v:P.y)+j.ty,$=W*(1-I)+z*I,ue=V,ne=W*I+z*(1-I),ge=Y),b.setShape({x1:W,y1:V,x2:z,y2:Y,cpx1:$,cpy1:ue,cpx2:ne,cpy2:ge}),b.setStyle(_.getItemStyle());switch(b.style.fill){case"source":b.style.fill=S.node1.getVisual("color");break;case"target":b.style.fill=S.node2.getVisual("color");break}O.setHoverStyle(b,S.getModel("emphasis.lineStyle").getItemStyle()),h.add(b),x.setItemGraphicEl(S.dataIndex,b)}),u.eachNode(function(S){var b=S.getLayout(),_=S.getModel(),I=_.get("localX"),L=_.get("localY"),N=_.getModel("label"),D=_.getModel("emphasis.label"),R=new O.Rect({shape:{x:I!=null?I*g:b.x,y:L!=null?L*v:b.y,width:b.dx,height:b.dy},style:_.getModel("itemStyle").getItemStyle()}),P=S.getModel("emphasis.itemStyle").getItemStyle();O.setLabelStyle(R.style,P,N,D,{labelFetcher:s,labelDataIndex:S.dataIndex,defaultText:S.id,isRectText:!0}),R.setStyle("fill",S.getVisual("color")),O.setHoverStyle(R,P),h.add(R),y.setItemGraphicEl(S.dataIndex,R),R.dataType="node"}),y.eachItemGraphicEl(function(S,b){var _=y.getItemModel(b);_.get("draggable")&&(S.drift=function(I,L){l._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=L,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:s.id,dataIndex:y.getRawIndex(b),localX:this.shape.x/g,localY:this.shape.y/v})},S.ondragend=function(){l._focusAdjacencyDisabled=!1},S.draggable=!0,S.cursor="move"),S.highlight=function(){this.trigger("emphasis")},S.downplay=function(){this.trigger("normal")},S.focusNodeAdjHandler&&S.off("mouseover",S.focusNodeAdjHandler),S.unfocusNodeAdjHandler&&S.off("mouseout",S.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(S.on("mouseover",S.focusNodeAdjHandler=function(){l._focusAdjacencyDisabled||(l._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:s.id,dataIndex:S.dataIndex}))}),S.on("mouseout",S.unfocusNodeAdjHandler=function(){l._focusAdjacencyDisabled||l._dispatchUnfocus(a)}))}),x.eachItemGraphicEl(function(S,b){var _=x.getItemModel(b);S.focusNodeAdjHandler&&S.off("mouseover",S.focusNodeAdjHandler),S.unfocusNodeAdjHandler&&S.off("mouseout",S.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(S.on("mouseover",S.focusNodeAdjHandler=function(){l._focusAdjacencyDisabled||(l._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:s.id,edgeDataIndex:S.dataIndex}))}),S.on("mouseout",S.unfocusNodeAdjHandler=function(){l._focusAdjacencyDisabled||l._dispatchUnfocus(a)}))}),!this._data&&s.get("animation")&&h.setClipPath(e(h.getBoundingRect(),s,function(){h.removeClipPath()})),this._data=s.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(s){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,s.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(s,t,a,l){var u=s.getData(),h=u.graph,p=l.dataIndex,g=u.getItemModel(p),v=l.edgeDataIndex;if(p==null&&v==null)return;var y=h.getNodeByIndex(p),x=h.getEdgeByIndex(v);if(h.eachNode(function(S){o(S,A,.1)}),h.eachEdge(function(S){o(S,m,.1)}),y){r(y,w);var T=g.get("focusNodeAdjacency");T==="outEdges"?C.each(y.outEdges,function(S){if(S.dataIndex<0)return;r(S,f),r(S.node2,w)}):T==="inEdges"?C.each(y.inEdges,function(S){if(S.dataIndex<0)return;r(S,f),r(S.node1,w)}):T==="allEdges"&&C.each(y.edges,function(S){if(S.dataIndex<0)return;r(S,f),S.node1!==y&&r(S.node1,w),S.node2!==y&&r(S.node2,w)})}x&&(r(x,f),r(x.node1,w),r(x.node2,w))},unfocusNodeAdjacency:function(s,t,a,l){var u=s.getGraph();u.eachNode(function(h){o(h,A)}),u.eachEdge(function(h){o(h,m)})}});function e(s,t,a){var l=new O.Rect({shape:{x:s.x-10,y:s.y-10,width:0,height:s.height+20}});return O.initProps(l,{shape:{width:s.width+20}},t,a),l}H.exports=n},W4dC:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=C.each,w=C.createHashMap,m=d("7DRL"),f=d("TIY9"),c=d("yS9w"),o=d("mFDi"),r={geoJSON:f,svg:c},i={load:function(t,a,l){var u=[],h=w(),p=w(),g,v=s(t);return A(v,function(y){var x=r[y.type].load(t,y,l);A(x.regions,function(S){var b=S.name;a&&a.hasOwnProperty(b)&&(S=S.cloneShallow(b=a[b])),u.push(S),h.set(b,S),p.set(b,S.center)});var T=x.boundingRect;T&&(g?g.union(T):g=T.clone())}),{regions:u,regionsMap:h,nameCoordMap:p,boundingRect:g||new o(0,0,0,0)}},makeGraphic:n("makeGraphic"),removeGraphic:n("removeGraphic")};function n(t){return function(a,l){var u=s(a),h=[];return A(u,function(p){var g=r[p.type][t];g&&h.push(g(a,p,l))}),h}}function e(t){}function s(t){var a=m.retrieveMap(t)||[];return a}H.exports=i},WGYa:function(H,B,d){var O=d("7yuC"),E=O.forceLayout,C=d("HF/U"),A=C.simpleLayout,w=d("lOQZ"),m=w.circularLayout,f=d("OELB"),c=f.linearMap,o=d("QBsz"),r=d("bYtY");function i(n){n.eachSeriesByType("graph",function(e){var s=e.coordinateSystem;if(s&&s.type!=="view")return;if(e.get("layout")==="force"){var t=e.preservedPoints||{},a=e.getGraph(),l=a.data,u=a.edgeData,h=e.getModel("force"),p=h.get("initLayout");e.preservedPoints?l.each(function(N){var D=l.getId(N);l.setItemLayout(N,t[D]||[NaN,NaN])}):!p||p==="none"?A(e):p==="circular"&&m(e,"value");var g=l.getDataExtent("value"),v=u.getDataExtent("value"),y=h.get("repulsion"),x=h.get("edgeLength");r.isArray(y)||(y=[y,y]),r.isArray(x)||(x=[x,x]),x=[x[1],x[0]];var T=l.mapArray("value",function(N,D){var R=l.getItemLayout(D),P=c(N,g,y);return isNaN(P)&&(P=(y[0]+y[1])/2),{w:P,rep:P,fixed:l.getItemModel(D).get("fixed"),p:!R||isNaN(R[0])||isNaN(R[1])?null:R}}),S=u.mapArray("value",function(N,D){var R=a.getEdgeByIndex(D),P=c(N,v,x);isNaN(P)&&(P=(x[0]+x[1])/2);var M=R.getModel();return{n1:T[R.node1.dataIndex],n2:T[R.node2.dataIndex],d:P,curveness:M.get("lineStyle.curveness")||0,ignoreForceLayout:M.get("ignoreForceLayout")}}),s=e.coordinateSystem,b=s.getBoundingRect(),_=E(T,S,{rect:b,gravity:h.get("gravity"),friction:h.get("friction")}),I=_.step;_.step=function(N){for(var D=0,R=T.length;D<R;D++)T[D].fixed&&o.copy(T[D].p,a.getNodeByIndex(D).getLayout());I(function(P,M,U){for(var F=0,j=P.length;F<j;F++)P[F].fixed||a.getNodeByIndex(F).setLayout(P[F].p),t[l.getId(F)]=P[F].p;for(var F=0,j=M.length;F<j;F++){var W=M[F],V=a.getEdgeByIndex(F),z=W.n1.p,Y=W.n2.p,$=V.getLayout();$=$?$.slice():[],$[0]=$[0]||[],$[1]=$[1]||[],o.copy($[0],z),o.copy($[1],Y),+W.curveness&&($[2]=[(z[0]+Y[0])/2-(z[1]-Y[1])*W.curveness,(z[1]+Y[1])/2-(Y[0]-z[0])*W.curveness]),V.setLayout($)}N&&N(U)})},e.forceLayout=_,e.preservedPoints=t,_.step()}else e.forceLayout=null})}H.exports=i},"WN+l":function(H,B,d){var O=d("bYtY"),E=d("IwbS");function C(w,m,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(),s=o.getTicksCoords({tickModel:r,clamp:!0});if(!s.length)return;var t=n.length,a=w.__splitAreaColors,l=O.createHashMap(),u=0;if(a)for(var h=0;h<s.length;h++){var p=a.get(s[h].tickValue);if(p!=null){u=(p+(t-1)*h)%t;break}}var g=o.toGlobalCoord(s[0].coord),v=i.getAreaStyle();n=O.isArray(n)?n:[n];for(var h=1;h<s.length;h++){var y=o.toGlobalCoord(s[h].coord),x,T,S,b;o.isHorizontal()?(x=g,T=e.y,S=y-x,b=e.height,g=x+S):(x=e.x,T=g,S=e.width,b=y-T,g=T+b);var _=s[h-1].tickValue;_!=null&&l.set(_,u),m.add(new E.Rect({anid:_!=null?"area_"+_:null,shape:{x,y:T,width:S,height:b},style:O.defaults({fill:n[u]},v),silent:!0})),u=(u+1)%t}w.__splitAreaColors=l}function A(w){w.__splitAreaColors=null}B.rectCoordAxisBuildSplitArea=C,B.rectCoordAxisHandleRemove=A},WXVj:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("Bqw1")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="MinusSquareOutlined";var c=A.forwardRef(f);B.default=c},WYAk:function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){(function(){var E=O,C=E.lib,A=C.Base,w=E.enc,m=w.Utf8,f=E.algo,c=f.HMAC=A.extend({init:function(r,i){r=this._hasher=new r.init,typeof i=="string"&&(i=m.parse(i));var n=r.blockSize,e=n*4;i.sigBytes>e&&(i=r.finalize(i)),i.clamp();for(var s=this._oKey=i.clone(),t=this._iKey=i.clone(),a=s.words,l=t.words,u=0;u<n;u++)a[u]^=1549556828,l[u]^=909522486;s.sigBytes=t.sigBytes=e,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var i=this._hasher,n=i.finalize(r);i.reset();var e=i.finalize(this._oKey.clone().concat(n));return e}})})()})},Wqna:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=C.isObject,w=C.each,m=C.map,f=C.indexOf,c=C.retrieve,o=d("+TT/"),r=o.getLayoutRect,i=d("aX7z"),n=i.createScaleByModel,e=i.ifAxisCrossZero,s=i.niceScaleExtent,t=i.estimateLabelUnionRect,a=d("y+lR"),l=d("7AJT"),u=d("IDmD"),h=d("7hqr"),p=h.getStackedDimension;d("jtI2");function g(N,D,R){return N.getCoordSysModel()===D}function v(N,D,R){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(N,D,R),this.model=N}var y=v.prototype;y.type="grid",y.axisPointerEnabled=!0,y.getRect=function(){return this._rect},y.update=function(N,D){var R=this._axesMap;this._updateScale(N,this.model),w(R.x,function(M){s(M.scale,M.model)}),w(R.y,function(M){s(M.scale,M.model)});var P={};w(R.x,function(M){x(R,"y",M,P)}),w(R.y,function(M){x(R,"x",M,P)}),this.resize(this.model,D)};function x(N,D,R,P){R.getAxesOnZeroOf=function(){return U?[U]:[]};var M=N[D],U,F=R.model,j=F.get("axisLine.onZero"),W=F.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])&&!P[z(M[V])]){U=M[V];break}U&&(P[z(U)]=!0);function z(Y){return Y.dim+"_"+Y.index}}function T(N){return N&&N.type!=="category"&&N.type!=="time"&&e(N)}y.resize=function(N,D,R){var P=r(N.getBoxLayoutParams(),{width:D.getWidth(),height:D.getHeight()});this._rect=P;var M=this._axesList;U(),!R&&N.get("containLabel")&&(w(M,function(F){if(!F.model.get("axisLabel.inside")){var j=t(F);if(j){var W=F.isHorizontal()?"height":"width",V=F.model.get("axisLabel.margin");P[W]-=j[W]+V,F.position==="top"?P.y+=j.height+V:F.position==="left"&&(P.x+=j.width+V)}}}),U());function U(){w(M,function(F){var j=F.isHorizontal(),W=j?[0,P.width]:[0,P.height],V=F.inverse?1:0;F.setExtent(W[V],W[1-V]),S(F,j?P.x:P.y)})}},y.getAxis=function(N,D){var R=this._axesMap[N];if(R!=null){if(D==null){for(var P in R)if(R.hasOwnProperty(P))return R[P]}return R[D]}},y.getAxes=function(){return this._axesList.slice()},y.getCartesian=function(N,D){if(N!=null&&D!=null){var R="x"+N+"y"+D;return this._coordsMap[R]}A(N)&&(D=N.yAxisIndex,N=N.xAxisIndex);for(var P=0,M=this._coordsList;P<M.length;P++)if(M[P].getAxis("x").index===N||M[P].getAxis("y").index===D)return M[P]},y.getCartesians=function(){return this._coordsList.slice()},y.convertToPixel=function(N,D,R){var P=this._findConvertTarget(N,D);return P.cartesian?P.cartesian.dataToPoint(R):P.axis?P.axis.toGlobalCoord(P.axis.dataToCoord(R)):null},y.convertFromPixel=function(N,D,R){var P=this._findConvertTarget(N,D);return P.cartesian?P.cartesian.pointToData(R):P.axis?P.axis.coordToData(P.axis.toLocalCoord(R)):null},y._findConvertTarget=function(N,D){var R=D.seriesModel,P=D.xAxisModel||R&&R.getReferringComponents("xAxis")[0],M=D.yAxisModel||R&&R.getReferringComponents("yAxis")[0],U=D.gridModel,F=this._coordsList,j,W;if(R)j=R.coordinateSystem,f(F,j)<0&&(j=null);else if(P&&M)j=this.getCartesian(P.componentIndex,M.componentIndex);else if(P)W=this.getAxis("x",P.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 D=this._coordsList[0];if(D)return D.containPoint(N)},y._initCartesian=function(N,D,R){var P={left:!1,right:!1,top:!1,bottom:!1},M={x:{},y:{}},U={x:0,y:0};if(D.eachComponent("xAxis",F("x"),this),D.eachComponent("yAxis",F("y"),this),!U.x||!U.y){this._axesMap={},this._axesList=[];return}this._axesMap=M,w(M.x,function(j,W){w(M.y,function(V,z){var Y="x"+W+"y"+z,$=new a(Y);$.grid=this,$.model=N,this._coordsMap[Y]=$,this._coordsList.push($),$.addAxis(j),$.addAxis(V)},this)},this);function F(j){return function(W,V){if(!g(W,N,D))return;var z=W.get("position");j==="x"?z!=="top"&&z!=="bottom"&&(z=P.bottom?"top":"bottom"):z!=="left"&&z!=="right"&&(z=P.left?"right":"left"),P[z]=!0;var Y=new l(j,n(W),[0,0],W.get("type"),z),$=Y.type==="category";Y.onBand=$&&W.get("boundaryGap"),Y.inverse=W.get("inverse"),W.axis=Y,Y.model=W,Y.grid=this,Y.index=V,this._axesList.push(Y),M[j][V]=Y,U[j]++}}},y._updateScale=function(N,D){w(this._axesList,function(P){P.scale.setExtent(Infinity,-Infinity)}),N.eachSeries(function(P){if(I(P)){var M=_(P,N),U=M[0],F=M[1];if(!g(U,D,N)||!g(F,D,N))return;var j=this.getCartesian(U.componentIndex,F.componentIndex),W=P.getData(),V=j.getAxis("x"),z=j.getAxis("y");W.type==="list"&&(R(W,V,P),R(W,z,P))}},this);function R(P,M,U){w(P.mapDimension(M.dim,!0),function(F){M.scale.unionExtentFromData(P,p(P,F))})}},y.getTooltipAxes=function(N){var D=[],R=[];return w(this.getCartesians(),function(P){var M=N!=null&&N!=="auto"?P.getAxis(N):P.getBaseAxis(),U=P.getOtherAxis(M);f(D,M)<0&&D.push(M),f(R,U)<0&&R.push(U)}),{baseAxes:D,otherAxes:R}};function S(N,D){var R=N.getExtent(),P=R[0]+R[1];N.toGlobalCoord=N.dim==="x"?function(M){return M+D}:function(M){return P-M+D},N.toLocalCoord=N.dim==="x"?function(M){return M-D}:function(M){return P-M+D}}var b=["xAxis","yAxis"];function _(N,D){return m(b,function(R){var P=N.getReferringComponents(R)[0];return P})}function I(N){return N.get("coordinateSystem")==="cartesian2d"}v.create=function(N,D){var R=[];return N.eachComponent("grid",function(P,M){var U=new v(P,N,D);U.name="grid_"+M,U.resize(P,D,!0),P.coordinateSystem=U,R.push(U)}),N.eachSeries(function(P){if(!I(P))return;var M=_(P,N),U=M[0],F=M[1],j=U.getCoordSysModel(),W=j.coordinateSystem;P.coordinateSystem=W.getCartesian(U.componentIndex,F.componentIndex)}),R},v.dimensions=v.prototype.dimensions=a.prototype.dimensions,u.register("cartesian2d",v);var L=v;H.exports=L},"X+im":function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("KQeH")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="DownloadOutlined";var c=A.forwardRef(f);B.default=c},"X2/X":function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},XAae:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("hwYd"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},XOKv:function(H,B,d){d("OXB0"),d("SA4+")},Xmg4:function(H,B,d){var O=d("bYtY"),E=d("LPTA"),C=E.devicePixelRatio,A=d("K2GJ"),w=d("3C/r");function m(){return!1}function f(r,i,n){var e=O.createCanvas(),s=i.getWidth(),t=i.getHeight(),a=e.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=s+"px",a.height=t+"px",e.setAttribute("data-zr-dom-id",r)),e.width=s*n,e.height=t*n,e}var c=function(i,n,e){var s;e=e||C,typeof i=="string"?s=f(i,n,e):O.isObject(i)&&(s=i,i=s.id),this.id=i,this.dom=s;var t=s.style;t&&(s.onselectstart=m,t["-webkit-user-select"]="none",t["user-select"]="none",t["-webkit-touch-callout"]="none",t["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",t.padding=0,t.margin=0,t["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=n,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};c.prototype={constructor:c,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var 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,s=this.dom,t=s.style,a=this.domBack;t&&(t.width=i+"px",t.height=n+"px"),s.width=i*e,s.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,s=this.ctx,t=e.width,a=e.height,n=n||this.clearColor,l=this.motionBlur&&!i,u=this.lastFrameAlpha,h=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,t/h,a/h)),s.clearRect(0,0,t,a),n&&n!=="transparent"){var p;n.colorStops?(p=n.__canvasGradient||A.getGradient(s,n,{x:0,y:0,width:t,height:a}),n.__canvasGradient=p):n.image&&(p=w.prototype.getCanvasPattern.call(n,s)),s.save(),s.fillStyle=p||n,s.fillRect(0,0,t,a),s.restore()}if(l){var g=this.domBack;s.save(),s.globalAlpha=u,s.drawImage(g,0,0,t,a),s.restore()}}};var o=c;H.exports=o},Xnb7:function(H,B,d){var O=d("1RvN"),E=new O(50);function C(f){if(typeof f=="string"){var c=E.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=E.get(f),e={hostEl:o,cb:r,cbPayload:i};return n?(c=n.image,!m(c)&&n.pending.push(e)):(c=new Image,c.onload=c.onerror=w,E.put(f,c.__cachedImgObj={image:c,pending:[e]}),c.src=c.__zrImageSrc=f),c}else return f;else return c}function w(){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 m(f){return f&&f.width&&f.height}B.findExistImage=C,B.createOrUpdateImage=A,B.isImageReady=m},XpcN:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("oVpE"),m=w.createSymbol,f=d("IwbS"),c=d("eRkO"),o=c.makeBackground,r=d("+TT/"),i=A.curry,n=A.each,e=f.Group,s=C.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new e),this._backgroundEl,this.group.add(this._selectorGroup=new e),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(h,p,g){var v=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!h.get("show",!0))return;var y=h.get("align"),x=h.get("orient");(!y||y==="auto")&&(y=h.get("left")==="right"&&x==="vertical"?"right":"left");var T=h.get("selector",!0),S=h.get("selectorPosition",!0);T&&(!S||S==="auto")&&(S=x==="horizontal"?"end":"start"),this.renderInner(y,h,p,g,T,x,S);var b=h.getBoxLayoutParams(),_={width:g.getWidth(),height:g.getHeight()},I=h.get("padding"),L=r.getLayoutRect(b,_,I),N=this.layoutInner(h,y,L,v,T,S),D=r.getLayoutRect(A.defaults({width:N.width,height:N.height},b),_,I);this.group.attr("position",[D.x-N.x,D.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,g,v,y,x,T){var S=this.getContentGroup(),b=A.createHashMap(),_=p.get("selectedMode"),I=[];g.eachRawSeries(function(L){!L.get("legendHoverLink")&&I.push(L.id)}),n(p.getData(),function(L,N){var D=L.get("name");if(!this.newlineDisabled&&(D===""||D===`
|
|
|
`)){S.add(new e({newline:!0}));return}var R=g.getSeriesByName(D)[0];if(b.get(D))return;if(R){var P=R.getData(),M=P.getVisual("color"),U=P.getVisual("borderColor");typeof M=="function"&&(M=M(R.getDataParams(0))),typeof U=="function"&&(U=U(R.getDataParams(0)));var F=P.getVisual("legendSymbol")||"roundRect",j=P.getVisual("symbol"),W=this._createItem(D,N,L,p,F,j,h,M,U,_);W.on("click",i(a,D,null,v,I)).on("mouseover",i(l,R.name,null,v,I)).on("mouseout",i(u,R.name,null,v,I)),b.set(D,!0)}else g.eachRawSeries(function(V){if(b.get(D))return;if(V.legendVisualProvider){var z=V.legendVisualProvider;if(!z.containName(D))return;var Y=z.indexOfName(D),$=z.getItemVisual(Y,"color"),ue=z.getItemVisual(Y,"borderColor"),ne="roundRect",ge=this._createItem(D,N,L,p,ne,null,h,$,ue,_);ge.on("click",i(a,null,D,v,I)).on("mouseover",i(l,null,D,v,I)).on("mouseout",i(u,null,D,v,I)),b.set(D,!0)}},this)},this),y&&this._createSelector(y,p,v,x,T)},_createSelector:function(h,p,g,v,y){var x=this.getSelectorGroup();n(h,function(S){T(S)});function T(S){var b=S.type,_=new f.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){g.dispatchAction({type:b==="all"?"legendAllSelect":"legendInverseSelect"})}});x.add(_);var I=p.getModel("selectorLabel"),L=p.getModel("emphasis.selectorLabel");f.setLabelStyle(_.style,_.hoverStyle={},I,L,{defaultText:S.title,isRectText:!1}),f.setHoverStyle(_)}},_createItem:function(h,p,g,v,y,x,T,S,b,_){var I=v.get("itemWidth"),L=v.get("itemHeight"),N=v.get("inactiveColor"),D=v.get("inactiveBorderColor"),R=v.get("symbolKeepAspect"),P=v.getModel("itemStyle"),M=v.isSelected(h),U=new e,F=g.getModel("textStyle"),j=g.get("icon"),W=g.getModel("tooltip"),V=W.parentModel;y=j||y;var z=m(y,0,0,I,L,M?S:N,R==null?!0:R);if(U.add(t(z,y,P,b,D,M)),!j&&x&&(x!==y||x==="none")){var Y=L*.8;x==="none"&&(x="circle");var $=m(x,(I-Y)/2,(L-Y)/2,Y,Y,M?S:N,R==null?!0:R);U.add(t($,x,P,b,D,M))}var ue=T==="left"?I+5:-5,ne=T,ge=v.get("formatter"),Oe=h;typeof ge=="string"&&ge?Oe=ge.replace("{name}",h!=null?h:""):typeof ge=="function"&&(Oe=ge(h)),U.add(new f.Text({style:f.setTextStyle({},F,{text:Oe,x:ue,y:L/2,textFill:M?F.getTextColor():N,textAlign:ne,textVerticalAlign:"middle"})}));var De=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(De),U.eachChild(function(He){He.silent=!0}),De.silent=!_,this.getContentGroup().add(U),f.setHoverStyle(U),U.__legendDataIndex=p,U},layoutInner:function(h,p,g,v,y,x){var T=this.getContentGroup(),S=this.getSelectorGroup();r.box(h.get("orient"),T,h.get("itemGap"),g.width,g.height);var b=T.getBoundingRect(),_=[-b.x,-b.y];if(y){r.box("horizontal",S,h.get("selectorItemGap",!0));var I=S.getBoundingRect(),L=[-I.x,-I.y],N=h.get("selectorButtonGap",!0),D=h.getOrient().index,R=D===0?"width":"height",P=D===0?"height":"width",M=D===0?"y":"x";x==="end"?L[D]+=b[R]+N:_[D]+=I[R]+N,L[1-D]+=b[P]/2-I[P]/2,S.attr("position",L),T.attr("position",_);var U={x:0,y:0};return U[R]=b[R]+N+I[R],U[P]=Math.max(b[P],I[P]),U[M]=Math.min(0,I[M]+L[1-D]),U}else return T.attr("position",_),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function t(h,p,g,v,y,x){var T;return p!=="line"&&p.indexOf("empty")<0?(T=g.getItemStyle(),h.style.stroke=v,x||(T.stroke=y)):T=g.getItemStyle(["borderWidth","borderColor"]),h.setStyle(T)}function a(h,p,g,v){u(h,p,g,v),g.dispatchAction({type:"legendToggleSelect",name:h!=null?h:p}),l(h,p,g,v)}function l(h,p,g,v){var y=g.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||g.dispatchAction({type:"highlight",seriesName:h,name:p,excludeSeriesId:v})}function u(h,p,g,v){var y=g.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||g.dispatchAction({type:"downplay",seriesName:h,name:p,excludeSeriesId:v})}H.exports=s},XuBP:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},XxSj:function(H,B,d){var O=d("bYtY"),E=d("Qe9p"),C=d("OELB"),A=C.linearMap,w=O.each,m=O.isObject,f=-1,c=function(x){var T=x.mappingMethod,S=x.type,b=this.option=O.clone(x);this.type=S,this.mappingMethod=T,this._normalizeData=g[T];var _=o[S];this.applyVisual=_.applyVisual,this.getColorMapper=_.getColorMapper,this._doMap=_._doMap[T],T==="piecewise"?(n(b),r(b)):T==="category"?b.categories?i(b):n(b,!0):(O.assert(T!=="linear"||b.dataExtent),n(b))};c.prototype={constructor:c,mapValueToVisual:function(x){var T=this._normalizeData(x);return this._doMap(T,x)},getNormalizer:function(){return O.bind(this._normalizeData,this)}};var o=c.visualHandlers={color:{applyVisual:t("color"),getColorMapper:function(){var x=this.option;return O.bind(x.mappingMethod==="category"?function(T,S){return!S&&(T=this._normalizeData(T)),a.call(this,T)}:function(T,S,b){var _=!!b;return!S&&(T=this._normalizeData(T)),b=E.fastLerp(T,x.parsedVisual,b),_?b:E.stringify(b,"rgba")},this)},_doMap:{linear:function(x){return E.stringify(E.fastLerp(x,this.option.parsedVisual),"rgba")},category:a,piecewise:function(x,T){var S=h.call(this,T);return S==null&&(S=E.stringify(E.fastLerp(x,this.option.parsedVisual),"rgba")),S},fixed:l}},colorHue:e(function(x,T){return E.modifyHSL(x,T)}),colorSaturation:e(function(x,T){return E.modifyHSL(x,null,T)}),colorLightness:e(function(x,T){return E.modifyHSL(x,null,null,T)}),colorAlpha:e(function(x,T){return E.modifyAlpha(x,T)}),opacity:{applyVisual:t("opacity"),_doMap:u([0,1])},liftZ:{applyVisual:t("liftZ"),_doMap:{linear:l,category:l,piecewise:l,fixed:l}},symbol:{applyVisual:function(x,T,S){var b=this.mapValueToVisual(x);if(O.isString(b))S("symbol",b);else if(m(b))for(var _ in b)b.hasOwnProperty(_)&&S(_,b[_])},_doMap:{linear:s,category:a,piecewise:function(x,T){var S=h.call(this,T);return S==null&&(S=s.call(this,x)),S},fixed:l}},symbolSize:{applyVisual:t("symbolSize"),_doMap:u([0,1])}};function r(x){var T=x.pieceList;x.hasSpecialVisual=!1,O.each(T,function(S,b){S.originIndex=b,S.visual!=null&&(x.hasSpecialVisual=!0)})}function i(x){var T=x.categories,S=x.visual,b=x.categoryMap={};if(w(T,function(L,N){b[L]=N}),!O.isArray(S)){var _=[];O.isObject(S)?w(S,function(L,N){var D=b[N];_[D!=null?D:f]=L}):_[f]=S,S=p(x,_)}for(var I=T.length-1;I>=0;I--)S[I]==null&&(delete b[T[I]],T.pop())}function n(x,T){var S=x.visual,b=[];O.isObject(S)?w(S,function(I){b.push(I)}):S!=null&&b.push(S);var _={color:1,symbol:1};!T&&b.length===1&&!_.hasOwnProperty(x.type)&&(b[1]=b[0]),p(x,b)}function e(x){return{applyVisual:function(T,S,b){T=this.mapValueToVisual(T),b("color",x(S("color"),T))},_doMap:u([0,1])}}function s(x){var T=this.option.visual;return T[Math.round(A(x,[0,1],[0,T.length-1],!0))]||{}}function t(x){return function(T,S,b){b(x,this.mapValueToVisual(T))}}function a(x){var T=this.option.visual;return T[this.option.loop&&x!==f?x%T.length:x]}function l(){return this.option.visual[0]}function u(x){return{linear:function(T){return A(T,x,this.option.visual,!0)},category:a,piecewise:function(T,S){var b=h.call(this,S);return b==null&&(b=A(T,x,this.option.visual,!0)),b},fixed:l}}function h(x){var T=this.option,S=T.pieceList;if(T.hasSpecialVisual){var b=c.findPieceIndex(x,S),_=S[b];if(_&&_.visual)return _.visual[this.type]}}function p(x,T){return x.visual=T,x.type==="color"&&(x.parsedVisual=O.map(T,function(S){return E.parse(S)})),T}var g={linear:function(x){return A(x,this.option.dataExtent,[0,1],!0)},piecewise:function(x){var T=this.option.pieceList,S=c.findPieceIndex(x,T,!0);if(S!=null)return A(S,[0,T.length-1],[0,1],!0)},category:function(x){var T=this.option.categories?this.option.categoryMap[x]:x;return T==null?f:T},fixed:O.noop};c.listVisualTypes=function(){var x=[];return O.each(o,function(T,S){x.push(S)}),x},c.addVisualHandler=function(x,T){o[x]=T},c.isValidType=function(x){return o.hasOwnProperty(x)},c.eachVisual=function(x,T,S){O.isObject(x)?O.each(x,T,S):T.call(S,x)},c.mapVisual=function(x,T,S){var b,_=O.isArray(x)?[]:O.isObject(x)?{}:(b=!0,null);return c.eachVisual(x,function(I,L){var N=T.call(S,I,L);b?_=N:_[L]=N}),_},c.retrieveVisuals=function(x){var T={},S;return x&&w(o,function(b,_){x.hasOwnProperty(_)&&(T[_]=x[_],S=!0)}),S?T:null},c.prepareVisualTypes=function(x){if(m(x)){var T=[];w(x,function(S,b){T.push(b)}),x=T}else if(O.isArray(x))x=x.slice();else return[];return x.sort(function(S,b){return b==="color"&&S!=="color"&&S.indexOf("color")===0?1:-1}),x},c.dependsOn=function(x,T){return T==="color"?!!(x&&x.indexOf(T)===0):x===T},c.findPieceIndex=function(x,T,S){for(var b,_=Infinity,I=0,L=T.length;I<L;I++){var N=T[I].value;if(N!=null){if(N===x||typeof N=="string"&&N===x+"")return I;S&&M(N,I)}}for(var I=0,L=T.length;I<L;I++){var D=T[I],R=D.interval,P=D.close;if(R){if(R[0]===-Infinity){if(v(P[1],x,R[1]))return I}else if(R[1]===Infinity){if(v(P[0],R[0],x))return I}else if(v(P[0],R[0],x)&&v(P[1],x,R[1]))return I;S&&M(R[0],I),S&&M(R[1],I)}}if(S)return x===Infinity?T.length-1:x===-Infinity?0:b;function M(U,F){var j=Math.abs(U-x);j<_&&(_=j,b=F)}};function v(x,T,S){return x?T<=S:T<S}var y=c;H.exports=y},XzQk:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("KpQ+"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},Y1PL:function(H,B,d){"use strict";d.r(B),d.d(B,"ResizableTextArea",function(){return y});var O=d("wx14"),E=d("1OyB"),C=d("vuIU"),A=d("Ji7U"),w=d("LK+K"),m=d("q1tI"),f=d("VTBJ"),c=d("rePB"),o=d("t23M"),r=d("bT9E"),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
|
|
|
`,s=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],t={},a;function l(S){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=S.getAttribute("id")||S.getAttribute("data-reactid")||S.getAttribute("name");if(b&&t[_])return t[_];var I=window.getComputedStyle(S),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")),D=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),R=s.map(function(M){return"".concat(M,":").concat(I.getPropertyValue(M))}).join(";"),P={sizingStyle:R,paddingSize:N,borderSize:D,boxSizing:L};return b&&_&&(t[_]=P),P}function u(S){var b=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)),S.getAttribute("wrap")?a.setAttribute("wrap",S.getAttribute("wrap")):a.removeAttribute("wrap");var L=l(S,b),N=L.paddingSize,D=L.borderSize,R=L.boxSizing,P=L.sizingStyle;a.setAttribute("style","".concat(P,";").concat(e)),a.value=S.value||S.placeholder||"";var M=Number.MIN_SAFE_INTEGER,U=Number.MAX_SAFE_INTEGER,F=a.scrollHeight,j;if(R==="border-box"?F+=D:R==="content-box"&&(F-=N),_!==null||I!==null){a.value=" ";var W=a.scrollHeight-N;_!==null&&(M=W*_,R==="border-box"&&(M=M+N+D),F=Math.max(M,F)),I!==null&&(U=W*I,R==="border-box"&&(U=U+N+D),j=F>U?"":"hidden",F=Math.min(U,F))}return{height:F,minHeight:M,maxHeight:U,overflowY:j,resize:"none"}}var h=d("Gytx"),p=d.n(h),g;(function(S){S[S.NONE=0]="NONE",S[S.RESIZING=1]="RESIZING",S[S.RESIZED=2]="RESIZED"})(g||(g={}));var v=function(S){Object(A.a)(_,S);var b=Object(w.a)(_);function _(I){var L;return Object(E.a)(this,_),L=b.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 D=L.state.resizeStatus,R=L.props,P=R.autoSize,M=R.onResize;if(D!==g.NONE)return;typeof M=="function"&&M(N),P&&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 D=N.minRows,R=N.maxRows,P=u(L.textArea,!1,D,R);L.setState({textareaStyles:P,resizeStatus:g.RESIZING},function(){cancelAnimationFrame(L.resizeFrameId),L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:g.RESIZED},function(){L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:g.NONE}),L.fixFirefoxAutoScroll()})})})})},L.renderTextArea=function(){var N=L.props,D=N.prefixCls,R=D===void 0?"rc-textarea":D,P=N.autoSize,M=N.onResize,U=N.className,F=N.disabled,j=L.state,W=j.textareaStyles,V=j.resizeStatus,z=Object(r.a)(L.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Y=n()(R,U,Object(c.a)({},"".concat(R,"-disabled"),F));"value"in z&&(z.value=z.value||"");var $=Object(f.a)(Object(f.a)(Object(f.a)({},L.props.style),W),V===g.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(o.a,{onResize:L.handleResize,disabled:!(P||M)},m.createElement("textarea",Object(O.a)({},z,{className:Y,style:$,ref:L.saveTextArea})))},L.state={textareaStyles:{},resizeStatus:g.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(D){}}},{key:"render",value:function(){return this.renderTextArea()}}]),_}(m.Component),y=v,x=function(S){Object(A.a)(_,S);var b=Object(w.a)(_);function _(I){var L;Object(E.a)(this,_),L=b.call(this,I),L.resizableTextArea=void 0,L.focus=function(){L.resizableTextArea.textArea.focus()},L.saveTextArea=function(D){L.resizableTextArea=D},L.handleChange=function(D){var R=L.props.onChange;L.setValue(D.target.value,function(){L.resizableTextArea.resizeTextarea()}),R&&R(D)},L.handleKeyDown=function(D){var R=L.props,P=R.onPressEnter,M=R.onKeyDown;D.keyCode===13&&P&&P(D),M&&M(D)};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 m.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}}]),_}(m.Component),T=B.default=x},YH21:function(H,B,d){var O=d("H6uX");B.Dispatcher=O;var E=d("ItGF"),C=d("Ze12"),A=C.isCanvasEl,w=C.transformCoordWithViewport,m=typeof window!="undefined"&&!!window.addEventListener,f=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function o(u,h,p,g){return p=p||{},g||!E.canvasSupported?r(u,h,p):E.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(E.domSupported&&u.getBoundingClientRect){var g=h.clientX,v=h.clientY;if(A(u)){var y=u.getBoundingClientRect();p.zrX=g-y.left,p.zrY=v-y.top;return}else if(w(c,u,g,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 g=h.type,v=g&&g.indexOf("touch")>=0;if(!v)o(u,h,h,p),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var y=g!=="touchend"?h.targetTouches[0]:h.changedTouches[0];y&&o(u,y,h,p)}var x=h.button;return h.which==null&&x!==void 0&&f.test(h.type)&&(h.which=x&1?1:x&2?3:x&4?2:0),h}function e(u,h,p,g){m?u.addEventListener(h,p,g):u.attachEvent("on"+h,p)}function s(u,h,p,g){m?u.removeEventListener(h,p,g):u.detachEvent("on"+h,p)}var t=m?function(u){u.preventDefault(),u.stopPropagation(),u.cancelBubble=!0}:function(u){u.returnValue=!1,u.cancelBubble=!0};function a(u){return u.which===2||u.which===3}function l(u){return u.which>1}B.clientToLocal=o,B.getNativeEvent=i,B.normalizeEvent=n,B.addEventListener=e,B.removeEventListener=s,B.stop=t,B.isMiddleOrRightButtonOnMouseUpDown=a,B.notLeftMouse=l},YJ9k:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function E(w,m){for(var f=0;f<m.length;f++){var c=m[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(w,c.key,c)}}function C(w,m,f){return m&&E(w.prototype,m),f&&E(w,f),w}var A=function(){function w(){O(this,w),this._listeners=new Map}return C(w,[{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}}]),w}();B.default=A},YJCA:function(H,B,d){"use strict";d.d(B,"a",function(){return J}),d.d(B,"b",function(){return Ce});var O=d("wx14"),E=d("ODXe"),C=d("vpQ4"),A=d("1OyB"),w=d("vuIU"),m=d("md7G"),f=d("foSv"),c=d("Ji7U"),o=d("JX7q"),r=d("rePB"),i=d("q1tI"),n=d.n(i),e=d("17x9"),s=d.n(e),t=d("i8i4"),a=d.n(t),l=d("QLaP"),u=d.n(l),h=d("KQm4"),p=function(){function Ee(){Object(A.a)(this,Ee),Object(r.a)(this,"refs",{})}return Object(w.a)(Ee,[{key:"add",value:function(fe,xe){this.refs[fe]||(this.refs[fe]=[]),this.refs[fe].push(xe)}},{key:"remove",value:function(fe,xe){var Qe=this.getIndex(fe,xe);Qe!==-1&&this.refs[fe].splice(Qe,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var fe=this;return this.refs[this.active.collection].find(function(xe){var Qe=xe.node;return Qe.sortableInfo.index==fe.active.index})}},{key:"getIndex",value:function(fe,xe){return this.refs[fe].indexOf(xe)}},{key:"getOrderedRefs",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[fe].sort(g)}}]),Ee}();function g(Ee,le){var fe=Ee.node.sortableInfo.index,xe=le.node.sortableInfo.index;return fe-xe}function v(Ee,le,fe){return Ee=Ee.slice(),Ee.splice(fe<0?Ee.length+fe:fe,0,Ee.splice(le,1)[0]),Ee}function y(Ee,le){return Object.keys(Ee).reduce(function(fe,xe){return le.indexOf(xe)===-1&&(fe[xe]=Ee[xe]),fe},{})}var x={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},T=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Ee=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],le=(Array.prototype.slice.call(Ee).join("").match(/-(moz|webkit|ms)-/)||Ee.OLink===""&&["","o"])[1];switch(le){case"ms":return"ms";default:return le&&le.length?le[0].toUpperCase()+le.substr(1):""}}();function S(Ee,le){Object.keys(le).forEach(function(fe){Ee.style[fe]=le[fe]})}function b(Ee,le){Ee.style["".concat(T,"Transform")]=le==null?"":"translate3d(".concat(le.x,"px,").concat(le.y,"px,0)")}function _(Ee,le){Ee.style["".concat(T,"TransitionDuration")]=le==null?"":"".concat(le,"ms")}function I(Ee,le){for(;Ee;){if(le(Ee))return Ee;Ee=Ee.parentNode}return null}function L(Ee,le,fe){return Math.max(Ee,Math.min(fe,le))}function N(Ee){return Ee.substr(-2)==="px"?parseFloat(Ee):0}function D(Ee){var le=window.getComputedStyle(Ee);return{bottom:N(le.marginBottom),left:N(le.marginLeft),right:N(le.marginRight),top:N(le.marginTop)}}function R(Ee,le){var fe=le.displayName||le.name;return fe?"".concat(Ee,"(").concat(fe,")"):Ee}function P(Ee,le){var fe=Ee.getBoundingClientRect();return{top:fe.top+le.top,left:fe.left+le.left}}function M(Ee){return Ee.touches&&Ee.touches.length?{x:Ee.touches[0].pageX,y:Ee.touches[0].pageY}:Ee.changedTouches&&Ee.changedTouches.length?{x:Ee.changedTouches[0].pageX,y:Ee.changedTouches[0].pageY}:{x:Ee.pageX,y:Ee.pageY}}function U(Ee){return Ee.touches&&Ee.touches.length||Ee.changedTouches&&Ee.changedTouches.length}function F(Ee,le){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Ee)return;var xe={left:fe.left+Ee.offsetLeft,top:fe.top+Ee.offsetTop};return Ee.parentNode===le?xe:F(Ee.parentNode,le,xe)}function j(Ee,le,fe){return Ee<fe&&Ee>le?Ee-1:Ee>fe&&Ee<le?Ee+1:Ee}function W(Ee){var le=Ee.lockOffset,fe=Ee.width,xe=Ee.height,Qe=le,ot=le,Je="px";if(typeof le=="string"){var Te=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(le);u()(Te!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',le),Qe=parseFloat(le),ot=parseFloat(le),Je=Te[1]}return u()(isFinite(Qe)&&isFinite(ot),"lockOffset value should be a finite. Given %s",le),Je==="%"&&(Qe=Qe*fe/100,ot=ot*xe/100),{x:Qe,y:ot}}function V(Ee){var le=Ee.height,fe=Ee.width,xe=Ee.lockOffset,Qe=Array.isArray(xe)?xe:[xe,xe];u()(Qe.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",xe);var ot=Object(E.a)(Qe,2),Je=ot[0],Te=ot[1];return[W({height:le,lockOffset:Je,width:fe}),W({height:le,lockOffset:Te,width:fe})]}function z(Ee){var le=window.getComputedStyle(Ee),fe=/(auto|scroll)/,xe=["overflow","overflowX","overflowY"];return xe.find(function(Qe){return fe.test(le[Qe])})}function Y(Ee){return Ee instanceof HTMLElement?z(Ee)?Ee:Y(Ee.parentNode):null}function $(Ee){var le=window.getComputedStyle(Ee);return le.display==="grid"?{x:N(le.gridColumnGap),y:N(le.gridRowGap)}:{x:0,y:0}}var ue={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},ne={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ge(Ee){var le="input, textarea, select, canvas, [contenteditable]",fe=Ee.querySelectorAll(le),xe=Ee.cloneNode(!0),Qe=Object(h.a)(xe.querySelectorAll(le));return Qe.forEach(function(ot,Je){if(ot.type!=="file"&&(ot.value=fe[Je].value),ot.type==="radio"&&ot.name&&(ot.name="__sortableClone__".concat(ot.name)),ot.tagName===ne.Canvas&&fe[Je].width>0&&fe[Je].height>0){var Te=ot.getContext("2d");Te.drawImage(fe[Je],0,0)}}),xe}function Oe(Ee){var le,fe,xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=le=function(Qe){Object(c.a)(ot,Qe);function ot(){return Object(A.a)(this,ot),Object(m.a)(this,Object(f.a)(ot).apply(this,arguments))}return Object(w.a)(ot,[{key:"componentDidMount",value:function(){var Te=Object(t.findDOMNode)(this);Te.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return u()(xe.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 Te=xe.withRef?"wrappedInstance":null;return Object(i.createElement)(Ee,Object(O.a)({ref:Te},this.props))}}]),ot}(i.Component),Object(r.a)(le,"displayName",R("sortableHandle",Ee)),fe}function De(Ee){return Ee.sortableHandle!=null}var He=function(){function Ee(le,fe){Object(A.a)(this,Ee),this.container=le,this.onScrollCallback=fe}return Object(w.a)(Ee,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(fe){var xe=this,Qe=fe.translate,ot=fe.minTranslate,Je=fe.maxTranslate,Te=fe.width,et=fe.height,ze={x:0,y:0},nt={x:1,y:1},Ot={x:10,y:10},Ct=this.container,Tt=Ct.scrollTop,Dt=Ct.scrollLeft,Be=Ct.scrollHeight,ie=Ct.scrollWidth,X=Ct.clientHeight,Fe=Ct.clientWidth,Ne=Tt===0,q=Be-Tt-X===0,ht=Dt===0,Rt=ie-Dt-Fe===0;Qe.y>=Je.y-et/2&&!q?(ze.y=1,nt.y=Ot.y*Math.abs((Je.y-et/2-Qe.y)/et)):Qe.x>=Je.x-Te/2&&!Rt?(ze.x=1,nt.x=Ot.x*Math.abs((Je.x-Te/2-Qe.x)/Te)):Qe.y<=ot.y+et/2&&!Ne?(ze.y=-1,nt.y=Ot.y*Math.abs((Qe.y-et/2-ot.y)/et)):Qe.x<=ot.x+Te/2&&!ht&&(ze.x=-1,nt.x=Ot.x*Math.abs((Qe.x-Te/2-ot.x)/Te)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(ze.x!==0||ze.y!==0)&&(this.interval=setInterval(function(){xe.isAutoScrolling=!0;var ut={left:nt.x*ze.x,top:nt.y*ze.y};xe.container.scrollTop+=ut.top,xe.container.scrollLeft+=ut.left,xe.onScrollCallback(ut)},5))}}]),Ee}();function pe(Ee){var le=Ee.node;return{height:le.offsetHeight,width:le.offsetWidth}}function Ue(Ee){var le=[ne.Input,ne.Textarea,ne.Select,ne.Option,ne.Button];return le.indexOf(Ee.target.tagName)!==-1?!0:!!I(Ee.target,function(fe){return fe.contentEditable==="true"})}var oe={axis:s.a.oneOf(["x","y","xy"]),contentWindow:s.a.any,disableAutoscroll:s.a.bool,distance:s.a.number,getContainer:s.a.func,getHelperDimensions:s.a.func,helperClass:s.a.string,helperContainer:s.a.oneOfType([s.a.func,typeof HTMLElement=="undefined"?s.a.any:s.a.instanceOf(HTMLElement)]),hideSortableGhost:s.a.bool,keyboardSortingTransitionDuration:s.a.number,lockAxis:s.a.string,lockOffset:s.a.oneOfType([s.a.number,s.a.string,s.a.arrayOf(s.a.oneOfType([s.a.number,s.a.string]))]),lockToContainerEdges:s.a.bool,onSortEnd:s.a.func,onSortMove:s.a.func,onSortOver:s.a.func,onSortStart:s.a.func,pressDelay:s.a.number,pressThreshold:s.a.number,keyCodes:s.a.shape({lift:s.a.arrayOf(s.a.number),drop:s.a.arrayOf(s.a.number),cancel:s.a.arrayOf(s.a.number),up:s.a.arrayOf(s.a.number),down:s.a.arrayOf(s.a.number)}),shouldCancelStart:s.a.func,transitionDuration:s.a.number,updateBeforeSortStart:s.a.func,useDragHandle:s.a.bool,useWindowAsScrollContainer:s.a.bool},ee={lift:[ue.SPACE],drop:[ue.SPACE],cancel:[ue.ESC],up:[ue.UP,ue.LEFT],down:[ue.DOWN,ue.RIGHT]},Xe={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:pe,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ee,shouldCancelStart:Ue,transitionDuration:300,useWindowAsScrollContainer:!1},se=Object.keys(oe);function Q(Ee){u()(!(Ee.distance&&Ee.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function G(Ee,le){try{var fe=Ee()}catch(xe){return le(!0,xe)}return fe&&fe.then?fe.then(le.bind(null,!1),le.bind(null,!0)):le(!1,value)}function J(Ee){var le,fe,xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=le=function(Qe){Object(c.a)(ot,Qe);function ot(Je){var Te;return Object(A.a)(this,ot),Te=Object(m.a)(this,Object(f.a)(ot).call(this,Je)),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"state",{}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleStart",function(et){var ze=Te.props,nt=ze.distance,Ot=ze.shouldCancelStart;if(et.button===2||Ot(et))return;Te.touched=!0,Te.position=M(et);var Ct=I(et.target,function(Fe){return Fe.sortableInfo!=null});if(Ct&&Ct.sortableInfo&&Te.nodeIsChild(Ct)&&!Te.state.sorting){var Tt=Te.props.useDragHandle,Dt=Ct.sortableInfo,Be=Dt.index,ie=Dt.collection,X=Dt.disabled;if(X)return;if(Tt&&!I(et.target,De))return;Te.manager.active={collection:ie,index:Be},!U(et)&&et.target.tagName===ne.Anchor&&et.preventDefault(),nt||(Te.props.pressDelay===0?Te.handlePress(et):Te.pressTimer=setTimeout(function(){return Te.handlePress(et)},Te.props.pressDelay))}}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"nodeIsChild",function(et){return et.sortableInfo.manager===Te.manager}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleMove",function(et){var ze=Te.props,nt=ze.distance,Ot=ze.pressThreshold;if(!Te.state.sorting&&Te.touched&&!Te._awaitingUpdateBeforeSortStart){var Ct=M(et),Tt={x:Te.position.x-Ct.x,y:Te.position.y-Ct.y},Dt=Math.abs(Tt.x)+Math.abs(Tt.y);Te.delta=Tt,!nt&&(!Ot||Dt>=Ot)?(clearTimeout(Te.cancelTimer),Te.cancelTimer=setTimeout(Te.cancel,0)):nt&&Dt>=nt&&Te.manager.isActive()&&Te.handlePress(et)}}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleEnd",function(){Te.touched=!1,Te.cancel()}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"cancel",function(){var et=Te.props.distance,ze=Te.state.sorting;ze||(et||clearTimeout(Te.pressTimer),Te.manager.active=null)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handlePress",function(et){try{var ze=Te.manager.getActive(),nt=function(){if(ze){var Ot=function(){var or=q.sortableInfo.index,Zr=D(q),ar=$(Te.container),dr=Te.scrollContainer.getBoundingClientRect(),er=Dt({index:or,node:q,collection:ht});if(Te.node=q,Te.margin=Zr,Te.gridGap=ar,Te.width=er.width,Te.height=er.height,Te.marginOffset={x:Te.margin.left+Te.margin.right+Te.gridGap.x,y:Math.max(Te.margin.top,Te.margin.bottom,Te.gridGap.y)},Te.boundingClientRect=q.getBoundingClientRect(),Te.containerBoundingRect=dr,Te.index=or,Te.newIndex=or,Te.axis={x:Tt.indexOf("x")>=0,y:Tt.indexOf("y")>=0},Te.offsetEdge=F(q,Te.container),Rt?Te.initialOffset=M(Object(C.a)({},et,{pageX:Te.boundingClientRect.left,pageY:Te.boundingClientRect.top})):Te.initialOffset=M(et),Te.initialScroll={left:Te.scrollContainer.scrollLeft,top:Te.scrollContainer.scrollTop},Te.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Te.helper=Te.helperContainer.appendChild(ge(q)),S(Te.helper,{boxSizing:"border-box",height:"".concat(Te.height,"px"),left:"".concat(Te.boundingClientRect.left-Zr.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Te.boundingClientRect.top-Zr.top,"px"),width:"".concat(Te.width,"px")}),Rt&&Te.helper.focus(),ie&&(Te.sortableGhost=q,S(q,{opacity:0,visibility:"hidden"})),Te.minTranslate={},Te.maxTranslate={},Rt){var Ht=Ne?{top:0,left:0,width:Te.contentWindow.innerWidth,height:Te.contentWindow.innerHeight}:Te.containerBoundingRect,dt=Ht.top,Hr=Ht.left,dn=Ht.width,Nn=Ht.height,Vn=dt+Nn,gi=Hr+dn;Te.axis.x&&(Te.minTranslate.x=Hr-Te.boundingClientRect.left,Te.maxTranslate.x=gi-(Te.boundingClientRect.left+Te.width)),Te.axis.y&&(Te.minTranslate.y=dt-Te.boundingClientRect.top,Te.maxTranslate.y=Vn-(Te.boundingClientRect.top+Te.height))}else Te.axis.x&&(Te.minTranslate.x=(Ne?0:dr.left)-Te.boundingClientRect.left-Te.width/2,Te.maxTranslate.x=(Ne?Te.contentWindow.innerWidth:dr.left+dr.width)-Te.boundingClientRect.left-Te.width/2),Te.axis.y&&(Te.minTranslate.y=(Ne?0:dr.top)-Te.boundingClientRect.top-Te.height/2,Te.maxTranslate.y=(Ne?Te.contentWindow.innerHeight:dr.top+dr.height)-Te.boundingClientRect.top-Te.height/2);Be&&Be.split(" ").forEach(function(bn){return Te.helper.classList.add(bn)}),Te.listenerNode=et.touches?q:Te.contentWindow,Rt?(Te.listenerNode.addEventListener("wheel",Te.handleKeyEnd,!0),Te.listenerNode.addEventListener("mousedown",Te.handleKeyEnd,!0),Te.listenerNode.addEventListener("keydown",Te.handleKeyDown)):(x.move.forEach(function(bn){return Te.listenerNode.addEventListener(bn,Te.handleSortMove,!1)}),x.end.forEach(function(bn){return Te.listenerNode.addEventListener(bn,Te.handleSortEnd,!1)})),Te.setState({sorting:!0,sortingIndex:or}),Fe&&Fe({node:q,index:or,collection:ht,isKeySorting:Rt,nodes:Te.manager.getOrderedRefs(),helper:Te.helper},et),Rt&&Te.keyMove(0)},Ct=Te.props,Tt=Ct.axis,Dt=Ct.getHelperDimensions,Be=Ct.helperClass,ie=Ct.hideSortableGhost,X=Ct.updateBeforeSortStart,Fe=Ct.onSortStart,Ne=Ct.useWindowAsScrollContainer,q=ze.node,ht=ze.collection,Rt=Te.manager.isKeySorting,ut=function(){if(typeof X=="function"){Te._awaitingUpdateBeforeSortStart=!0;var Xt=G(function(){var or=q.sortableInfo.index;return Promise.resolve(X({collection:ht,index:or,node:q,isKeySorting:Rt},et)).then(function(){})},function(or,Zr){if(Te._awaitingUpdateBeforeSortStart=!1,or)throw Zr;return Zr});if(Xt&&Xt.then)return Xt.then(function(){})}}();return ut&&ut.then?ut.then(Ot):Ot(ut)}}();return Promise.resolve(nt&&nt.then?nt.then(function(){}):void 0)}catch(Ot){return Promise.reject(Ot)}}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleSortMove",function(et){var ze=Te.props.onSortMove;typeof et.preventDefault=="function"&&et.preventDefault(),Te.updateHelperPosition(et),Te.animateNodes(),Te.autoscroll(),ze&&ze(et)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleSortEnd",function(et){var ze=Te.props,nt=ze.hideSortableGhost,Ot=ze.onSortEnd,Ct=Te.manager,Tt=Ct.active.collection,Dt=Ct.isKeySorting,Be=Te.manager.getOrderedRefs();Te.listenerNode&&(Dt?(Te.listenerNode.removeEventListener("wheel",Te.handleKeyEnd,!0),Te.listenerNode.removeEventListener("mousedown",Te.handleKeyEnd,!0),Te.listenerNode.removeEventListener("keydown",Te.handleKeyDown)):(x.move.forEach(function(q){return Te.listenerNode.removeEventListener(q,Te.handleSortMove)}),x.end.forEach(function(q){return Te.listenerNode.removeEventListener(q,Te.handleSortEnd)}))),Te.helper.parentNode.removeChild(Te.helper),nt&&Te.sortableGhost&&S(Te.sortableGhost,{opacity:"",visibility:""});for(var ie=0,X=Be.length;ie<X;ie++){var Fe=Be[ie],Ne=Fe.node;Fe.edgeOffset=null,Fe.boundingClientRect=null,b(Ne,null),_(Ne,null),Fe.translate=null}Te.autoScroller.clear(),Te.manager.active=null,Te.manager.isKeySorting=!1,Te.setState({sorting:!1,sortingIndex:null}),typeof Ot=="function"&&Ot({collection:Tt,newIndex:Te.newIndex,oldIndex:Te.index,isKeySorting:Dt,nodes:Be},et),Te.touched=!1}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"autoscroll",function(){var et=Te.props.disableAutoscroll,ze=Te.manager.isKeySorting;if(et){Te.autoScroller.clear();return}if(ze){var nt=Object(C.a)({},Te.translate),Ot=0,Ct=0;Te.axis.x&&(nt.x=Math.min(Te.maxTranslate.x,Math.max(Te.minTranslate.x,Te.translate.x)),Ot=Te.translate.x-nt.x),Te.axis.y&&(nt.y=Math.min(Te.maxTranslate.y,Math.max(Te.minTranslate.y,Te.translate.y)),Ct=Te.translate.y-nt.y),Te.translate=nt,b(Te.helper,Te.translate),Te.scrollContainer.scrollLeft+=Ot,Te.scrollContainer.scrollTop+=Ct;return}Te.autoScroller.update({height:Te.height,maxTranslate:Te.maxTranslate,minTranslate:Te.minTranslate,translate:Te.translate,width:Te.width})}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"onAutoScroll",function(et){Te.translate.x+=et.left,Te.translate.y+=et.top,Te.animateNodes()}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleKeyDown",function(et){var ze=et.keyCode,nt=Te.props,Ot=nt.shouldCancelStart,Ct=nt.keyCodes,Tt=Ct===void 0?{}:Ct,Dt=Object(C.a)({},ee,Tt);if(Te.manager.active&&!Te.manager.isKeySorting||!Te.manager.active&&(!Dt.lift.includes(ze)||Ot(et)||!Te.isValidSortingTarget(et)))return;et.stopPropagation(),et.preventDefault(),Dt.lift.includes(ze)&&!Te.manager.active?Te.keyLift(et):Dt.drop.includes(ze)&&Te.manager.active?Te.keyDrop(et):Dt.cancel.includes(ze)?(Te.newIndex=Te.manager.active.index,Te.keyDrop(et)):Dt.up.includes(ze)?Te.keyMove(-1):Dt.down.includes(ze)&&Te.keyMove(1)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"keyLift",function(et){var ze=et.target,nt=I(ze,function(Dt){return Dt.sortableInfo!=null}),Ot=nt.sortableInfo,Ct=Ot.index,Tt=Ot.collection;Te.initialFocusedNode=ze,Te.manager.isKeySorting=!0,Te.manager.active={index:Ct,collection:Tt},Te.handlePress(et)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"keyMove",function(et){var ze=Te.manager.getOrderedRefs(),nt=ze[ze.length-1].node.sortableInfo.index,Ot=Te.newIndex+et,Ct=Te.newIndex;if(Ot<0||Ot>nt)return;Te.prevIndex=Ct,Te.newIndex=Ot;var Tt=j(Te.newIndex,Te.prevIndex,Te.index),Dt=ze.find(function(Rt){var ut=Rt.node;return ut.sortableInfo.index===Tt}),Be=Dt.node,ie=Te.containerScrollDelta,X=Dt.boundingClientRect||P(Be,ie),Fe=Dt.translate||{x:0,y:0},Ne={top:X.top+Fe.y-ie.top,left:X.left+Fe.x-ie.left},q=Ct<Ot,ht={x:q&&Te.axis.x?Be.offsetWidth-Te.width:0,y:q&&Te.axis.y?Be.offsetHeight-Te.height:0};Te.handleSortMove({pageX:Ne.left+ht.x,pageY:Ne.top+ht.y,ignoreTransition:et===0})}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"keyDrop",function(et){Te.handleSortEnd(et),Te.initialFocusedNode&&Te.initialFocusedNode.focus()}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleKeyEnd",function(et){Te.manager.active&&Te.keyDrop(et)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"isValidSortingTarget",function(et){var ze=Te.props.useDragHandle,nt=et.target,Ot=I(nt,function(Ct){return Ct.sortableInfo!=null});return Ot&&Ot.sortableInfo&&!Ot.sortableInfo.disabled&&(ze?De(nt):nt.sortableInfo)}),Q(Je),Te.manager=new p,Te.events={end:Te.handleEnd,move:Te.handleMove,start:Te.handleStart},Te}return Object(w.a)(ot,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Te=this,et=this.props.useWindowAsScrollContainer,ze=this.getContainer();Promise.resolve(ze).then(function(nt){Te.container=nt,Te.document=Te.container.ownerDocument||document;var Ot=Te.props.contentWindow||Te.document.defaultView||window;Te.contentWindow=typeof Ot=="function"?Ot():Ot,Te.scrollContainer=et?Te.document.scrollingElement||Te.document.documentElement:Y(Te.container)||Te.container,Te.autoScroller=new He(Te.scrollContainer,Te.onAutoScroll),Object.keys(Te.events).forEach(function(Ct){return x[Ct].forEach(function(Tt){return Te.container.addEventListener(Tt,Te.events[Ct],!1)})}),Te.container.addEventListener("keydown",Te.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Te=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(et){return x[et].forEach(function(ze){return Te.container.removeEventListener(ze,Te.events[et])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Te){var et=this.props,ze=et.lockAxis,nt=et.lockOffset,Ot=et.lockToContainerEdges,Ct=et.transitionDuration,Tt=et.keyboardSortingTransitionDuration,Dt=Tt===void 0?Ct:Tt,Be=this.manager.isKeySorting,ie=Te.ignoreTransition,X=M(Te),Fe={x:X.x-this.initialOffset.x,y:X.y-this.initialOffset.y};if(Fe.y-=window.pageYOffset-this.initialWindowScroll.top,Fe.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=Fe,Ot){var Ne=V({height:this.height,lockOffset:nt,width:this.width}),q=Object(E.a)(Ne,2),ht=q[0],Rt=q[1],ut={x:this.width/2-ht.x,y:this.height/2-ht.y},Xt={x:this.width/2-Rt.x,y:this.height/2-Rt.y};Fe.x=L(this.minTranslate.x+ut.x,this.maxTranslate.x-Xt.x,Fe.x),Fe.y=L(this.minTranslate.y+ut.y,this.maxTranslate.y-Xt.y,Fe.y)}ze==="x"?Fe.y=0:ze==="y"&&(Fe.x=0),Be&&Dt&&!ie&&_(this.helper,Dt),b(this.helper,Fe)}},{key:"animateNodes",value:function(){var Te=this.props,et=Te.transitionDuration,ze=Te.hideSortableGhost,nt=Te.onSortOver,Ot=this.containerScrollDelta,Ct=this.windowScrollDelta,Tt=this.manager.getOrderedRefs(),Dt={left:this.offsetEdge.left+this.translate.x+Ot.left,top:this.offsetEdge.top+this.translate.y+Ot.top},Be=this.manager.isKeySorting,ie=this.newIndex;this.newIndex=null;for(var X=0,Fe=Tt.length;X<Fe;X++){var Ne=Tt[X].node,q=Ne.sortableInfo.index,ht=Ne.offsetWidth,Rt=Ne.offsetHeight,ut={height:this.height>Rt?Rt/2:this.height/2,width:this.width>ht?ht/2:this.width/2},Xt=Be&&q>this.index&&q<=ie,or=Be&&q<this.index&&q>=ie,Zr={x:0,y:0},ar=Tt[X].edgeOffset;ar||(ar=F(Ne,this.container),Tt[X].edgeOffset=ar,Be&&(Tt[X].boundingClientRect=P(Ne,Ot)));var dr=X<Tt.length-1&&Tt[X+1],er=X>0&&Tt[X-1];if(dr&&!dr.edgeOffset&&(dr.edgeOffset=F(dr.node,this.container),Be&&(dr.boundingClientRect=P(dr.node,Ot))),q===this.index){ze&&(this.sortableGhost=Ne,S(Ne,{opacity:0,visibility:"hidden"}));continue}et&&_(Ne,et),this.axis.x?this.axis.y?or||q<this.index&&(Dt.left+Ct.left-ut.width<=ar.left&&Dt.top+Ct.top<=ar.top+ut.height||Dt.top+Ct.top+ut.height<=ar.top)?(Zr.x=this.width+this.marginOffset.x,ar.left+Zr.x>this.containerBoundingRect.width-ut.width&&(dr&&(Zr.x=dr.edgeOffset.left-ar.left,Zr.y=dr.edgeOffset.top-ar.top)),this.newIndex===null&&(this.newIndex=q)):(Xt||q>this.index&&(Dt.left+Ct.left+ut.width>=ar.left&&Dt.top+Ct.top+ut.height>=ar.top||Dt.top+Ct.top+ut.height>=ar.top+Rt))&&(Zr.x=-(this.width+this.marginOffset.x),ar.left+Zr.x<this.containerBoundingRect.left+ut.width&&(er&&(Zr.x=er.edgeOffset.left-ar.left,Zr.y=er.edgeOffset.top-ar.top)),this.newIndex=q):Xt||q>this.index&&Dt.left+Ct.left+ut.width>=ar.left?(Zr.x=-(this.width+this.marginOffset.x),this.newIndex=q):(or||q<this.index&&Dt.left+Ct.left<=ar.left+ut.width)&&(Zr.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=q)):this.axis.y&&(Xt||q>this.index&&Dt.top+Ct.top+ut.height>=ar.top?(Zr.y=-(this.height+this.marginOffset.y),this.newIndex=q):(or||q<this.index&&Dt.top+Ct.top<=ar.top+ut.height)&&(Zr.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=q))),b(Ne,Zr),Tt[X].translate=Zr}this.newIndex==null&&(this.newIndex=this.index),Be&&(this.newIndex=ie);var Ht=Be?this.prevIndex:ie;nt&&this.newIndex!==Ht&&nt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Ht,isKeySorting:Be,nodes:Tt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return u()(xe.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 Te=this.props.getContainer;return typeof Te!="function"?Object(t.findDOMNode)(this):Te(xe.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Te=xe.withRef?"wrappedInstance":null;return Object(i.createElement)(Ee,Object(O.a)({ref:Te},y(this.props,se)))}},{key:"helperContainer",get:function(){var Te=this.props.helperContainer;return typeof Te=="function"?Te():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Te=this.props.useWindowAsScrollContainer;return Te?{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}}}]),ot}(i.Component),Object(r.a)(le,"displayName",R("sortableList",Ee)),Object(r.a)(le,"defaultProps",Xe),Object(r.a)(le,"propTypes",oe),Object(r.a)(le,"childContextTypes",{manager:s.a.object.isRequired}),fe}var ve={index:s.a.number.isRequired,collection:s.a.oneOfType([s.a.number,s.a.string]),disabled:s.a.bool},de=Object.keys(ve);function Ce(Ee){var le,fe,xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=le=function(Qe){Object(c.a)(ot,Qe);function ot(){return Object(A.a)(this,ot),Object(m.a)(this,Object(f.a)(ot).apply(this,arguments))}return Object(w.a)(ot,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Te){this.node&&(Te.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Te.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Te.collection!==this.props.collection&&(this.unregister(Te.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Te=this.props,et=Te.collection,ze=Te.disabled,nt=Te.index,Ot=Object(t.findDOMNode)(this);Ot.sortableInfo={collection:et,disabled:ze,index:nt,manager:this.context.manager},this.node=Ot,this.ref={node:Ot},this.context.manager.add(et,this.ref)}},{key:"unregister",value:function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Te,this.ref)}},{key:"getWrappedInstance",value:function(){return u()(xe.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 Te=xe.withRef?"wrappedInstance":null;return Object(i.createElement)(Ee,Object(O.a)({ref:Te},y(this.props,de)))}}]),ot}(i.Component),Object(r.a)(le,"displayName",R("sortableElement",Ee)),Object(r.a)(le,"contextTypes",{manager:s.a.object.isRequired}),Object(r.a)(le,"propTypes",ve),Object(r.a)(le,"defaultProps",{collection:0}),fe}},YNAk:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("QyFq")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="CaretDownFilled";var c=A.forwardRef(f);B.default=c},YNf1:function(H,B,d){var O=d("IwbS"),E=d("6Ic6"),C=.3,A=E.extend({type:"parallel",init:function(){this._dataGroup=new O.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(n,e,s,t){var a=this._dataGroup,l=n.getData(),u=this._data,h=n.coordinateSystem,p=h.dimensions,g=c(n);l.diff(u).add(v).update(y).remove(x).execute();function v(S){var b=f(l,a,S,p,h);o(b,l,S,g)}function y(S,b){var _=u.getItemGraphicEl(b),I=m(l,S,p,h);l.setItemGraphicEl(S,_);var L=t&&t.animation===!1?null:n;O.updateProps(_,{shape:{points:I}},L,S),o(_,l,S,g)}function x(S){var b=u.getItemGraphicEl(S);a.remove(b)}if(!this._initialized){this._initialized=!0;var T=w(h,n,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(T)}this._data=l},incrementalPrepareRender:function(n,e,s){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(n,e,s){for(var t=e.getData(),a=e.coordinateSystem,l=a.dimensions,u=c(e),h=n.start;h<n.end;h++){var p=f(t,this._dataGroup,h,l,a);p.incremental=!0,o(p,t,h,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function w(n,e,s){var t=n.model,a=n.getRect(),l=new O.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),u=t.get("layout")==="horizontal"?"width":"height";return l.setShape(u,0),O.initProps(l,{shape:{width:a.width,height:a.height}},e,s),l}function m(n,e,s,t){for(var a=[],l=0;l<s.length;l++){var u=s[l],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,s,t,a){var l=m(n,s,t,a),u=new O.Polyline({shape:{points:l},silent:!0,z2:10});return e.add(u),n.setItemGraphicEl(s,u),u}function c(n){var e=n.get("smooth",!0);return e===!0&&(e=C),{lineStyle:n.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:C}}function o(n,e,s,t){var a=t.lineStyle;if(e.hasItemOption){var l=e.getItemModel(s).getModel("lineStyle");a=l.getLineStyle()}n.useStyle(a);var u=n.style;u.fill=null,u.stroke=e.getItemVisual(s,"color"),u.opacity=e.getItemVisual(s,"opacity"),t.smooth&&(n.shape.smooth=t.smooth)}function r(n,e){return e==="category"?n==null:n==null||isNaN(n)}var i=A;H.exports=i},YOMW:function(H,B,d){var O=d("bYtY"),E={get:function(w,m,f){var c=O.clone((C[w]||{})[m]);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=E;H.exports=A},YXkt:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("Qxkt"),w=d("gPAo"),m=d("7G+c"),f=d("KxfA"),c=f.defaultDimValueGetters,o=f.DefaultDataProvider,r=d("L0Ub"),i=r.summarizeDimensions,n=d("Vi4m"),e=C.isObject,s="undefined",t=-1,a="e\0\0",l={float:typeof Float64Array===s?Array:Float64Array,int:typeof Int32Array===s?Array:Int32Array,ordinal:Array,number:Array,time:Array},u=typeof Uint32Array===s?Array:Uint32Array,h=typeof Int32Array===s?Array:Int32Array,p=typeof Uint16Array===s?Array:Uint16Array;function g(z){return z._rawCount>65535?u:p}function v(z){var Y=z.constructor;return Y===Array?z.slice():new Y(z)}var y=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],x=["_extent","_approximateExtent","_rawExtent"];function T(z,Y){C.each(y.concat(Y.__wrappedMethods||[]),function($){Y.hasOwnProperty($)&&(z[$]=Y[$])}),z.__wrappedMethods=Y.__wrappedMethods,C.each(x,function($){z[$]=C.clone(Y[$])}),z._calculationInfo=C.extend(Y._calculationInfo)}var S=function(z,Y){z=z||["x","y"];for(var $={},ue=[],ne={},ge=0;ge<z.length;ge++){var Oe=z[ge];C.isString(Oe)?Oe=new n({name:Oe}):Oe instanceof n||(Oe=new n(Oe));var De=Oe.name;Oe.type=Oe.type||"float",Oe.coordDim||(Oe.coordDim=De,Oe.coordDimIndex=0),Oe.otherDims=Oe.otherDims||{},ue.push(De),$[De]=Oe,Oe.index=ge,Oe.createInvertedIndices&&(ne[De]=[])}this.dimensions=ue,this._dimensionInfos=$,this.hostModel=Y,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=i(this),this._invertedIndicesMap=ne,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},b=S.prototype;b.type="list",b.hasItemOption=!0,b.getDimension=function(z){return(typeof z=="number"||!isNaN(z)&&!this._dimensionInfos.hasOwnProperty(z))&&(z=this.dimensions[z]),z},b.getDimensionInfo=function(z){return this._dimensionInfos[this.getDimension(z)]},b.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},b.mapDimension=function(z,Y){var $=this._dimensionsSummary;if(Y==null)return $.encodeFirstDimNotExtra[z];var ue=$.encode[z];return Y===!0?(ue||[]).slice():ue&&ue[Y]},b.initData=function(z,Y,$){var ue=m.isInstance(z)||C.isArrayLike(z);ue&&(z=new o(z,this.dimensions.length)),this._rawData=z,this._storage={},this._indices=null,this._nameList=Y||[],this._idList=[],this._nameRepeatCount={},$||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=$=$||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,z.count()),z.pure&&(this.hasItemOption=!1)},b.getProvider=function(){return this._rawData},b.appendData=function(z){var Y=this._rawData,$=this.count();Y.appendData(z);var ue=Y.count();Y.persistent||(ue+=$),this._initDataFromProvider($,ue)},b.appendValues=function(z,Y){for(var $=this._chunkSize,ue=this._storage,ne=this.dimensions,ge=ne.length,Oe=this._rawExtent,De=this.count(),He=De+Math.max(z.length,Y?Y.length:0),pe=this._chunkCount,Ue=0;Ue<ge;Ue++){var oe=ne[Ue];Oe[oe]||(Oe[oe]=j()),ue[oe]||(ue[oe]=[]),_(ue,this._dimensionInfos[oe],$,pe,He),this._chunkCount=ue[oe].length}for(var ee=new Array(ge),Xe=De;Xe<He;Xe++){for(var se=Xe-De,Q=Math.floor(Xe/$),G=Xe%$,J=0;J<ge;J++){var oe=ne[J],ve=this._dimValueGetterArrayRows(z[se]||ee,oe,se,J);ue[oe][Q][G]=ve;var de=Oe[oe];ve<de[0]&&(de[0]=ve),ve>de[1]&&(de[1]=ve)}Y&&(this._nameList[Xe]=Y[se])}this._rawCount=this._count=He,this._extent={},I(this)},b._initDataFromProvider=function(z,Y){if(z>=Y)return;for(var $=this._chunkSize,ue=this._rawData,ne=this._storage,ge=this.dimensions,Oe=ge.length,De=this._dimensionInfos,He=this._nameList,pe=this._idList,Ue=this._rawExtent,oe=this._nameRepeatCount={},ee,Xe=this._chunkCount,se=0;se<Oe;se++){var Q=ge[se];Ue[Q]||(Ue[Q]=j());var G=De[Q];G.otherDims.itemName===0&&(ee=this._nameDimIdx=se),G.otherDims.itemId===0&&(this._idDimIdx=se),ne[Q]||(ne[Q]=[]),_(ne,G,$,Xe,Y),this._chunkCount=ne[Q].length}for(var J=new Array(Oe),ve=z;ve<Y;ve++){J=ue.getItem(ve,J);for(var de=Math.floor(ve/$),Ce=ve%$,Ee=0;Ee<Oe;Ee++){var Q=ge[Ee],le=ne[Q][de],fe=this._dimValueGetter(J,Q,ve,Ee);le[Ce]=fe;var xe=Ue[Q];fe<xe[0]&&(xe[0]=fe),fe>xe[1]&&(xe[1]=fe)}if(!ue.pure){var Qe=He[ve];if(J&&Qe==null){if(J.name!=null)He[ve]=Qe=J.name;else if(ee!=null){var ot=ge[ee],Je=ne[ot][de];if(Je){Qe=Je[Ce];var Te=De[ot].ordinalMeta;Te&&Te.categories.length&&(Qe=Te.categories[Qe])}}}var et=J==null?null:J.id;et==null&&Qe!=null&&(oe[Qe]=oe[Qe]||0,et=Qe,oe[Qe]>0&&(et+="__ec__"+oe[Qe]),oe[Qe]++),et!=null&&(pe[ve]=et)}}!ue.persistent&&ue.clean&&ue.clean(),this._rawCount=this._count=Y,this._extent={},I(this)};function _(z,Y,$,ue,ne){var ge=l[Y.type],Oe=ue-1,De=Y.name,He=z[De][Oe];if(He&&He.length<$){for(var pe=new ge(Math.min(ne-Oe*$,$)),Ue=0;Ue<He.length;Ue++)pe[Ue]=He[Ue];z[De][Oe]=pe}for(var oe=ue*$;oe<ne;oe+=$)z[De].push(new ge(Math.min(ne-oe,$)))}function I(z){var Y=z._invertedIndicesMap;C.each(Y,function($,ue){var ne=z._dimensionInfos[ue],ge=ne.ordinalMeta;if(ge){$=Y[ue]=new h(ge.categories.length);for(var Oe=0;Oe<$.length;Oe++)$[Oe]=t;for(var Oe=0;Oe<z._count;Oe++)$[z.get(ue,Oe)]=Oe}})}function L(z,Y,$){var ue;if(Y!=null){var ne=z._chunkSize,ge=Math.floor($/ne),Oe=$%ne,De=z.dimensions[Y],He=z._storage[De][ge];if(He){ue=He[Oe];var pe=z._dimensionInfos[De].ordinalMeta;pe&&pe.categories.length&&(ue=pe.categories[ue])}}return ue}b.count=function(){return this._count},b.getIndices=function(){var z,Y=this._indices;if(Y){var $=Y.constructor,ue=this._count;if($===Array){z=new $(ue);for(var ne=0;ne<ue;ne++)z[ne]=Y[ne]}else z=new $(Y.buffer,0,ue)}else for(var $=g(this),z=new $(this.count()),ne=0;ne<z.length;ne++)z[ne]=ne;return z},b.get=function(z,Y){if(!(Y>=0&&Y<this._count))return NaN;var $=this._storage;if(!$[z])return NaN;Y=this.getRawIndex(Y);var ue=Math.floor(Y/this._chunkSize),ne=Y%this._chunkSize,ge=$[z][ue],Oe=ge[ne];return Oe},b.getByRawIndex=function(z,Y){if(!(Y>=0&&Y<this._rawCount))return NaN;var $=this._storage[z];if(!$)return NaN;var ue=Math.floor(Y/this._chunkSize),ne=Y%this._chunkSize,ge=$[ue];return ge[ne]},b._getFast=function(z,Y){var $=Math.floor(Y/this._chunkSize),ue=Y%this._chunkSize,ne=this._storage[z][$];return ne[ue]},b.getValues=function(z,Y){var $=[];C.isArray(z)||(Y=z,z=this.dimensions);for(var ue=0,ne=z.length;ue<ne;ue++)$.push(this.get(z[ue],Y));return $},b.hasValue=function(z){for(var Y=this._dimensionsSummary.dataDimsOnCoord,$=0,ue=Y.length;$<ue;$++)if(isNaN(this.get(Y[$],z)))return!1;return!0},b.getDataExtent=function(z){z=this.getDimension(z);var Y=this._storage[z],$=j();if(!Y)return $;var ue=this.count(),ne=!this._indices,ge;if(ne)return this._rawExtent[z].slice();if(ge=this._extent[z],ge)return ge.slice();ge=$;for(var Oe=ge[0],De=ge[1],He=0;He<ue;He++){var pe=this._getFast(z,this.getRawIndex(He));pe<Oe&&(Oe=pe),pe>De&&(De=pe)}return ge=[Oe,De],this._extent[z]=ge,ge},b.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},b.setApproximateExtent=function(z,Y){Y=this.getDimension(Y),this._approximateExtent[Y]=z.slice()},b.getCalculationInfo=function(z){return this._calculationInfo[z]},b.setCalculationInfo=function(z,Y){e(z)?C.extend(this._calculationInfo,z):this._calculationInfo[z]=Y},b.getSum=function(z){var Y=this._storage[z],$=0;if(Y)for(var ue=0,ne=this.count();ue<ne;ue++){var ge=this.get(z,ue);isNaN(ge)||($+=ge)}return $},b.getMedian=function(z){var Y=[];this.each(z,function(ne,ge){isNaN(ne)||Y.push(ne)});var $=[].concat(Y).sort(function(ne,ge){return ne-ge}),ue=this.count();return ue===0?0:ue%2===1?$[(ue-1)/2]:($[ue/2]+$[ue/2-1])/2},b.rawIndexOf=function(z,Y){var $=z&&this._invertedIndicesMap[z],ue=$[Y];return ue==null||isNaN(ue)?t:ue},b.indexOfName=function(z){for(var Y=0,$=this.count();Y<$;Y++)if(this.getName(Y)===z)return Y;return-1},b.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var Y=this._indices,$=Y[z];if($!=null&&$<this._count&&$===z)return z;for(var ue=0,ne=this._count-1;ue<=ne;){var ge=(ue+ne)/2|0;if(Y[ge]<z)ue=ge+1;else if(Y[ge]>z)ne=ge-1;else return ge}return-1},b.indicesOfNearest=function(z,Y,$){var ue=this._storage,ne=ue[z],ge=[];if(!ne)return ge;$==null&&($=Infinity);for(var Oe=Infinity,De=-1,He=0,pe=0,Ue=this.count();pe<Ue;pe++){var oe=Y-this.get(z,pe),ee=Math.abs(oe);ee<=$&&((ee<Oe||ee===Oe&&oe>=0&&De<0)&&(Oe=ee,De=oe,He=0),oe===De&&(ge[He++]=pe))}return ge.length=He,ge},b.getRawIndex=N;function N(z){return z}function D(z){return z<this._count&&z>=0?this._indices[z]:-1}b.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var Y=[],$=0;$<this.dimensions.length;$++){var ue=this.dimensions[$];Y.push(this.get(ue,z))}return Y},b.getName=function(z){var Y=this.getRawIndex(z);return this._nameList[Y]||L(this,this._nameDimIdx,Y)||""},b.getId=function(z){return R(this,this.getRawIndex(z))};function R(z,Y){var $=z._idList[Y];return $==null&&($=L(z,z._idDimIdx,Y)),$==null&&($=a+Y),$}function P(z){return C.isArray(z)||(z=[z]),z}function M(z,Y){for(var $=0;$<Y.length;$++)z._dimensionInfos[Y[$]]||console.error("Unkown dimension "+Y[$])}b.each=function(z,Y,$,ue){"use strict";if(!this._count)return;typeof z=="function"&&(ue=$,$=Y,Y=z,z=[]),$=$||ue||this,z=C.map(P(z),this.getDimension,this);for(var ne=z.length,ge=0;ge<this.count();ge++)switch(ne){case 0:Y.call($,ge);break;case 1:Y.call($,this.get(z[0],ge),ge);break;case 2:Y.call($,this.get(z[0],ge),this.get(z[1],ge),ge);break;default:for(var Oe=0,De=[];Oe<ne;Oe++)De[Oe]=this.get(z[Oe],ge);De[Oe]=ge,Y.apply($,De)}},b.filterSelf=function(z,Y,$,ue){"use strict";if(!this._count)return;typeof z=="function"&&(ue=$,$=Y,Y=z,z=[]),$=$||ue||this,z=C.map(P(z),this.getDimension,this);for(var ne=this.count(),ge=g(this),Oe=new ge(ne),De=[],He=z.length,pe=0,Ue=z[0],oe=0;oe<ne;oe++){var ee,Xe=this.getRawIndex(oe);if(He===0)ee=Y.call($,oe);else if(He===1){var se=this._getFast(Ue,Xe);ee=Y.call($,se,oe)}else{for(var Q=0;Q<He;Q++)De[Q]=this._getFast(Ue,Xe);De[Q]=oe,ee=Y.apply($,De)}ee&&(Oe[pe++]=Xe)}return pe<ne&&(this._indices=Oe),this._count=pe,this._extent={},this.getRawIndex=this._indices?D:N,this},b.selectRange=function(z){"use strict";if(!this._count)return;var Y=[];for(var $ in z)z.hasOwnProperty($)&&Y.push($);var ue=Y.length;if(!ue)return;var ne=this.count(),ge=g(this),Oe=new ge(ne),De=0,He=Y[0],pe=z[He][0],Ue=z[He][1],oe=!1;if(!this._indices){var ee=0;if(ue===1){for(var Xe=this._storage[Y[0]],se=0;se<this._chunkCount;se++)for(var Q=Xe[se],G=Math.min(this._count-se*this._chunkSize,this._chunkSize),J=0;J<G;J++){var ve=Q[J];(ve>=pe&&ve<=Ue||isNaN(ve))&&(Oe[De++]=ee),ee++}oe=!0}else if(ue===2){for(var Xe=this._storage[He],de=this._storage[Y[1]],Ce=z[Y[1]][0],Ee=z[Y[1]][1],se=0;se<this._chunkCount;se++)for(var Q=Xe[se],le=de[se],G=Math.min(this._count-se*this._chunkSize,this._chunkSize),J=0;J<G;J++){var ve=Q[J],fe=le[J];(ve>=pe&&ve<=Ue||isNaN(ve))&&(fe>=Ce&&fe<=Ee||isNaN(fe))&&(Oe[De++]=ee),ee++}oe=!0}}if(!oe)if(ue===1)for(var J=0;J<ne;J++){var xe=this.getRawIndex(J),ve=this._getFast(He,xe);(ve>=pe&&ve<=Ue||isNaN(ve))&&(Oe[De++]=xe)}else for(var J=0;J<ne;J++){for(var Qe=!0,xe=this.getRawIndex(J),se=0;se<ue;se++){var ot=Y[se],ve=this._getFast($,xe);(ve<z[ot][0]||ve>z[ot][1])&&(Qe=!1)}Qe&&(Oe[De++]=this.getRawIndex(J))}return De<ne&&(this._indices=Oe),this._count=De,this._extent={},this.getRawIndex=this._indices?D:N,this},b.mapArray=function(z,Y,$,ue){"use strict";typeof z=="function"&&(ue=$,$=Y,Y=z,z=[]),$=$||ue||this;var ne=[];return this.each(z,function(){ne.push(Y&&Y.apply(this,arguments))},$),ne};function U(z,Y){var $=z.dimensions,ue=new S(C.map($,z.getDimensionInfo,z),z.hostModel);T(ue,z);for(var ne=ue._storage={},ge=z._storage,Oe=0;Oe<$.length;Oe++){var De=$[Oe];ge[De]&&(C.indexOf(Y,De)>=0?(ne[De]=F(ge[De]),ue._rawExtent[De]=j(),ue._extent[De]=null):ne[De]=ge[De])}return ue}function F(z){for(var Y=new Array(z.length),$=0;$<z.length;$++)Y[$]=v(z[$]);return Y}function j(){return[Infinity,-Infinity]}b.map=function(z,Y,$,ue){"use strict";$=$||ue||this,z=C.map(P(z),this.getDimension,this);var ne=U(this,z);ne._indices=this._indices,ne.getRawIndex=ne._indices?D:N;for(var ge=ne._storage,Oe=[],De=this._chunkSize,He=z.length,pe=this.count(),Ue=[],oe=ne._rawExtent,ee=0;ee<pe;ee++){for(var Xe=0;Xe<He;Xe++)Ue[Xe]=this.get(z[Xe],ee);Ue[He]=ee;var se=Y&&Y.apply($,Ue);if(se!=null){typeof se!="object"&&(Oe[0]=se,se=Oe);for(var Q=this.getRawIndex(ee),G=Math.floor(Q/De),J=Q%De,ve=0;ve<se.length;ve++){var de=z[ve],Ce=se[ve],Ee=oe[de],le=ge[de];le&&(le[G][J]=Ce),Ce<Ee[0]&&(Ee[0]=Ce),Ce>Ee[1]&&(Ee[1]=Ce)}}}return ne},b.downSample=function(z,Y,$,ue){for(var ne=U(this,[z]),ge=ne._storage,Oe=[],De=Math.floor(1/Y),He=ge[z],pe=this.count(),Ue=this._chunkSize,oe=ne._rawExtent[z],ee=new(g(this))(pe),Xe=0,se=0;se<pe;se+=De){De>pe-se&&(De=pe-se,Oe.length=De);for(var Q=0;Q<De;Q++){var G=this.getRawIndex(se+Q),J=Math.floor(G/Ue),ve=G%Ue;Oe[Q]=He[J][ve]}var de=$(Oe),Ce=this.getRawIndex(Math.min(se+ue(Oe,de)||0,pe-1)),Ee=Math.floor(Ce/Ue),le=Ce%Ue;He[Ee][le]=de,de<oe[0]&&(oe[0]=de),de>oe[1]&&(oe[1]=de),ee[Xe++]=Ce}return ne._count=Xe,ne._indices=ee,ne.getRawIndex=D,ne},b.getItemModel=function(z){var Y=this.hostModel;return new A(this.getRawDataItem(z),Y,Y&&Y.ecModel)},b.diff=function(z){var Y=this;return new w(z?z.getIndices():[],this.getIndices(),function($){return R(z,$)},function($){return R(Y,$)})},b.getVisual=function(z){var Y=this._visual;return Y&&Y[z]},b.setVisual=function(z,Y){if(e(z)){for(var $ in z)z.hasOwnProperty($)&&this.setVisual($,z[$]);return}this._visual=this._visual||{},this._visual[z]=Y},b.setLayout=function(z,Y){if(e(z)){for(var $ in z)z.hasOwnProperty($)&&this.setLayout($,z[$]);return}this._layout[z]=Y},b.getLayout=function(z){return this._layout[z]},b.getItemLayout=function(z){return this._itemLayouts[z]},b.setItemLayout=function(z,Y,$){this._itemLayouts[z]=$?C.extend(this._itemLayouts[z]||{},Y):Y},b.clearItemLayouts=function(){this._itemLayouts.length=0},b.getItemVisual=function(z,Y,$){var ue=this._itemVisuals[z],ne=ue&&ue[Y];return ne==null&&!$?this.getVisual(Y):ne},b.setItemVisual=function(z,Y,$){var ue=this._itemVisuals[z]||{},ne=this.hasItemVisual;if(this._itemVisuals[z]=ue,e(Y)){for(var ge in Y)Y.hasOwnProperty(ge)&&(ue[ge]=Y[ge],ne[ge]=!0);return}ue[Y]=$,ne[Y]=!0},b.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var W=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};b.setItemGraphicEl=function(z,Y){var $=this.hostModel;Y&&(Y.dataIndex=z,Y.dataType=this.dataType,Y.seriesIndex=$&&$.seriesIndex,Y.type==="group"&&Y.traverse(W,Y)),this._graphicEls[z]=Y},b.getItemGraphicEl=function(z){return this._graphicEls[z]},b.eachItemGraphicEl=function(z,Y){C.each(this._graphicEls,function($,ue){$&&(z&&z.call(Y,$,ue))})},b.cloneShallow=function(z){if(!z){var Y=C.map(this.dimensions,this.getDimensionInfo,this);z=new S(Y,this.hostModel)}if(z._storage=this._storage,T(z,this),this._indices){var $=this._indices.constructor;z._indices=new $(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?D:N,z},b.wrapMethod=function(z,Y){var $=this[z];if(typeof $!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var ue=$.apply(this,arguments);return Y.apply(this,[ue].concat(C.slice(arguments)))}},b.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],b.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=S;H.exports=V},YgsL:function(H,B,d){var O=d("QBsz"),E=O.distance;function C(w,m,f,c,o,r,i){var n=(f-w)*.5,e=(c-m)*.5;return(2*(m-f)+n+e)*i+(-3*(m-f)-2*n-e)*r+n*o+m}function A(w,m){for(var f=w.length,c=[],o=0,r=1;r<f;r++)o+=E(w[r-1],w[r]);var i=o/2;i=i<f?f:i;for(var r=0;r<i;r++){var n=r/(i-1)*(m?f:f-1),e=Math.floor(n),s=n-e,t,a=w[e%f],l,u;m?(t=w[(e-1+f)%f],l=w[(e+1)%f],u=w[(e+2)%f]):(t=w[e===0?e:e-1],l=w[e>f-2?f-1:e+1],u=w[e>f-3?f-1:e+2]);var h=s*s,p=s*h;c.push([C(t[0],a[0],l[0],u[0],s,h,p),C(t[1],a[1],l[1],u[1],s,h,p)])}return c}H.exports=A},Yl7c:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=".",w="___EC__COMPONENT__CONTAINER___";function m(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(l){var u=this,h=function(){l.$constructor?l.$constructor.apply(this,arguments):u.apply(this,arguments)};return C.extend(h.prototype,l),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(l){return!!(l&&l[a])}}function i(t,a){var l=C.slice(arguments,2);return this.superClass.prototype[a].apply(t,l)}function n(t,a,l){return this.superClass.prototype[a].apply(t,l)}function e(t,a){a=a||{};var l={};t.registerClass=function(p,g){if(g){if(f(g),g=m(g),!g.sub)l[g.main]=p;else if(g.sub!==w){var v=u(g);v[g.sub]=p}}return p},t.getClass=function(p,g,v){var y=l[p];if(y&&y[w]&&(y=g?y[g]:null),v&&!y)throw new Error(g?"Component "+p+"."+(g||"")+" not exists. Load it first.":p+".type should be specified.");return y},t.getClassesByMainType=function(p){p=m(p);var g=[],v=l[p.main];return v&&v[w]?C.each(v,function(y,x){x!==w&&g.push(y)}):g.push(v),g},t.hasClass=function(p){return p=m(p),!!l[p.main]},t.getAllClassMainTypes=function(){var p=[];return C.each(l,function(g,v){p.push(v)}),p},t.hasSubTypes=function(p){p=m(p);var g=l[p.main];return g&&g[w]},t.parseClassType=m;function u(p){var g=l[p.main];return(!g||!g[w])&&(g=l[p.main]={},g[w]=!0),g}if(a.registerWhenExtend){var h=t.extend;h&&(t.extend=function(p){var g=h.call(this,p);return t.registerClass(g,p.type)})}return t}function s(t,a){}B.parseClassType=m,B.enableClassExtend=c,B.enableClassCheck=r,B.enableClassManagement=e,B.setReadOnly=s},Ynxi:function(H,B,d){var O=d("bYtY"),E=d("ProS"),C=d("IwbS"),A=d("+TT/"),w=A.getLayoutRect,m=d("7aKB"),f=m.windowOpen;E.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),E.extendComponentView({type:"title",render:function(c,o,r){if(this.group.removeAll(),!c.get("show"))return;var i=this.group,n=c.getModel("textStyle"),e=c.getModel("subtextStyle"),s=c.get("textAlign"),t=O.retrieve2(c.get("textBaseline"),c.get("textVerticalAlign")),a=new C.Text({style:C.setTextStyle({},n,{text:c.get("text"),textFill:n.getTextColor()},{disableBox:!0}),z2:10}),l=a.getBoundingRect(),u=c.get("subtext"),h=new C.Text({style:C.setTextStyle({},e,{text:u,textFill:e.getTextColor(),y:l.height+c.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=c.get("link"),g=c.get("sublink"),v=c.get("triggerEvent",!0);a.silent=!p&&!v,h.silent=!g&&!v,p&&a.on("click",function(){f(p,"_"+c.get("target"))}),g&&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(),x=c.getBoxLayoutParams();x.width=y.width,x.height=y.height;var T=w(x,{width:r.getWidth(),height:r.getHeight()},c.get("padding"));s||(s=c.get("left")||c.get("right"),s==="middle"&&(s="center"),s==="right"?T.x+=T.width:s==="center"&&(T.x+=T.width/2)),t||(t=c.get("top")||c.get("bottom"),t==="center"&&(t="middle"),t==="bottom"?T.y+=T.height:t==="middle"&&(T.y+=T.height/2),t=t||"top"),i.attr("position",[T.x,T.y]);var S={textAlign:s,textVerticalAlign:t};a.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var b=T.margin,_=c.getItemStyle(["color","opacity"]);_.fill=c.get("backgroundColor");var I=new C.Rect({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:c.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(I)}})},Ywus:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("DO2E")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="DeleteOutlined";var c=A.forwardRef(f);B.default=c},Z0Lh:function(H,B,d){"use strict";var O=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var E=O(d("pVnL")),C=O(d("HjOm")),A=O(d("Z6rY")),w={lang:(0,E.default)({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},C.default),timePickerLocale:(0,E.default)({},A.default)};w.lang.ok="\u786E \u5B9A";var m=w;B.default=m},Z1HP:function(H,B,d){var O=d("ycre"),E=d("quyA"),C=d("q4HE");function A(w){return E(w)?C(w):O(w)}H.exports=A},Z1r0:function(H,B){function d(O){var E=O.findComponents({mainType:"legend"});if(!E||!E.length)return;O.eachSeriesByType("graph",function(C){var A=C.getCategoriesData(),w=C.getGraph(),m=w.data,f=A.mapArray(A.getName);m.filterSelf(function(c){var o=m.getItemModel(c),r=o.getShallow("category");if(r!=null){typeof r=="number"&&(r=f[r]);for(var i=0;i<E.length;i++)if(!E[i].isSelected(r))return!1}return!0})},this)}H.exports=d},Z1wy:function(H,B,d){var O=d("ProS");d("ThAp"),d("pmaE"),d("SehX"),d("7uqq");var E=d("zuHt"),C=d("VPsl"),A=d("9u0u"),w=d("lELe"),m=d("d4KN");O.registerLayout(E),O.registerVisual(C),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,A),O.registerPreprocessor(w),m("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(H,B,d){var O=d("MwEJ"),E=d("T4UG"),C=E.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(A,w){return O(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});H.exports=C},Z6rY:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},E=O;B.default=E},Z8zF:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("IwbS"),m=d("56rv"),f=m.setLabel,c=d("Qxkt"),o=d("tceW"),r=d("y+Vt"),i=d("4fz+"),n=d("iLNv"),e=n.throttle,s=d("sK/D"),t=s.createClipPath,a=d("wr5s"),l=["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 Y=W.getBaseAxis();if(Y.type!=="category"||!Y.onBand){var $=V.getLayout("bandWidth");Y.isHorizontal()?(z.x-=$,z.width+=$*2):(z.y-=$,z.height+=$*2)}}return z}var p=C.extendChartView({type:"bar",render:function(W,V,z){this._updateDrawMode(W);var Y=W.get("coordinateSystem");return(Y==="cartesian2d"||Y==="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,Y){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 Y=this.group,$=W.getData(),ue=this._data,ne=W.coordinateSystem,ge=ne.getBaseAxis(),Oe;ne.type==="cartesian2d"?Oe=ge.isHorizontal():ne.type==="polar"&&(Oe=ge.dim==="angle");var De=W.isAnimationEnabled()?W:null,He=W.get("clip",!0),pe=h(ne,$);Y.removeClipPath();var Ue=W.get("roundCap",!0),oe=W.get("showBackground",!0),ee=W.getModel("backgroundStyle"),Xe=ee.get("barBorderRadius")||0,se=[],Q=this._backgroundEls||[];$.diff(ue).add(function(ve){var de=$.getItemModel(ve),Ce=b[ne.type]($,ve,de);if(oe){var Ee=b[ne.type]($,ve),le=j(ne,Oe,Ee);le.useStyle(ee.getBarItemStyle()),ne.type==="cartesian2d"&&le.setShape("r",Xe),se[ve]=le}if(!$.hasValue(ve))return;if(He){var fe=y[ne.type](pe,Ce);if(fe){Y.remove(xe);return}}var xe=x[ne.type](ve,Ce,Oe,De,!1,Ue);$.setItemGraphicEl(ve,xe),Y.add(xe),I(xe,$,ve,de,Ce,W,Oe,ne.type==="polar")}).update(function(ve,de){var Ce=$.getItemModel(ve),Ee=b[ne.type]($,ve,Ce);if(oe){var le=Q[de];le.useStyle(ee.getBarItemStyle()),ne.type==="cartesian2d"&&le.setShape("r",Xe),se[ve]=le;var fe=b[ne.type]($,ve),xe=F(Oe,fe,ne);w.updateProps(le,{shape:xe},De,ve)}var Qe=ue.getItemGraphicEl(de);if(!$.hasValue(ve)){Y.remove(Qe);return}if(He){var ot=y[ne.type](pe,Ee);if(ot){Y.remove(Qe);return}}Qe?w.updateProps(Qe,{shape:Ee},De,ve):Qe=x[ne.type](ve,Ee,Oe,De,!0,Ue),$.setItemGraphicEl(ve,Qe),Y.add(Qe),I(Qe,$,ve,Ce,Ee,W,Oe,ne.type==="polar")}).remove(function(ve){var de=ue.getItemGraphicEl(ve);ne.type==="cartesian2d"?de&&T(ve,De,de):de&&S(ve,De,de)}).execute();var G=this._backgroundGroup||(this._backgroundGroup=new i);G.removeAll();for(var J=0;J<se.length;++J)G.add(se[J]);Y.add(G),this._backgroundEls=se,this._data=$},_renderLarge:function(W,V,z){this._clear(),D(W,this.group);var Y=W.get("clip",!0)?t(W.coordinateSystem,!1,W):null;Y?this.group.setClipPath(Y):this.group.removeClipPath()},_incrementalRenderLarge:function(W,V){this._removeBackground(),D(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(Y){Y.type==="sector"?S(Y.dataIndex,W,Y):T(Y.dataIndex,W,Y)})):V.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),g=Math.max,v=Math.min,y={cartesian2d:function(W,V){var z=V.width<0?-1:1,Y=V.height<0?-1:1;z<0&&(V.x+=V.width,V.width=-V.width),Y<0&&(V.y+=V.height,V.height=-V.height);var $=g(V.x,W.x),ue=v(V.x+V.width,W.x+W.width),ne=g(V.y,W.y),ge=v(V.y+V.height,W.y+W.height);V.x=$,V.y=ne,V.width=ue-$,V.height=ge-ne;var Oe=V.width<0||V.height<0;return z<0&&(V.x+=V.width,V.width=-V.width),Y<0&&(V.y+=V.height,V.height=-V.height),Oe},polar:function(W){return!1}},x={cartesian2d:function(W,V,z,Y,$){var ue=new w.Rect({shape:A.extend({},V),z2:1});if(ue.name="item",Y){var ne=ue.shape,ge=z?"height":"width",Oe={};ne[ge]=0,Oe[ge]=V[ge],w[$?"updateProps":"initProps"](ue,{shape:Oe},Y,W)}return ue},polar:function(W,V,z,Y,$,ue){var ne=V.startAngle<V.endAngle,ge=!z&&ue?a:w.Sector,Oe=new ge({shape:A.defaults({clockwise:ne},V),z2:1});if(Oe.name="item",Y){var De=Oe.shape,He=z?"r":"endAngle",pe={};De[He]=z?0:V.startAngle,pe[He]=V[He],w[$?"updateProps":"initProps"](Oe,{shape:pe},Y,W)}return Oe}};function T(W,V,z){z.style.text=null,w.updateProps(z,{shape:{width:0}},V,W,function(){z.parent&&z.parent.remove(z)})}function S(W,V,z){z.style.text=null,w.updateProps(z,{shape:{r:z.shape.r0}},V,W,function(){z.parent&&z.parent.remove(z)})}var b={cartesian2d:function(W,V,z){var Y=W.getItemLayout(V),$=z?L(z,Y):0,ue=Y.width>0?1:-1,ne=Y.height>0?1:-1;return{x:Y.x+ue*$/2,y:Y.y+ne*$/2,width:Y.width-ue*$,height:Y.height-ne*$}},polar:function(W,V,z){var Y=W.getItemLayout(V);return{cx:Y.cx,cy:Y.cy,r0:Y.r0,r:Y.r,startAngle:Y.startAngle,endAngle:Y.endAngle}}};function _(W){return W.startAngle!=null&&W.endAngle!=null&&W.startAngle===W.endAngle}function I(W,V,z,Y,$,ue,ne,ge){var Oe=V.getItemVisual(z,"color"),De=V.getItemVisual(z,"opacity"),He=V.getVisual("borderColor"),pe=Y.getModel("itemStyle"),Ue=Y.getModel("emphasis.itemStyle").getBarItemStyle();ge||W.setShape("r",pe.get("barBorderRadius")||0),W.useStyle(A.defaults({stroke:_($)?"none":He,fill:_($)?"none":Oe,opacity:De},pe.getBarItemStyle()));var oe=Y.getShallow("cursor");oe&&W.attr("cursor",oe);var ee=ne?$.height>0?"bottom":"top":$.width>0?"left":"right";ge||f(W.style,Ue,Y,Oe,ue,z,ee),_($)&&(Ue.fill=Ue.stroke="none"),w.setHoverStyle(W,Ue)}function L(W,V){var z=W.get(l)||0,Y=isNaN(V.width)?Number.MAX_VALUE:Math.abs(V.width),$=isNaN(V.height)?Number.MAX_VALUE:Math.abs(V.height);return Math.min(z,Y,$)}var N=r.extend({type:"largeBar",shape:{points:[]},buildPath:function(W,V){for(var z=V.points,Y=this.__startPoint,$=this.__baseDimIdx,ue=0;ue<z.length;ue+=2)Y[$]=z[ue+$],W.moveTo(Y[0],Y[1]),W.lineTo(z[ue],z[ue+1])}});function D(W,V,z){var Y=W.getData(),$=[],ue=Y.getLayout("valueAxisHorizontal")?1:0;$[1-ue]=Y.getLayout("valueAxisStart");var ne=Y.getLayout("largeDataIndices"),ge=Y.getLayout("barWidth"),Oe=W.getModel("backgroundStyle"),De=W.get("showBackground",!0);if(De){var He=Y.getLayout("largeBackgroundPoints"),pe=[];pe[1-ue]=Y.getLayout("backgroundStart");var Ue=new N({shape:{points:He},incremental:!!z,__startPoint:pe,__baseDimIdx:ue,__largeDataIndices:ne,__barWidth:ge,silent:!0,z2:0});U(Ue,Oe,Y),V.add(Ue)}var oe=new N({shape:{points:Y.getLayout("largePoints")},incremental:!!z,__startPoint:$,__baseDimIdx:ue,__largeDataIndices:ne,__barWidth:ge});V.add(oe),M(oe,W,Y),oe.seriesIndex=W.seriesIndex,W.get("silent")||(oe.on("mousedown",R),oe.on("mousemove",R))}var R=e(function(W){var V=this,z=P(V,W.offsetX,W.offsetY);V.dataIndex=z>=0?z:null},30,!1);function P(W,V,z){var Y=W.__baseDimIdx,$=1-Y,ue=W.shape.points,ne=W.__largeDataIndices,ge=Math.abs(W.__barWidth/2),Oe=W.__startPoint[$];u[0]=V,u[1]=z;for(var De=u[Y],He=u[1-Y],pe=De-ge,Ue=De+ge,oe=0,ee=ue.length/2;oe<ee;oe++){var Xe=oe*2,se=ue[Xe+Y],Q=ue[Xe+$];if(se>=pe&&se<=Ue&&(Oe<=Q?He>=Oe&&He<=Q:He>=Q&&He<=Oe))return ne[oe]}return-1}function M(W,V,z){var Y=z.getVisual("borderColor")||z.getVisual("color"),$=V.getModel("itemStyle").getItemStyle(["color","borderColor"]);W.useStyle($),W.style.fill=null,W.style.stroke=Y,W.style.lineWidth=z.getLayout("barWidth")}function U(W,V,z){var Y=V.get("borderColor")||V.get("color"),$=V.getItemStyle(["color","borderColor"]);W.useStyle($),W.style.fill=null,W.style.stroke=Y,W.style.lineWidth=z.getLayout("barWidth")}function F(W,V,z){var Y,$=z.type==="polar";return $?Y=z.getArea():Y=z.grid.getRect(),$?{cx:Y.cx,cy:Y.cy,r0:W?Y.r0:V.r0,r:W?Y.r:V.r,startAngle:W?V.startAngle:0,endAngle:W?V.endAngle:Math.PI*2}:{x:W?V.x:Y.x,y:W?Y.y:V.y,width:W?V.width:Y.width,height:W?Y.height:V.height}}function j(W,V,z){var Y=W.type==="polar"?w.Sector:w.Rect;return new Y({shape:F(V,z,W),silent:!0,z2:0})}H.exports=p},ZCgT:function(H,B,d){var O=d("tLB3"),E=1/0,C=17976931348623157e292;function A(w){if(!w)return w===0?w:0;if(w=O(w),w===E||w===-E){var m=w<0?-1:1;return m*C}return w===w?w:0}H.exports=A},ZLWo:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},ZMnZ:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("2oIt")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="UpOutlined";var c=A.forwardRef(f);B.default=c},ZTPi:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("q1tI"),m=d("rePB"),f=d("ODXe"),c=d("Ff2n"),o=d("VTBJ"),r=d("TSYQ"),i=d.n(r),n=d("Zm9Q"),e=d("6cGi"),s=d("KQm4"),t=d("xEkU"),a=d.n(t),l=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("LK+K"),g=d("m+aA"),v=d("Kwbf"),y=d("c+Xe"),x=d("bdgK"),T="rc-observer-key",S=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(){var Pt;return Object(l.a)(this,Sn),Pt=sn.apply(this,arguments),Pt.resizeObserver=null,Pt.childNode=null,Pt.currentElement=null,Pt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Pt.onResize=function(gt){var Et=Pt.props.onResize,Lt=gt[0].target,kt=Lt.getBoundingClientRect(),yt=kt.width,Qt=kt.height,tr=Lt.offsetWidth,ir=Lt.offsetHeight,yr=Math.floor(yt),xn=Math.floor(Qt);if(Pt.state.width!==yr||Pt.state.height!==xn||Pt.state.offsetWidth!==tr||Pt.state.offsetHeight!==ir){var vn={width:yr,height:xn,offsetWidth:tr,offsetHeight:ir};Pt.setState(vn),Et&&Promise.resolve().then(function(){Et(Object(o.a)(Object(o.a)({},vn),{},{offsetWidth:tr,offsetHeight:ir}))})}},Pt.setChildNode=function(gt){Pt.childNode=gt},Pt}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var gt=this.props.disabled;if(gt){this.destroyObserver();return}var Et=Object(g.a)(this.childNode||this),Lt=Et!==this.currentElement;Lt&&(this.destroyObserver(),this.currentElement=Et),!this.resizeObserver&&Et&&(this.resizeObserver=new x.default(this.onResize),this.resizeObserver.observe(Et))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var gt=this.props.children,Et=Object(n.a)(gt);if(Et.length>1)Object(v.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Et.length===0)return Object(v.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Lt=Et[0];if(w.isValidElement(Lt)&&Object(y.c)(Lt)){var kt=Lt.ref;Et[0]=w.cloneElement(Lt,{ref:Object(y.a)(kt,this.setChildNode)})}return Et.length===1?Et[0]:Et.map(function(yt,Qt){return!w.isValidElement(yt)||"key"in yt&&yt.key!==null?yt:w.cloneElement(yt,{key:"".concat(T,"-").concat(Qt)})})}}]),Sn}(w.Component);S.displayName="ResizeObserver";var b=S;function _(Br){var sn=Object(w.useRef)(),Sn=Object(w.useRef)(!1);function Pt(){for(var gt=arguments.length,Et=new Array(gt),Lt=0;Lt<gt;Lt++)Et[Lt]=arguments[Lt];Sn.current||(a.a.cancel(sn.current),sn.current=a()(function(){Br.apply(void 0,Et)}))}return Object(w.useEffect)(function(){return function(){Sn.current=!0,a.a.cancel(sn.current)}},[]),Pt}function I(Br){var sn=Object(w.useRef)([]),Sn=Object(w.useState)({}),Pt=Object(f.a)(Sn,2),gt=Pt[1],Et=Object(w.useRef)(typeof Br=="function"?Br():Br),Lt=_(function(){var yt=Et.current;sn.current.forEach(function(Qt){yt=Qt(yt)}),sn.current=[],Et.current=yt,gt({})});function kt(yt){sn.current.push(yt),Lt()}return[Et.current,kt]}var L=d("4IlW");function N(Br,sn){var Sn,Pt=Br.prefixCls,gt=Br.id,Et=Br.active,Lt=Br.rtl,kt=Br.tab,yt=kt.key,Qt=kt.tab,tr=kt.disabled,ir=kt.closeIcon,yr=Br.tabBarGutter,xn=Br.tabPosition,vn=Br.closable,Wn=Br.renderWrapper,Yr=Br.removeAriaLabel,xr=Br.editable,ln=Br.onClick,On=Br.onRemove,In=Br.onFocus,Un="".concat(Pt,"-tab");w.useEffect(function(){return On},[]);var ti={};xn==="top"||xn==="bottom"?ti[Lt?"marginLeft":"marginRight"]=yr:ti.marginBottom=yr;var ui=xr&&vn!==!1&&!tr;function si(Ri){if(tr)return;ln(Ri)}function Pi(Ri){Ri.preventDefault(),Ri.stopPropagation(),xr.onEdit("remove",{key:yt,event:Ri})}var zi=w.createElement("div",{key:yt,ref:sn,className:i()(Un,(Sn={},Object(m.a)(Sn,"".concat(Un,"-with-remove"),ui),Object(m.a)(Sn,"".concat(Un,"-active"),Et),Object(m.a)(Sn,"".concat(Un,"-disabled"),tr),Sn)),style:ti,onClick:si},w.createElement("div",{role:"tab","aria-selected":Et,id:gt&&"".concat(gt,"-tab-").concat(yt),className:"".concat(Un,"-btn"),"aria-controls":gt&&"".concat(gt,"-panel-").concat(yt),"aria-disabled":tr,tabIndex:tr?null:0,onClick:function(Yi){Yi.stopPropagation(),si(Yi)},onKeyDown:function(Yi){[L.a.SPACE,L.a.ENTER].includes(Yi.which)&&(Yi.preventDefault(),si(Yi))},onFocus:In},Qt),ui&&w.createElement("button",{type:"button","aria-label":Yr||"remove",tabIndex:0,className:"".concat(Un,"-remove"),onClick:function(Yi){Yi.stopPropagation(),Pi(Yi)}},ir||xr.removeIcon||"\xD7"));return Wn&&(zi=Wn(zi)),zi}var D=w.forwardRef(N),R={width:0,height:0,left:0,top:0};function P(Br,sn,Sn){return Object(w.useMemo)(function(){for(var Pt,gt=new Map,Et=sn.get((Pt=Br[0])===null||Pt===void 0?void 0:Pt.key)||R,Lt=Et.left+Et.width,kt=0;kt<Br.length;kt+=1){var yt=Br[kt].key,Qt=sn.get(yt);if(!Qt){var tr;Qt=sn.get((tr=Br[kt-1])===null||tr===void 0?void 0:tr.key)||R}var ir=gt.get(yt)||Object(o.a)({},Qt);ir.right=Lt-ir.left-ir.width,gt.set(yt,ir)}return gt},[Br.map(function(Pt){return Pt.key}).join("_"),sn,Sn])}var M={width:0,height:0,left:0,top:0,right:0};function U(Br,sn,Sn,Pt,gt){var Et=gt.tabs,Lt=gt.tabPosition,kt=gt.rtl,yt,Qt,tr;["top","bottom"].includes(Lt)?(yt="width",Qt=kt?"right":"left",tr=Math.abs(sn.left)):(yt="height",Qt="top",tr=-sn.top);var ir=sn[yt],yr=Sn[yt],xn=Pt[yt],vn=ir;return yr+xn>ir&&(vn=ir-xn),Object(w.useMemo)(function(){if(!Et.length)return[0,0];for(var Wn=Et.length,Yr=Wn,xr=0;xr<Wn;xr+=1){var ln=Br.get(Et[xr].key)||M;if(ln[Qt]+ln[yt]>tr+vn){Yr=xr-1;break}}for(var On=0,In=Wn-1;In>=0;In-=1){var Un=Br.get(Et[In].key)||M;if(Un[Qt]<tr){On=In+1;break}}return[On,Yr]},[Br,tr,vn,Lt,Et.map(function(Wn){return Wn.key}).join("_"),kt])}var F=d("wx14"),j=d("JX7q"),W=d("I8Z2"),V=d("bT9E"),z=d("2GS6"),Y=d("Gytx"),$=d.n(Y),ue=d("U8pU"),ne=/iPhone/i,ge=/iPod/i,Oe=/iPad/i,De=/\bAndroid(?:.+)Mobile\b/i,He=/Android/i,pe=/\bAndroid(?:.+)SD4930UR\b/i,Ue=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,oe=/Windows Phone/i,ee=/\bWindows(?:.+)ARM\b/i,Xe=/BlackBerry/i,se=/BB10/i,Q=/Opera Mini/i,G=/\b(CriOS|Chrome)(?:.+)Mobile/i,J=/Mobile(?:.+)Firefox\b/i;function ve(Br,sn){return Br.test(sn)}function de(Br){var sn=Br||(typeof navigator!="undefined"?navigator.userAgent:""),Sn=(sn||"").split("[FBAN");if(typeof Sn[1]!="undefined"){var Pt=Sn,gt=Object(f.a)(Pt,1);sn=gt[0]}if(Sn=sn.split("Twitter"),typeof Sn[1]!="undefined"){var Et=Sn,Lt=Object(f.a)(Et,1);sn=Lt[0]}var kt={apple:{phone:ve(ne,sn)&&!ve(oe,sn),ipod:ve(ge,sn),tablet:!ve(ne,sn)&&ve(Oe,sn)&&!ve(oe,sn),device:(ve(ne,sn)||ve(ge,sn)||ve(Oe,sn))&&!ve(oe,sn)},amazon:{phone:ve(pe,sn),tablet:!ve(pe,sn)&&ve(Ue,sn),device:ve(pe,sn)||ve(Ue,sn)},android:{phone:!ve(oe,sn)&&ve(pe,sn)||!ve(oe,sn)&&ve(De,sn),tablet:!ve(oe,sn)&&!ve(pe,sn)&&!ve(De,sn)&&(ve(Ue,sn)||ve(He,sn)),device:!ve(oe,sn)&&(ve(pe,sn)||ve(Ue,sn)||ve(De,sn)||ve(He,sn))||ve(/\bokhttp\b/i,sn)},windows:{phone:ve(oe,sn),tablet:ve(ee,sn),device:ve(oe,sn)||ve(ee,sn)},other:{blackberry:ve(Xe,sn),blackberry10:ve(se,sn),opera:ve(Q,sn),firefox:ve(J,sn),chrome:ve(G,sn),device:ve(Xe,sn)||ve(se,sn)||ve(Q,sn)||ve(J,sn)||ve(G,sn)},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 Ce=Object(o.a)(Object(o.a)({},de()),{},{isMobile:de}),Ee=Ce;function le(){}function fe(Br,sn,Sn){var Pt=sn||"";return Br.key||"".concat(Pt,"item_").concat(Sn)}function xe(Br){return"".concat(Br,"-menu-")}function Qe(Br,sn){var Sn=-1;w.Children.forEach(Br,function(Pt){Sn+=1,Pt&&Pt.type&&Pt.type.isMenuItemGroup?w.Children.forEach(Pt.props.children,function(gt){Sn+=1,sn(gt,Sn)}):sn(Pt,Sn)})}function ot(Br,sn,Sn){if(!Br||Sn.find)return;w.Children.forEach(Br,function(Pt){if(Pt){var gt=Pt.type;if(!gt||!(gt.isSubMenu||gt.isMenuItem||gt.isMenuItemGroup))return;sn.indexOf(Pt.key)!==-1?Sn.find=!0:Pt.props.children&&ot(Pt.props.children,sn,Sn)}})}var Je=["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"],Te=function(sn){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=sn&&typeof sn.getBoundingClientRect=="function"&&sn.getBoundingClientRect().width;if(Pt){if(Sn){var gt=getComputedStyle(sn),Et=gt.marginLeft,Lt=gt.marginRight;Pt+=+Et.replace("px","")+ +Lt.replace("px","")}Pt=+Pt.toFixed(6)}return Pt||0},et=function(sn,Sn,Pt){sn&&Object(ue.a)(sn.style)==="object"&&(sn.style[Sn]=Pt)},ze=function(){return Ee.any},nt=d("i8i4"),Ot=d("uciX"),Ct=d("wgJM"),Tt=d("8XRh"),Dt={adjustX:1,adjustY:1},Be={topLeft:{points:["bl","tl"],overflow:Dt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Dt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Dt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Dt,offset:[4,0]}},ie={topLeft:{points:["bl","tl"],overflow:Dt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Dt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Dt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Dt,offset:[4,0]}},X=Be,Fe=0,Ne={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},q=function(sn,Sn,Pt){var gt=xe(Sn),Et=sn.getState();sn.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},Et.defaultActiveFirst),{},Object(m.a)({},gt,Pt))})},ht=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(Pt){var gt;Object(l.a)(this,Sn),gt=sn.call(this,Pt),gt.onDestroy=function(tr){gt.props.onDestroy(tr)},gt.onKeyDown=function(tr){var ir=tr.keyCode,yr=gt.menuInstance,xn=gt.props.store,vn=gt.getVisible();if(ir===L.a.ENTER)return gt.onTitleClick(tr),q(xn,gt.props.eventKey,!0),!0;if(ir===L.a.RIGHT)return vn?yr.onKeyDown(tr):(gt.triggerOpenChange(!0),q(xn,gt.props.eventKey,!0)),!0;if(ir===L.a.LEFT){var Wn;if(vn)Wn=yr.onKeyDown(tr);else return;return Wn||(gt.triggerOpenChange(!1),Wn=!0),Wn}return vn&&(ir===L.a.UP||ir===L.a.DOWN)?yr.onKeyDown(tr):void 0},gt.onOpenChange=function(tr){gt.props.onOpenChange(tr)},gt.onPopupVisibleChange=function(tr){gt.triggerOpenChange(tr,tr?"mouseenter":"mouseleave")},gt.onMouseEnter=function(tr){var ir=gt.props,yr=ir.eventKey,xn=ir.onMouseEnter,vn=ir.store;q(vn,gt.props.eventKey,!1),xn({key:yr,domEvent:tr})},gt.onMouseLeave=function(tr){var ir=gt.props,yr=ir.parentMenu,xn=ir.eventKey,vn=ir.onMouseLeave;yr.subMenuInstance=Object(j.a)(gt),vn({key:xn,domEvent:tr})},gt.onTitleMouseEnter=function(tr){var ir=gt.props,yr=ir.eventKey,xn=ir.onItemHover,vn=ir.onTitleMouseEnter;xn({key:yr,hover:!0}),vn({key:yr,domEvent:tr})},gt.onTitleMouseLeave=function(tr){var ir=gt.props,yr=ir.parentMenu,xn=ir.eventKey,vn=ir.onItemHover,Wn=ir.onTitleMouseLeave;yr.subMenuInstance=Object(j.a)(gt),vn({key:xn,hover:!1}),Wn({key:xn,domEvent:tr})},gt.onTitleClick=function(tr){var ir=Object(j.a)(gt),yr=ir.props;if(yr.onTitleClick({key:yr.eventKey,domEvent:tr}),yr.triggerSubMenuAction==="hover")return;gt.triggerOpenChange(!gt.getVisible(),"click"),q(yr.store,gt.props.eventKey,!1)},gt.onSubMenuClick=function(tr){typeof gt.props.onClick=="function"&>.props.onClick(gt.addKeyPath(tr))},gt.onSelect=function(tr){gt.props.onSelect(tr)},gt.onDeselect=function(tr){gt.props.onDeselect(tr)},gt.getPrefixCls=function(){return"".concat(gt.props.rootPrefixCls,"-submenu")},gt.getActiveClassName=function(){return"".concat(gt.getPrefixCls(),"-active")},gt.getDisabledClassName=function(){return"".concat(gt.getPrefixCls(),"-disabled")},gt.getSelectedClassName=function(){return"".concat(gt.getPrefixCls(),"-selected")},gt.getOpenClassName=function(){return"".concat(gt.props.rootPrefixCls,"-submenu-open")},gt.getVisible=function(){return gt.state.isOpen},gt.getMode=function(){return gt.state.mode},gt.saveMenuInstance=function(tr){gt.menuInstance=tr},gt.addKeyPath=function(tr){return Object(o.a)(Object(o.a)({},tr),{},{keyPath:(tr.keyPath||[]).concat(gt.props.eventKey)})},gt.triggerOpenChange=function(tr,ir){var yr=gt.props.eventKey,xn=function(){gt.onOpenChange({key:yr,item:Object(j.a)(gt),trigger:ir,open:tr})};ir==="mouseenter"?gt.mouseenterTimeout=setTimeout(function(){xn()},0):xn()},gt.isChildrenSelected=function(){var tr={find:!1};return ot(gt.props.children,gt.props.selectedKeys,tr),tr.find},gt.isInlineMode=function(){return gt.getMode()==="inline"},gt.adjustWidth=function(){if(!gt.subMenuTitle||!gt.menuInstance)return;var tr=nt.findDOMNode(gt.menuInstance);if(tr.offsetWidth>=gt.subMenuTitle.offsetWidth)return;tr.style.minWidth="".concat(gt.subMenuTitle.offsetWidth,"px")},gt.saveSubMenuTitle=function(tr){gt.subMenuTitle=tr},gt.getBaseProps=function(){var tr=Object(j.a)(gt),ir=tr.props,yr=gt.getMode();return{mode:yr==="horizontal"?"vertical":yr,visible:gt.getVisible(),level:ir.level+1,inlineIndent:ir.inlineIndent,focusable:!1,onClick:gt.onSubMenuClick,onSelect:gt.onSelect,onDeselect:gt.onDeselect,onDestroy:gt.onDestroy,selectedKeys:ir.selectedKeys,eventKey:"".concat(ir.eventKey,"-menu-"),openKeys:ir.openKeys,motion:ir.motion,onOpenChange:gt.onOpenChange,subMenuOpenDelay:ir.subMenuOpenDelay,parentMenu:Object(j.a)(gt),subMenuCloseDelay:ir.subMenuCloseDelay,forceSubMenuRender:ir.forceSubMenuRender,triggerSubMenuAction:ir.triggerSubMenuAction,builtinPlacements:ir.builtinPlacements,defaultActiveFirst:ir.store.getState().defaultActiveFirst[xe(ir.eventKey)],multiple:ir.multiple,prefixCls:ir.rootPrefixCls,id:gt.internalMenuId,manualRef:gt.saveMenuInstance,itemIcon:ir.itemIcon,expandIcon:ir.expandIcon,direction:ir.direction}},gt.getMotion=function(tr,ir){var yr=Object(j.a)(gt),xn=yr.haveRendered,vn=gt.props,Wn=vn.motion,Yr=vn.rootPrefixCls,xr=Object(o.a)(Object(o.a)({},Wn),{},{leavedClassName:"".concat(Yr,"-hidden"),removeOnLeave:!1,motionAppear:xn||!ir||tr!=="inline"});return xr};var Et=Pt.store,Lt=Pt.eventKey,kt=Et.getState(),yt=kt.defaultActiveFirst;gt.isRootMenu=!1;var Qt=!1;return yt&&(Qt=yt[Lt]),q(Et,Lt,Qt),gt.state={mode:Pt.mode,isOpen:Pt.isOpen},gt}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var gt=this,Et=this.props,Lt=Et.mode,kt=Et.parentMenu,yt=Et.manualRef,Qt=Et.isOpen,tr=function(){gt.setState({mode:Lt,isOpen:Qt})},ir=Qt!==this.state.isOpen,yr=Lt!==this.state.mode;if((yr||ir)&&(Ct.a.cancel(this.updateStateRaf),yr?this.updateStateRaf=Object(Ct.a)(tr):tr()),yt&&yt(this),Lt!=="horizontal"||!(kt==null?void 0:kt.isRootMenu)||!Qt)return;this.minWidthTimeout=setTimeout(function(){return gt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var gt=this.props,Et=gt.onDestroy,Lt=gt.eventKey;Et&&Et(Lt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ct.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(gt,Et){var Lt=this.getBaseProps();return w.createElement(Vn,Object(F.a)({},Lt,{id:this.internalMenuId,className:gt,style:Et}),this.props.children)}},{key:"renderChildren",value:function(){var gt=this,Et=this.getBaseProps(),Lt=Et.mode,kt=Et.visible,yt=Et.forceSubMenuRender,Qt=Et.direction,tr=this.getMotion(Lt,kt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||kt||yt,!this.haveOpened)return w.createElement("div",null);var ir=i()("".concat(Et.prefixCls,"-sub"),Object(m.a)({},"".concat(Et.prefixCls,"-rtl"),Qt==="rtl"));return this.isInlineMode()?w.createElement(Tt.b,Object(F.a)({visible:Et.visible,forceRender:yt},tr),function(yr){var xn=yr.className,vn=yr.style,Wn=i()(ir,xn);return gt.renderPopupMenu(Wn,vn)}):this.renderPopupMenu(ir)}},{key:"render",value:function(){var gt,Et,Lt,kt=Object(o.a)({},this.props),yt=this.getVisible(),Qt=this.getPrefixCls(),tr=this.isInlineMode(),ir=this.getMode(),yr=i()(Qt,"".concat(Qt,"-").concat(ir),(gt={},Object(m.a)(gt,kt.className,!!kt.className),Object(m.a)(gt,this.getOpenClassName(),yt),Object(m.a)(gt,this.getActiveClassName(),kt.active||yt&&!tr),Object(m.a)(gt,this.getDisabledClassName(),kt.disabled),Object(m.a)(gt,this.getSelectedClassName(),this.isChildrenSelected()),gt));this.internalMenuId||(kt.eventKey?this.internalMenuId="".concat(kt.eventKey,"$Menu"):(Fe+=1,this.internalMenuId="$__$".concat(Fe,"$Menu")));var xn={},vn={},Wn={};kt.disabled||(xn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},vn={onClick:this.onTitleClick},Wn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Yr={},xr=kt.direction,ln=xr==="rtl";tr&&(ln?Yr.paddingRight=kt.inlineIndent*kt.level:Yr.paddingLeft=kt.inlineIndent*kt.level);var On={};this.getVisible()&&(On={"aria-owns":this.internalMenuId});var In=null;ir!=="horizontal"&&(In=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(In=w.createElement(this.props.expandIcon,Object(o.a)({},this.props))));var Un=w.createElement("div",Object(F.a)({ref:this.saveSubMenuTitle,style:Yr,className:"".concat(Qt,"-title"),role:"button"},Wn,vn,{"aria-expanded":yt},On,{"aria-haspopup":"true",title:typeof kt.title=="string"?kt.title:void 0}),kt.title,In||w.createElement("i",{className:"".concat(Qt,"-arrow")})),ti=this.renderChildren(),ui=((Et=kt.parentMenu)===null||Et===void 0?void 0:Et.isRootMenu)?kt.parentMenu.props.getPopupContainer:function(lr){return lr.parentNode},si=Ne[ir],Pi=kt.popupOffset?{offset:kt.popupOffset}:{},zi=i()((Lt={},Object(m.a)(Lt,kt.popupClassName,kt.popupClassName&&!tr),Object(m.a)(Lt,"".concat(Qt,"-rtl"),ln),Lt)),Ri=kt.disabled,Yi=kt.triggerSubMenuAction,$n=kt.subMenuOpenDelay,gn=kt.forceSubMenuRender,mi=kt.subMenuCloseDelay,Hi=kt.builtinPlacements;Je.forEach(function(lr){return delete kt[lr]}),delete kt.onClick;var Li=ln?Object(o.a)(Object(o.a)({},ie),Hi):Object(o.a)(Object(o.a)({},Be),Hi);delete kt.direction;var Bi=this.getBaseProps(),wr=tr?null:this.getMotion(Bi.mode,Bi.visible);return w.createElement("li",Object(F.a)({},kt,xn,{className:yr,role:"menuitem"}),w.createElement(Ot.a,{prefixCls:Qt,popupClassName:i()("".concat(Qt,"-popup"),zi),getPopupContainer:ui,builtinPlacements:Li,popupPlacement:si,popupVisible:tr?!1:yt,popupAlign:Pi,popup:tr?null:ti,action:Ri||tr?[]:[Yi],mouseEnterDelay:$n,mouseLeaveDelay:mi,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:gn,popupMotion:wr},Un),tr?ti:null)}}]),Sn}(w.Component);ht.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Rt=Object(W.b)(function(Br,sn){var Sn=Br.openKeys,Pt=Br.activeKey,gt=Br.selectedKeys,Et=sn.eventKey,Lt=sn.subMenuKey;return{isOpen:Sn.indexOf(Et)>-1,active:Pt[Lt]===Et,selectedKeys:gt}})(ht);Rt.isSubMenu=!0;var ut=Rt,Xt="menuitem-overflowed",or=.5,Zr=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(){var Pt;return Object(l.a)(this,Sn),Pt=sn.apply(this,arguments),Pt.resizeObserver=null,Pt.mutationObserver=null,Pt.originalTotalWidth=0,Pt.overflowedItems=[],Pt.menuItemSizes=[],Pt.cancelFrameId=null,Pt.state={lastVisibleIndex:void 0},Pt.childRef=w.createRef(),Pt.getMenuItemNodes=function(){var gt=Pt.props.prefixCls,Et=Pt.childRef.current;return Et?[].slice.call(Et.children).filter(function(Lt){return Lt.className.split(" ").indexOf("".concat(gt,"-overflowed-submenu"))<0}):[]},Pt.getOverflowedSubMenuItem=function(gt,Et,Lt){var kt=Pt.props,yt=kt.overflowedIndicator,Qt=kt.level,tr=kt.mode,ir=kt.prefixCls,yr=kt.theme;if(Qt!==1||tr!=="horizontal")return null;var xn=Pt.props.children[0],vn=xn.props,Wn=vn.children,Yr=vn.title,xr=vn.style,ln=Object(c.a)(vn,["children","title","style"]),On=Object(o.a)({},xr),In="".concat(gt,"-overflowed-indicator"),Un="".concat(gt,"-overflowed-indicator");Et.length===0&&Lt!==!0?On=Object(o.a)(Object(o.a)({},On),{},{display:"none"}):Lt&&(On=Object(o.a)(Object(o.a)({},On),{},{visibility:"hidden",position:"absolute"}),In="".concat(In,"-placeholder"),Un="".concat(Un,"-placeholder"));var ti=yr?"".concat(ir,"-").concat(yr):"",ui={};return Je.forEach(function(si){ln[si]!==void 0&&(ui[si]=ln[si])}),w.createElement(ut,Object(F.a)({title:yt,className:"".concat(ir,"-overflowed-submenu"),popupClassName:ti},ui,{key:In,eventKey:Un,disabled:!1,style:On}),Et)},Pt.setChildrenWidthAndResize=function(){if(Pt.props.mode!=="horizontal")return;var gt=Pt.childRef.current;if(!gt)return;var Et=gt.children;if(!Et||Et.length===0)return;var Lt=gt.children[Et.length-1];et(Lt,"display","inline-block");var kt=Pt.getMenuItemNodes(),yt=kt.filter(function(Qt){return Qt.className.split(" ").indexOf(Xt)>=0});yt.forEach(function(Qt){et(Qt,"display","inline-block")}),Pt.menuItemSizes=kt.map(function(Qt){return Te(Qt,!0)}),yt.forEach(function(Qt){et(Qt,"display","none")}),Pt.overflowedIndicatorWidth=Te(gt.children[gt.children.length-1],!0),Pt.originalTotalWidth=Pt.menuItemSizes.reduce(function(Qt,tr){return Qt+tr},0),Pt.handleResize(),et(Lt,"display","none")},Pt.handleResize=function(){if(Pt.props.mode!=="horizontal")return;var gt=Pt.childRef.current;if(!gt)return;var Et=Te(gt);Pt.overflowedItems=[];var Lt=0,kt;Pt.originalTotalWidth>Et+or&&(kt=-1,Pt.menuItemSizes.forEach(function(yt){Lt+=yt,Lt+Pt.overflowedIndicatorWidth<=Et&&(kt+=1)})),Pt.setState({lastVisibleIndex:kt})},Pt}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){var gt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Et=this.childRef.current;if(!Et)return;this.resizeObserver=new x.default(function(Lt){Lt.forEach(function(){var kt=gt.cancelFrameId;cancelAnimationFrame(kt),gt.cancelFrameId=requestAnimationFrame(gt.setChildrenWidthAndResize)})}),[].slice.call(Et.children).concat(Et).forEach(function(Lt){gt.resizeObserver.observe(Lt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){gt.resizeObserver.disconnect(),[].slice.call(Et.children).concat(Et).forEach(function(Lt){gt.resizeObserver.observe(Lt)}),gt.setChildrenWidthAndResize()}),this.mutationObserver.observe(Et,{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(gt){var Et=this,Lt=this.state.lastVisibleIndex;return(gt||[]).reduce(function(kt,yt,Qt){var tr=yt;if(Et.props.mode==="horizontal"){var ir=Et.getOverflowedSubMenuItem(yt.props.eventKey,[]);Lt!==void 0&&Et.props.className.indexOf("".concat(Et.props.prefixCls,"-root"))!==-1&&(Qt>Lt&&(tr=w.cloneElement(yt,{style:{display:"none"},eventKey:"".concat(yt.props.eventKey,"-hidden"),className:"".concat(Xt)})),Qt===Lt+1&&(Et.overflowedItems=gt.slice(Lt+1).map(function(xn){return w.cloneElement(xn,{key:xn.props.eventKey,mode:"vertical-left"})}),ir=Et.getOverflowedSubMenuItem(yt.props.eventKey,Et.overflowedItems)));var yr=[].concat(Object(s.a)(kt),[ir,tr]);return Qt===gt.length-1&&yr.push(Et.getOverflowedSubMenuItem(yt.props.eventKey,[],!0)),yr}return[].concat(Object(s.a)(kt),[tr])},[])}},{key:"render",value:function(){var gt=this.props,Et=gt.visible,Lt=gt.prefixCls,kt=gt.overflowedIndicator,yt=gt.mode,Qt=gt.level,tr=gt.tag,ir=gt.children,yr=gt.theme,xn=Object(c.a)(gt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),vn=tr;return w.createElement(vn,Object(F.a)({ref:this.childRef},xn),this.renderChildren(ir))}}]),Sn}(w.Component);Zr.defaultProps={tag:"div",className:""};var ar=Zr;function dr(Br){return Br.length?Br.every(function(sn){return!!sn.props.disabled}):!0}function er(Br,sn,Sn){var Pt=Br.getState();Br.setState({activeKey:Object(o.a)(Object(o.a)({},Pt.activeKey),{},Object(m.a)({},sn,Sn))})}function Ht(Br){return Br.eventKey||"0-menu-"}function dt(Br,sn){var Sn=sn,Pt=Br.children,gt=Br.eventKey;if(Sn){var Et;if(Qe(Pt,function(Lt,kt){Lt&&Lt.props&&!Lt.props.disabled&&Sn===fe(Lt,gt,kt)&&(Et=!0)}),Et)return Sn}return Sn=null,Br.defaultActiveFirst&&Qe(Pt,function(Lt,kt){!Sn&&Lt&&!Lt.props.disabled&&(Sn=fe(Lt,gt,kt))}),Sn}function Hr(Br){if(!Br)return;var sn=this.instanceArray.indexOf(Br);sn!==-1?this.instanceArray[sn]=Br:this.instanceArray.push(Br)}var dn=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(Pt){var gt;return Object(l.a)(this,Sn),gt=sn.call(this,Pt),gt.onKeyDown=function(Et,Lt){var kt=Et.keyCode,yt;if(gt.getFlatInstanceArray().forEach(function(tr){tr&&tr.props.active&&tr.onKeyDown&&(yt=tr.onKeyDown(Et))}),yt)return 1;var Qt=null;return(kt===L.a.UP||kt===L.a.DOWN)&&(Qt=gt.step(kt===L.a.UP?-1:1)),Qt?(Et.preventDefault(),er(gt.props.store,Ht(gt.props),Qt.props.eventKey),typeof Lt=="function"&&Lt(Qt),1):void 0},gt.onItemHover=function(Et){var Lt=Et.key,kt=Et.hover;er(gt.props.store,Ht(gt.props),kt?Lt:null)},gt.onDeselect=function(Et){gt.props.onDeselect(Et)},gt.onSelect=function(Et){gt.props.onSelect(Et)},gt.onClick=function(Et){gt.props.onClick(Et)},gt.onOpenChange=function(Et){gt.props.onOpenChange(Et)},gt.onDestroy=function(Et){gt.props.onDestroy(Et)},gt.getFlatInstanceArray=function(){return gt.instanceArray},gt.step=function(Et){var Lt=gt.getFlatInstanceArray(),kt=gt.props.store.getState().activeKey[Ht(gt.props)],yt=Lt.length;if(!yt)return null;Et<0&&(Lt=Lt.concat().reverse());var Qt=-1;if(Lt.every(function(xn,vn){return xn&&xn.props.eventKey===kt?(Qt=vn,!1):!0}),!gt.props.defaultActiveFirst&&Qt!==-1&&dr(Lt.slice(Qt,yt-1)))return;var tr=(Qt+1)%yt,ir=tr;do{var yr=Lt[ir];if(!yr||yr.props.disabled)ir=(ir+1)%yt;else return yr}while(ir!==tr);return null},gt.renderCommonMenuItem=function(Et,Lt,kt){var yt=gt.props.store.getState(),Qt=Object(j.a)(gt),tr=Qt.props,ir=fe(Et,tr.eventKey,Lt),yr=Et.props;if(!yr||typeof Et.type=="string")return Et;var xn=ir===yt.activeKey,vn=Object(o.a)(Object(o.a)({mode:yr.mode||tr.mode,level:tr.level,inlineIndent:tr.inlineIndent,renderMenuItem:gt.renderMenuItem,rootPrefixCls:tr.prefixCls,index:Lt,parentMenu:tr.parentMenu,manualRef:yr.disabled?void 0:Object(z.a)(Et.ref,Hr.bind(Object(j.a)(gt))),eventKey:ir,active:!yr.disabled&&xn,multiple:tr.multiple,onClick:function(Yr){(yr.onClick||le)(Yr),gt.onClick(Yr)},onItemHover:gt.onItemHover,motion:tr.motion,subMenuOpenDelay:tr.subMenuOpenDelay,subMenuCloseDelay:tr.subMenuCloseDelay,forceSubMenuRender:tr.forceSubMenuRender,onOpenChange:gt.onOpenChange,onDeselect:gt.onDeselect,onSelect:gt.onSelect,builtinPlacements:tr.builtinPlacements,itemIcon:yr.itemIcon||gt.props.itemIcon,expandIcon:yr.expandIcon||gt.props.expandIcon},kt),{},{direction:tr.direction});return(tr.mode==="inline"||ze())&&(vn.triggerSubMenuAction="click"),w.cloneElement(Et,Object(o.a)(Object(o.a)({},vn),{},{key:ir||Lt}))},gt.renderMenuItem=function(Et,Lt,kt){if(!Et)return null;var yt=gt.props.store.getState(),Qt={openKeys:yt.openKeys,selectedKeys:yt.selectedKeys,triggerSubMenuAction:gt.props.triggerSubMenuAction,subMenuKey:kt};return gt.renderCommonMenuItem(Et,Lt,Qt)},Pt.store.setState({activeKey:Object(o.a)(Object(o.a)({},Pt.store.getState().activeKey),{},Object(m.a)({},Pt.eventKey,dt(Pt,Pt.activeKey)))}),gt.instanceArray=[],gt}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(gt){return this.props.visible||gt.visible||this.props.className!==gt.className||!$()(this.props.style,gt.style)}},{key:"componentDidUpdate",value:function(gt){var Et=this.props,Lt="activeKey"in Et?Et.activeKey:Et.store.getState().activeKey[Ht(Et)],kt=dt(Et,Lt);if(kt!==Lt)er(Et.store,Ht(Et),kt);else if("activeKey"in gt){var yt=dt(gt,gt.activeKey);kt!==yt&&er(Et.store,Ht(Et),kt)}}},{key:"render",value:function(){var gt=this,Et=Object(F.a)({},this.props);this.instanceArray=[];var Lt=i()(Et.prefixCls,Et.className,"".concat(Et.prefixCls,"-").concat(Et.mode)),kt={className:Lt,role:Et.role||"menu"};Et.id&&(kt.id=Et.id),Et.focusable&&(kt.tabIndex=0,kt.onKeyDown=this.onKeyDown);var yt=Et.prefixCls,Qt=Et.eventKey,tr=Et.visible,ir=Et.level,yr=Et.mode,xn=Et.overflowedIndicator,vn=Et.theme;return Je.forEach(function(Wn){return delete Et[Wn]}),delete Et.onClick,w.createElement(ar,Object(F.a)({},Et,{prefixCls:yt,mode:yr,tag:"ul",level:ir,theme:vn,visible:tr,overflowedIndicator:xn},kt),Object(n.a)(Et.children).map(function(Wn,Yr){return gt.renderMenuItem(Wn,Yr,Qt||"0-menu-")}))}}]),Sn}(w.Component);dn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var Nn=Object(W.b)()(dn),Vn=Nn;function gi(Br,sn,Sn){var Pt=Br.prefixCls,gt=Br.motion,Et=Br.defaultMotions,Lt=Et===void 0?{}:Et,kt=Br.openAnimation,yt=Br.openTransitionName,Qt=sn.switchingModeFromInline;if(gt)return gt;if(Object(ue.a)(kt)==="object"&&kt)Object(v.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof kt=="string")return{motionName:"".concat(Pt,"-open-").concat(kt)};if(yt)return{motionName:yt};var tr=Lt[Sn];return tr||(Qt?null:Lt.other)}var bn=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(Pt){var gt;Object(l.a)(this,Sn),gt=sn.call(this,Pt),gt.onSelect=function(kt){var yt=Object(j.a)(gt),Qt=yt.props;if(Qt.selectable){var tr=gt.store.getState(),ir=tr.selectedKeys,yr=kt.key;Qt.multiple?ir=ir.concat([yr]):ir=[yr],"selectedKeys"in Qt||gt.store.setState({selectedKeys:ir}),Qt.onSelect(Object(o.a)(Object(o.a)({},kt),{},{selectedKeys:ir}))}},gt.onClick=function(kt){var yt=gt.getRealMenuMode(),Qt=Object(j.a)(gt),tr=Qt.store,ir=Qt.props.onOpenChange;yt!=="inline"&&!("openKeys"in gt.props)&&(tr.setState({openKeys:[]}),ir([])),gt.props.onClick(kt)},gt.onKeyDown=function(kt,yt){gt.innerMenu.getWrappedInstance().onKeyDown(kt,yt)},gt.onOpenChange=function(kt){var yt=Object(j.a)(gt),Qt=yt.props,tr=gt.store.getState().openKeys.concat(),ir=!1,yr=function(vn){var Wn=!1;if(vn.open)Wn=tr.indexOf(vn.key)===-1,Wn&&tr.push(vn.key);else{var Yr=tr.indexOf(vn.key);Wn=Yr!==-1,Wn&&tr.splice(Yr,1)}ir=ir||Wn};Array.isArray(kt)?kt.forEach(yr):yr(kt),ir&&("openKeys"in gt.props||gt.store.setState({openKeys:tr}),Qt.onOpenChange(tr))},gt.onDeselect=function(kt){var yt=Object(j.a)(gt),Qt=yt.props;if(Qt.selectable){var tr=gt.store.getState().selectedKeys.concat(),ir=kt.key,yr=tr.indexOf(ir);yr!==-1&&tr.splice(yr,1),"selectedKeys"in Qt||gt.store.setState({selectedKeys:tr}),Qt.onDeselect(Object(o.a)(Object(o.a)({},kt),{},{selectedKeys:tr}))}},gt.onMouseEnter=function(kt){gt.restoreModeVerticalFromInline();var yt=gt.props.onMouseEnter;yt&&yt(kt)},gt.onTransitionEnd=function(kt){var yt=kt.propertyName==="width"&&kt.target===kt.currentTarget,Qt=kt.target.className,tr=Object.prototype.toString.call(Qt)==="[object SVGAnimatedString]"?Qt.animVal:Qt,ir=kt.propertyName==="font-size"&&tr.indexOf("anticon")>=0;(yt||ir)&>.restoreModeVerticalFromInline()},gt.setInnerMenu=function(kt){gt.innerMenu=kt},gt.isRootMenu=!0;var Et=Pt.defaultSelectedKeys,Lt=Pt.defaultOpenKeys;return"selectedKeys"in Pt&&(Et=Pt.selectedKeys||[]),"openKeys"in Pt&&(Lt=Pt.openKeys||[]),gt.store=Object(W.c)({selectedKeys:Et,openKeys:Lt,activeKey:{"0-menu-":dt(Pt,Pt.activeKey)}}),gt.state={switchingModeFromInline:!1,prevProps:Pt,inlineOpenKeys:[],store:gt.store},gt}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(gt){var Et=this.props,Lt=Et.siderCollapsed,kt=Et.inlineCollapsed,yt=Et.onOpenChange;(!gt.inlineCollapsed&&kt||!gt.siderCollapsed&&Lt)&&yt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var gt=this.props.collapsedWidth,Et=this.store,Lt=this.prevOpenKeys,kt=this.getInlineCollapsed()&&(gt===0||gt==="0"||gt==="0px");kt?(this.prevOpenKeys=Et.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Lt&&(this.store.setState({openKeys:Lt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var gt=this.props.mode,Et=this.state.switchingModeFromInline,Lt=this.getInlineCollapsed();return Et&&Lt?"inline":Lt?"vertical":gt}},{key:"getInlineCollapsed",value:function(){var gt=this.props,Et=gt.inlineCollapsed,Lt=gt.siderCollapsed;return Lt!==void 0?Lt:Et}},{key:"restoreModeVerticalFromInline",value:function(){var gt=this.state.switchingModeFromInline;gt&&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 gt=Object(o.a)({},Object(V.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Et=this.getRealMenuMode();return gt.className+=" ".concat(gt.prefixCls,"-root"),gt.direction==="rtl"&&(gt.className+=" ".concat(gt.prefixCls,"-rtl")),gt=Object(o.a)(Object(o.a)({},gt),{},{mode:Et,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:gi(this.props,this.state,Et)}),delete gt.openAnimation,delete gt.openTransitionName,w.createElement(W.a,{store:this.store},w.createElement(Vn,Object(F.a)({},gt,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(gt,Et){var Lt=Et.prevProps,kt=Et.store,yt=kt.getState(),Qt={},tr={prevProps:gt};return Lt.mode==="inline"&>.mode!=="inline"&&(tr.switchingModeFromInline=!0),"openKeys"in gt?Qt.openKeys=gt.openKeys||[]:((gt.inlineCollapsed&&!Lt.inlineCollapsed||gt.siderCollapsed&&!Lt.siderCollapsed)&&(tr.switchingModeFromInline=!0,tr.inlineOpenKeys=yt.openKeys,Qt.openKeys=[]),(!gt.inlineCollapsed&&Lt.inlineCollapsed||!gt.siderCollapsed&&Lt.siderCollapsed)&&(Qt.openKeys=Et.inlineOpenKeys,tr.inlineOpenKeys=[])),Object.keys(Qt).length&&kt.setState(Qt),tr}}]),Sn}(w.Component);bn.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:w.createElement("span",null,"\xB7\xB7\xB7")};var Mn=bn,jt=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(){var Pt;return Object(l.a)(this,Sn),Pt=sn.apply(this,arguments),Pt.onKeyDown=function(gt){var Et=gt.keyCode;return Et===L.a.ENTER?(Pt.onClick(gt),!0):void 0},Pt.onMouseLeave=function(gt){var Et=Pt.props,Lt=Et.eventKey,kt=Et.onItemHover,yt=Et.onMouseLeave;kt({key:Lt,hover:!1}),yt({key:Lt,domEvent:gt})},Pt.onMouseEnter=function(gt){var Et=Pt.props,Lt=Et.eventKey,kt=Et.onItemHover,yt=Et.onMouseEnter;kt({key:Lt,hover:!0}),yt({key:Lt,domEvent:gt})},Pt.onClick=function(gt){var Et=Pt.props,Lt=Et.eventKey,kt=Et.multiple,yt=Et.onClick,Qt=Et.onSelect,tr=Et.onDeselect,ir=Et.isSelected,yr={key:Lt,keyPath:[Lt],item:Object(j.a)(Pt),domEvent:gt};yt(yr),kt?ir?tr(yr):Qt(yr):ir||Qt(yr)},Pt.saveNode=function(gt){Pt.node=gt},Pt}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var gt=this.props;gt.onDestroy&>.onDestroy(gt.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 gt,Et=Object(o.a)({},this.props),Lt=i()(this.getPrefixCls(),Et.className,(gt={},Object(m.a)(gt,this.getActiveClassName(),!Et.disabled&&Et.active),Object(m.a)(gt,this.getSelectedClassName(),Et.isSelected),Object(m.a)(gt,this.getDisabledClassName(),Et.disabled),gt)),kt=Object(o.a)(Object(o.a)({},Et.attribute),{},{title:typeof Et.title=="string"?Et.title:void 0,className:Lt,role:Et.role||"menuitem","aria-disabled":Et.disabled});Et.role==="option"?kt=Object(o.a)(Object(o.a)({},kt),{},{role:"option","aria-selected":Et.isSelected}):(Et.role===null||Et.role==="none")&&(kt.role="none");var yt={onClick:Et.disabled?null:this.onClick,onMouseLeave:Et.disabled?null:this.onMouseLeave,onMouseEnter:Et.disabled?null:this.onMouseEnter},Qt=Object(o.a)({},Et.style);Et.mode==="inline"&&(Et.direction==="rtl"?Qt.paddingRight=Et.inlineIndent*Et.level:Qt.paddingLeft=Et.inlineIndent*Et.level),Je.forEach(function(ir){return delete Et[ir]}),delete Et.direction;var tr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(tr=w.createElement(this.props.itemIcon,this.props)),w.createElement("li",Object(F.a)({},Object(V.a)(Et,["onClick","onMouseEnter","onMouseLeave","onSelect"]),kt,yt,{style:Qt,ref:this.saveNode}),Et.children,tr)}}]),Sn}(w.Component);jt.isMenuItem=!0,jt.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var St=Object(W.b)(function(Br,sn){var Sn=Br.activeKey,Pt=Br.selectedKeys,gt=sn.eventKey,Et=sn.subMenuKey;return{active:Sn[Et]===gt,isSelected:Array.isArray(Pt)?Pt.indexOf(gt)!==-1:Pt===gt}})(jt),Ie=St,_e=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(){var Pt;return Object(l.a)(this,Sn),Pt=sn.apply(this,arguments),Pt.renderInnerMenuItem=function(gt){var Et=Pt.props,Lt=Et.renderMenuItem,kt=Et.index;return Lt(gt,kt,Pt.props.subMenuKey)},Pt}return Object(u.a)(Sn,[{key:"render",value:function(){var gt=Object(F.a)({},this.props),Et=gt.className,Lt=Et===void 0?"":Et,kt=gt.rootPrefixCls,yt="".concat(kt,"-item-group-title"),Qt="".concat(kt,"-item-group-list"),tr=gt.title,ir=gt.children;return Je.forEach(function(yr){return delete gt[yr]}),delete gt.direction,w.createElement("li",Object(F.a)({},gt,{onClick:function(xn){return xn.stopPropagation()},className:"".concat(Lt," ").concat(kt,"-item-group")}),w.createElement("div",{className:yt,title:typeof tr=="string"?tr:void 0},tr),w.createElement("ul",{className:Qt},w.Children.map(ir,this.renderInnerMenuItem)))}}]),Sn}(w.Component);_e.isMenuItemGroup=!0,_e.defaultProps={disabled:!0};var Le=_e,Ze=function(sn){var Sn=sn.className,Pt=sn.rootPrefixCls,gt=sn.style;return w.createElement("li",{className:"".concat(Sn," ").concat(Pt,"-item-divider"),style:gt})};Ze.defaultProps={disabled:!0,className:"",style:{}};var it=Ze,ft=Mn,Nt={adjustX:1,adjustY:1},Ar=[0,0],Mr={topLeft:{points:["bl","tl"],overflow:Nt,offset:[0,-4],targetOffset:Ar},topCenter:{points:["bc","tc"],overflow:Nt,offset:[0,-4],targetOffset:Ar},topRight:{points:["br","tr"],overflow:Nt,offset:[0,-4],targetOffset:Ar},bottomLeft:{points:["tl","bl"],overflow:Nt,offset:[0,4],targetOffset:Ar},bottomCenter:{points:["tc","bc"],overflow:Nt,offset:[0,4],targetOffset:Ar},bottomRight:{points:["tr","br"],overflow:Nt,offset:[0,4],targetOffset:Ar}},un=Mr,Mt=L.a.ESC,at=L.a.TAB;function lt(Br){var sn=Br.visible,Sn=Br.setTriggerVisible,Pt=Br.triggerRef,gt=Br.menuRef,Et=Br.onVisibleChange,Lt=Br.autoFocus,kt=w.useRef(!1),yt=function(){if(sn&&Pt.current){var yr,xn,vn,Wn;(yr=Pt.current)===null||yr===void 0||((xn=yr.triggerRef)===null||xn===void 0||((vn=xn.current)===null||vn===void 0||((Wn=vn.focus)===null||Wn===void 0)))||Wn.call(vn),Sn(!1),typeof Et=="function"&&Et(!1)}},Qt=function(){var yr,xn;(yr=gt.current)===null||yr===void 0||((xn=yr.focus)===null||xn===void 0)||xn.call(yr),kt.current=!0},tr=function(yr){var xn;switch(yr.keyCode){case Mt:yt();break;case at:!kt.current&&((xn=gt.current)===null||xn===void 0?void 0:xn.focus)?(yr.preventDefault(),Qt()):yt();break}};w.useEffect(function(){return sn?(window.addEventListener("keydown",tr),Lt&&Object(Ct.a)(Qt,3),function(){window.removeEventListener("keydown",tr),kt.current=!1}):function(){kt.current=!1}},[sn])}var rr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Bt(Br,sn){var Sn=Br.arrow,Pt=Sn===void 0?!1:Sn,gt=Br.prefixCls,Et=gt===void 0?"rc-dropdown":gt,Lt=Br.transitionName,kt=Br.animation,yt=Br.align,Qt=Br.placement,tr=Qt===void 0?"bottomLeft":Qt,ir=Br.placements,yr=ir===void 0?un:ir,xn=Br.getPopupContainer,vn=Br.showAction,Wn=Br.hideAction,Yr=Br.overlayClassName,xr=Br.overlayStyle,ln=Br.visible,On=Br.trigger,In=On===void 0?["hover"]:On,Un=Br.autoFocus,ti=Object(c.a)(Br,rr),ui=w.useState(),si=Object(f.a)(ui,2),Pi=si[0],zi=si[1],Ri="visible"in Br?ln:Pi,Yi=w.useRef(null);w.useImperativeHandle(sn,function(){return Yi.current});var $n=w.useRef(null),gn="".concat(Et,"-menu");lt({visible:Ri,setTriggerVisible:zi,triggerRef:Yi,menuRef:$n,onVisibleChange:Br.onVisibleChange,autoFocus:Un});var mi=function(){var Wr=Br.overlay,An;return typeof Wr=="function"?An=Wr():An=Wr,An},Hi=function(Wr){var An=Br.onOverlayClick,bt=mi().props;zi(!1),An&&An(Wr),bt.onClick&&bt.onClick(Wr)},Li=function(Wr){var An=Br.onVisibleChange;zi(Wr),typeof An=="function"&&An(Wr)},Bi=function(){var Wr,An=mi(),bt=Object(y.a)($n,An.ref),mr=(Wr={prefixCls:gn},Object(m.a)(Wr,"data-dropdown-inject",!0),Object(m.a)(Wr,"onClick",Hi),Object(m.a)(Wr,"ref",Object(y.c)(An)?bt:void 0),Wr);return typeof An.type=="string"&&(delete mr.prefixCls,delete mr["data-dropdown-inject"]),w.createElement(w.Fragment,null,Pt&&w.createElement("div",{className:"".concat(Et,"-arrow")}),w.cloneElement(An,mr))},wr=function(){var Wr=Br.overlay;return typeof Wr=="function"?Bi:Bi()},lr=function(){var Wr=Br.minOverlayWidthMatchTrigger,An=Br.alignPoint;return"minOverlayWidthMatchTrigger"in Br?Wr:!An},on=function(){var Wr=Br.openClassName;return Wr!==void 0?Wr:"".concat(Et,"-open")},Zt=function(){var Wr=Br.children,An=Wr.props?Wr.props:{},bt=i()(An.className,on());return Ri&&Wr?w.cloneElement(Wr,{className:bt}):Wr},br=Wn;return!br&&In.indexOf("contextMenu")!==-1&&(br=["click"]),w.createElement(Ot.a,Object(o.a)(Object(o.a)({builtinPlacements:yr},ti),{},{prefixCls:Et,ref:Yi,popupClassName:i()(Yr,Object(m.a)({},"".concat(Et,"-show-arrow"),Pt)),popupStyle:xr,action:In,showAction:vn,hideAction:br||[],popupPlacement:tr,popupAlign:yt,popupTransitionName:Lt,popupAnimation:kt,popupVisible:Ri,stretch:lr()?"minWidth":"",popup:wr(),onPopupVisibleChange:Li,getPopupContainer:xn}),Zt())}var _t=w.forwardRef(Bt),Kt=_t;function wt(Br,sn){var Sn=Br.prefixCls,Pt=Br.editable,gt=Br.locale,Et=Br.style;return!Pt||Pt.showAdd===!1?null:w.createElement("button",{ref:sn,type:"button",className:"".concat(Sn,"-nav-add"),style:Et,"aria-label":(gt==null?void 0:gt.addAriaLabel)||"Add tab",onClick:function(kt){Pt.onEdit("add",{event:kt})}},Pt.addIcon||"+")}var Ut=w.forwardRef(wt);function Sr(Br,sn){var Sn=Br.prefixCls,Pt=Br.id,gt=Br.tabs,Et=Br.locale,Lt=Br.mobile,kt=Br.moreIcon,yt=kt===void 0?"More":kt,Qt=Br.moreTransitionName,tr=Br.style,ir=Br.className,yr=Br.editable,xn=Br.tabBarGutter,vn=Br.rtl,Wn=Br.onTabClick,Yr=Object(w.useState)(!1),xr=Object(f.a)(Yr,2),ln=xr[0],On=xr[1],In=Object(w.useState)(null),Un=Object(f.a)(In,2),ti=Un[0],ui=Un[1],si="".concat(Pt,"-more-popup"),Pi="".concat(Sn,"-dropdown"),zi=ti!==null?"".concat(si,"-").concat(ti):null,Ri=Et==null?void 0:Et.dropdownAriaLabel,Yi=w.createElement(ft,{onClick:function(wr){var lr=wr.key,on=wr.domEvent;Wn(lr,on),On(!1)},id:si,tabIndex:-1,role:"listbox","aria-activedescendant":zi,selectedKeys:[ti],"aria-label":Ri!==void 0?Ri:"expanded dropdown"},gt.map(function(Bi){return w.createElement(Ie,{key:Bi.key,id:"".concat(si,"-").concat(Bi.key),role:"option","aria-controls":Pt&&"".concat(Pt,"-panel-").concat(Bi.key),disabled:Bi.disabled},Bi.tab)}));function $n(Bi){for(var wr=gt.filter(function(Or){return!Or.disabled}),lr=wr.findIndex(function(Or){return Or.key===ti})||0,on=wr.length,Zt=0;Zt<on;Zt+=1){lr=(lr+Bi+on)%on;var br=wr[lr];if(!br.disabled){ui(br.key);return}}}function gn(Bi){var wr=Bi.which;if(!ln){[L.a.DOWN,L.a.SPACE,L.a.ENTER].includes(wr)&&(On(!0),Bi.preventDefault());return}switch(wr){case L.a.UP:$n(-1),Bi.preventDefault();break;case L.a.DOWN:$n(1),Bi.preventDefault();break;case L.a.ESC:On(!1);break;case L.a.SPACE:case L.a.ENTER:ti!==null&&Wn(ti,Bi);break}}Object(w.useEffect)(function(){var Bi=document.getElementById(zi);Bi&&Bi.scrollIntoView&&Bi.scrollIntoView(!1)},[ti]),Object(w.useEffect)(function(){ln||ui(null)},[ln]);var mi=Object(m.a)({},vn?"marginLeft":"marginRight",xn);gt.length||(mi.visibility="hidden",mi.order=1);var Hi=i()(Object(m.a)({},"".concat(Pi,"-rtl"),vn)),Li=Lt?null:w.createElement(Kt,{prefixCls:Pi,overlay:Yi,trigger:["hover"],visible:ln,transitionName:Qt,onVisibleChange:On,overlayClassName:Hi,mouseEnterDelay:.1,mouseLeaveDelay:.1},w.createElement("button",{type:"button",className:"".concat(Sn,"-nav-more"),style:mi,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":si,id:"".concat(Pt,"-more"),"aria-expanded":ln,onKeyDown:gn},yt));return w.createElement("div",{className:i()("".concat(Sn,"-nav-operations"),ir),style:tr,ref:sn},Li,w.createElement(Ut,{prefixCls:Sn,locale:Et,editable:yr}))}var hr=w.forwardRef(Sr),gr=Object(w.createContext)(null),Jr=.1,$r=.01,Pn=20,Dn=Math.pow(.995,Pn);function Zn(){var Br=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(Br)||/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(Br.substr(0,4)))}function li(Br,sn){var Sn=Object(w.useState)(),Pt=Object(f.a)(Sn,2),gt=Pt[0],Et=Pt[1],Lt=Object(w.useState)(0),kt=Object(f.a)(Lt,2),yt=kt[0],Qt=kt[1],tr=Object(w.useState)(0),ir=Object(f.a)(tr,2),yr=ir[0],xn=ir[1],vn=Object(w.useState)(),Wn=Object(f.a)(vn,2),Yr=Wn[0],xr=Wn[1],ln=Object(w.useRef)();function On(Ri){var Yi=Ri.touches[0],$n=Yi.screenX,gn=Yi.screenY;Et({x:$n,y:gn}),window.clearInterval(ln.current)}function In(Ri){if(!gt)return;Ri.preventDefault();var Yi=Ri.touches[0],$n=Yi.screenX,gn=Yi.screenY;Et({x:$n,y:gn});var mi=$n-gt.x,Hi=gn-gt.y;sn(mi,Hi);var Li=Date.now();Qt(Li),xn(Li-yt),xr({x:mi,y:Hi})}function Un(){if(!gt)return;if(Et(null),xr(null),Yr){var Ri=Yr.x/yr,Yi=Yr.y/yr,$n=Math.abs(Ri),gn=Math.abs(Yi);if(Math.max($n,gn)<Jr)return;var mi=Ri,Hi=Yi;ln.current=window.setInterval(function(){if(Math.abs(mi)<$r&&Math.abs(Hi)<$r){window.clearInterval(ln.current);return}mi*=Dn,Hi*=Dn,sn(mi*Pn,Hi*Pn)},Pn)}}var ti=Object(w.useRef)(0),ui=Object(w.useRef)(!1),si=Object(w.useRef)();function Pi(Ri){var Yi=Ri.deltaX,$n=Ri.deltaY,gn=0,mi=Math.abs(Yi),Hi=Math.abs($n);mi===Hi?gn=si.current==="x"?Yi:$n:mi>Hi?(gn=Yi,si.current="x"):(gn=$n,si.current="y");var Li=Date.now();Li-ti.current>100&&(ui.current=!1),(sn(-gn,-gn)||ui.current)&&(Ri.preventDefault(),ui.current=!0),ti.current=Li}var zi=Object(w.useRef)(null);zi.current={onTouchStart:On,onTouchMove:In,onTouchEnd:Un,onWheel:Pi},w.useEffect(function(){function Ri(mi){zi.current.onTouchStart(mi)}function Yi(mi){zi.current.onTouchMove(mi)}function $n(mi){zi.current.onTouchEnd(mi)}function gn(mi){zi.current.onWheel(mi)}return document.addEventListener("touchmove",Yi,{passive:!1}),document.addEventListener("touchend",$n,{passive:!1}),Br.current.addEventListener("touchstart",Ri,{passive:!1}),Br.current.addEventListener("wheel",gn),function(){document.removeEventListener("touchmove",Yi),document.removeEventListener("touchend",$n)}},[])}function Ai(){var Br=Object(w.useRef)(new Map);function sn(Pt){return Br.current.has(Pt)||Br.current.set(Pt,w.createRef()),Br.current.get(Pt)}function Sn(Pt){Br.current.delete(Pt)}return[sn,Sn]}function Ii(Br,sn){var Sn=w.useRef(Br),Pt=w.useState({}),gt=Object(f.a)(Pt,2),Et=gt[1];function Lt(kt){var yt=typeof kt=="function"?kt(Sn.current):kt;yt!==Sn.current&&sn(yt,Sn.current),Sn.current=yt,Et({})}return[Sn.current,Lt]}var $e=function(sn){var Sn=sn.position,Pt=sn.prefixCls,gt=sn.extra;if(!gt)return null;var Et,Lt=gt;return Sn==="right"&&(Et=Lt.right||!Lt.left&&Lt||null),Sn==="left"&&(Et=Lt.left||null),Et?w.createElement("div",{className:"".concat(Pt,"-extra-content")},Et):null};function Se(Br,sn){var Sn,Pt=w.useContext(gr),gt=Pt.prefixCls,Et=Pt.tabs,Lt=Br.className,kt=Br.style,yt=Br.id,Qt=Br.animated,tr=Br.activeKey,ir=Br.rtl,yr=Br.extra,xn=Br.editable,vn=Br.locale,Wn=Br.tabPosition,Yr=Br.tabBarGutter,xr=Br.children,ln=Br.onTabClick,On=Br.onTabScroll,In=Object(w.useRef)(),Un=Object(w.useRef)(),ti=Object(w.useRef)(),ui=Object(w.useRef)(),si=Ai(),Pi=Object(f.a)(si,2),zi=Pi[0],Ri=Pi[1],Yi=Wn==="top"||Wn==="bottom",$n=Ii(0,function(jn,Hn){Yi&&On&&On({direction:jn>Hn?"left":"right"})}),gn=Object(f.a)($n,2),mi=gn[0],Hi=gn[1],Li=Ii(0,function(jn,Hn){!Yi&&On&&On({direction:jn>Hn?"top":"bottom"})}),Bi=Object(f.a)(Li,2),wr=Bi[0],lr=Bi[1],on=Object(w.useState)(0),Zt=Object(f.a)(on,2),br=Zt[0],Or=Zt[1],Wr=Object(w.useState)(0),An=Object(f.a)(Wr,2),bt=An[0],mr=An[1],vr=Object(w.useState)(0),Fr=Object(f.a)(vr,2),nn=Fr[0],cn=Fr[1],tn=Object(w.useState)(0),Ln=Object(f.a)(tn,2),Tn=Ln[0],Xn=Ln[1],ci=Object(w.useState)(null),Jn=Object(f.a)(ci,2),pi=Jn[0],Si=Jn[1],Ni=Object(w.useState)(null),xi=Object(f.a)(Ni,2),yi=xi[0],vi=xi[1],Ti=Object(w.useState)(0),Ui=Object(f.a)(Ti,2),$i=Ui[0],Di=Ui[1],ua=Object(w.useState)(0),aa=Object(f.a)(ua,2),Gi=aa[0],Vi=aa[1],ta=I(new Map),Xi=Object(f.a)(ta,2),ga=Xi[0],ra=Xi[1],pa=P(Et,ga,br),_a="".concat(gt,"-nav-operations-hidden"),Da=0,Ra=0;Yi?ir?(Da=0,Ra=Math.max(0,br-pi)):(Da=Math.min(0,pi-br),Ra=0):(Da=Math.min(0,yi-bt),Ra=0);function Ao(jn){return jn<Da?[Da,!1]:jn>Ra?[Ra,!1]:[jn,!0]}var ja=Object(w.useRef)(),Ya=Object(w.useState)(),Ia=Object(f.a)(Ya,2),Va=Ia[0],co=Ia[1];function Ca(){co(Date.now())}function yo(){window.clearTimeout(ja.current)}li(In,function(jn,Hn){var Bn=!1;function ri(Yn,ii){Yn(function(ai){var ki=Ao(ai+ii),bi=Object(f.a)(ki,2),Ki=bi[0],Aa=bi[1];return Bn=Aa,Ki})}if(Yi){if(pi>=br)return Bn;ri(Hi,jn)}else{if(yi>=bt)return Bn;ri(lr,Hn)}return yo(),Ca(),Bn}),Object(w.useEffect)(function(){return yo(),Va&&(ja.current=window.setTimeout(function(){co(0)},100)),yo},[Va]);function uo(){var jn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tr,Hn=pa.get(jn);if(!Hn)return;if(Yi){var Bn=mi;ir?Hn.right<mi?Bn=Hn.right:Hn.right+Hn.width>mi+pi&&(Bn=Hn.right+Hn.width-pi):Hn.left<-mi?Bn=-Hn.left:Hn.left+Hn.width>-mi+pi&&(Bn=-(Hn.left+Hn.width-pi)),lr(0),Hi(Ao(Bn)[0])}else{var ri=wr;Hn.top<-wr?ri=-Hn.top:Hn.top+Hn.height>-wr+yi&&(ri=-(Hn.top+Hn.height-yi)),Hi(0),lr(Ao(ri)[0])}}var Ga=U(pa,{width:pi,height:yi,left:mi,top:wr},{width:nn,height:Tn},{width:$i,height:Gi},Object(o.a)(Object(o.a)({},Br),{},{tabs:Et})),Oo=Object(f.a)(Ga,2),oa=Oo[0],qa=Oo[1],oo=Et.map(function(jn){var Hn=jn.key;return w.createElement(D,{id:yt,prefixCls:gt,key:Hn,rtl:ir,tab:jn,closable:jn.closable,editable:xn,active:Hn===tr,tabPosition:Wn,tabBarGutter:Yr,renderWrapper:xr,removeAriaLabel:vn==null?void 0:vn.removeAriaLabel,ref:zi(Hn),onClick:function(ri){ln(Hn,ri)},onRemove:function(){Ri(Hn)},onFocus:function(){uo(Hn),Ca(),ir||(In.current.scrollLeft=0),In.current.scrollTop=0}})}),Ro=_(function(){var jn,Hn,Bn,ri,Yn,ii,ai,ki,bi,Ki=((jn=In.current)===null||jn===void 0?void 0:jn.offsetWidth)||0,Aa=((Hn=In.current)===null||Hn===void 0?void 0:Hn.offsetHeight)||0,ea=((Bn=ui.current)===null||Bn===void 0?void 0:Bn.offsetWidth)||0,Ji=((ri=ui.current)===null||ri===void 0?void 0:ri.offsetHeight)||0,sa=((Yn=ti.current)===null||Yn===void 0?void 0:Yn.offsetWidth)||0,fa=((ii=ti.current)===null||ii===void 0?void 0:ii.offsetHeight)||0;Si(Ki),vi(Aa),Di(ea),Vi(Ji);var xo=(((ai=Un.current)===null||ai===void 0?void 0:ai.offsetWidth)||0)-ea,Qa=(((ki=Un.current)===null||ki===void 0?void 0:ki.offsetHeight)||0)-Ji;Or(xo),mr(Qa);var Wi=(bi=ti.current)===null||bi===void 0?void 0:bi.className.includes(_a);cn(xo-(Wi?0:sa)),Xn(Qa-(Wi?0:fa)),ra(function(){var qi=new Map;return Et.forEach(function(ca){var ma=ca.key,ka=zi(ma).current;ka&&qi.set(ma,{width:ka.offsetWidth,height:ka.offsetHeight,left:ka.offsetLeft,top:ka.offsetTop})}),qi})}),Xa=Et.slice(0,oa),_o=Et.slice(qa+1),go=[].concat(Object(s.a)(Xa),Object(s.a)(_o)),Ja=Object(w.useState)(),Fa=Object(f.a)(Ja,2),ha=Fa[0],rt=Fa[1],cr=pa.get(tr),Pr=Object(w.useRef)();function Lr(){a.a.cancel(Pr.current)}Object(w.useEffect)(function(){var jn={};return cr&&(Yi?(ir?jn.right=cr.right:jn.left=cr.left,jn.width=cr.width):(jn.top=cr.top,jn.height=cr.height)),Lr(),Pr.current=a()(function(){rt(jn)}),Lr},[cr,Yi,ir]),Object(w.useEffect)(function(){uo()},[tr,cr,pa,Yi]),Object(w.useEffect)(function(){Ro()},[ir,Yr,tr,Et.map(function(jn){return jn.key}).join("_")]);var _n=!!go.length,Vr="".concat(gt,"-nav-wrap"),_r,kn,Ur,En;return Yi?ir?(kn=mi>0,_r=mi+pi<br):(_r=mi<0,kn=-mi+pi<br):(Ur=wr<0,En=-wr+yi<bt),w.createElement("div",{ref:sn,role:"tablist",className:i()("".concat(gt,"-nav"),Lt),style:kt,onKeyDown:function(){Ca()}},w.createElement($e,{position:"left",extra:yr,prefixCls:gt}),w.createElement(b,{onResize:Ro},w.createElement("div",{className:i()(Vr,(Sn={},Object(m.a)(Sn,"".concat(Vr,"-ping-left"),_r),Object(m.a)(Sn,"".concat(Vr,"-ping-right"),kn),Object(m.a)(Sn,"".concat(Vr,"-ping-top"),Ur),Object(m.a)(Sn,"".concat(Vr,"-ping-bottom"),En),Sn)),ref:In},w.createElement(b,{onResize:Ro},w.createElement("div",{ref:Un,className:"".concat(gt,"-nav-list"),style:{transform:"translate(".concat(mi,"px, ").concat(wr,"px)"),transition:Va?"none":void 0}},oo,w.createElement(Ut,{ref:ui,prefixCls:gt,locale:vn,editable:xn,style:{visibility:_n?"hidden":null}}),w.createElement("div",{className:i()("".concat(gt,"-ink-bar"),Object(m.a)({},"".concat(gt,"-ink-bar-animated"),Qt.inkBar)),style:ha}))))),w.createElement(hr,Object.assign({},Br,{ref:ti,prefixCls:gt,tabs:go,className:!_n&&_a})),w.createElement($e,{position:"right",extra:yr,prefixCls:gt}))}var Re=w.forwardRef(Se);function je(Br){var sn=Br.id,Sn=Br.activeKey,Pt=Br.animated,gt=Br.tabPosition,Et=Br.rtl,Lt=Br.destroyInactiveTabPane,kt=w.useContext(gr),yt=kt.prefixCls,Qt=kt.tabs,tr=Pt.tabPane,ir=Qt.findIndex(function(yr){return yr.key===Sn});return w.createElement("div",{className:i()("".concat(yt,"-content-holder"))},w.createElement("div",{className:i()("".concat(yt,"-content"),"".concat(yt,"-content-").concat(gt),Object(m.a)({},"".concat(yt,"-content-animated"),tr)),style:ir&&tr?Object(m.a)({},Et?"marginRight":"marginLeft","-".concat(ir,"00%")):null},Qt.map(function(yr){return w.cloneElement(yr.node,{key:yr.key,prefixCls:yt,tabKey:yr.key,id:sn,animated:tr,active:yr.key===Sn,destroyInactiveTabPane:Lt})})))}function Ye(Br){var sn=Br.prefixCls,Sn=Br.forceRender,Pt=Br.className,gt=Br.style,Et=Br.id,Lt=Br.active,kt=Br.animated,yt=Br.destroyInactiveTabPane,Qt=Br.tabKey,tr=Br.children,ir=w.useState(Sn),yr=Object(f.a)(ir,2),xn=yr[0],vn=yr[1];w.useEffect(function(){Lt?vn(!0):yt&&vn(!1)},[Lt,yt]);var Wn={};return Lt||(kt?(Wn.visibility="hidden",Wn.height=0,Wn.overflowY="hidden"):Wn.display="none"),w.createElement("div",{id:Et&&"".concat(Et,"-panel-").concat(Qt),role:"tabpanel",tabIndex:Lt?0:-1,"aria-labelledby":Et&&"".concat(Et,"-tab-").concat(Qt),"aria-hidden":!Lt,style:Object(o.a)(Object(o.a)({},Wn),gt),className:i()("".concat(sn,"-tabpane"),Lt&&"".concat(sn,"-tabpane-active"),Pt)},(Lt||xn||Sn)&&tr)}var Ve=0;function qe(Br){return Object(n.a)(Br).map(function(sn){if(w.isValidElement(sn)){var Sn=sn.key!==void 0?String(sn.key):void 0;return Object(o.a)(Object(o.a)({key:Sn},sn.props),{},{node:sn})}return null}).filter(function(sn){return sn})}function xt(Br,sn){var Sn,Pt=Br.id,gt=Br.prefixCls,Et=gt===void 0?"rc-tabs":gt,Lt=Br.className,kt=Br.children,yt=Br.direction,Qt=Br.activeKey,tr=Br.defaultActiveKey,ir=Br.editable,yr=Br.animated,xn=Br.tabPosition,vn=xn===void 0?"top":xn,Wn=Br.tabBarGutter,Yr=Br.tabBarStyle,xr=Br.tabBarExtraContent,ln=Br.locale,On=Br.moreIcon,In=Br.moreTransitionName,Un=Br.destroyInactiveTabPane,ti=Br.renderTabBar,ui=Br.onChange,si=Br.onTabClick,Pi=Br.onTabScroll,zi=Object(c.a)(Br,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Ri=qe(kt),Yi=yt==="rtl",$n;yr===!1?$n={inkBar:!1,tabPane:!1}:$n=Object(o.a)({inkBar:!0,tabPane:!1},yr!==!0?yr:null);var gn=Object(w.useState)(!1),mi=Object(f.a)(gn,2),Hi=mi[0],Li=mi[1];Object(w.useEffect)(function(){Li(Zn())},[]);var Bi=Object(e.a)(function(){var Tn;return(Tn=Ri[0])===null||Tn===void 0?void 0:Tn.key},{value:Qt,defaultValue:tr}),wr=Object(f.a)(Bi,2),lr=wr[0],on=wr[1],Zt=Object(w.useState)(function(){return Ri.findIndex(function(Tn){return Tn.key===lr})}),br=Object(f.a)(Zt,2),Or=br[0],Wr=br[1];Object(w.useEffect)(function(){var Tn=Ri.findIndex(function(ci){return ci.key===lr});if(Tn===-1){var Xn;Tn=Math.max(0,Math.min(Or,Ri.length-1)),on((Xn=Ri[Tn])===null||Xn===void 0?void 0:Xn.key)}Wr(Tn)},[Ri.map(function(Tn){return Tn.key}).join("_"),lr,Or]);var An=Object(e.a)(null,{value:Pt}),bt=Object(f.a)(An,2),mr=bt[0],vr=bt[1],Fr=vn;Hi&&!["left","right"].includes(vn)&&(Fr="top"),Object(w.useEffect)(function(){Pt||(vr("rc-tabs-".concat(Ve)),Ve+=1)},[]);function nn(Tn,Xn){si==null||si(Tn,Xn),on(Tn),ui==null||ui(Tn)}var cn={id:mr,activeKey:lr,animated:$n,tabPosition:Fr,rtl:Yi,mobile:Hi},tn,Ln=Object(o.a)(Object(o.a)({},cn),{},{editable:ir,locale:ln,moreIcon:On,moreTransitionName:In,tabBarGutter:Wn,onTabClick:nn,onTabScroll:Pi,extra:xr,style:Yr,panes:kt});return ti?tn=ti(Ln,Re):tn=w.createElement(Re,Object.assign({},Ln)),w.createElement(gr.Provider,{value:{tabs:Ri,prefixCls:Et}},w.createElement("div",Object.assign({ref:sn,id:Pt,className:i()(Et,"".concat(Et,"-").concat(Fr),(Sn={},Object(m.a)(Sn,"".concat(Et,"-mobile"),Hi),Object(m.a)(Sn,"".concat(Et,"-editable"),ir),Object(m.a)(Sn,"".concat(Et,"-rtl"),Yi),Sn),Lt)},zi),tn,w.createElement(je,Object.assign({destroyInactiveTabPane:Un},cn,{animated:$n}))))}var ct=w.forwardRef(xt);ct.TabPane=Ye;var Jt=ct,Rr=Jt,Ir=d("cCPh"),Xr=d.n(Ir),qt=d("fNCr"),pn=d.n(qt),fr=d("V/uB"),mn=d.n(fr),en=d("uaoM"),kr=d("H84U"),Gn=function(Br,sn){var Sn={};for(var Pt in Br)Object.prototype.hasOwnProperty.call(Br,Pt)&&sn.indexOf(Pt)<0&&(Sn[Pt]=Br[Pt]);if(Br!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Pt=Object.getOwnPropertySymbols(Br);gt<Pt.length;gt++)sn.indexOf(Pt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Br,Pt[gt])&&(Sn[Pt[gt]]=Br[Pt[gt]]);return Sn};function di(Br){var sn,Sn=Br.type,Pt=Br.className,gt=Br.size,Et=Br.onEdit,Lt=Br.hideAdd,kt=Br.centered,yt=Br.addIcon,Qt=Gn(Br,["type","className","size","onEdit","hideAdd","centered","addIcon"]),tr=Qt.prefixCls,ir=w.useContext(kr.b),yr=ir.getPrefixCls,xn=ir.direction,vn=yr("tabs",tr),Wn;return Sn==="editable-card"&&(Wn={onEdit:function(xr,ln){var On=ln.key,In=ln.event;Et==null||Et(xr==="add"?In:On,xr)},removeIcon:w.createElement(mn.a,null),addIcon:yt||w.createElement(pn.a,null),showAdd:Lt!==!0}),Object(en.a)(!("onPrevClick"in Qt)&&!("onNextClick"in Qt),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),w.createElement(Rr,E()({direction:xn},Qt,{moreTransitionName:"slide-up",className:i()(Pt,(sn={},A()(sn,"".concat(vn,"-").concat(gt),gt),A()(sn,"".concat(vn,"-card"),["card","editable-card"].includes(Sn)),A()(sn,"".concat(vn,"-editable-card"),Sn==="editable-card"),A()(sn,"".concat(vn,"-centered"),kt),sn)),editable:Wn,moreIcon:w.createElement(Xr.a,null),prefixCls:vn}))}di.TabPane=Ye;var _i=B.a=di},ZTW2:function(H,B,d){},ZWlE:function(H,B,d){var O=d("bYtY"),E=d("4NO4");function C(m){A(m),w(m)}function A(m){if(m.parallel)return;var f=!1;O.each(m.series,function(c){c&&c.type==="parallel"&&(f=!0)}),f&&(m.parallel=[{}])}function w(m){var f=E.normalizeToArray(m.parallelAxis);O.each(f,function(c){if(!O.isObject(c))return;var o=c.parallelIndex||0,r=E.normalizeToArray(m.parallel)[o];r&&r.parallelAxisDefault&&O.merge(c,r.parallelAxisDefault,!1)})}H.exports=C},ZX9x:function(H,B,d){"use strict";d.d(B,"a",function(){return I}),d.d(B,"b",function(){return D});var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("lwsE"),m=d.n(w),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),s=d("TSYQ"),t=d.n(s),a=d("BGR+"),l=d("T1rO"),u=d.n(l),h=d("fEPi"),p=d.n(h),g=d("DFhj"),v=d.n(g),y=d("PKem"),x=d("H84U"),T=function(P){return!isNaN(parseFloat(P))&&isFinite(P)},S=T,b=function(R,P){var M={};for(var U in R)Object.prototype.hasOwnProperty.call(R,U)&&P.indexOf(U)<0&&(M[U]=R[U]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,U=Object.getOwnPropertySymbols(R);F<U.length;F++)P.indexOf(U[F])<0&&Object.prototype.propertyIsEnumerable.call(R,U[F])&&(M[U[F]]=R[U[F]]);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 R=0;return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return R+=1,"".concat(P).concat(R)}}(),N=function(R){r()(M,R);var P=n()(M);function M(U){var F;m()(this,M),F=P.call(this,U),F.responsiveHandler=function(V){F.setState({below:V.matches});var z=F.props.onBreakpoint,Y=F.state.collapsed;z&&z(V.matches),Y!==V.matches&&F.setCollapsed(V.matches,"responsive")},F.setCollapsed=function(V,z){"collapsed"in F.props||F.setState({collapsed:V});var Y=F.props.onCollapse;Y&&Y(V,z)},F.toggle=function(){var V=!F.state.collapsed;F.setCollapsed(V,"clickTrigger")},F.renderSider=function(V){var z,Y=V.getPrefixCls,$=F.props,ue=$.prefixCls,ne=$.className,ge=$.theme,Oe=$.collapsible,De=$.reverseArrow,He=$.trigger,pe=$.style,Ue=$.width,oe=$.collapsedWidth,ee=$.zeroWidthTriggerStyle,Xe=$.children,se=b($,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),Q=F.state,G=Q.collapsed,J=Q.below,ve=Y("layout-sider",ue),de=Object(a.default)(se,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ce=G?oe:Ue,Ee=S(Ce)?"".concat(Ce,"px"):String(Ce),le=parseFloat(String(oe||0))===0?e.createElement("span",{onClick:F.toggle,className:t()("".concat(ve,"-zero-width-trigger"),"".concat(ve,"-zero-width-trigger-").concat(De?"right":"left")),style:ee},He||e.createElement(u.a,null)):null,fe={expanded:De?e.createElement(p.a,null):e.createElement(v.a,null),collapsed:De?e.createElement(v.a,null):e.createElement(p.a,null)},xe=G?"collapsed":"expanded",Qe=fe[xe],ot=He!==null?le||e.createElement("div",{className:"".concat(ve,"-trigger"),onClick:F.toggle,style:{width:Ee}},He||Qe):null,Je=A()(A()({},pe),{flex:"0 0 ".concat(Ee),maxWidth:Ee,minWidth:Ee,width:Ee}),Te=t()(ne,ve,"".concat(ve,"-").concat(ge),(z={},E()(z,"".concat(ve,"-collapsed"),!!G),E()(z,"".concat(ve,"-has-trigger"),Oe&&He!==null&&!le),E()(z,"".concat(ve,"-below"),!!J),E()(z,"".concat(ve,"-zero-width"),parseFloat(Ee)===0),z));return e.createElement("aside",A()({className:Te},de,{style:Je}),e.createElement("div",{className:"".concat(ve,"-children")},Xe),Oe||J&&le?ot:null)},F.uniqueId=L("ant-sider-");var j;typeof window!="undefined"&&(j=window.matchMedia),j&&U.breakpoint&&U.breakpoint in _&&(F.mql=j("(max-width: ".concat(_[U.breakpoint],")")));var W;return"collapsed"in U?W=U.collapsed:W=U.defaultCollapsed,F.state={collapsed:W,below:!1},F}return c()(M,[{key:"componentDidMount",value:function(){var F;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(F=this.props)===null||F===void 0||F.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var F,j;(F=this===null||this===void 0?void 0:this.mql)===null||F===void 0||F.removeListener(this.responsiveHandler),(j=this.props)===null||j===void 0||j.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var F=this.state.collapsed,j=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:F,collapsedWidth:j}},e.createElement(x.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(F){return"collapsed"in F?{collapsed:F.collapsed}:null}}]),M}(e.Component);N.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var D=function(R){r()(M,R);var P=n()(M);function M(){return m()(this,M),P.apply(this,arguments)}return c()(M,[{key:"render",value:function(){var F=this;return e.createElement(y.a.Consumer,null,function(j){return e.createElement(N,A()({},j,F.props))})}}]),M}(e.Component)},ZYIC:function(H,B,d){var O=d("zM3Q"),E={seriesType:"lines",plan:O(),reset:function(C){var A=C.coordinateSystem,w=C.get("polyline"),m=C.pipelineContext.large;function f(c,o){var r=[];if(m){var i,n=c.end-c.start;if(w){for(var e=0,s=c.start;s<c.end;s++)e+=C.getLineCoordsCount(s);i=new Float32Array(n+e*2)}else i=new Float32Array(n*4);for(var t=0,a=[],s=c.start;s<c.end;s++){var l=C.getLineCoords(s,r);w&&(i[t++]=l);for(var u=0;u<l;u++)a=A.dataToPoint(r[u],!1,a),i[t++]=a[0],i[t++]=a[1]}o.setLayout("linesPoints",i)}else for(var s=c.start;s<c.end;s++){var h=o.getItemModel(s),l=C.getLineCoords(s,r),p=[];if(w)for(var g=0;g<l;g++)p.push(A.dataToPoint(r[g]));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(s,p)}}return{progress:f}}};H.exports=E},Ze12:function(H,B,d){var O=d("ItGF"),E=d("hOwI"),C=E.buildTransformer,A="___zrEVENTSAVED",w=[];function m(i,n,e,s,t){return f(w,n,s,t,!0)&&f(i,e,w[0],w[1])}function f(i,n,e,s,t){if(n.getBoundingClientRect&&O.domSupported&&!r(n)){var a=n[A]||(n[A]={}),l=c(n,a),u=o(l,a,t);if(u)return u(i,e,s),!0}return!1}function c(i,n){var e=n.markers;if(e)return e;e=n.markers=[];for(var s=["left","right"],t=["top","bottom"],a=0;a<4;a++){var l=document.createElement("div"),u=l.style,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",s[h]+":0",t[p]+":0",s[1-h]+":auto",t[1-p]+":auto",""].join("!important;"),i.appendChild(l),e.push(l)}return e}function o(i,n,e){for(var s=e?"invTrans":"trans",t=n[s],a=n.srcCoords,l=!0,u=[],h=[],p=0;p<4;p++){var g=i[p].getBoundingClientRect(),v=2*p,y=g.left,x=g.top;u.push(y,x),l=l&&a&&y===a[v]&&x===a[v+1],h.push(i[p].offsetLeft,i[p].offsetTop)}return l&&t?t:(n.srcCoords=u,n[s]=e?C(h,u):C(u,h))}function r(i){return i.nodeName.toUpperCase()==="CANVAS"}B.transformLocalCoord=m,B.transformCoordWithViewport=f,B.isCanvasEl=r},Znkb:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("zTMp"),w=C.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(r,i,n,e){this.axisPointerClass&&A.fixValue(r),w.superApply(this,"render",arguments),m(this,r,i,n,e,!0)},updateAxisPointer:function(r,i,n,e,s){m(this,r,i,n,e,!1)},remove:function(r,i){var n=this._axisPointer;n&&n.remove(i),w.superApply(this,"remove",arguments)},dispose:function(r,i){f(this,i),w.superApply(this,"dispose",arguments)}});function m(r,i,n,e,s,t){var a=w.getAxisPointerClass(r.axisPointerClass);if(!a)return;var l=A.getAxisPointerModel(i);l?(r._axisPointer||(r._axisPointer=new a)).render(i,l,e,t):f(r,e)}function f(r,i,n){var e=r._axisPointer;e&&e.dispose(i,n),r._axisPointer=null}var c=[];w.registerAxisPointerClass=function(r,i){c[r]=i},w.getAxisPointerClass=function(r){return r&&c[r]};var o=w;H.exports=o},"Znn+":function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("9ama"),A=d.n(C)},ZqQs:function(H,B,d){var O=d("bYtY");function E(m){var f=m&&m.timeline;O.isArray(f)||(f=f?[f]:[]),O.each(f,function(c){if(!c)return;C(c)})}function C(m){var f=m.type,c={number:"value",time:"time"};if(c[f]&&(m.axisType=c[f],delete m.type),A(m),w(m,"controlPosition")){var o=m.controlStyle||(m.controlStyle={});w(o,"position")||(o.position=m.controlPosition),o.position==="none"&&!w(o,"show")&&(o.show=!1,delete o.position),delete m.controlPosition}O.each(m.data||[],function(r){O.isObject(r)&&!O.isArray(r)&&(!w(r,"value")&&w(r,"name")&&(r.value=r.name),A(r))})}function A(m){var f=m.itemStyle||(m.itemStyle={}),c=f.emphasis||(f.emphasis={}),o=m.label||m.label||{},r=o.normal||(o.normal={}),i={normal:1,emphasis:1};O.each(o,function(n,e){!i[e]&&!w(r,e)&&(r[e]=n)}),c.label&&!w(o,"emphasis")&&(o.emphasis=c.label,delete c.label)}function w(m,f){return m.hasOwnProperty(f)}H.exports=E},Zss7:function(H,B,d){var O;(function(E){var C=/^\s+/,A=/\s+$/,w=0,m=E.round,f=E.min,c=E.max,o=E.random;function r(pe,Ue){if(pe=pe||"",Ue=Ue||{},pe instanceof r)return pe;if(!(this instanceof r))return new r(pe,Ue);var oe=i(pe);this._originalInput=pe,this._r=oe.r,this._g=oe.g,this._b=oe.b,this._a=oe.a,this._roundA=m(100*this._a)/100,this._format=Ue.format||oe.format,this._gradientType=Ue.gradientType,this._r<1&&(this._r=m(this._r)),this._g<1&&(this._g=m(this._g)),this._b<1&&(this._b=m(this._b)),this._ok=oe.ok,this._tc_id=w++}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ue=this.toRgb();return(Ue.r*299+Ue.g*587+Ue.b*114)/1e3},getLuminance:function(){var Ue=this.toRgb(),oe,ee,Xe,se,Q,G;return oe=Ue.r/255,ee=Ue.g/255,Xe=Ue.b/255,oe<=.03928?se=oe/12.92:se=E.pow((oe+.055)/1.055,2.4),ee<=.03928?Q=ee/12.92:Q=E.pow((ee+.055)/1.055,2.4),Xe<=.03928?G=Xe/12.92:G=E.pow((Xe+.055)/1.055,2.4),.2126*se+.7152*Q+.0722*G},setAlpha:function(Ue){return this._a=U(Ue),this._roundA=m(100*this._a)/100,this},toHsv:function(){var Ue=t(this._r,this._g,this._b);return{h:Ue.h*360,s:Ue.s,v:Ue.v,a:this._a}},toHsvString:function(){var Ue=t(this._r,this._g,this._b),oe=m(Ue.h*360),ee=m(Ue.s*100),Xe=m(Ue.v*100);return this._a==1?"hsv("+oe+", "+ee+"%, "+Xe+"%)":"hsva("+oe+", "+ee+"%, "+Xe+"%, "+this._roundA+")"},toHsl:function(){var Ue=e(this._r,this._g,this._b);return{h:Ue.h*360,s:Ue.s,l:Ue.l,a:this._a}},toHslString:function(){var Ue=e(this._r,this._g,this._b),oe=m(Ue.h*360),ee=m(Ue.s*100),Xe=m(Ue.l*100);return this._a==1?"hsl("+oe+", "+ee+"%, "+Xe+"%)":"hsla("+oe+", "+ee+"%, "+Xe+"%, "+this._roundA+")"},toHex:function(Ue){return l(this._r,this._g,this._b,Ue)},toHexString:function(Ue){return"#"+this.toHex(Ue)},toHex8:function(Ue){return u(this._r,this._g,this._b,this._a,Ue)},toHex8String:function(Ue){return"#"+this.toHex8(Ue)},toRgb:function(){return{r:m(this._r),g:m(this._g),b:m(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+m(this._r)+", "+m(this._g)+", "+m(this._b)+")":"rgba("+m(this._r)+", "+m(this._g)+", "+m(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:m(F(this._r,255)*100)+"%",g:m(F(this._g,255)*100)+"%",b:m(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+m(F(this._r,255)*100)+"%, "+m(F(this._g,255)*100)+"%, "+m(F(this._b,255)*100)+"%)":"rgba("+m(F(this._r,255)*100)+"%, "+m(F(this._g,255)*100)+"%, "+m(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ue){var oe="#"+h(this._r,this._g,this._b,this._a),ee=oe,Xe=this._gradientType?"GradientType = 1, ":"";if(Ue){var se=r(Ue);ee="#"+h(se._r,se._g,se._b,se._a)}return"progid:DXImageTransform.Microsoft.gradient("+Xe+"startColorstr="+oe+",endColorstr="+ee+")"},toString:function(Ue){var oe=!!Ue;Ue=Ue||this._format;var ee=!1,Xe=this._a<1&&this._a>=0,se=!oe&&Xe&&(Ue==="hex"||Ue==="hex6"||Ue==="hex3"||Ue==="hex4"||Ue==="hex8"||Ue==="name");return se?Ue==="name"&&this._a===0?this.toName():this.toRgbString():(Ue==="rgb"&&(ee=this.toRgbString()),Ue==="prgb"&&(ee=this.toPercentageRgbString()),(Ue==="hex"||Ue==="hex6")&&(ee=this.toHexString()),Ue==="hex3"&&(ee=this.toHexString(!0)),Ue==="hex4"&&(ee=this.toHex8String(!0)),Ue==="hex8"&&(ee=this.toHex8String()),Ue==="name"&&(ee=this.toName()),Ue==="hsl"&&(ee=this.toHslString()),Ue==="hsv"&&(ee=this.toHsvString()),ee||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(Ue,oe){var ee=Ue.apply(null,[this].concat([].slice.call(oe)));return this._r=ee._r,this._g=ee._g,this._b=ee._b,this.setAlpha(ee._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(Ue,oe){return Ue.apply(null,[this].concat([].slice.call(oe)))},analogous:function(){return this._applyCombination(N,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},r.fromRatio=function(pe,Ue){if(typeof pe=="object"){var oe={};for(var ee in pe)pe.hasOwnProperty(ee)&&(ee==="a"?oe[ee]=pe[ee]:oe[ee]=$(pe[ee]));pe=oe}return r(pe,Ue)};function i(pe){var Ue={r:0,g:0,b:0},oe=1,ee=null,Xe=null,se=null,Q=!1,G=!1;return typeof pe=="string"&&(pe=De(pe)),typeof pe=="object"&&(Oe(pe.r)&&Oe(pe.g)&&Oe(pe.b)?(Ue=n(pe.r,pe.g,pe.b),Q=!0,G=String(pe.r).substr(-1)==="%"?"prgb":"rgb"):Oe(pe.h)&&Oe(pe.s)&&Oe(pe.v)?(ee=$(pe.s),Xe=$(pe.v),Ue=a(pe.h,ee,Xe),Q=!0,G="hsv"):Oe(pe.h)&&Oe(pe.s)&&Oe(pe.l)&&(ee=$(pe.s),se=$(pe.l),Ue=s(pe.h,ee,se),Q=!0,G="hsl"),pe.hasOwnProperty("a")&&(oe=pe.a)),oe=U(oe),{ok:Q,format:pe.format||G,r:f(255,c(Ue.r,0)),g:f(255,c(Ue.g,0)),b:f(255,c(Ue.b,0)),a:oe}}function n(pe,Ue,oe){return{r:F(pe,255)*255,g:F(Ue,255)*255,b:F(oe,255)*255}}function e(pe,Ue,oe){pe=F(pe,255),Ue=F(Ue,255),oe=F(oe,255);var ee=c(pe,Ue,oe),Xe=f(pe,Ue,oe),se,Q,G=(ee+Xe)/2;if(ee==Xe)se=Q=0;else{var J=ee-Xe;Q=G>.5?J/(2-ee-Xe):J/(ee+Xe);switch(ee){case pe:se=(Ue-oe)/J+(Ue<oe?6:0);break;case Ue:se=(oe-pe)/J+2;break;case oe:se=(pe-Ue)/J+4;break}se/=6}return{h:se,s:Q,l:G}}function s(pe,Ue,oe){var ee,Xe,se;pe=F(pe,360),Ue=F(Ue,100),oe=F(oe,100);function Q(ve,de,Ce){return Ce<0&&(Ce+=1),Ce>1&&(Ce-=1),Ce<1/6?ve+(de-ve)*6*Ce:Ce<1/2?de:Ce<2/3?ve+(de-ve)*(2/3-Ce)*6:ve}if(Ue===0)ee=Xe=se=oe;else{var G=oe<.5?oe*(1+Ue):oe+Ue-oe*Ue,J=2*oe-G;ee=Q(J,G,pe+1/3),Xe=Q(J,G,pe),se=Q(J,G,pe-1/3)}return{r:ee*255,g:Xe*255,b:se*255}}function t(pe,Ue,oe){pe=F(pe,255),Ue=F(Ue,255),oe=F(oe,255);var ee=c(pe,Ue,oe),Xe=f(pe,Ue,oe),se,Q,G=ee,J=ee-Xe;if(Q=ee===0?0:J/ee,ee==Xe)se=0;else{switch(ee){case pe:se=(Ue-oe)/J+(Ue<oe?6:0);break;case Ue:se=(oe-pe)/J+2;break;case oe:se=(pe-Ue)/J+4;break}se/=6}return{h:se,s:Q,v:G}}function a(pe,Ue,oe){pe=F(pe,360)*6,Ue=F(Ue,100),oe=F(oe,100);var ee=E.floor(pe),Xe=pe-ee,se=oe*(1-Ue),Q=oe*(1-Xe*Ue),G=oe*(1-(1-Xe)*Ue),J=ee%6,ve=[oe,Q,se,se,G,oe][J],de=[G,oe,oe,Q,se,se][J],Ce=[se,se,G,oe,oe,Q][J];return{r:ve*255,g:de*255,b:Ce*255}}function l(pe,Ue,oe,ee){var Xe=[Y(m(pe).toString(16)),Y(m(Ue).toString(16)),Y(m(oe).toString(16))];return ee&&Xe[0].charAt(0)==Xe[0].charAt(1)&&Xe[1].charAt(0)==Xe[1].charAt(1)&&Xe[2].charAt(0)==Xe[2].charAt(1)?Xe[0].charAt(0)+Xe[1].charAt(0)+Xe[2].charAt(0):Xe.join("")}function u(pe,Ue,oe,ee,Xe){var se=[Y(m(pe).toString(16)),Y(m(Ue).toString(16)),Y(m(oe).toString(16)),Y(ue(ee))];return Xe&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}function h(pe,Ue,oe,ee){var Xe=[Y(ue(ee)),Y(m(pe).toString(16)),Y(m(Ue).toString(16)),Y(m(oe).toString(16))];return Xe.join("")}r.equals=function(pe,Ue){return!pe||!Ue?!1:r(pe).toRgbString()==r(Ue).toRgbString()},r.random=function(){return r.fromRatio({r:o(),g:o(),b:o()})};function p(pe,Ue){Ue=Ue===0?0:Ue||10;var oe=r(pe).toHsl();return oe.s-=Ue/100,oe.s=j(oe.s),r(oe)}function g(pe,Ue){Ue=Ue===0?0:Ue||10;var oe=r(pe).toHsl();return oe.s+=Ue/100,oe.s=j(oe.s),r(oe)}function v(pe){return r(pe).desaturate(100)}function y(pe,Ue){Ue=Ue===0?0:Ue||10;var oe=r(pe).toHsl();return oe.l+=Ue/100,oe.l=j(oe.l),r(oe)}function x(pe,Ue){Ue=Ue===0?0:Ue||10;var oe=r(pe).toRgb();return oe.r=c(0,f(255,oe.r-m(255*-(Ue/100)))),oe.g=c(0,f(255,oe.g-m(255*-(Ue/100)))),oe.b=c(0,f(255,oe.b-m(255*-(Ue/100)))),r(oe)}function T(pe,Ue){Ue=Ue===0?0:Ue||10;var oe=r(pe).toHsl();return oe.l-=Ue/100,oe.l=j(oe.l),r(oe)}function S(pe,Ue){var oe=r(pe).toHsl(),ee=(oe.h+Ue)%360;return oe.h=ee<0?360+ee:ee,r(oe)}function b(pe){var Ue=r(pe).toHsl();return Ue.h=(Ue.h+180)%360,r(Ue)}function _(pe){var Ue=r(pe).toHsl(),oe=Ue.h;return[r(pe),r({h:(oe+120)%360,s:Ue.s,l:Ue.l}),r({h:(oe+240)%360,s:Ue.s,l:Ue.l})]}function I(pe){var Ue=r(pe).toHsl(),oe=Ue.h;return[r(pe),r({h:(oe+90)%360,s:Ue.s,l:Ue.l}),r({h:(oe+180)%360,s:Ue.s,l:Ue.l}),r({h:(oe+270)%360,s:Ue.s,l:Ue.l})]}function L(pe){var Ue=r(pe).toHsl(),oe=Ue.h;return[r(pe),r({h:(oe+72)%360,s:Ue.s,l:Ue.l}),r({h:(oe+216)%360,s:Ue.s,l:Ue.l})]}function N(pe,Ue,oe){Ue=Ue||6,oe=oe||30;var ee=r(pe).toHsl(),Xe=360/oe,se=[r(pe)];for(ee.h=(ee.h-(Xe*Ue>>1)+720)%360;--Ue;)ee.h=(ee.h+Xe)%360,se.push(r(ee));return se}function D(pe,Ue){Ue=Ue||6;for(var oe=r(pe).toHsv(),ee=oe.h,Xe=oe.s,se=oe.v,Q=[],G=1/Ue;Ue--;)Q.push(r({h:ee,s:Xe,v:se})),se=(se+G)%1;return Q}r.mix=function(pe,Ue,oe){oe=oe===0?0:oe||50;var ee=r(pe).toRgb(),Xe=r(Ue).toRgb(),se=oe/100,Q={r:(Xe.r-ee.r)*se+ee.r,g:(Xe.g-ee.g)*se+ee.g,b:(Xe.b-ee.b)*se+ee.b,a:(Xe.a-ee.a)*se+ee.a};return r(Q)},r.readability=function(pe,Ue){var oe=r(pe),ee=r(Ue);return(E.max(oe.getLuminance(),ee.getLuminance())+.05)/(E.min(oe.getLuminance(),ee.getLuminance())+.05)},r.isReadable=function(pe,Ue,oe){var ee=r.readability(pe,Ue),Xe,se;se=!1,Xe=He(oe);switch(Xe.level+Xe.size){case"AAsmall":case"AAAlarge":se=ee>=4.5;break;case"AAlarge":se=ee>=3;break;case"AAAsmall":se=ee>=7;break}return se},r.mostReadable=function(pe,Ue,oe){var ee=null,Xe=0,se,Q,G,J;oe=oe||{},Q=oe.includeFallbackColors,G=oe.level,J=oe.size;for(var ve=0;ve<Ue.length;ve++)se=r.readability(pe,Ue[ve]),se>Xe&&(Xe=se,ee=r(Ue[ve]));return r.isReadable(pe,ee,{level:G,size:J})||!Q?ee:(oe.includeFallbackColors=!1,r.mostReadable(pe,["#fff","#000"],oe))};var R=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"},P=r.hexNames=M(R);function M(pe){var Ue={};for(var oe in pe)pe.hasOwnProperty(oe)&&(Ue[pe[oe]]=oe);return Ue}function U(pe){return pe=parseFloat(pe),(isNaN(pe)||pe<0||pe>1)&&(pe=1),pe}function F(pe,Ue){V(pe)&&(pe="100%");var oe=z(pe);return pe=f(Ue,c(0,parseFloat(pe))),oe&&(pe=parseInt(pe*Ue,10)/100),E.abs(pe-Ue)<1e-6?1:pe%Ue/parseFloat(Ue)}function j(pe){return f(1,c(0,pe))}function W(pe){return parseInt(pe,16)}function V(pe){return typeof pe=="string"&&pe.indexOf(".")!=-1&&parseFloat(pe)===1}function z(pe){return typeof pe=="string"&&pe.indexOf("%")!=-1}function Y(pe){return pe.length==1?"0"+pe:""+pe}function $(pe){return pe<=1&&(pe=pe*100+"%"),pe}function ue(pe){return E.round(parseFloat(pe)*255).toString(16)}function ne(pe){return W(pe)/255}var ge=function(){var pe="[-\\+]?\\d+%?",Ue="[-\\+]?\\d*\\.\\d+%?",oe="(?:"+Ue+")|(?:"+pe+")",ee="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?",Xe="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?";return{CSS_UNIT:new RegExp(oe),rgb:new RegExp("rgb"+ee),rgba:new RegExp("rgba"+Xe),hsl:new RegExp("hsl"+ee),hsla:new RegExp("hsla"+Xe),hsv:new RegExp("hsv"+ee),hsva:new RegExp("hsva"+Xe),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 Oe(pe){return!!ge.CSS_UNIT.exec(pe)}function De(pe){pe=pe.replace(C,"").replace(A,"").toLowerCase();var Ue=!1;if(R[pe])pe=R[pe],Ue=!0;else if(pe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var oe;return(oe=ge.rgb.exec(pe))?{r:oe[1],g:oe[2],b:oe[3]}:(oe=ge.rgba.exec(pe))?{r:oe[1],g:oe[2],b:oe[3],a:oe[4]}:(oe=ge.hsl.exec(pe))?{h:oe[1],s:oe[2],l:oe[3]}:(oe=ge.hsla.exec(pe))?{h:oe[1],s:oe[2],l:oe[3],a:oe[4]}:(oe=ge.hsv.exec(pe))?{h:oe[1],s:oe[2],v:oe[3]}:(oe=ge.hsva.exec(pe))?{h:oe[1],s:oe[2],v:oe[3],a:oe[4]}:(oe=ge.hex8.exec(pe))?{r:W(oe[1]),g:W(oe[2]),b:W(oe[3]),a:ne(oe[4]),format:Ue?"name":"hex8"}:(oe=ge.hex6.exec(pe))?{r:W(oe[1]),g:W(oe[2]),b:W(oe[3]),format:Ue?"name":"hex"}:(oe=ge.hex4.exec(pe))?{r:W(oe[1]+""+oe[1]),g:W(oe[2]+""+oe[2]),b:W(oe[3]+""+oe[3]),a:ne(oe[4]+""+oe[4]),format:Ue?"name":"hex8"}:(oe=ge.hex3.exec(pe))?{r:W(oe[1]+""+oe[1]),g:W(oe[2]+""+oe[2]),b:W(oe[3]+""+oe[3]),format:Ue?"name":"hex"}:!1}function He(pe){var Ue,oe;return pe=pe||{level:"AA",size:"small"},Ue=(pe.level||"AA").toUpperCase(),oe=(pe.size||"small").toLowerCase(),Ue!=="AA"&&Ue!=="AAA"&&(Ue="AA"),oe!=="small"&&oe!=="large"&&(oe="small"),{level:Ue,size:oe}}H.exports?H.exports=r:!(O=function(){return r}.call(B,d,B,H),O!==void 0&&(H.exports=O))})(Math)},Zvw2:function(H,B,d){var O=d("bYtY"),E=d("hM6l"),C=function(w,m,f,c,o){E.call(this,w,m,f),this.type=c||"value",this.position=o||"bottom",this.orient=null};C.prototype={constructor:C,model:null,isHorizontal:function(){var w=this.position;return w==="top"||w==="bottom"},pointToData:function(w,m){return this.coordinateSystem.pointToData(w,m)[0]},toGlobalCoord:null,toLocalCoord:null},O.inherits(C,E);var A=C;H.exports=A},a7Wl:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},a9QJ:function(H,B){var d={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function O(E,C){if(E==="world"){var A=d[C.name];if(A){var w=C.center;w[0]=A[0],w[1]=A[1]}}}H.exports=O},aHsQ:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("6D9b"),A=d.n(C)},aKvl:function(H,B,d){var O=d("Sj9i"),E=O.quadraticProjectPoint;function C(A,w,m,f,c,o,r,i,n){if(r===0)return!1;var e=r;if(n>w+e&&n>f+e&&n>o+e||n<w-e&&n<f-e&&n<o-e||i>A+e&&i>m+e&&i>c+e||i<A-e&&i<m-e&&i<c-e)return!1;var s=E(A,w,m,f,c,o,i,n,null);return s<=e/2}B.containStroke=C},aTJb:function(H,B,d){var O=d("bLfw");O.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(H,B,d){var O=d("3gBT"),E=d("ItGF"),C=d("bYtY"),A=d("0s+r"),w=d("r6Bn"),m=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=!E.canvasSupported,r={canvas:m},i={},n="4.3.1";function e(h,p){var g=new u(O(),h,p);return i[g.id]=g,g}function s(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 l(h){delete i[h]}var u=function(p,g,v){v=v||{},this.dom=g,this.id=p;var y=this,x=new w,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 S=new r[T](g,x,v,p);this.storage=x,this.painter=S;var b=!E.node&&!E.worker?new c(S.getViewportRoot(),S.root):null;this.handler=new A(x,S,b,S.root),this.animation=new f({stage:{update:C.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var _=x.delFromStorage,I=x.addToStorage;x.delFromStorage=function(L){_.call(x,L),L&&L.removeSelfFromZr(y)},x.addToStorage=function(L){I.call(x,L),L.addSelfToZr(y)}};u.prototype={constructor:u,getId:function(){return this.id},add:function(p){this.storage.addRoot(p),this._needsRefresh=!0},remove:function(p){this.storage.delRoot(p),this._needsRefresh=!0},configLayer:function(p,g){this.painter.configLayer&&this.painter.configLayer(p,g),this._needsRefresh=!0},setBackgroundColor:function(p){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(p),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var p;this._needsRefresh&&(p=!0,this.refreshImmediately()),this._needsRefreshHover&&(p=!0,this.refreshHoverImmediately()),p&&this.trigger("rendered")},addHover:function(p,g){if(this.painter.addHover){var v=this.painter.addHover(p,g);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,g){return this.painter.pathToImage(p,g)},setCursorStyle:function(p){this.handler.setCursorStyle(p)},findHover:function(p,g){return this.handler.findHover(p,g)},on:function(p,g,v){this.handler.on(p,g,v)},off:function(p,g){this.handler.off(p,g)},trigger:function(p,g){this.handler.trigger(p,g)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,l(this.id)}},B.version=n,B.init=e,B.dispose=s,B.getInstance=t,B.registerPainter=a},aX7z:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("GMDS"),w=d("ieMj"),m=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(x,T){var S=x.type,b=T.getMin(),_=T.getMax(),I=x.getExtent(),L,N,D;S==="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),D=I[1]-I[0]||Math.abs(I[0])),b==="dataMin"?b=I[0]:typeof b=="function"&&(b=b({min:I[0],max:I[1]})),_==="dataMax"?_=I[1]:typeof _=="function"&&(_=_({min:I[0],max:I[1]}));var R=b!=null,P=_!=null;b==null&&(b=S==="ordinal"?L?0:NaN:I[0]-N[0]*D),_==null&&(_=S==="ordinal"?L?L-1:NaN:I[1]+N[1]*D),(b==null||!isFinite(b))&&(b=NaN),(_==null||!isFinite(_))&&(_=NaN),x.setBlank(C.eqNaN(b)||C.eqNaN(_)||S==="ordinal"&&!x.getOrdinalMeta().categories.length),T.getNeedCrossZero()&&(b>0&&_>0&&!R&&(b=0),b<0&&_<0&&!P&&(_=0));var M=T.ecModel;if(M&&S==="time"){var U=o("bar",M),F;if(C.each(U,function(V){F|=V.getBaseAxis()===T.axis}),F){var j=r(U),W=s(b,_,T,j);b=W.min,_=W.max}}return{extent:[b,_],fixMin:R,fixMax:P}}function s(x,T,S,b){var _=S.axis.getExtent(),I=_[1]-_[0],L=i(b,S.axis);if(L===void 0)return{min:x,max:T};var N=Infinity;C.each(L,function(F){N=Math.min(F.offset,N)});var D=-Infinity;C.each(L,function(F){D=Math.max(F.offset+F.width,D)}),N=Math.abs(N),D=Math.abs(D);var R=N+D,P=T-x,M=1-(N+D)/I,U=P/M-P;return T+=U*(D/R),x-=U*(N/R),{min:x,max:T}}function t(x,T){var S=e(x,T),b=S.extent,_=T.get("splitNumber");x.type==="log"&&(x.base=T.get("logBase"));var I=x.type;x.setExtent(b[0],b[1]),x.niceExtent({splitNumber:_,fixMin:S.fixMin,fixMax:S.fixMax,minInterval:I==="interval"||I==="time"?T.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?T.get("maxInterval"):null});var L=T.get("interval");L!=null&&(x.setInterval&&x.setInterval(L))}function a(x,T){if(T=T||x.get("type"),T)switch(T){case"category":return new A(x.getOrdinalMeta?x.getOrdinalMeta():x.getCategories(),[Infinity,-Infinity]);case"value":return new w;default:return(m.getClass(T)||w).create(x)}}function l(x){var T=x.scale.getExtent(),S=T[0],b=T[1];return!(S>0&&b>0||S<0&&b<0)}function u(x){var T=x.getLabelModel().get("formatter"),S=x.type==="category"?x.scale.getExtent()[0]:null;return typeof T=="string"?(T=function(b){return function(_){return _=x.scale.getLabel(_),b.replace("{value}",_!=null?_:"")}}(T),T):typeof T=="function"?function(b,_){return S!=null&&(_=b-S),T(h(x,b),_)}:function(b){return x.scale.getLabel(b)}}function h(x,T){return x.type==="category"?x.scale.getLabel(T):T}function p(x){var T=x.model,S=x.scale;if(!T.get("axisLabel.show")||S.isBlank())return;var b=x.type==="category",_,I,L=S.getExtent();b?I=S.count():(_=S.getTicks(),I=_.length);var N=x.getLabelModel(),D=u(x),R,P=1;I>40&&(P=Math.ceil(I/40));for(var M=0;M<I;M+=P){var U=_?_[M]:L[0]+M,F=D(U),j=N.getTextRect(F),W=g(j,N.get("rotate")||0);R?R.union(W):R=W}return R}function g(x,T){var S=T*Math.PI/180,b=x.plain(),_=b.width,I=b.height,L=_*Math.cos(S)+I*Math.sin(S),N=_*Math.sin(S)+I*Math.cos(S),D=new n(b.x,b.y,L,N);return D}function v(x){var T=x.get("interval");return T==null?"auto":T}function y(x){return x.type==="category"&&v(x.getLabelModel())===0}B.getScaleExtent=e,B.niceScaleExtent=t,B.createScaleByModel=a,B.ifAxisCrossZero=l,B.makeLabelFormatter=u,B.getAxisRawValue=h,B.estimateLabelUnionRect=p,B.getOptionCategoryInterval=v,B.shouldShowAllLabels=y},"af/B":function(H,B,d){var O=d("bYtY"),E=O.each,C=O.map,A=O.isFunction,w=O.createHashMap,m=O.noop,f=d("9H2F"),c=f.createTask,o=d("iRjW"),r=o.getUID,i=d("fmMI"),n=d("hD7B"),e=d("4NO4"),s=e.normalizeToArray;function t(F,j,W,V){this.ecInstance=F,this.api=j,this.unfinished;var W=this._dataProcessorHandlers=W.slice(),V=this._visualHandlers=V.slice();this._allHandlers=W.concat(V),this._stageTaskMap=w()}var a=t.prototype;a.restoreData=function(F,j){F.restoreData(j),this._stageTaskMap.each(function(W){var V=W.overallTask;V&&V.dirty()})},a.getPerformArgs=function(F,j){if(!F.__pipeline)return;var W=this._pipelineMap.get(F.__pipeline.id),V=W.context,z=!j&&W.progressiveEnabled&&(!V||V.progressiveRender)&&F.__idxInPipeline>W.blockIndex,Y=z?W.step:null,$=V&&V.modDataCount,ue=$!=null?Math.ceil($/Y):null;return{step:Y,modBy:ue,modDataCount:$}},a.getPipeline=function(F){return this._pipelineMap.get(F)},a.updateStreamModes=function(F,j){var W=this._pipelineMap.get(F.uid),V=F.getData(),z=V.count(),Y=W.progressiveEnabled&&j.incrementalPrepareRender&&z>=W.threshold,$=F.get("large")&&z>=F.get("largeThreshold"),ue=F.get("progressiveChunkMode")==="mod"?z:null;F.pipelineContext=W.context={progressiveRender:Y,modDataCount:ue,large:$}},a.restorePipelines=function(F){var j=this,W=j._pipelineMap=w();F.eachSeries(function(V){var z=V.getProgressive(),Y=V.uid;W.set(Y,{id:Y,head:null,tail:null,threshold:V.getProgressiveThreshold(),progressiveEnabled:z&&!(V.preventIncremental&&V.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),L(j,V,V.dataTask)})},a.prepareStageTasks=function(){var F=this._stageTaskMap,j=this.ecInstance.getModel(),W=this.api;E(this._allHandlers,function(V){var z=F.get(V.uid)||F.set(V.uid,[]);V.reset&&h(this,V,z,j,W),V.overallReset&&p(this,V,z,j,W)},this)},a.prepareView=function(F,j,W,V){var z=F.renderTask,Y=z.context;Y.model=j,Y.ecModel=W,Y.api=V,z.__block=!F.incrementalPrepareRender,L(this,j,z)},a.performDataProcessorTasks=function(F,j){l(this,this._dataProcessorHandlers,F,j,{block:!0})},a.performVisualTasks=function(F,j,W){l(this,this._visualHandlers,F,j,W)};function l(F,j,W,V,z){z=z||{};var Y;E(j,function(ue,ne){if(z.visualType&&z.visualType!==ue.visualType)return;var ge=F._stageTaskMap.get(ue.uid),Oe=ge.seriesTaskMap,De=ge.overallTask;if(De){var He,pe=De.agentStubMap;pe.each(function(oe){$(z,oe)&&(oe.dirty(),He=!0)}),He&&De.dirty(),u(De,V);var Ue=F.getPerformArgs(De,z.block);pe.each(function(oe){oe.perform(Ue)}),Y|=De.perform(Ue)}else Oe&&Oe.each(function(oe,ee){$(z,oe)&&oe.dirty();var Xe=F.getPerformArgs(oe,z.block);Xe.skip=!ue.performRawSeries&&W.isSeriesFiltered(oe.context.model),u(oe,V),Y|=oe.perform(Xe)})});function $(ue,ne){return ue.setDirty&&(!ue.dirtyMap||ue.dirtyMap.get(ne.__pipeline.id))}F.unfinished|=Y}a.performSeriesTasks=function(F){var j;F.eachSeries(function(W){j|=W.dataTask.perform()}),this.unfinished|=j},a.plan=function(){this._pipelineMap.each(function(F){var j=F.tail;do{if(j.__block){F.blockIndex=j.__idxInPipeline;break}j=j.getUpstream()}while(j)})};var u=a.updatePayload=function(F,j){j!=="remain"&&(F.context.payload=j)};function h(F,j,W,V,z){var Y=W.seriesTaskMap||(W.seriesTaskMap=w()),$=j.seriesType,ue=j.getTargetSeries;j.createOnAllSeries?V.eachRawSeries(ne):$?V.eachRawSeriesByType($,ne):ue&&ue(V,z).each(ne);function ne(Oe){var De=Oe.uid,He=Y.get(De)||Y.set(De,c({plan:T,reset:S,count:I}));He.context={model:Oe,ecModel:V,api:z,useClearVisual:j.isVisual&&!j.isLayout,plan:j.plan,reset:j.reset,scheduler:F},L(F,Oe,He)}var ge=F._pipelineMap;Y.each(function(Oe,De){ge.get(De)||(Oe.dispose(),Y.removeKey(De))})}function p(F,j,W,V,z){var Y=W.overallTask=W.overallTask||c({reset:g});Y.context={ecModel:V,api:z,overallReset:j.overallReset,scheduler:F};var $=Y.agentStubMap=Y.agentStubMap||w(),ue=j.seriesType,ne=j.getTargetSeries,ge=!0,Oe=j.modifyOutputEnd;ue?V.eachRawSeriesByType(ue,De):ne?ne(V,z).each(De):(ge=!1,E(V.getSeries(),De));function De(pe){var Ue=pe.uid,oe=$.get(Ue);oe||(oe=$.set(Ue,c({reset:v,onDirty:x})),Y.dirty()),oe.context={model:pe,overallProgress:ge,modifyOutputEnd:Oe},oe.agent=Y,oe.__block=ge,L(F,pe,oe)}var He=F._pipelineMap;$.each(function(pe,Ue){He.get(Ue)||(pe.dispose(),Y.dirty(),$.removeKey(Ue))})}function g(F){F.overallReset(F.ecModel,F.api,F.payload)}function v(F,j){return F.overallProgress&&y}function y(){this.agent.dirty(),this.getDownstream().dirty()}function x(){this.agent&&this.agent.dirty()}function T(F){return F.plan&&F.plan(F.model,F.ecModel,F.api,F.payload)}function S(F){F.useClearVisual&&F.data.clearAllVisual();var j=F.resetDefines=s(F.reset(F.model,F.ecModel,F.api,F.payload));return j.length>1?C(j,function(W,V){return _(V)}):b}var b=_(0);function _(F){return function(j,W){var V=W.data,z=W.resetDefines[F];if(z&&z.dataEach)for(var Y=j.start;Y<j.end;Y++)z.dataEach(V,Y);else z&&z.progress&&z.progress(j,V)}}function I(F){return F.data.count()}function L(F,j,W){var V=j.uid,z=F._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(F,j){return A(F)&&(F={overallReset:F,seriesType:N(F)}),F.uid=r("stageHandler"),j&&(F.visualType=j),F};function N(F){P=null;try{F(D,R)}catch(j){}return P}var D={},R={},P;M(D,i),M(R,n),D.eachSeriesByType=D.eachRawSeriesByType=function(F){P=F},D.eachComponent=function(F){F.mainType==="series"&&F.subType&&(P=F.subType)};function M(F,j){for(var W in j.prototype)F[W]=m}var U=t;H.exports=U},akwb:function(H,B,d){var O=d("RSch"),E=d("bYtY"),C=d("D9ME"),A=d("QBsz");function w(c,o,r){C.call(this,c,o,r),this._lastFrame=0,this._lastFramePercent=0}var m=w.prototype;m.createLine=function(c,o,r){return new O(c,o,r)},m.updateAnimationPoints=function(c,o){this._points=o;for(var r=[0],i=0,n=1;n<o.length;n++){var e=o[n-1],s=o[n];i+=A.dist(e,s),r.push(i)}if(i===0)return;for(var n=0;n<r.length;n++)r[n]/=i;this._offsets=r,this._length=i},m.getLineLength=function(c){return this._length},m.updateSymbolPosition=function(c){var o=c.__t,r=this._points,i=this._offsets,n=r.length;if(!i)return;var e=this._lastFrame,s;if(o<this._lastFramePercent){var t=Math.min(e+1,n-1);for(s=t;s>=0&&!(i[s]<=o);s--);s=Math.min(s,n-2)}else{for(var s=e;s<n&&!(i[s]>o);s++);s=Math.min(s-1,n-2)}A.lerp(c.position,r[s],r[s+1],(o-i[s])/(i[s+1]-i[s]));var a=r[s+1][0]-r[s][0],l=r[s+1][1]-r[s][1];c.rotation=-Math.atan2(l,a)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=o,c.ignore=!1},E.inherits(w,C);var f=w;H.exports=f},apAg:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("bsht")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="SearchOutlined";var c=A.forwardRef(f);B.default=c},as94:function(H,B,d){var O=d("7aKB"),E=d("3LNs"),C=d("IwbS"),A=d("/y7N"),w=d("Fofx"),m=d("+rIm"),f=d("Znkb"),c=E.extend({makeElOption:function(n,e,s,t,a){var l=s.axis;l.dim==="angle"&&(this.animationThreshold=Math.PI/18);var u=l.polar,h=u.getOtherAxis(l),p=h.getExtent(),g;g=l["dataTo"+O.capitalFirst(l.dim)](e);var v=t.get("type");if(v&&v!=="none"){var y=A.buildElStyle(t),x=r[v](l,u,g,p,y);x.style=y,n.graphicKey=x.type,n.pointer=x}var T=t.get("label.margin"),S=o(e,s,t,u,T);A.buildLabelElOption(n,s,t,a,S)}});function o(n,e,s,t,a){var l=e.axis,u=l.dataToCoord(n),h=t.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var p=t.getRadiusAxis().getExtent(),g,v,y;if(l.dim==="radius"){var x=w.create();w.rotate(x,x,h),w.translate(x,x,[t.cx,t.cy]),g=C.applyTransform([u,-a],x);var T=e.getModel("axisLabel").get("rotate")||0,S=m.innerTextLayout(h,T*Math.PI/180,-1);v=S.textAlign,y=S.textVerticalAlign}else{var b=p[1];g=t.coordToPoint([b+a,u]);var _=t.cx,I=t.cy;v=Math.abs(g[0]-_)/b<.3?"center":g[0]>_?"left":"right",y=Math.abs(g[1]-I)/b<.3?"middle":g[1]>I?"top":"bottom"}return{position:g,align:v,verticalAlign:y}}var r={line:function(n,e,s,t,a){return n.dim==="angle"?{type:"Line",shape:A.makeLineShape(e.coordToPoint([t[0],s]),e.coordToPoint([t[1],s]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:s}}},shadow:function(n,e,s,t,a){var l=Math.max(1,n.getBandWidth()),u=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,t[0],t[1],(-s-l/2)*u,(-s+l/2)*u)}:{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,s-l/2,s+l/2,0,Math.PI*2)}}};f.registerAxisPointerClass("PolarAxisPointer",c);var i=c;H.exports=i},b56q:function(H,B,d){},b80e:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("gKaM")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="DoubleLeftOutlined";var c=A.forwardRef(f);B.default=c},b9oc:function(H,B,d){var O=d("bYtY"),E=O.each,C="\0_ec_hist_store";function A(o,r){var i=c(o);E(r,function(n,e){for(var s=i.length-1;s>=0;s--){var t=i[s];if(t[e])break}if(s<0){var a=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(a){var l=a.getPercentRange();i[0][e]={dataZoomId:e,start:l[0],end:l[1]}}}}),i.push(r)}function w(o){var r=c(o),i=r[r.length-1];r.length>1&&r.pop();var n={};return E(i,function(e,s){for(var t=r.length-1;t>=0;t--){var e=r[t][s];if(e){n[s]=e;break}}}),n}function m(o){o[C]=null}function f(o){return c(o).length}function c(o){var r=o[C];return r||(r=o[C]=[{}]),r}B.push=A,B.pop=w,B.clear=m,B.count=f},bBKM:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("+rIm"),m=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 s=new w(e.model,{position:[r.cx,r.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});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"),s=o.getModel("splitArea"),t=e.getModel("lineStyle"),a=s.getModel("areaStyle"),l=e.get("show"),u=s.get("show"),h=t.get("color"),p=a.get("color");h=A.isArray(h)?h:[h],p=A.isArray(p)?p:[p];var g=[],v=[];function y(U,F,j){var W=j%F.length;return U[W]=U[W]||[],W}if(n==="circle")for(var x=i[0].getTicksCoords(),T=r.cx,S=r.cy,b=0;b<x.length;b++){if(l){var _=y(g,h,b);g[_].push(new m.Circle({shape:{cx:T,cy:S,r:x[b].coord}}))}if(u&&b<x.length-1){var _=y(v,p,b);v[_].push(new m.Ring({shape:{cx:T,cy:S,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var I,L=A.map(i,function(U,F){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,F)})}),N=[],b=0;b<=I;b++){for(var D=[],R=0;R<i.length;R++)D.push(L[R][b]);if(D[0]&&D.push(D[0].slice()),l){var _=y(g,h,b);g[_].push(new m.Polyline({shape:{points:D}}))}if(u&&N){var _=y(v,p,b-1);v[_].push(new m.Polygon({shape:{points:D.concat(N)}}))}N=D.slice().reverse()}var P=t.getLineStyle(),M=a.getAreaStyle();A.each(v,function(U,F){this.group.add(m.mergePath(U,{style:A.defaults({stroke:"none",fill:p[F%p.length]},M),silent:!0}))},this),A.each(g,function(U,F){this.group.add(m.mergePath(U,{style:A.defaults({fill:"none",stroke:h[F%h.length]},P),silent:!0}))},this)}});H.exports=c},bBL8:function(H,B,d){var O=d("ProS");d("LPzL"),d("rfSb"),d("JVwQ");var E=d("UnoB"),C=d("cbJ4"),A=d("0/Rx");O.registerLayout(E),O.registerVisual(C),O.registerProcessor(A("themeRiver"))},bE4E:function(H,B,d){},bE4q:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("RIqP"),m=d.n(w),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("Zm9Q"),i=d("HQEm"),n=d.n(i),e=d("XBQK"),s=d("H84U"),t=function(N,D){var R={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&D.indexOf(P)<0&&(R[P]=N[P]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,P=Object.getOwnPropertySymbols(N);M<P.length;M++)D.indexOf(P[M])<0&&Object.prototype.propertyIsEnumerable.call(N,P[M])&&(R[P[M]]=N[P[M]]);return R},a=function(D){var R=D.prefixCls,P=D.separator,M=P===void 0?"/":P,U=D.children,F=D.overlay,j=D.dropdownProps,W=t(D,["prefixCls","separator","children","overlay","dropdownProps"]),V=f.useContext(s.b),z=V.getPrefixCls,Y=z("breadcrumb",R),$=function(ge){return F?f.createElement(e.a,E()({overlay:F,placement:"bottomCenter"},j),f.createElement("span",{className:"".concat(Y,"-overlay-link")},ge,f.createElement(n.a,null))):ge},ue;return"href"in W?ue=f.createElement("a",E()({className:"".concat(Y,"-link")},W),U):ue=f.createElement("span",E()({className:"".concat(Y,"-link")},W),U),ue=$(ue),U?f.createElement("span",null,ue,M&&M!==""&&f.createElement("span",{className:"".concat(Y,"-separator")},M)):null};a.__ANT_BREADCRUMB_ITEM=!0;var l=a,u=function(D){var R=D.children,P=f.useContext(s.b),M=P.getPrefixCls,U=M("breadcrumb");return f.createElement("span",{className:"".concat(U,"-separator")},R||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var h=u,p=d("BvKs"),g=d("uaoM"),v=d("0n0R"),y=function(N,D){var R={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&D.indexOf(P)<0&&(R[P]=N[P]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,P=Object.getOwnPropertySymbols(N);M<P.length;M++)D.indexOf(P[M])<0&&Object.prototype.propertyIsEnumerable.call(N,P[M])&&(R[P[M]]=N[P[M]]);return R};function x(N,D){if(!N.breadcrumbName)return null;var R=Object.keys(D).join("|"),P=N.breadcrumbName.replace(new RegExp(":(".concat(R,")"),"g"),function(M,U){return D[U]||M});return P}function T(N,D,R,P){var M=R.indexOf(N)===R.length-1,U=x(N,D);return M?f.createElement("span",null,U):f.createElement("a",{href:"#/".concat(P.join("/"))},U)}var S=function(D,R){return D=(D||"").replace(/^\//,""),Object.keys(R).forEach(function(P){D=D.replace(":".concat(P),R[P])}),D},b=function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",P=arguments.length>2?arguments[2]:void 0,M=m()(D),U=S(R,P);return U&&M.push(U),M},_=function(D){var R=D.prefixCls,P=D.separator,M=P===void 0?"/":P,U=D.style,F=D.className,j=D.routes,W=D.children,V=D.itemRender,z=V===void 0?T:V,Y=D.params,$=Y===void 0?{}:Y,ue=y(D,["prefixCls","separator","style","className","routes","children","itemRender","params"]),ne=f.useContext(s.b),ge=ne.getPrefixCls,Oe=ne.direction,De,He=ge("breadcrumb",R);if(j&&j.length>0){var pe=[];De=j.map(function(oe){var ee=S(oe.path,$);ee&&pe.push(ee);var Xe;return oe.children&&oe.children.length&&(Xe=f.createElement(p.a,null,oe.children.map(function(se){return f.createElement(p.a.Item,{key:se.path||se.breadcrumbName},z(se,$,j,b(pe,se.path,$)))}))),f.createElement(l,{overlay:Xe,separator:M,key:ee||oe.breadcrumbName},z(oe,$,j,pe))})}else W&&(De=Object(r.a)(W).map(function(oe,ee){return oe&&(Object(g.a)(oe.type&&(oe.type.__ANT_BREADCRUMB_ITEM===!0||oe.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(v.a)(oe,{separator:M,key:ee}))}));var Ue=o()(F,He,A()({},"".concat(He,"-rtl"),Oe==="rtl"));return f.createElement("div",E()({className:Ue,style:U},ue),De)};_.Item=l,_.Separator=h;var I=_,L=B.a=I},bKJz:function(H,B,d){},bLfw:function(H,B,d){var O=d("bYtY"),E=d("Qxkt"),C=d("iRjW"),A=d("Yl7c"),w=A.enableClassManagement,m=A.parseClassType,f=d("4NO4"),c=f.makeInner,o=d("+TT/"),r=d("3hzK"),i=c(),n=E.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,a,l,u){E.call(this,t,a,l,u),this.uid=C.getUID("ec_cpt_model")},init:function(t,a,l,u){this.mergeDefaultAndTheme(t,l)},mergeDefaultAndTheme:function(t,a){var l=this.layoutMode,u=l?o.getLayoutParams(t):{},h=a.getTheme();O.merge(t,h.get(this.mainType)),O.merge(t,this.getDefaultOption()),l&&o.mergeLayoutParam(t,u,l)},mergeOption:function(t,a){O.merge(this.option,t,!0);var l=this.layoutMode;l&&o.mergeLayoutParam(this.option,t,l)},optionUpdated:function(t,a){},getDefaultOption:function(){var t=i(this);if(!t.defaultOption){for(var a=[],l=this.constructor;l;){var u=l.prototype.defaultOption;u&&a.push(u),l=l.superClass}for(var 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)})}});w(n,{registerWhenExtend:!0}),C.enableSubTypeDefaulter(n),C.enableTopologicalTravel(n,e);function e(t){var a=[];return O.each(n.getClassesByMainType(t),function(l){a=a.concat(l.prototype.dependencies||[])}),a=O.map(a,function(l){return m(l).main}),t!=="dataset"&&O.indexOf(a,"dataset")<=0&&a.unshift("dataset"),a}O.mixin(n,r);var s=n;H.exports=s},bMXI:function(H,B,d){var O=d("bYtY"),E=d("QBsz"),C=d("Fofx"),A=d("mFDi"),w=d("DN4a"),m=E.applyTransform;function f(){w.call(this)}O.mixin(f,w);function c(i){this.name=i,this.zoomLimit,w.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,s){return this._rect=new A(i,n,e,s),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(i,n,e,s){this.transformTo(i,n,e,s),this._viewRect=new A(i,n,e,s)},transformTo:function(i,n,e,s){var t=this.getBoundingRect(),a=this._rawTransformable;a.transform=t.calculateTransform(new A(i,n,e,s)),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(),s=this.getCenter(),t=this.getZoom();s=E.applyTransform([],s,i),e=E.applyTransform([],e,i),n.origin=s,n.position=[e[0]-s[0],e[1]-s[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 s=n?this._rawTransform:this.transform;return e=e||[],s?m(e,i,s):E.copy(e,i)},pointToData:function(i){var n=this.invTransform;return n?m([],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,w);function o(i,n,e,s){var t=e.seriesModel,a=t?t.coordinateSystem:null;return a===this?a[i](s):null}var r=c;H.exports=r},bNin:function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("FBjb"),A=d("Itpr"),w=A.radialCoordinate,m=d("ProS"),f=d("4mN7"),c=d("bMXI"),o=d("Ae+d"),r=d("SgGq"),i=d("xSat"),n=i.onIrrelevantElement,e=d("Tghj"),s=e.__DEV__,t=d("OELB"),a=t.parsePercent,l=E.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(T,S){var b=S.childPoints,_=b.length,I=S.parentPoint,L=b[0],N=b[_-1];if(_===1){T.moveTo(I[0],I[1]),T.lineTo(L[0],L[1]);return}var D=S.orient,R=D==="TB"||D==="BT"?0:1,P=1-R,M=a(S.forkPosition,1),U=[];U[R]=I[R],U[P]=I[P]+(N[P]-I[P])*M,T.moveTo(I[0],I[1]),T.lineTo(U[0],U[1]),T.moveTo(L[0],L[1]),U[R]=L[R],T.lineTo(U[0],U[1]),U[R]=N[R],T.lineTo(U[0],U[1]),T.lineTo(N[0],N[1]);for(var F=1;F<_-1;F++){var j=b[F];T.moveTo(j[0],j[1]),U[R]=j[R],T.lineTo(U[0],U[1])}}}),u=m.extendChartView({type:"tree",init:function(T,S){this._oldTree,this._mainGroup=new E.Group,this._controller=new r(S.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(T,S,b,_){var I=T.getData(),L=T.layoutInfo,N=this._mainGroup,D=T.get("layout");D==="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,D),this._updateController(T,S,b);var R=this._data,P={expandAndCollapse:T.get("expandAndCollapse"),layout:D,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(R).add(function(M){h(I,M)&&g(I,M,null,N,T,P)}).update(function(M,U){var F=R.getItemGraphicEl(U);if(!h(I,M)){F&&y(R,U,F,N,T,P);return}g(I,M,F,N,T,P)}).remove(function(M){var U=R.getItemGraphicEl(M);U&&y(R,M,U,N,T,P)}).execute(),this._nodeScaleRatio=T.get("nodeScaleRatio"),this._updateNodeAndLinkScale(T),P.expandAndCollapse===!0&&I.eachItemGraphicEl(function(M,U){M.off("click").on("click",function(){b.dispatchAction({type:"treeExpandAndCollapse",seriesId:T.id,dataIndex:U})})}),this._data=I},_updateViewCoordSys:function(T){var S=T.getData(),b=[];S.each(function(R){var P=S.getItemLayout(R);P&&!isNaN(P.x)&&!isNaN(P.y)&&b.push([+P.x,+P.y])});var _=[],I=[];f.fromPoints(b,_,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 D=T.coordinateSystem=new c;D.zoomLimit=T.get("scaleLimit"),D.setBoundingRect(_[0],_[1],I[0]-_[0],I[1]-_[1]),D.setCenter(T.get("center")),D.setZoom(T.get("zoom")),this.group.attr({position:D.position,scale:D.scale}),this._viewCoordSys=D,this._min=_,this._max=I},_updateController:function(T,S,b){var _=this._controller,I=this._controllerHost,L=this.group;_.setPointerChecker(function(N,D,R){var P=L.getBoundingRect();return P.applyTransform(L.transform),P.contain(D,R)&&!n(N,b,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),b.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),b.dispatchAction({seriesId:T.id,type:"treeRoam",zoom:N.scale,originX:N.originX,originY:N.originY}),this._updateNodeAndLinkScale(T)},this)},_updateNodeAndLinkScale:function(T){var S=T.getData(),b=this._getNodeGlobalScale(T),_=[b,b];S.eachItemGraphicEl(function(I,L){I.attr("scale",_)})},_getNodeGlobalScale:function(T){var S=T.coordinateSystem;if(S.type!=="view")return 1;var b=this._nodeScaleRatio,_=S.scale,I=_&&_[0]||1,L=S.getZoom(),N=(L-1)*b+1;return N/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function h(T,S){var b=T.getItemLayout(S);return b&&!isNaN(b.x)&&!isNaN(b.y)&&T.getItemVisual(S,"symbol")!=="none"}function p(T,S,b){return b.itemModel=S,b.itemStyle=S.getModel("itemStyle").getItemStyle(),b.hoverItemStyle=S.getModel("emphasis.itemStyle").getItemStyle(),b.lineStyle=S.getModel("lineStyle").getLineStyle(),b.labelModel=S.getModel("label"),b.hoverLabelModel=S.getModel("emphasis.label"),T.isExpand===!1&&T.children.length!==0?b.symbolInnerColor=b.itemStyle.fill:b.symbolInnerColor="#fff",b}function g(T,S,b,_,I,L){var N=!b,D=T.tree.getNodeByDataIndex(S),R=D.getModel(),L=p(D,R,L),P=T.tree.root,M=D.parentNode===P?D:D.parentNode||D,U=T.getItemGraphicEl(M.dataIndex),F=M.getLayout(),j=U?{x:U.position[0],y:U.position[1],rawX:U.__radialOldRawX,rawY:U.__radialOldRawY}:F,W=D.getLayout();N?(b=new C(T,S,L),b.attr("position",[j.x,j.y])):b.updateData(T,S,L),b.__radialOldRawX=b.__radialRawX,b.__radialOldRawY=b.__radialRawY,b.__radialRawX=W.rawX,b.__radialRawY=W.rawY,_.add(b),T.setItemGraphicEl(S,b),E.updateProps(b,{position:[W.x,W.y]},I);var V=b.getSymbolPath();if(L.layout==="radial"){var z=P.children[0],Y=z.getLayout(),$=z.children.length,ue,ne;if(W.x===Y.x&&D.isExpand===!0){var ge={};ge.x=(z.children[0].getLayout().x+z.children[$-1].getLayout().x)/2,ge.y=(z.children[0].getLayout().y+z.children[$-1].getLayout().y)/2,ue=Math.atan2(ge.y-Y.y,ge.x-Y.x),ue<0&&(ue=Math.PI*2+ue),ne=ge.x<Y.x,ne&&(ue=ue-Math.PI)}else ue=Math.atan2(W.y-Y.y,W.x-Y.x),ue<0&&(ue=Math.PI*2+ue),D.children.length===0||D.children.length!==0&&D.isExpand===!1?(ne=W.x<Y.x,ne&&(ue=ue-Math.PI)):(ne=W.x>Y.x,ne||(ue=ue-Math.PI));var Oe=ne?"left":"right",De=L.labelModel.get("rotate"),He=De*(Math.PI/180);V.setStyle({textPosition:L.labelModel.get("position")||Oe,textRotation:De==null?-ue:He,textOrigin:"center",verticalAlign:"middle"})}v(I,D,P,b,j,F,W,_,L)}function v(T,S,b,_,I,L,N,D,R){var P=R.edgeShape,M=_.__edge;if(P==="curve")S.parentNode&&S.parentNode!==b&&(M||(M=_.__edge=new E.BezierCurve({shape:x(R,I,I),style:O.defaults({opacity:0,strokeNoScale:!0},R.lineStyle)})),E.updateProps(M,{shape:x(R,L,N),style:{opacity:1}},T));else if(P==="polyline"&&(R.layout==="orthogonal"&&(S!==b&&S.children&&S.children.length!==0&&S.isExpand===!0))){for(var U=S.children,F=[],j=0;j<U.length;j++){var W=U[j].getLayout();F.push([W.x,W.y])}M||(M=_.__edge=new l({shape:{parentPoint:[N.x,N.y],childPoints:[[N.x,N.y]],orient:R.orient,forkPosition:R.edgeForkPosition},style:O.defaults({opacity:0,strokeNoScale:!0},R.lineStyle)})),E.updateProps(M,{shape:{parentPoint:[N.x,N.y],childPoints:F},style:{opacity:1}},T)}D.add(M)}function y(T,S,b,_,I,L){for(var N=T.tree.getNodeByDataIndex(S),D=T.tree.root,R=N.getModel(),L=p(N,R,L),P=N.parentNode===D?N:N.parentNode||N,M=L.edgeShape,U;U=P.getLayout(),U==null;)P=P.parentNode===D?P:P.parentNode||P;E.updateProps(b,{position:[U.x+1,U.y+1]},I,function(){_.remove(b),T.setItemGraphicEl(S,null)}),b.fadeOut(null,{keepLabel:!0});var F=T.getItemGraphicEl(P.dataIndex),j=F.__edge,W=b.__edge||(P.isExpand===!1||P.children.length===1?j:void 0),M=L.edgeShape;W&&(M==="curve"?E.updateProps(W,{shape:x(L,U,U),style:{opacity:0}},I,function(){_.remove(W)}):M==="polyline"&&L.layout==="orthogonal"&&E.updateProps(W,{shape:{parentPoint:[U.x,U.y],childPoints:[[U.x,U.y]]},style:{opacity:0}},I,function(){_.remove(W)}))}function x(T,S,b){var _,I,L,N,D=T.orient,R,P,M,U;if(T.layout==="radial"){R=S.rawX,M=S.rawY,P=b.rawX,U=b.rawY;var F=w(R,M),j=w(R,M+(U-M)*T.curvature),W=w(P,U+(M-U)*T.curvature),V=w(P,U);return{x1:F.x,y1:F.y,x2:V.x,y2:V.y,cpx1:j.x,cpy1:j.y,cpx2:W.x,cpy2:W.y}}else R=S.x,M=S.y,P=b.x,U=b.y,(D==="LR"||D==="RL")&&(_=R+(P-R)*T.curvature,I=M,L=P+(R-P)*T.curvature,N=U),(D==="TB"||D==="BT")&&(_=R,I=M+(U-M)*T.curvature,L=P,N=U+(M-U)*T.curvature);return{x1:R,y1:M,x2:P,y2:U,cpx1:_,cpy1:I,cpx2:L,cpy2:N}}H.exports=u},bQjk:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return function(E){var C=O,A=C.lib,w=A.CipherParams,m=C.enc,f=m.Hex,c=C.format,o=c.Hex={stringify:function(i){return i.ciphertext.toString(f)},parse:function(i){var n=f.parse(i);return w.create({ciphertext:n})}}}(),O.format.Hex})},bT9E:function(H,B,d){"use strict";d.d(B,"a",function(){return E});var O=d("VTBJ");function E(C,A){var w=Object(O.a)({},C);return Array.isArray(A)&&A.forEach(function(m){delete w[m]}),w}},bX4T:function(H,B,d){"use strict";d.d(B,"a",function(){return c});var O=d("VTBJ"),E=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,C=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,A="".concat(E," ").concat(C).split(/[\s\n]+/),w="aria-",m="data-";function f(o,r){return o.indexOf(r)===0}function c(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i;r===!1?i={aria:!0,data:!0,attr:!0}:r===!0?i={aria:!0}:i=Object(O.a)({},r);var n={};return Object.keys(o).forEach(function(e){(i.aria&&(e==="role"||f(e,w))||i.data&&f(e,m)||i.attr&&A.includes(e))&&(n[e]=o[e])}),n}},bYtY:function(H,B){var d={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},O={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},E=Object.prototype.toString,C=Array.prototype,A=C.forEach,w=C.filter,m=C.slice,f=C.map,c=C.reduce,o={};function r(oe,ee){oe==="createCanvas"&&(l=null),o[oe]=ee}function i(oe){if(oe==null||typeof oe!="object")return oe;var ee=oe,Xe=E.call(oe);if(Xe==="[object Array]"){if(!Oe(oe)){ee=[];for(var se=0,Q=oe.length;se<Q;se++)ee[se]=i(oe[se])}}else if(O[Xe]){if(!Oe(oe)){var G=oe.constructor;if(oe.constructor.from)ee=G.from(oe);else{ee=new G(oe.length);for(var se=0,Q=oe.length;se<Q;se++)ee[se]=i(oe[se])}}}else if(!d[Xe]&&!Oe(oe)&&!U(oe)){ee={};for(var J in oe)oe.hasOwnProperty(J)&&(ee[J]=i(oe[J]))}return ee}function n(oe,ee,Xe){if(!R(ee)||!R(oe))return Xe?i(ee):oe;for(var se in ee)if(ee.hasOwnProperty(se)){var Q=oe[se],G=ee[se];R(G)&&R(Q)&&!L(G)&&!L(Q)&&!U(G)&&!U(Q)&&!P(G)&&!P(Q)&&!Oe(G)&&!Oe(Q)?n(Q,G,Xe):(Xe||!(se in oe))&&(oe[se]=i(ee[se],!0))}return oe}function e(oe,ee){for(var Xe=oe[0],se=1,Q=oe.length;se<Q;se++)Xe=n(Xe,oe[se],ee);return Xe}function s(oe,ee){for(var Xe in ee)ee.hasOwnProperty(Xe)&&(oe[Xe]=ee[Xe]);return oe}function t(oe,ee,Xe){for(var se in ee)ee.hasOwnProperty(se)&&(Xe?ee[se]!=null:oe[se]==null)&&(oe[se]=ee[se]);return oe}var a=function(){return o.createCanvas()};o.createCanvas=function(){return document.createElement("canvas")};var l;function u(){return l||(l=a().getContext("2d")),l}function h(oe,ee){if(oe){if(oe.indexOf)return oe.indexOf(ee);for(var Xe=0,se=oe.length;Xe<se;Xe++)if(oe[Xe]===ee)return Xe}return-1}function p(oe,ee){var Xe=oe.prototype;function se(){}se.prototype=ee.prototype,oe.prototype=new se;for(var Q in Xe)Xe.hasOwnProperty(Q)&&(oe.prototype[Q]=Xe[Q]);oe.prototype.constructor=oe,oe.superClass=ee}function g(oe,ee,Xe){oe="prototype"in oe?oe.prototype:oe,ee="prototype"in ee?ee.prototype:ee,t(oe,ee,Xe)}function v(oe){return oe?typeof oe=="string"?!1:typeof oe.length=="number":void 0}function y(oe,ee,Xe){if(!(oe&&ee))return;if(oe.forEach&&oe.forEach===A)oe.forEach(ee,Xe);else if(oe.length===+oe.length)for(var se=0,Q=oe.length;se<Q;se++)ee.call(Xe,oe[se],se,oe);else for(var G in oe)oe.hasOwnProperty(G)&&ee.call(Xe,oe[G],G,oe)}function x(oe,ee,Xe){if(!(oe&&ee))return;if(oe.map&&oe.map===f)return oe.map(ee,Xe);for(var se=[],Q=0,G=oe.length;Q<G;Q++)se.push(ee.call(Xe,oe[Q],Q,oe));return se}function T(oe,ee,Xe,se){if(!(oe&&ee))return;if(oe.reduce&&oe.reduce===c)return oe.reduce(ee,Xe,se);for(var Q=0,G=oe.length;Q<G;Q++)Xe=ee.call(se,Xe,oe[Q],Q,oe);return Xe}function S(oe,ee,Xe){if(!(oe&&ee))return;if(oe.filter&&oe.filter===w)return oe.filter(ee,Xe);for(var se=[],Q=0,G=oe.length;Q<G;Q++)ee.call(Xe,oe[Q],Q,oe)&&se.push(oe[Q]);return se}function b(oe,ee,Xe){if(!(oe&&ee))return;for(var se=0,Q=oe.length;se<Q;se++)if(ee.call(Xe,oe[se],se,oe))return oe[se]}function _(oe,ee){var Xe=m.call(arguments,2);return function(){return oe.apply(ee,Xe.concat(m.call(arguments)))}}function I(oe){var ee=m.call(arguments,1);return function(){return oe.apply(this,ee.concat(m.call(arguments)))}}function L(oe){return E.call(oe)==="[object Array]"}function N(oe){return typeof oe=="function"}function D(oe){return E.call(oe)==="[object String]"}function R(oe){var ee=typeof oe;return ee==="function"||!!oe&&ee==="object"}function P(oe){return!!d[E.call(oe)]}function M(oe){return!!O[E.call(oe)]}function U(oe){return typeof oe=="object"&&typeof oe.nodeType=="number"&&typeof oe.ownerDocument=="object"}function F(oe){return oe!==oe}function j(oe){for(var ee=0,Xe=arguments.length;ee<Xe;ee++)if(arguments[ee]!=null)return arguments[ee]}function W(oe,ee){return oe!=null?oe:ee}function V(oe,ee,Xe){return oe!=null?oe:ee!=null?ee:Xe}function z(){return Function.call.apply(m,arguments)}function Y(oe){if(typeof oe=="number")return[oe,oe,oe,oe];var ee=oe.length;return ee===2?[oe[0],oe[1],oe[0],oe[1]]:ee===3?[oe[0],oe[1],oe[2],oe[1]]:oe}function $(oe,ee){if(!oe)throw new Error(ee)}function ue(oe){return oe==null?null:typeof oe.trim=="function"?oe.trim():oe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ne="__ec_primitive__";function ge(oe){oe[ne]=!0}function Oe(oe){return oe[ne]}function De(oe){var ee=L(oe);this.data={};var Xe=this;oe instanceof De?oe.each(se):oe&&y(oe,se);function se(Q,G){ee?Xe.set(Q,G):Xe.set(G,Q)}}De.prototype={constructor:De,get:function(ee){return this.data.hasOwnProperty(ee)?this.data[ee]:null},set:function(ee,Xe){return this.data[ee]=Xe},each:function(ee,Xe){Xe!==void 0&&(ee=_(ee,Xe));for(var se in this.data)this.data.hasOwnProperty(se)&&ee(this.data[se],se)},removeKey:function(ee){delete this.data[ee]}};function He(oe){return new De(oe)}function pe(oe,ee){for(var Xe=new oe.constructor(oe.length+ee.length),se=0;se<oe.length;se++)Xe[se]=oe[se];var Q=oe.length;for(se=0;se<ee.length;se++)Xe[se+Q]=ee[se];return Xe}function Ue(){}B.$override=r,B.clone=i,B.merge=n,B.mergeAll=e,B.extend=s,B.defaults=t,B.createCanvas=a,B.getContext=u,B.indexOf=h,B.inherits=p,B.mixin=g,B.isArrayLike=v,B.each=y,B.map=x,B.reduce=T,B.filter=S,B.find=b,B.bind=_,B.curry=I,B.isArray=L,B.isFunction=N,B.isString=D,B.isObject=R,B.isBuiltInObject=P,B.isTypedArray=M,B.isDom=U,B.eqNaN=F,B.retrieve=j,B.retrieve2=W,B.retrieve3=V,B.slice=z,B.normalizeCssArray=Y,B.assert=$,B.trim=ue,B.setAsPrimitive=ge,B.isPrimitive=Oe,B.createHashMap=He,B.concatArray=pe,B.noop=Ue},bZqE:function(H,B){function d(E,C,A){for(var w=[E],m=[],f;f=w.pop();)if(m.push(f),f.isExpand){var c=f.children;if(c.length)for(var o=0;o<c.length;o++)w.push(c[o])}for(;f=m.pop();)C(f,A)}function O(E,C){for(var A=[E],w;w=A.pop();)if(C(w),w.isExpand){var m=w.children;if(m.length)for(var f=m.length-1;f>=0;f--)A.push(m[f])}}B.eachAfter=d,B.eachBefore=O},bahg:function(H,B){function d(O){return O.split("")}H.exports=d},bbsP:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("CWI+"),A=d.n(C)},bogI:function(H,B,d){"use strict";d.d(B,"a",function(){return O});var O=function(C){if(!C)return null;var A=typeof C=="function";return A?C():C}},bsht:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},bx4M:function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("q1tI"),m=d("TSYQ"),f=d.n(m),c=d("BGR+"),o=d("H84U"),r=function(x,T){var S={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&T.indexOf(b)<0&&(S[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)T.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(S[b[_]]=x[b[_]]);return S},i=function(T){return w.createElement(o.a,null,function(S){var b=S.getPrefixCls,_=T.prefixCls,I=T.className,L=T.hoverable,N=L===void 0?!0:L,D=r(T,["prefixCls","className","hoverable"]),R=b("card",_),P=f()("".concat(R,"-grid"),I,E()({},"".concat(R,"-grid-hoverable"),N));return w.createElement("div",A()({},D,{className:P}))})},n=i,e=function(x,T){var S={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&T.indexOf(b)<0&&(S[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)T.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(S[b[_]]=x[b[_]]);return S},s=function(T){return w.createElement(o.a,null,function(S){var b=S.getPrefixCls,_=T.prefixCls,I=T.className,L=T.avatar,N=T.title,D=T.description,R=e(T,["prefixCls","className","avatar","title","description"]),P=b("card",_),M=f()("".concat(P,"-meta"),I),U=L?w.createElement("div",{className:"".concat(P,"-meta-avatar")},L):null,F=N?w.createElement("div",{className:"".concat(P,"-meta-title")},N):null,j=D?w.createElement("div",{className:"".concat(P,"-meta-description")},D):null,W=F||j?w.createElement("div",{className:"".concat(P,"-meta-detail")},F,j):null;return w.createElement("div",A()({},R,{className:M}),U,W)})},t=s,a=d("ZTPi"),l=d("BMrR"),u=d("kPKH"),h=d("3Nzz"),p=function(x,T){var S={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&T.indexOf(b)<0&&(S[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)T.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(S[b[_]]=x[b[_]]);return S};function g(x){var T=x.map(function(S,b){return w.createElement("li",{style:{width:"".concat(100/x.length,"%")},key:"action-".concat(b)},w.createElement("span",null,S))});return T}var v=function(T){var S,b,_=w.useContext(o.b),I=_.getPrefixCls,L=_.direction,N=w.useContext(h.b),D=function(Ot){T.onTabChange&&T.onTabChange(Ot)},R=function(){var Ot;return w.Children.forEach(T.children,function(Ct){Ct&&Ct.type&&Ct.type===n&&(Ot=!0)}),Ot},P=T.prefixCls,M=T.className,U=T.extra,F=T.headStyle,j=F===void 0?{}:F,W=T.bodyStyle,V=W===void 0?{}:W,z=T.title,Y=T.loading,$=T.bordered,ue=$===void 0?!0:$,ne=T.size,ge=T.type,Oe=T.cover,De=T.actions,He=T.tabList,pe=T.children,Ue=T.activeTabKey,oe=T.defaultActiveTabKey,ee=T.tabBarExtraContent,Xe=T.hoverable,se=T.tabProps,Q=se===void 0?{}:se,G=p(T,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),J=I("card",P),ve=V.padding===0||V.padding==="0px"?{padding:24}:void 0,de=w.createElement("div",{className:"".concat(J,"-loading-block")}),Ce=w.createElement("div",{className:"".concat(J,"-loading-content"),style:ve},w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:22},de)),w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:8},de),w.createElement(u.a,{span:15},de)),w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:6},de),w.createElement(u.a,{span:18},de)),w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:13},de),w.createElement(u.a,{span:9},de)),w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:4},de),w.createElement(u.a,{span:3},de),w.createElement(u.a,{span:16},de))),Ee=Ue!==void 0,le=A()(A()({},Q),(S={},E()(S,Ee?"activeKey":"defaultActiveKey",Ee?Ue:oe),E()(S,"tabBarExtraContent",ee),S)),fe,xe=He&&He.length?w.createElement(a.a,A()({size:"large"},le,{className:"".concat(J,"-head-tabs"),onChange:D}),He.map(function(nt){return w.createElement(a.a.TabPane,{tab:nt.tab,disabled:nt.disabled,key:nt.key})})):null;(z||U||xe)&&(fe=w.createElement("div",{className:"".concat(J,"-head"),style:j},w.createElement("div",{className:"".concat(J,"-head-wrapper")},z&&w.createElement("div",{className:"".concat(J,"-head-title")},z),U&&w.createElement("div",{className:"".concat(J,"-extra")},U)),xe));var Qe=Oe?w.createElement("div",{className:"".concat(J,"-cover")},Oe):null,ot=w.createElement("div",{className:"".concat(J,"-body"),style:V},Y?Ce:pe),Je=De&&De.length?w.createElement("ul",{className:"".concat(J,"-actions")},g(De)):null,Te=Object(c.default)(G,["onTabChange"]),et=ne||N,ze=f()(J,M,(b={},E()(b,"".concat(J,"-loading"),Y),E()(b,"".concat(J,"-bordered"),ue),E()(b,"".concat(J,"-hoverable"),Xe),E()(b,"".concat(J,"-contain-grid"),R()),E()(b,"".concat(J,"-contain-tabs"),He&&He.length),E()(b,"".concat(J,"-").concat(et),et),E()(b,"".concat(J,"-type-").concat(ge),!!ge),E()(b,"".concat(J,"-rtl"),L==="rtl"),b));return w.createElement("div",A()({},Te,{className:ze}),fe,Qe,ot,Je)};v.Grid=n,v.Meta=t;var y=B.a=v},c2i1:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("Yl7c"),w=A.enableClassCheck;function m(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,s){e=e==null?""+s:""+e;var t=this._nodesMap;if(t[m(e)])return;var a=new o(e,s);return a.hostGraph=this,this.nodes.push(a),t[m(e)]=a,a},c.getNodeByIndex=function(e){var s=this.data.getRawIndex(e);return this.nodes[s]},c.getNodeById=function(e){return this._nodesMap[m(e)]},c.addEdge=function(e,s,t){var a=this._nodesMap,l=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof s=="number"&&(s=this.nodes[s]),o.isInstance(e)||(e=a[m(e)]),o.isInstance(s)||(s=a[m(s)]),!e||!s)return;var u=e.id+"-"+s.id;if(l[u])return;var h=new r(e,s,t);return h.hostGraph=this,this._directed&&(e.outEdges.push(h),s.inEdges.push(h)),e.edges.push(h),e!==s&&s.edges.push(h),this.edges.push(h),l[u]=h,h},c.getEdgeByIndex=function(e){var s=this.edgeData.getRawIndex(e);return this.edges[s]},c.getEdge=function(e,s){o.isInstance(e)&&(e=e.id),o.isInstance(s)&&(s=s.id);var t=this._edgesMap;return this._directed?t[e+"-"+s]:t[e+"-"+s]||t[s+"-"+e]},c.eachNode=function(e,s){for(var t=this.nodes,a=t.length,l=0;l<a;l++)t[l].dataIndex>=0&&e.call(s,t[l],l)},c.eachEdge=function(e,s){for(var t=this.edges,a=t.length,l=0;l<a;l++)t[l].dataIndex>=0&&t[l].node1.dataIndex>=0&&t[l].node2.dataIndex>=0&&e.call(s,t[l],l)},c.breadthFirstTraverse=function(e,s,t,a){if(o.isInstance(s)||(s=this._nodesMap[m(s)]),!s)return;for(var l=t==="out"?"outEdges":t==="in"?"inEdges":"edges",u=0;u<this.nodes.length;u++)this.nodes[u].__visited=!1;if(e.call(a,s,null))return;for(var h=[s];h.length;)for(var p=h.shift(),g=p[l],u=0;u<g.length;u++){var v=g[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,s=this.edgeData,t=this.nodes,a=this.edges,l=0,u=t.length;l<u;l++)t[l].dataIndex=-1;for(var l=0,u=e.count();l<u;l++)t[e.getRawIndex(l)].dataIndex=l;s.filterSelf(function(h){var p=a[s.getRawIndex(h)];return p.node1.dataIndex>=0&&p.node2.dataIndex>=0});for(var l=0,u=a.length;l<u;l++)a[l].dataIndex=-1;for(var l=0,u=s.count();l<u;l++)a[s.getRawIndex(l)].dataIndex=l},c.clone=function(){for(var e=new f(this._directed),s=this.nodes,t=this.edges,a=0;a<s.length;a++)e.addNode(s[a].id,s[a].dataIndex);for(var a=0;a<t.length;a++){var l=t[a];e.addEdge(l.node1.id,l.node2.id,l.dataIndex)}return e};function o(e,s){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=s==null?-1:s}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 s=this.hostGraph,t=s.data.getItemModel(this.dataIndex);return t.getModel(e)}};function r(e,s,t){this.node1=e,this.node2=s,this.dataIndex=t==null?-1:t}r.prototype.getModel=function(e){if(this.dataIndex<0)return;var s=this.hostGraph,t=s.edgeData.getItemModel(this.dataIndex);return t.getModel(e)};var i=function(e,s){return{getValue:function(t){var a=this[e][s];return a.get(a.getDimension(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[e][s].setItemVisual(this.dataIndex,t,a)},getVisual:function(t,a){return this[e][s].getItemVisual(this.dataIndex,t,a)},setLayout:function(t,a){this.dataIndex>=0&&this[e][s].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[e][s].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][s].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][s].getRawIndex(this.dataIndex)}}};C.mixin(o,i("hostGraph","data")),C.mixin(r,i("hostGraph","edgeData")),f.Node=o,f.Edge=r,w(o),w(r);var n=f;H.exports=n},c3jg:function(H,B,d){"use strict";d.d(B,"e",function(){return f}),d.d(B,"c",function(){return o}),d.d(B,"d",function(){return r}),d.d(B,"a",function(){return n}),d.d(B,"f",function(){return e}),d.d(B,"b",function(){return s});var O=d("KQm4"),E=d("VTBJ"),C=d("Ff2n"),A=d("Zm9Q"),w=d("Kwbf"),m=d("wPhX");function f(t,a){return t!=null?t:a}function c(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=new Map;function l(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(p){var g=p.key,v=p.children;Object(w.a)(g!=null,"Tree node must have a certain key: [".concat(h).concat(g,"]"));var y=String(g);Object(w.a)(!a.has(y)||g===null||g===void 0,"Same 'key' exist in the Tree: ".concat(y)),a.set(y,!0),l(v,"".concat(h).concat(y," > "))})}l(t)}function o(t){function a(l){var u=Object(A.a)(l);return u.map(function(h){if(!Object(m.i)(h))return Object(w.a)(!h,"Tree/TreeNode can only accept TreeNode as children."),null;var p=h.key,g=h.props,v=g.children,y=Object(C.a)(g,["children"]),x=Object(E.a)({key:p},y),T=a(v);return T.length&&(x.children=T),x}).filter(function(h){return h})}return a(t)}function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=new Set(a===!0?[]:a),u=[];function h(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p.map(function(v,y){var x=Object(m.h)(g?g.pos:"0",y),T=f(v.key,x),S=Object(E.a)(Object(E.a)({},v),{},{parent:g,pos:x,children:null,data:v,isStart:[].concat(Object(O.a)(g?g.isStart:[]),[y===0]),isEnd:[].concat(Object(O.a)(g?g.isEnd:[]),[y===p.length-1])});return u.push(S),a===!0||l.has(T)?S.children=h(v.children||[],S):S.children=[],S})}return h(t),u}function i(t,a,l){var u;l?typeof l=="string"?u=function(g){return g[l]}:typeof l=="function"&&(u=function(g){return l(g)}):u=function(g,v){return f(g.key,v)};function h(p,g,v){var y=p?p.children:t,x=p?Object(m.h)(v.pos,g):"0";if(p){var T=u(p,x),S={node:p,index:g,pos:x,key:T,parentPos:v.node?v.pos:null,level:v.level+1};a(S)}y&&y.forEach(function(b,_){h(b,_,{node:p,pos:x,level:v?v.level+1:-1})})}h(null)}function n(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=a.initWrapper,u=a.processEntity,h=a.onProcessFinished,p=arguments.length>2?arguments[2]:void 0,g={},v={},y={posEntities:g,keyEntities:v};return l&&(y=l(y)||y),i(t,function(x){var T=x.node,S=x.index,b=x.pos,_=x.key,I=x.parentPos,L=x.level,N={node:T,index:S,key:_,pos:b,level:L},D=f(_,b);g[b]=N,v[D]=N,N.parent=g[I],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),u&&u(N,y)},p),h&&h(y),y}function e(t,a){var l=a.expandedKeys,u=a.selectedKeys,h=a.loadedKeys,p=a.loadingKeys,g=a.checkedKeys,v=a.halfCheckedKeys,y=a.dragOverNodeKey,x=a.dropPosition,T=a.keyEntities,S=T[t],b={eventKey:t,expanded:l.indexOf(t)!==-1,selected:u.indexOf(t)!==-1,loaded:h.indexOf(t)!==-1,loading:p.indexOf(t)!==-1,checked:g.indexOf(t)!==-1,halfChecked:v.indexOf(t)!==-1,pos:String(S?S.pos:""),dragOver:y===t&&x===0,dragOverGapTop:y===t&&x===-1,dragOverGapBottom:y===t&&x===1};return b}function s(t){var a=t.data,l=t.expanded,u=t.selected,h=t.checked,p=t.loaded,g=t.loading,v=t.halfChecked,y=t.dragOver,x=t.dragOverGapTop,T=t.dragOverGapBottom,S=t.pos,b=t.active,_=Object(E.a)(Object(E.a)({},a),{},{expanded:l,selected:u,checked:h,loaded:p,loading:g,halfChecked:v,dragOver:y,dragOverGapTop:x,dragOverGapBottom:T,pos:S,active:b});return"props"in _||Object.defineProperty(_,"props",{get:function(){return Object(w.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),_}},c5Ni:function(H,B,d){},c5fP:function(H,B,d){"use strict";function O(ze){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ot){return typeof Ot}:O=function(Ot){return Ot&&typeof Symbol=="function"&&Ot.constructor===Symbol&&Ot!==Symbol.prototype?"symbol":typeof Ot},O(ze)}Object.defineProperty(B,"__esModule",{value:!0}),B._tr_init=Qe,B._tr_stored_block=ot,B._tr_flush_block=Te,B._tr_tally=et,B._tr_align=Je;var E=A(d("6BzB"));function C(){if(typeof WeakMap!="function")return null;var ze=new WeakMap;return C=function(){return ze},ze}function A(ze){if(ze&&ze.__esModule)return ze;if(ze===null||O(ze)!=="object"&&typeof ze!="function")return{default:ze};var nt=C();if(nt&&nt.has(ze))return nt.get(ze);var Ot={},Ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in ze)if(Object.prototype.hasOwnProperty.call(ze,Tt)){var Dt=Ct?Object.getOwnPropertyDescriptor(ze,Tt):null;Dt&&(Dt.get||Dt.set)?Object.defineProperty(Ot,Tt,Dt):Ot[Tt]=ze[Tt]}return Ot.default=ze,nt&&nt.set(ze,Ot),Ot}var w=4,m=0,f=1,c=2;function o(ze){for(var nt=ze.length;--nt>=0;)ze[nt]=0}var r=0,i=1,n=2,e=3,s=258,t=29,a=256,l=a+1+t,u=30,h=19,p=2*l+1,g=15,v=16,y=7,x=256,T=16,S=17,b=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=512,R=new Array((l+2)*2);o(R);var P=new Array(u*2);o(P);var M=new Array(D);o(M);var U=new Array(s-e+1);o(U);var F=new Array(t);o(F);var j=new Array(u);o(j);function W(ze,nt,Ot,Ct,Tt){this.static_tree=ze,this.extra_bits=nt,this.extra_base=Ot,this.elems=Ct,this.max_length=Tt,this.has_stree=ze&&ze.length}var V,z,Y;function $(ze,nt){this.dyn_tree=ze,this.max_code=0,this.stat_desc=nt}function ue(ze){return ze<256?M[ze]:M[256+(ze>>>7)]}function ne(ze,nt){ze.pending_buf[ze.pending++]=nt&255,ze.pending_buf[ze.pending++]=nt>>>8&255}function ge(ze,nt,Ot){ze.bi_valid>v-Ot?(ze.bi_buf|=nt<<ze.bi_valid&65535,ne(ze,ze.bi_buf),ze.bi_buf=nt>>v-ze.bi_valid,ze.bi_valid+=Ot-v):(ze.bi_buf|=nt<<ze.bi_valid&65535,ze.bi_valid+=Ot)}function Oe(ze,nt,Ot){ge(ze,Ot[nt*2],Ot[nt*2+1])}function De(ze,nt){var Ot=0;do Ot|=ze&1,ze>>>=1,Ot<<=1;while(--nt>0);return Ot>>>1}function He(ze){ze.bi_valid===16?(ne(ze,ze.bi_buf),ze.bi_buf=0,ze.bi_valid=0):ze.bi_valid>=8&&(ze.pending_buf[ze.pending++]=ze.bi_buf&255,ze.bi_buf>>=8,ze.bi_valid-=8)}function pe(ze,nt){var Ot=nt.dyn_tree,Ct=nt.max_code,Tt=nt.stat_desc.static_tree,Dt=nt.stat_desc.has_stree,Be=nt.stat_desc.extra_bits,ie=nt.stat_desc.extra_base,X=nt.stat_desc.max_length,Fe,Ne,q,ht,Rt,ut,Xt=0;for(ht=0;ht<=g;ht++)ze.bl_count[ht]=0;for(Ot[ze.heap[ze.heap_max]*2+1]=0,Fe=ze.heap_max+1;Fe<p;Fe++){if(Ne=ze.heap[Fe],ht=Ot[Ot[Ne*2+1]*2+1]+1,ht>X&&(ht=X,Xt++),Ot[Ne*2+1]=ht,Ne>Ct)continue;ze.bl_count[ht]++,Rt=0,Ne>=ie&&(Rt=Be[Ne-ie]),ut=Ot[Ne*2],ze.opt_len+=ut*(ht+Rt),Dt&&(ze.static_len+=ut*(Tt[Ne*2+1]+Rt))}if(Xt===0)return;do{for(ht=X-1;ze.bl_count[ht]===0;)ht--;ze.bl_count[ht]--,ze.bl_count[ht+1]+=2,ze.bl_count[X]--,Xt-=2}while(Xt>0);for(ht=X;ht!==0;ht--)for(Ne=ze.bl_count[ht];Ne!==0;){if(q=ze.heap[--Fe],q>Ct)continue;Ot[q*2+1]!==ht&&(ze.opt_len+=(ht-Ot[q*2+1])*Ot[q*2],Ot[q*2+1]=ht),Ne--}}function Ue(ze,nt,Ot){var Ct=new Array(g+1),Tt=0,Dt,Be;for(Dt=1;Dt<=g;Dt++)Ct[Dt]=Tt=Tt+Ot[Dt-1]<<1;for(Be=0;Be<=nt;Be++){var ie=ze[Be*2+1];if(ie===0)continue;ze[Be*2]=De(Ct[ie]++,ie)}}function oe(){var ze,nt,Ot,Ct,Tt,Dt=new Array(g+1);for(Ot=0,Ct=0;Ct<t-1;Ct++)for(F[Ct]=Ot,ze=0;ze<1<<_[Ct];ze++)U[Ot++]=Ct;for(U[Ot-1]=Ct,Tt=0,Ct=0;Ct<16;Ct++)for(j[Ct]=Tt,ze=0;ze<1<<I[Ct];ze++)M[Tt++]=Ct;for(Tt>>=7;Ct<u;Ct++)for(j[Ct]=Tt<<7,ze=0;ze<1<<I[Ct]-7;ze++)M[256+Tt++]=Ct;for(nt=0;nt<=g;nt++)Dt[nt]=0;for(ze=0;ze<=143;)R[ze*2+1]=8,ze++,Dt[8]++;for(;ze<=255;)R[ze*2+1]=9,ze++,Dt[9]++;for(;ze<=279;)R[ze*2+1]=7,ze++,Dt[7]++;for(;ze<=287;)R[ze*2+1]=8,ze++,Dt[8]++;for(Ue(R,l+1,Dt),ze=0;ze<u;ze++)P[ze*2+1]=5,P[ze*2]=De(ze,5);V=new W(R,_,a+1,l,g),z=new W(P,I,0,u,g),Y=new W(new Array(0),L,0,h,y)}function ee(ze){var nt;for(nt=0;nt<l;nt++)ze.dyn_ltree[nt*2]=0;for(nt=0;nt<u;nt++)ze.dyn_dtree[nt*2]=0;for(nt=0;nt<h;nt++)ze.bl_tree[nt*2]=0;ze.dyn_ltree[x*2]=1,ze.opt_len=ze.static_len=0,ze.last_lit=ze.matches=0}function Xe(ze){ze.bi_valid>8?ne(ze,ze.bi_buf):ze.bi_valid>0&&(ze.pending_buf[ze.pending++]=ze.bi_buf),ze.bi_buf=0,ze.bi_valid=0}function se(ze,nt,Ot,Ct){Xe(ze),Ct&&(ne(ze,Ot),ne(ze,~Ot)),E.arraySet(ze.pending_buf,ze.window,nt,Ot,ze.pending),ze.pending+=Ot}function Q(ze,nt,Ot,Ct){var Tt=nt*2,Dt=Ot*2;return ze[Tt]<ze[Dt]||ze[Tt]===ze[Dt]&&Ct[nt]<=Ct[Ot]}function G(ze,nt,Ot){for(var Ct=ze.heap[Ot],Tt=Ot<<1;Tt<=ze.heap_len&&!(Tt<ze.heap_len&&Q(nt,ze.heap[Tt+1],ze.heap[Tt],ze.depth)&&Tt++,Q(nt,Ct,ze.heap[Tt],ze.depth));)ze.heap[Ot]=ze.heap[Tt],Ot=Tt,Tt<<=1;ze.heap[Ot]=Ct}function J(ze,nt,Ot){var Ct,Tt,Dt=0,Be,ie;if(ze.last_lit!==0)do Ct=ze.pending_buf[ze.d_buf+Dt*2]<<8|ze.pending_buf[ze.d_buf+Dt*2+1],Tt=ze.pending_buf[ze.l_buf+Dt],Dt++,Ct===0?Oe(ze,Tt,nt):(Be=U[Tt],Oe(ze,Be+a+1,nt),ie=_[Be],ie!==0&&(Tt-=F[Be],ge(ze,Tt,ie)),Ct--,Be=ue(Ct),Oe(ze,Be,Ot),ie=I[Be],ie!==0&&(Ct-=j[Be],ge(ze,Ct,ie)));while(Dt<ze.last_lit);Oe(ze,x,nt)}function ve(ze,nt){var Ot=nt.dyn_tree,Ct=nt.stat_desc.static_tree,Tt=nt.stat_desc.has_stree,Dt=nt.stat_desc.elems,Be,ie,X=-1,Fe;for(ze.heap_len=0,ze.heap_max=p,Be=0;Be<Dt;Be++)Ot[Be*2]!==0?(ze.heap[++ze.heap_len]=X=Be,ze.depth[Be]=0):Ot[Be*2+1]=0;for(;ze.heap_len<2;)Fe=ze.heap[++ze.heap_len]=X<2?++X:0,Ot[Fe*2]=1,ze.depth[Fe]=0,ze.opt_len--,Tt&&(ze.static_len-=Ct[Fe*2+1]);for(nt.max_code=X,Be=ze.heap_len>>1;Be>=1;Be--)G(ze,Ot,Be);Fe=Dt;do Be=ze.heap[1],ze.heap[1]=ze.heap[ze.heap_len--],G(ze,Ot,1),ie=ze.heap[1],ze.heap[--ze.heap_max]=Be,ze.heap[--ze.heap_max]=ie,Ot[Fe*2]=Ot[Be*2]+Ot[ie*2],ze.depth[Fe]=(ze.depth[Be]>=ze.depth[ie]?ze.depth[Be]:ze.depth[ie])+1,Ot[Be*2+1]=Ot[ie*2+1]=Fe,ze.heap[1]=Fe++,G(ze,Ot,1);while(ze.heap_len>=2);ze.heap[--ze.heap_max]=ze.heap[1],pe(ze,nt),Ue(Ot,X,ze.bl_count)}function de(ze,nt,Ot){var Ct,Tt=-1,Dt,Be=nt[0*2+1],ie=0,X=7,Fe=4;for(Be===0&&(X=138,Fe=3),nt[(Ot+1)*2+1]=65535,Ct=0;Ct<=Ot;Ct++){if(Dt=Be,Be=nt[(Ct+1)*2+1],++ie<X&&Dt===Be)continue;ie<Fe?ze.bl_tree[Dt*2]+=ie:Dt!==0?(Dt!==Tt&&ze.bl_tree[Dt*2]++,ze.bl_tree[T*2]++):ie<=10?ze.bl_tree[S*2]++:ze.bl_tree[b*2]++,ie=0,Tt=Dt,Be===0?(X=138,Fe=3):Dt===Be?(X=6,Fe=3):(X=7,Fe=4)}}function Ce(ze,nt,Ot){var Ct,Tt=-1,Dt,Be=nt[0*2+1],ie=0,X=7,Fe=4;for(Be===0&&(X=138,Fe=3),Ct=0;Ct<=Ot;Ct++){if(Dt=Be,Be=nt[(Ct+1)*2+1],++ie<X&&Dt===Be)continue;if(ie<Fe)do Oe(ze,Dt,ze.bl_tree);while(--ie!==0);else Dt!==0?(Dt!==Tt&&(Oe(ze,Dt,ze.bl_tree),ie--),Oe(ze,T,ze.bl_tree),ge(ze,ie-3,2)):ie<=10?(Oe(ze,S,ze.bl_tree),ge(ze,ie-3,3)):(Oe(ze,b,ze.bl_tree),ge(ze,ie-11,7));ie=0,Tt=Dt,Be===0?(X=138,Fe=3):Dt===Be?(X=6,Fe=3):(X=7,Fe=4)}}function Ee(ze){var nt;for(de(ze,ze.dyn_ltree,ze.l_desc.max_code),de(ze,ze.dyn_dtree,ze.d_desc.max_code),ve(ze,ze.bl_desc),nt=h-1;nt>=3&&!(ze.bl_tree[N[nt]*2+1]!==0);nt--);return ze.opt_len+=3*(nt+1)+5+5+4,nt}function le(ze,nt,Ot,Ct){var Tt;for(ge(ze,nt-257,5),ge(ze,Ot-1,5),ge(ze,Ct-4,4),Tt=0;Tt<Ct;Tt++)ge(ze,ze.bl_tree[N[Tt]*2+1],3);Ce(ze,ze.dyn_ltree,nt-1),Ce(ze,ze.dyn_dtree,Ot-1)}function fe(ze){var nt=4093624447,Ot;for(Ot=0;Ot<=31;Ot++,nt>>>=1)if(nt&1&&ze.dyn_ltree[Ot*2]!==0)return m;if(ze.dyn_ltree[9*2]!==0||ze.dyn_ltree[10*2]!==0||ze.dyn_ltree[13*2]!==0)return f;for(Ot=32;Ot<a;Ot++)if(ze.dyn_ltree[Ot*2]!==0)return f;return m}var xe=!1;function Qe(ze){xe||(oe(),xe=!0),ze.l_desc=new $(ze.dyn_ltree,V),ze.d_desc=new $(ze.dyn_dtree,z),ze.bl_desc=new $(ze.bl_tree,Y),ze.bi_buf=0,ze.bi_valid=0,ee(ze)}function ot(ze,nt,Ot,Ct){ge(ze,(r<<1)+(Ct?1:0),3),se(ze,nt,Ot,!0)}function Je(ze){ge(ze,i<<1,3),Oe(ze,x,R),He(ze)}function Te(ze,nt,Ot,Ct){var Tt,Dt,Be=0;ze.level>0?(ze.strm.data_type===c&&(ze.strm.data_type=fe(ze)),ve(ze,ze.l_desc),ve(ze,ze.d_desc),Be=Ee(ze),Tt=ze.opt_len+3+7>>>3,Dt=ze.static_len+3+7>>>3,Dt<=Tt&&(Tt=Dt)):Tt=Dt=Ot+5,Ot+4<=Tt&&nt!==-1?ot(ze,nt,Ot,Ct):ze.strategy===w||Dt===Tt?(ge(ze,(i<<1)+(Ct?1:0),3),J(ze,R,P)):(ge(ze,(n<<1)+(Ct?1:0),3),le(ze,ze.l_desc.max_code+1,ze.d_desc.max_code+1,Be+1),J(ze,ze.dyn_ltree,ze.dyn_dtree)),ee(ze),Ct&&Xe(ze)}function et(ze,nt,Ot){return ze.pending_buf[ze.d_buf+ze.last_lit*2]=nt>>>8&255,ze.pending_buf[ze.d_buf+ze.last_lit*2+1]=nt&255,ze.pending_buf[ze.l_buf+ze.last_lit]=Ot&255,ze.last_lit++,nt===0?ze.dyn_ltree[Ot*2]++:(ze.matches++,nt--,ze.dyn_ltree[(U[Ot]+a+1)*2]++,ze.dyn_dtree[ue(nt)*2]++),ze.last_lit===ze.lit_bufsize-1}},c8qY:function(H,B,d){var O=d("IwbS"),E=d("fls0");function C(n){this._ctor=n||E,this.group=new O.Group}var A=C.prototype;A.isPersistent=function(){return!0},A.updateData=function(n){var e=this,s=e.group,t=e._lineData;e._lineData=n,t||s.removeAll();var a=c(n);n.diff(t).add(function(l){w(e,n,l,a)}).update(function(l,u){m(e,t,n,u,l,a)}).remove(function(l){s.remove(t.getItemGraphicEl(l))}).execute()};function w(n,e,s,t){var a=e.getItemLayout(s);if(!r(a))return;var l=new n._ctor(e,s,t);e.setItemGraphicEl(s,l),n.group.add(l)}function m(n,e,s,t,a,l){var u=e.getItemGraphicEl(t);if(!r(s.getItemLayout(a))){n.group.remove(u);return}u?u.updateData(s,a,l):u=new n._ctor(s,a,l),s.setItemGraphicEl(a,u),n.group.add(u)}A.updateLayout=function(){var n=this._lineData;if(!n)return;n.eachItemGraphicEl(function(e,s){e.updateLayout(n,s)},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 s(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 l=new this._ctor(e,t,this._seriesScope);l.traverse(s),this.group.add(l),e.setItemGraphicEl(t,l)}}};function c(n){var e=n.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}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,B,d){var O=d("bYtY"),E={updateSelectedMap:function(C){this._targetList=O.isArray(C)?C.slice():[],this._selectTargetMap=O.reduce(C||[],function(A,w){return A.set(w.name,w),A},O.createHashMap())},select:function(C,A){var w=A!=null?this._targetList[A]:this._selectTargetMap.get(C),m=this.get("selectedMode");m==="single"&&this._selectTargetMap.each(function(f){f.selected=!1}),w&&(w.selected=!0)},unSelect:function(C,A){var w=A!=null?this._targetList[A]:this._selectTargetMap.get(C);w&&(w.selected=!1)},toggleSelected:function(C,A){var w=A!=null?this._targetList[A]:this._selectTargetMap.get(C);if(w!=null)return this[w.selected?"unSelect":"select"](C,A),w.selected},isSelected:function(C,A){var w=A!=null?this._targetList[A]:this._selectTargetMap.get(C);return w&&w.selected}};H.exports=E},cVA7:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=d("MT78"),E=w(O),C=d("t3Fx"),A=w(C);function w(r){return r&&r.__esModule?r:{default:r}}function m(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function 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){m(this,i);var e=f(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,n));return e.echartsLib=E.default,e}return i}(A.default);B.default=o},cWXX:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("oIFs"),A=d.n(C)},ca2m:function(H,B,d){var O=d("bYtY"),E={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},C={};C.categoryAxis=O.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E),C.valueAxis=O.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},E),C.timeAxis=O.defaults({scale:!0,min:"dataMin",max:"dataMax"},C.valueAxis),C.logAxis=O.defaults({scale:!0,logBase:10},C.valueAxis);var A=C;H.exports=A},cbJ4:function(H,B,d){var O=d("bYtY"),E=O.createHashMap;function C(A){A.eachSeriesByType("themeRiver",function(w){var m=w.getData(),f=w.getRawData(),c=w.get("color"),o=E();m.each(function(r){o.set(m.getRawIndex(r),r)}),f.each(function(r){var i=f.getName(r),n=c[(w.nameMap.get(i)-1)%c.length];f.setItemVisual(r,"color",n);var e=o.get(r);e!=null&&m.setItemVisual(e,"color",n)})})}H.exports=C},chpo:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=1,E=function(){return"".concat(O++)};B.default=E},cpOr:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("T4UG"),A=d("YXkt"),w=d("bYtY"),m=w.concatArray,f=w.mergeAll,c=w.map,o=d("7aKB"),r=o.encodeHTML,i=d("IDmD"),n=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function s(l){var u=l.data;u&&u[0]&&u[0][0]&&u[0][0].coord&&(l.data=c(u,function(h){var p=[h[0].coord,h[1].coord],g={coords:p};return h[0].name&&(g.fromName=h[0].name),h[1].name&&(g.toName=h[1].name),f([g,h[0],h[1]])}))}var t=C.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(l){l.data=l.data||[],s(l);var u=this._processFlatCoordsArray(l.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(l.data=new Float32Array(u.count)),t.superApply(this,"init",arguments)},mergeOption:function(l){if(l.data=l.data||[],s(l),l.data){var u=this._processFlatCoordsArray(l.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(l.data=new Float32Array(u.count))}t.superApply(this,"mergeOption",arguments)},appendData:function(l){var u=this._processFlatCoordsArray(l.data);u.flatCoords&&(this._flatCoords?(this._flatCoords=m(this._flatCoords,u.flatCoords),this._flatCoordsOffset=m(this._flatCoordsOffset,u.flatCoordsOffset)):(this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset),l.data=new Float32Array(u.count)),this.getRawData().appendData(l.data)},_getCoordsFromItemModel:function(l){var u=this.getData().getItemModel(l),h=u.option instanceof Array?u.option:u.getShallow("coords");return h},getLineCoordsCount:function(l){return this._flatCoordsOffset?this._flatCoordsOffset[l*2+1]:this._getCoordsFromItemModel(l).length},getLineCoords:function(l,u){if(this._flatCoordsOffset){for(var h=this._flatCoordsOffset[l*2],p=this._flatCoordsOffset[l*2+1],g=0;g<p;g++)u[g]=u[g]||[],u[g][0]=this._flatCoords[h+g*2],u[g][1]=this._flatCoords[h+g*2+1];return p}else{for(var v=this._getCoordsFromItemModel(l),g=0;g<v.length;g++)u[g]=u[g]||[],u[g][0]=v[g][0],u[g][1]=v[g][1];return v.length}},_processFlatCoordsArray:function(l){var u=0;if(this._flatCoords&&(u=this._flatCoords.length),typeof l[0]=="number"){for(var h=l.length,p=new n(h),g=new e(h),v=0,y=0,x=0,T=0;T<h;){x++;var S=l[T++];p[y++]=v+u,p[y++]=S;for(var b=0;b<S;b++){var _=l[T++],I=l[T++];g[v++]=_,g[v++]=I,T>h}}return{flatCoordsOffset:new Uint32Array(p.buffer,0,y),flatCoords:g,count:x}}return{flatCoordsOffset:null,flatCoords:null,count:l.length}},getInitialData:function(l,u){var h=new A(["value"],this);return h.hasItemOption=!1,h.initData(l.data,[],function(p,g,v,y){if(p instanceof Array)return NaN;h.hasItemOption=!0;var x=p.value;if(x!=null)return x instanceof Array?x[y]:x}),h},formatTooltip:function(l){var u=this.getData(),h=u.getItemModel(l),p=h.get("name");if(p)return p;var g=h.get("fromName"),v=h.get("toName"),y=[];return g!=null&&y.push(g),v!=null&&y.push(v),r(y.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var l=this.option.progressive;return l==null?this.option.large?1e4:this.get("progressive"):l},getProgressiveThreshold:function(){var l=this.option.progressiveThreshold;return l==null?this.option.large?2e4:this.get("progressiveThreshold"):l},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),a=t;H.exports=a},crZl:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),A=d("7aKB"),w=d("+TT/"),m=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 s=n.get("contentColor");e.color=s}function t(h){return e[h]}function a(h,p){e[h]=p}var l=n.controllerVisuals[i||n.getValueState(c)],u=m.prepareVisualTypes(l);return E.each(u,function(h){var p=l[h];r.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=l.__alphaForOpacity),m.dependsOn(h,o)&&(p&&p.applyVisual(c,t,a))}),e[o]},positionGroup:function(c){var o=this.visualMapModel,r=this.api;w.positionElement(c,o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},doRender:E.noop});H.exports=f},crp1:function(H,B,d){"use strict";d.d(B,"b",function(){return Ht}),d.d(B,"a",function(){return Nn});var O={},E=function(at,lt,rr,Bt,_t){var Kt=O[lt]||(O[lt]=URL.createObjectURL(new Blob([at],{type:"text/javascript"}))),wt=new Worker(Kt);return wt.onerror=function(Ut){return _t(Ut.error,null)},wt.onmessage=function(Ut){return _t(null,Ut.data)},wt.postMessage(rr,Bt),wt},C=Uint8Array,A=Uint16Array,w=Uint32Array,m=new C([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),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(at,lt){for(var rr=new A(31),Bt=0;Bt<31;++Bt)rr[Bt]=lt+=1<<at[Bt-1];for(var _t=new w(rr[30]),Bt=1;Bt<30;++Bt)for(var Kt=rr[Bt];Kt<rr[Bt+1];++Kt)_t[Kt]=Kt-rr[Bt]<<5|Bt;return[rr,_t]},r=o(m,2),i=r[0],n=r[1];i[28]=258,n[258]=28;for(var e=o(f,0),s=e[0],t=e[1],a=new A(32768),l=0;l<32768;++l){var u=(l&43690)>>>1|(l&21845)<<1;u=(u&52428)>>>2|(u&13107)<<2,u=(u&61680)>>>4|(u&3855)<<4,a[l]=((u&65280)>>>8|(u&255)<<8)>>>1}for(var h=function(at,lt,rr){for(var Bt=at.length,_t=0,Kt=new A(lt);_t<Bt;++_t)++Kt[at[_t]-1];var wt=new A(lt);for(_t=0;_t<lt;++_t)wt[_t]=wt[_t-1]+Kt[_t-1]<<1;var Ut;if(rr){Ut=new A(1<<lt);var Sr=15-lt;for(_t=0;_t<Bt;++_t)if(at[_t])for(var hr=_t<<4|at[_t],gr=lt-at[_t],Jr=wt[at[_t]-1]++<<gr,$r=Jr|(1<<gr)-1;Jr<=$r;++Jr)Ut[a[Jr]>>>Sr]=hr}else for(Ut=new A(Bt),_t=0;_t<Bt;++_t)Ut[_t]=a[wt[at[_t]-1]++]>>>15-at[_t];return Ut},p=new C(288),l=0;l<144;++l)p[l]=8;for(var l=144;l<256;++l)p[l]=9;for(var l=256;l<280;++l)p[l]=7;for(var l=280;l<288;++l)p[l]=8;for(var g=new C(32),l=0;l<32;++l)g[l]=5;var v=h(p,9,0),y=h(p,9,1),x=h(g,5,0),T=h(g,5,1),S=function(at){for(var lt=at[0],rr=1;rr<at.length;++rr)at[rr]>lt&&(lt=at[rr]);return lt},b=function(at,lt,rr){var Bt=lt/8>>0;return(at[Bt]|at[Bt+1]<<8)>>>(lt&7)&rr},_=function(at,lt){var rr=lt/8>>0;return(at[rr]|at[rr+1]<<8|at[rr+2]<<16)>>>(lt&7)},I=function(at){return(at/8>>0)+(at&7&&1)},L=function(at,lt,rr){(lt==null||lt<0)&&(lt=0),(rr==null||rr>at.length)&&(rr=at.length);var Bt=new(at instanceof A?A:at instanceof w?w:C)(rr-lt);return Bt.set(at.subarray(lt,rr)),Bt},N=function(at,lt,rr){var Bt=at.length,_t=!lt||rr,Kt=!rr||rr.i;rr||(rr={}),lt||(lt=new C(Bt*3));var wt=function(Sn){var Pt=lt.length;if(Sn>Pt){var gt=new C(Math.max(Pt*2,Sn));gt.set(lt),lt=gt}},Ut=rr.f||0,Sr=rr.p||0,hr=rr.b||0,gr=rr.l,Jr=rr.d,$r=rr.m,Pn=rr.n,Dn=Bt*8;do{if(!gr){rr.f=Ut=b(at,Sr,1);var Zn=b(at,Sr+1,3);if(Sr+=3,Zn)if(Zn==1)gr=y,Jr=T,$r=9,Pn=5;else if(Zn==2){var $e=b(at,Sr,31)+257,Se=b(at,Sr+10,15)+4,Re=$e+b(at,Sr+5,31)+1;Sr+=14;for(var je=new C(Re),Ye=new C(19),Ve=0;Ve<Se;++Ve)Ye[c[Ve]]=b(at,Sr+Ve*3,7);Sr+=Se*3;var qe=S(Ye),xt=(1<<qe)-1;if(!Kt&&Sr+Re*(qe+7)>Dn)break;for(var ct=h(Ye,qe,1),Ve=0;Ve<Re;){var Jt=ct[b(at,Sr,xt)];Sr+=Jt&15;var li=Jt>>>4;if(li<16)je[Ve++]=li;else{var Rr=0,Ir=0;for(li==16?(Ir=3+b(at,Sr,3),Sr+=2,Rr=je[Ve-1]):li==17?(Ir=3+b(at,Sr,7),Sr+=3):li==18&&(Ir=11+b(at,Sr,127),Sr+=7);Ir--;)je[Ve++]=Rr}}var Xr=je.subarray(0,$e),qt=je.subarray($e);$r=S(Xr),Pn=S(qt),gr=h(Xr,$r,1),Jr=h(qt,Pn,1)}else throw"invalid block type";else{var li=I(Sr)+4,Ai=at[li-4]|at[li-3]<<8,Ii=li+Ai;if(Ii>Bt){if(Kt)throw"unexpected EOF";break}_t&&wt(hr+Ai),lt.set(at.subarray(li,Ii),hr),rr.b=hr+=Ai,rr.p=Sr=Ii*8;continue}if(Sr>Dn)throw"unexpected EOF"}_t&&wt(hr+131072);for(var pn=(1<<$r)-1,fr=(1<<Pn)-1,mn=$r+Pn+18;Kt||Sr+mn<Dn;){var Rr=gr[_(at,Sr)&pn],en=Rr>>>4;if(Sr+=Rr&15,Sr>Dn)throw"unexpected EOF";if(!Rr)throw"invalid length/literal";if(en<256)lt[hr++]=en;else if(en==256){gr=null;break}else{var kr=en-254;if(en>264){var Ve=en-257,Gn=m[Ve];kr=b(at,Sr,(1<<Gn)-1)+i[Ve],Sr+=Gn}var di=Jr[_(at,Sr)&fr],_i=di>>>4;if(!di)throw"invalid distance";Sr+=di&15;var qt=s[_i];if(_i>3){var Gn=f[_i];qt+=_(at,Sr)&(1<<Gn)-1,Sr+=Gn}if(Sr>Dn)throw"unexpected EOF";_t&&wt(hr+131072);for(var Br=hr+kr;hr<Br;hr+=4)lt[hr]=lt[hr-qt],lt[hr+1]=lt[hr+1-qt],lt[hr+2]=lt[hr+2-qt],lt[hr+3]=lt[hr+3-qt];hr=Br}}rr.l=gr,rr.p=Sr,rr.b=hr,gr&&(Ut=1,rr.m=$r,rr.d=Jr,rr.n=Pn)}while(!Ut);return hr==lt.length?lt:L(lt,0,hr)},D=function(at,lt,rr){rr<<=lt&7;var Bt=lt/8>>0;at[Bt]|=rr,at[Bt+1]|=rr>>>8},R=function(at,lt,rr){rr<<=lt&7;var Bt=lt/8>>0;at[Bt]|=rr,at[Bt+1]|=rr>>>8,at[Bt+2]|=rr>>>16},P=function(at,lt){for(var rr=[],Bt=0;Bt<at.length;++Bt)at[Bt]&&rr.push({s:Bt,f:at[Bt]});var _t=rr.length,Kt=rr.slice();if(!_t)return[new C(0),0];if(_t==1){var wt=new C(rr[0].s+1);return wt[rr[0].s]=1,[wt,1]}rr.sort(function(Re,je){return Re.f-je.f}),rr.push({s:-1,f:25001});var Ut=rr[0],Sr=rr[1],hr=0,gr=1,Jr=2;for(rr[0]={s:-1,f:Ut.f+Sr.f,l:Ut,r:Sr};gr!=_t-1;)Ut=rr[rr[hr].f<rr[Jr].f?hr++:Jr++],Sr=rr[hr!=gr&&rr[hr].f<rr[Jr].f?hr++:Jr++],rr[gr++]={s:-1,f:Ut.f+Sr.f,l:Ut,r:Sr};for(var $r=Kt[0].s,Bt=1;Bt<_t;++Bt)Kt[Bt].s>$r&&($r=Kt[Bt].s);var Pn=new A($r+1),Dn=M(rr[gr-1],Pn,0);if(Dn>lt){var Bt=0,Zn=0,li=Dn-lt,Ai=1<<li;for(Kt.sort(function(je,Ye){return Pn[Ye.s]-Pn[je.s]||je.f-Ye.f});Bt<_t;++Bt){var Ii=Kt[Bt].s;if(Pn[Ii]>lt)Zn+=Ai-(1<<Dn-Pn[Ii]),Pn[Ii]=lt;else break}for(Zn>>>=li;Zn>0;){var $e=Kt[Bt].s;Pn[$e]<lt?Zn-=1<<lt-Pn[$e]++-1:++Bt}for(;Bt>=0&&Zn;--Bt){var Se=Kt[Bt].s;Pn[Se]==lt&&(--Pn[Se],++Zn)}Dn=lt}return[new C(Pn),Dn]},M=function Mt(at,lt,rr){return at.s==-1?Math.max(Mt(at.l,lt,rr+1),Mt(at.r,lt,rr+1)):lt[at.s]=rr},U=function(at){for(var lt=at.length;lt&&!at[--lt];);for(var rr=new A(++lt),Bt=0,_t=at[0],Kt=1,wt=function(hr){rr[Bt++]=hr},Ut=1;Ut<=lt;++Ut)if(at[Ut]==_t&&Ut!=lt)++Kt;else{if(!_t&&Kt>2){for(;Kt>138;Kt-=138)wt(32754);Kt>2&&(wt(Kt>10?Kt-11<<5|28690:Kt-3<<5|12305),Kt=0)}else if(Kt>3){for(wt(_t),--Kt;Kt>6;Kt-=6)wt(8304);Kt>2&&(wt(Kt-3<<5|8208),Kt=0)}for(;Kt--;)wt(_t);Kt=1,_t=at[Ut]}return[rr.subarray(0,Bt),lt]},F=function(at,lt){for(var rr=0,Bt=0;Bt<lt.length;++Bt)rr+=at[Bt]*lt[Bt];return rr},j=function(at,lt,rr){var Bt=rr.length,_t=I(lt+2);at[_t]=Bt&255,at[_t+1]=Bt>>>8,at[_t+2]=at[_t]^255,at[_t+3]=at[_t+1]^255;for(var Kt=0;Kt<Bt;++Kt)at[_t+Kt+4]=rr[Kt];return(_t+4+Bt)*8},W=function(at,lt,rr,Bt,_t,Kt,wt,Ut,Sr,hr,gr){D(lt,gr++,rr),++_t[256];for(var Jr=P(_t,15),$r=Jr[0],Pn=Jr[1],Dn=P(Kt,15),Zn=Dn[0],li=Dn[1],Ai=U($r),Ii=Ai[0],$e=Ai[1],Se=U(Zn),Re=Se[0],je=Se[1],Ye=new A(19),Ve=0;Ve<Ii.length;++Ve)Ye[Ii[Ve]&31]++;for(var Ve=0;Ve<Re.length;++Ve)Ye[Re[Ve]&31]++;for(var qe=P(Ye,7),xt=qe[0],ct=qe[1],Jt=19;Jt>4&&!xt[c[Jt-1]];--Jt);var Rr=hr+5<<3,Ir=F(_t,p)+F(Kt,g)+wt,Xr=F(_t,$r)+F(Kt,Zn)+wt+14+3*Jt+F(Ye,xt)+(2*Ye[16]+3*Ye[17]+7*Ye[18]);if(Rr<=Ir&&Rr<=Xr)return j(lt,gr,at.subarray(Sr,Sr+hr));var qt,pn,fr,mn;if(D(lt,gr,1+(Xr<Ir)),gr+=2,Xr<Ir){qt=h($r,Pn,0),pn=$r,fr=h(Zn,li,0),mn=Zn;var en=h(xt,ct,0);D(lt,gr,$e-257),D(lt,gr+5,je-1),D(lt,gr+10,Jt-4),gr+=14;for(var Ve=0;Ve<Jt;++Ve)D(lt,gr+3*Ve,xt[c[Ve]]);gr+=3*Jt;for(var kr=[Ii,Re],Gn=0;Gn<2;++Gn)for(var di=kr[Gn],Ve=0;Ve<di.length;++Ve){var _i=di[Ve]&31;D(lt,gr,en[_i]),gr+=xt[_i],_i>15&&(D(lt,gr,di[Ve]>>>5&127),gr+=di[Ve]>>>12)}}else qt=v,pn=p,fr=x,mn=g;for(var Ve=0;Ve<Ut;++Ve)if(Bt[Ve]>255){var _i=Bt[Ve]>>>18&31;R(lt,gr,qt[_i+257]),gr+=pn[_i+257],_i>7&&(D(lt,gr,Bt[Ve]>>>23&31),gr+=m[_i]);var Br=Bt[Ve]&31;R(lt,gr,fr[Br]),gr+=mn[Br],Br>3&&(R(lt,gr,Bt[Ve]>>>5&8191),gr+=f[Br])}else R(lt,gr,qt[Bt[Ve]]),gr+=pn[Bt[Ve]];return R(lt,gr,qt[256]),gr+pn[256]},V=new w([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new C(0),Y=function(at,lt,rr,Bt,_t,Kt){var wt=at.length,Ut=new C(Bt+wt+5*(1+Math.floor(wt/7e3))+_t),Sr=Ut.subarray(Bt,Ut.length-_t),hr=0;if(!lt||wt<8)for(var gr=0;gr<=wt;gr+=65535){var Jr=gr+65535;Jr<wt?hr=j(Sr,hr,at.subarray(gr,Jr)):(Sr[gr]=Kt,hr=j(Sr,hr,at.subarray(gr,wt)))}else{for(var $r=V[lt-1],Pn=$r>>>13,Dn=$r&8191,Zn=(1<<rr)-1,li=new A(32768),Ai=new A(Zn+1),Ii=Math.ceil(rr/3),$e=2*Ii,Se=function(tr){return(at[tr]^at[tr+1]<<Ii^at[tr+2]<<$e)&Zn},Re=new w(25e3),je=new A(288),Ye=new A(32),Ve=0,qe=0,gr=0,xt=0,ct=0,Jt=0;gr<wt;++gr){var Rr=Se(gr),Ir=gr&32767,Xr=Ai[Rr];if(li[Ir]=Xr,Ai[Rr]=Ir,ct<=gr){var qt=wt-gr;if((Ve>7e3||xt>24576)&&qt>423){hr=W(at,Sr,0,Re,je,Ye,qe,xt,Jt,gr-Jt,hr),xt=Ve=qe=0,Jt=gr;for(var pn=0;pn<286;++pn)je[pn]=0;for(var pn=0;pn<30;++pn)Ye[pn]=0}var fr=2,mn=0,en=Dn,kr=Ir-Xr&32767;if(qt>2&&Rr==Se(gr-kr))for(var Gn=Math.min(Pn,qt)-1,di=Math.min(32767,gr),_i=Math.min(258,qt);kr<=di&&--en&&Ir!=Xr;){if(at[gr+fr]==at[gr+fr-kr]){for(var Br=0;Br<_i&&at[gr+Br]==at[gr+Br-kr];++Br);if(Br>fr){if(fr=Br,mn=kr,Br>Gn)break;for(var sn=Math.min(kr,Br-2),Sn=0,pn=0;pn<sn;++pn){var Pt=gr-kr+pn+32768&32767,gt=li[Pt],Et=Pt-gt+32768&32767;Et>Sn&&(Sn=Et,Xr=Pt)}}}Ir=Xr,Xr=li[Ir],kr+=Ir-Xr+32768&32767}if(mn){Re[xt++]=268435456|n[fr]<<18|t[mn];var Lt=n[fr]&31,kt=t[mn]&31;qe+=m[Lt]+f[kt],++je[257+Lt],++Ye[kt],ct=gr+fr,++Ve}else Re[xt++]=at[gr],++je[at[gr]]}}hr=W(at,Sr,Kt,Re,je,Ye,qe,xt,Jt,gr-Jt,hr),Kt||(hr=j(Sr,hr,z))}return L(Ut,0,Bt+I(hr)+_t)},$=function(){for(var Mt=new w(256),at=0;at<256;++at){for(var lt=at,rr=9;--rr;)lt=(lt&1&&3988292384)^lt>>>1;Mt[at]=lt}return Mt}(),ue=function(){var at=4294967295;return{p:function(rr){for(var Bt=at,_t=0;_t<rr.length;++_t)Bt=$[Bt&255^rr[_t]]^Bt>>>8;at=Bt},d:function(){return at^4294967295}}},ne=function(){var at=1,lt=0;return{p:function(Bt){for(var _t=at,Kt=lt,wt=Bt.length,Ut=0;Ut!=wt;){for(var Sr=Math.min(Ut+5552,wt);Ut<Sr;++Ut)_t+=Bt[Ut],Kt+=_t;_t%=65521,Kt%=65521}at=_t,lt=Kt},d:function(){return(at>>>8<<16|(lt&255)<<8|lt>>>8)+((at&255)<<23)*2}}},ge=function(at,lt,rr,Bt,_t){return Y(at,lt.level==null?6:lt.level,lt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(at.length)))*1.5):12+lt.mem,rr,Bt,!_t)},Oe=function(at,lt){var rr={};for(var Bt in at)rr[Bt]=at[Bt];for(var Bt in lt)rr[Bt]=lt[Bt];return rr},De=function(at,lt,rr){for(var Bt=at(),_t=at.toString(),Kt=_t.slice(_t.indexOf("[")+1,_t.lastIndexOf("]")).replace(/ /g,"").split(","),wt=0;wt<Bt.length;++wt){var Ut=Bt[wt],Sr=Kt[wt];if(typeof Ut=="function"){lt+=";"+Sr+"=";var hr=Ut.toString();if(Ut.prototype)if(hr.indexOf("[native code]")!=-1){var gr=hr.indexOf(" ",8)+1;lt+=hr.slice(gr,hr.indexOf("(",gr))}else{lt+=hr;for(var Jr in Ut.prototype)lt+=";"+Sr+".prototype."+Jr+"="+Ut.prototype[Jr].toString()}else lt+=hr}else rr[Sr]=Ut}return[lt,rr]},He=[],pe=function(at){var lt=[];for(var rr in at)(at[rr]instanceof C||at[rr]instanceof A||at[rr]instanceof w)&<.push((at[rr]=new at[rr].constructor(at[rr])).buffer);return lt},Ue=function(at,lt,rr,Bt){var _t;if(!He[rr]){for(var Kt="",wt={},Ut=at.length-1,Sr=0;Sr<Ut;++Sr)_t=De(at[Sr],Kt,wt),Kt=_t[0],wt=_t[1];He[rr]=De(at[Ut],Kt,wt)}var hr=Oe({},He[rr][1]);return E(He[rr][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+lt.toString()+"}",rr,hr,pe(hr),Bt)},oe=function(){return[C,A,w,m,f,c,i,s,y,T,a,h,S,b,_,I,L,N,Fe,J,ve]},ee=function(){return[C,A,w,m,f,c,n,t,v,p,x,g,a,V,z,h,D,R,P,M,U,F,j,W,I,L,Y,ge,Dt,J]},Xe=function(){return[Qe,Te,xe,ue,$]},se=function(){return[ot,Je]},Q=function(){return[et,xe,ne]},G=function(){return[ze]},J=function(at){return postMessage(at,[at.buffer])},ve=function(at){return at&&at.size&&new C(at.size)},de=function(at,lt,rr,Bt,_t,Kt){var wt=Ue(rr,Bt,_t,function(Ut,Sr){wt.terminate(),Kt(Ut,Sr)});return lt.consume||(at=new C(at)),wt.postMessage([at,lt],[at.buffer]),function(){wt.terminate()}},Ce=function(at){return at.ondata=function(lt,rr){return postMessage([lt,rr],[lt.buffer])},function(lt){return at.push(lt.data[0],lt.data[1])}},Ee=function(at,lt,rr,Bt,_t){var Kt,wt=Ue(at,Bt,_t,function(Ut,Sr){Ut?(wt.terminate(),lt.ondata.call(lt,Ut)):(Sr[1]&&wt.terminate(),lt.ondata.call(lt,Ut,Sr[0],Sr[1]))});wt.postMessage(rr),lt.push=function(Ut,Sr){if(Kt)throw"stream finished";if(!lt.ondata)throw"no stream handler";wt.postMessage([Ut,Kt=Sr],[Ut.buffer])},lt.terminate=function(){wt.terminate()}},le=function(at,lt){return at[lt]|at[lt+1]<<8},fe=function(at,lt){return(at[lt]|at[lt+1]<<8|at[lt+2]<<16)+(at[lt+3]<<23)*2},xe=function(at,lt,rr){for(;rr;++lt)at[lt]=rr,rr>>>=8},Qe=function(at,lt){var rr=lt.filename;if(at[0]=31,at[1]=139,at[2]=8,at[8]=lt.level<2?4:lt.level==9?2:0,at[9]=3,lt.mtime!=0&&xe(at,4,Math.floor(new Date(lt.mtime||Date.now())/1e3)),rr){at[3]=8;for(var Bt=0;Bt<=rr.length;++Bt)at[Bt+10]=rr.charCodeAt(Bt)}},ot=function(at){if(at[0]!=31||at[1]!=139||at[2]!=8)throw"invalid gzip data";var lt=at[3],rr=10;lt&4&&(rr+=at[10]|(at[11]<<8)+2);for(var Bt=(lt>>3&1)+(lt>>4&1);Bt>0;Bt-=!at[rr++]);return rr+(lt&2)},Je=function(at){var lt=at.length;return(at[lt-4]|at[lt-3]<<8|at[lt-2]<<16)+2*(at[lt-1]<<23)},Te=function(at){return 10+(at.filename&&at.filename.length+1||0)},et=function(at,lt){var rr=lt.level,Bt=rr==0?0:rr<6?1:rr==9?3:2;at[0]=120,at[1]=Bt<<6|(Bt?32-2*Bt:1)},ze=function(at){if((at[0]&15)!=8||at[0]>>>4>7||(at[0]<<8|at[1])%31)throw"invalid zlib data";if(at[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function nt(Mt,at){return!at&&typeof Mt=="function"&&(at=Mt,Mt={}),this.ondata=at,Mt}var Ot=function(){function Mt(at,lt){!lt&&typeof at=="function"&&(lt=at,at={}),this.ondata=lt,this.o=at||{}}return Mt.prototype.p=function(at,lt){this.ondata(ge(at,this.o,0,0,!lt),lt)},Mt.prototype.push=function(at,lt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=lt,this.p(at,lt||!1)},Mt}(),Ct=function(){function Mt(at,lt){Ee([ee,function(){return[Ce,Ot]}],this,nt.call(this,at,lt),function(rr){var Bt=new Ot(rr.data);onmessage=Ce(Bt)},6)}return Mt}();function Tt(Mt,at,lt){if(lt||(lt=at,at={}),typeof lt!="function")throw"no callback";return de(Mt,at,[ee],function(rr){return J(Dt(rr.data[0],rr.data[1]))},0,lt)}function Dt(Mt,at){return at===void 0&&(at={}),ge(Mt,at,0,0)}var Be=function(){function Mt(at){this.s={},this.p=new C(0),this.ondata=at}return Mt.prototype.e=function(at){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var lt=this.p.length,rr=new C(lt+at.length);rr.set(this.p),rr.set(at,lt),this.p=rr},Mt.prototype.c=function(at){this.d=this.s.i=at||!1;var lt=this.s.b,rr=N(this.p,this.o,this.s);this.ondata(L(rr,lt,this.s.b),this.d),this.o=L(rr,this.s.b-32768),this.s.b=this.o.length,this.p=L(this.p,this.s.p/8>>0),this.s.p&=7},Mt.prototype.push=function(at,lt){this.e(at),this.c(lt)},Mt}(),ie=function(){function Mt(at){this.ondata=at,Ee([oe,function(){return[Ce,Be]}],this,0,function(){var lt=new Be;onmessage=Ce(lt)},7)}return Mt}();function X(Mt,at,lt){if(lt||(lt=at,at={}),typeof lt!="function")throw"no callback";return de(Mt,at,[oe],function(rr){return J(Fe(rr.data[0],ve(rr.data[1])))},1,lt)}function Fe(Mt,at){return N(Mt,at)}var Ne=function(){function Mt(at,lt){this.c=ue(),this.l=0,this.v=1,Ot.call(this,at,lt)}return Mt.prototype.push=function(at,lt){Ot.prototype.push.call(this,at,lt)},Mt.prototype.p=function(at,lt){this.c.p(at),this.l+=at.length;var rr=ge(at,this.o,this.v&&Te(this.o),lt&&8,!lt);this.v&&(Qe(rr,this.o),this.v=0),lt&&(xe(rr,rr.length-8,this.c.d()),xe(rr,rr.length-4,this.l)),this.ondata(rr,lt)},Mt}(),q=function(){function Mt(at,lt){Ee([ee,Xe,function(){return[Ce,Ot,Ne]}],this,nt.call(this,at,lt),function(rr){var Bt=new Ne(rr.data);onmessage=Ce(Bt)},8)}return Mt}();function ht(Mt,at,lt){if(lt||(lt=at,at={}),typeof lt!="function")throw"no callback";return de(Mt,at,[ee,Xe,function(){return[Rt]}],function(rr){return J(Rt(rr.data[0],rr.data[1]))},2,lt)}function Rt(Mt,at){at===void 0&&(at={});var lt=ue(),rr=Mt.length;lt.p(Mt);var Bt=ge(Mt,at,Te(at),8),_t=Bt.length;return Qe(Bt,at),xe(Bt,_t-8,lt.d()),xe(Bt,_t-4,rr),Bt}var ut=function(){function Mt(at){this.v=1,Be.call(this,at)}return Mt.prototype.push=function(at,lt){if(Be.prototype.e.call(this,at),this.v){var rr=ot(this.p);if(rr>=this.p.length&&!lt)return;this.p=this.p.subarray(rr),this.v=0}if(lt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Be.prototype.c.call(this,lt)},Mt}(),Xt=function(){function Mt(at){this.ondata=at,Ee([oe,se,function(){return[Ce,Be,ut]}],this,0,function(){var lt=new ut;onmessage=Ce(lt)},9)}return Mt}();function or(Mt,at,lt){if(lt||(lt=at,at={}),typeof lt!="function")throw"no callback";return de(Mt,at,[oe,se,function(){return[Zr]}],function(rr){return J(Zr(rr.data[0]))},3,lt)}function Zr(Mt,at){return N(Mt.subarray(ot(Mt),-8),at||new C(Je(Mt)))}var ar=function(){function Mt(at,lt){this.c=ne(),this.v=1,Ot.call(this,at,lt)}return Mt.prototype.push=function(at,lt){Ot.prototype.push.call(this,at,lt)},Mt.prototype.p=function(at,lt){this.c.p(at);var rr=ge(at,this.o,this.v&&2,lt&&4,!lt);this.v&&(et(rr,this.o),this.v=0),lt&&xe(rr,rr.length-4,this.c.d()),this.ondata(rr,lt)},Mt}(),dr=function(){function Mt(at,lt){Ee([ee,Q,function(){return[Ce,Ot,ar]}],this,nt.call(this,at,lt),function(rr){var Bt=new ar(rr.data);onmessage=Ce(Bt)},10)}return Mt}();function er(Mt,at,lt){if(lt||(lt=at,at={}),typeof lt!="function")throw"no callback";return de(Mt,at,[ee,Q,function(){return[Ht]}],function(rr){return J(Ht(rr.data[0],rr.data[1]))},4,lt)}function Ht(Mt,at){at===void 0&&(at={});var lt=ne();lt.p(Mt);var rr=ge(Mt,at,2,4);return et(rr,at),xe(rr,rr.length-4,lt.d()),rr}var dt=function(){function Mt(at){this.v=1,Be.call(this,at)}return Mt.prototype.push=function(at,lt){if(Be.prototype.e.call(this,at),this.v){if(this.p.length<2&&!lt)return;this.p=this.p.subarray(2),this.v=0}if(lt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Be.prototype.c.call(this,lt)},Mt}(),Hr=function(){function Mt(at){this.ondata=at,Ee([oe,G,function(){return[Ce,Be,dt]}],this,0,function(){var lt=new dt;onmessage=Ce(lt)},11)}return Mt}();function dn(Mt,at,lt){if(lt||(lt=at,at={}),typeof lt!="function")throw"no callback";return de(Mt,at,[oe,G,function(){return[Nn]}],function(rr){return J(Nn(rr.data[0],ve(rr.data[1])))},5,lt)}function Nn(Mt,at){return N((ze(Mt),Mt.subarray(2,-4)),at)}var Vn=function(){function Mt(at){this.G=ut,this.I=Be,this.Z=dt,this.ondata=at}return Mt.prototype.push=function(at,lt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(at,lt);else{if(this.p&&this.p.length){var rr=new C(this.p.length+at.length);rr.set(this.p),rr.set(at,this.p.length)}else this.p=at;if(this.p.length>2){var Bt=this,_t=function(){Bt.ondata.apply(Bt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(_t):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(_t):new this.Z(_t),this.s.push(this.p,lt),this.p=null}}},Mt}(),gi=function(){function Mt(at){this.G=Xt,this.I=ie,this.Z=Hr,this.ondata=at}return Mt.prototype.push=function(at,lt){Vn.prototype.push.call(this,at,lt)},Mt}();function bn(Mt,at,lt){if(lt||(lt=at,at={}),typeof lt!="function")throw"no callback";return Mt[0]==31&&Mt[1]==139&&Mt[2]==8?or(Mt,at,lt):(Mt[0]&15)!=8||Mt[0]>>4>7||(Mt[0]<<8|Mt[1])%31?X(Mt,at,lt):dn(Mt,at,lt)}function Mn(Mt,at){return Mt[0]==31&&Mt[1]==139&&Mt[2]==8?Zr(Mt,at):(Mt[0]&15)!=8||Mt[0]>>4>7||(Mt[0]<<8|Mt[1])%31?Fe(Mt,at):Nn(Mt,at)}var jt=function Mt(at,lt,rr,Bt){for(var _t in at){var Kt=at[_t],wt=lt+_t;Kt instanceof C?rr[wt]=[Kt,Bt]:Array.isArray(Kt)?rr[wt]=[Kt[0],Oe(Bt,Kt[1])]:Mt(Kt,wt+"/",rr,Bt)}};function St(Mt,at){var lt=Mt.length;if(!at&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Mt);for(var rr=new C(Mt.length+(Mt.length>>>1)),Bt=0,_t=function(hr){rr[Bt++]=hr},Kt=0;Kt<lt;++Kt){if(Bt+5>rr.length){var wt=new C(Bt+8+(lt-Kt<<1));wt.set(rr),rr=wt}var Ut=Mt.charCodeAt(Kt);Ut<128||at?_t(Ut):Ut<2048?(_t(192|Ut>>>6),_t(128|Ut&63)):Ut>55295&&Ut<57344?(Ut=65536+(Ut&1023<<10)|Mt.charCodeAt(++Kt)&1023,_t(240|Ut>>>18),_t(128|Ut>>>12&63),_t(128|Ut>>>6&63),_t(128|Ut&63)):(_t(224|Ut>>>12),_t(128|Ut>>>6&63),_t(128|Ut&63))}return L(rr,0,Bt)}function Ie(Mt,at){var lt="";if(!at&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Mt);for(var rr=0;rr<Mt.length;){var Bt=Mt[rr++];Bt<128||at?lt+=String.fromCharCode(Bt):Bt<224?lt+=String.fromCharCode((Bt&31)<<6|Mt[rr++]&63):Bt<240?lt+=String.fromCharCode((Bt&15)<<12|(Mt[rr++]&63)<<6|Mt[rr++]&63):(Bt=((Bt&15)<<18|(Mt[rr++]&63)<<12|(Mt[rr++]&63)<<6|Mt[rr++]&63)-65536,lt+=String.fromCharCode(55296|Bt>>10,56320|Bt&1023))}return lt}var _e=function(at,lt){return lt+30+le(at,lt+26)+le(at,lt+28)},Le=function(at,lt,rr){var Bt=le(at,lt+28),_t=Ie(at.subarray(lt+46,lt+46+Bt),!(le(at,lt+8)&2048)),Kt=lt+46+Bt,wt=rr?Ze(at,Kt):[fe(at,lt+20),fe(at,lt+24),fe(at,lt+42)],Ut=wt[0],Sr=wt[1],hr=wt[2];return[le(at,lt+10),Ut,Sr,_t,Kt+le(at,lt+30)+le(at,lt+32),hr]},Ze=function(at,lt){for(;le(at,lt)!=1;lt+=4+le(at,lt+2));return[fe(at,lt+12),fe(at,lt+4),fe(at,lt+20)]},it=function(at,lt,rr,Bt,_t,Kt,wt,Ut,Sr,hr){var gr=Kt.length,Jr=Bt.length;xe(at,lt,Sr!=null?33639248:67324752),lt+=4,Sr!=null&&(at[lt]=20,lt+=2),at[lt]=20,lt+=2,at[lt++]=hr==8&&(Ut.level==1?6:Ut.level<6?4:Ut.level==9?2:0),at[lt++]=wt&&8,at[lt]=hr,lt+=2;var $r=new Date(Ut.mtime||Date.now()),Pn=$r.getFullYear()-1980;if(Pn<0||Pn>119)throw"date not in range 1980-2099";xe(at,lt,(Pn<<24)*2|$r.getMonth()+1<<21|$r.getDate()<<16|$r.getHours()<<11|$r.getMinutes()<<5|$r.getSeconds()>>>1),lt+=4,xe(at,lt,rr),xe(at,lt+4,Jr),xe(at,lt+8,_t),xe(at,lt+12,gr),lt+=16,Sr!=null&&(xe(at,lt+=10,Sr),lt+=4),at.set(Kt,lt),lt+=gr,Sr==null&&at.set(Bt,lt)},ft=function(at,lt,rr,Bt,_t){xe(at,lt,101010256),xe(at,lt+8,rr),xe(at,lt+10,rr),xe(at,lt+12,Bt),xe(at,lt+16,_t)};function Nt(Mt,at,lt){if(lt||(lt=at,at={}),typeof lt!="function")throw"no callback";var rr={};jt(Mt,"",rr,at);var Bt=Object.keys(rr),_t=Bt.length,Kt=0,wt=0,Ut=_t,Sr=new Array(_t),hr=[],gr=function(){for(var Zn=0;Zn<hr.length;++Zn)hr[Zn]()},Jr=function(){var Zn=new C(wt+22),li=Kt,Ai=wt-Kt;wt=0;for(var Ii=0;Ii<Ut;++Ii){var $e=Sr[Ii];try{it(Zn,wt,$e.c,$e.d,$e.m,$e.n,$e.u,$e.p,null,$e.t),it(Zn,Kt,$e.c,$e.d,$e.m,$e.n,$e.u,$e.p,wt,$e.t),Kt+=46+$e.n.length,wt+=30+$e.n.length+$e.d.length}catch(Se){return lt(Se,null)}}ft(Zn,Kt,Sr.length,Ai,li),lt(null,Zn)};_t||Jr();for(var $r=function(Zn){var li=Bt[Zn],Ai=rr[li],Ii=Ai[0],$e=Ai[1],Se=ue(),Re=Ii.length;Se.p(Ii);var je=St(li),Ye=je.length,Ve=$e.level==0?0:8,qe=function(ct,Jt){if(ct)gr(),lt(ct,null);else{var Rr=Jt.length;Sr[Zn]={t:Ve,d:Jt,m:Re,c:Se.d(),u:li.length!=Rr,n:je,p:$e},Kt+=30+Ye+Rr,wt+=76+2*Ye+Rr,--_t||Jr()}};if(je.length>65535&&qe("filename too long",null),!Ve)qe(null,Ii);else if(Re<16e4)try{qe(null,Dt(Ii,$e))}catch(xt){qe(xt,null)}else hr.push(Tt(Ii,$e,qe))},Pn=0;Pn<Ut;++Pn)$r(Pn);return gr}function Ar(Mt,at){at===void 0&&(at={});var lt={},rr=[];jt(Mt,"",lt,at);var Bt=0,_t=0;for(var Kt in lt){var wt=lt[Kt],Ut=wt[0],Sr=wt[1],hr=Sr.level==0?0:8,gr=St(Kt),Jr=gr.length;if(gr.length>65535)throw"filename too long";var $r=hr?Dt(Ut,Sr):Ut,Pn=$r.length,Dn=ue();Dn.p(Ut),rr.push({t:hr,d:$r,m:Ut.length,c:Dn.d(),u:Kt.length!=Jr,n:gr,o:Bt,p:Sr}),Bt+=30+Jr+Pn,_t+=76+2*Jr+Pn}for(var Zn=new C(_t+22),li=Bt,Ai=_t-Bt,Ii=0;Ii<rr.length;++Ii){var $e=rr[Ii];it(Zn,$e.o,$e.c,$e.d,$e.m,$e.n,$e.u,$e.p,null,$e.t),it(Zn,Bt,$e.c,$e.d,$e.m,$e.n,$e.u,$e.p,$e.o,$e.t),Bt+=46+$e.n.length}return ft(Zn,Bt,rr.length,Ai,li),Zn}function Mr(Mt,at){if(typeof at!="function")throw"no callback";for(var lt=[],rr=function(){for(var $r=0;$r<lt.length;++$r)lt[$r]()},Bt={},_t=Mt.length-22;fe(Mt,_t)!=101010256;--_t)if(!_t||Mt.length-_t>65558){at("invalid zip file",null);return}var Kt=le(Mt,_t+8);Kt||at(null,{});var wt=Kt,Ut=fe(Mt,_t+16),Sr=Ut==4294967295;if(Sr){if(_t=fe(Mt,_t-12),fe(Mt,_t)!=101075792)throw"invalid zip file";wt=Kt=fe(Mt,_t+32),Ut=fe(Mt,_t+48)}for(var hr=function($r){var Pn=Le(Mt,Ut,Sr),Dn=Pn[0],Zn=Pn[1],li=Pn[2],Ai=Pn[3],Ii=Pn[4],$e=Pn[5],Se=_e(Mt,$e);Ut=Ii;var Re=function(Ve,qe){Ve?(rr(),at(Ve,null)):(Bt[Ai]=qe,--Kt||at(null,Bt))};if(!Dn)Re(null,L(Mt,Se,Se+Zn));else if(Dn==8){var je=Mt.subarray(Se,Se+Zn);if(Zn<32e4)try{Re(null,Fe(je,new C(li)))}catch(Ye){Re(Ye,null)}else lt.push(X(je,{size:li},Re))}else Re("unknown compression type "+Dn,null)},gr=0;gr<wt;++gr)hr(gr);return rr}function un(Mt){for(var at={},lt=Mt.length-22;fe(Mt,lt)!=101010256;--lt)if(!lt||Mt.length-lt>65558)throw"invalid zip file";var rr=le(Mt,lt+8);if(!rr)return{};var Bt=fe(Mt,lt+16),_t=Bt==4294967295;if(_t){if(lt=fe(Mt,lt-12),fe(Mt,lt)!=101075792)throw"invalid zip file";rr=fe(Mt,lt+32),Bt=fe(Mt,lt+48)}for(var Kt=0;Kt<rr;++Kt){var wt=Le(Mt,Bt,_t),Ut=wt[0],Sr=wt[1],hr=wt[2],gr=wt[3],Jr=wt[4],$r=wt[5],Pn=_e(Mt,$r);if(Bt=Jr,!Ut)at[gr]=L(Mt,Pn,Pn+Sr);else if(Ut==8)at[gr]=Fe(Mt.subarray(Pn,Pn+Sr),new C(hr));else throw"unknown compression type "+Ut}return at}},cv67:function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){return function(E){var C=O,A=C.lib,w=A.WordArray,m=A.Hasher,f=C.algo,c=[];(function(){for(var s=0;s<64;s++)c[s]=E.abs(E.sin(s+1))*4294967296|0})();var o=f.MD5=m.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,a){for(var l=0;l<16;l++){var u=a+l,h=t[u];t[u]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var p=this._hash.words,g=t[a+0],v=t[a+1],y=t[a+2],x=t[a+3],T=t[a+4],S=t[a+5],b=t[a+6],_=t[a+7],I=t[a+8],L=t[a+9],N=t[a+10],D=t[a+11],R=t[a+12],P=t[a+13],M=t[a+14],U=t[a+15],F=p[0],j=p[1],W=p[2],V=p[3];F=r(F,j,W,V,g,7,c[0]),V=r(V,F,j,W,v,12,c[1]),W=r(W,V,F,j,y,17,c[2]),j=r(j,W,V,F,x,22,c[3]),F=r(F,j,W,V,T,7,c[4]),V=r(V,F,j,W,S,12,c[5]),W=r(W,V,F,j,b,17,c[6]),j=r(j,W,V,F,_,22,c[7]),F=r(F,j,W,V,I,7,c[8]),V=r(V,F,j,W,L,12,c[9]),W=r(W,V,F,j,N,17,c[10]),j=r(j,W,V,F,D,22,c[11]),F=r(F,j,W,V,R,7,c[12]),V=r(V,F,j,W,P,12,c[13]),W=r(W,V,F,j,M,17,c[14]),j=r(j,W,V,F,U,22,c[15]),F=i(F,j,W,V,v,5,c[16]),V=i(V,F,j,W,b,9,c[17]),W=i(W,V,F,j,D,14,c[18]),j=i(j,W,V,F,g,20,c[19]),F=i(F,j,W,V,S,5,c[20]),V=i(V,F,j,W,N,9,c[21]),W=i(W,V,F,j,U,14,c[22]),j=i(j,W,V,F,T,20,c[23]),F=i(F,j,W,V,L,5,c[24]),V=i(V,F,j,W,M,9,c[25]),W=i(W,V,F,j,x,14,c[26]),j=i(j,W,V,F,I,20,c[27]),F=i(F,j,W,V,P,5,c[28]),V=i(V,F,j,W,y,9,c[29]),W=i(W,V,F,j,_,14,c[30]),j=i(j,W,V,F,R,20,c[31]),F=n(F,j,W,V,S,4,c[32]),V=n(V,F,j,W,I,11,c[33]),W=n(W,V,F,j,D,16,c[34]),j=n(j,W,V,F,M,23,c[35]),F=n(F,j,W,V,v,4,c[36]),V=n(V,F,j,W,T,11,c[37]),W=n(W,V,F,j,_,16,c[38]),j=n(j,W,V,F,N,23,c[39]),F=n(F,j,W,V,P,4,c[40]),V=n(V,F,j,W,g,11,c[41]),W=n(W,V,F,j,x,16,c[42]),j=n(j,W,V,F,b,23,c[43]),F=n(F,j,W,V,L,4,c[44]),V=n(V,F,j,W,R,11,c[45]),W=n(W,V,F,j,U,16,c[46]),j=n(j,W,V,F,y,23,c[47]),F=e(F,j,W,V,g,6,c[48]),V=e(V,F,j,W,_,10,c[49]),W=e(W,V,F,j,M,15,c[50]),j=e(j,W,V,F,S,21,c[51]),F=e(F,j,W,V,R,6,c[52]),V=e(V,F,j,W,x,10,c[53]),W=e(W,V,F,j,N,15,c[54]),j=e(j,W,V,F,v,21,c[55]),F=e(F,j,W,V,I,6,c[56]),V=e(V,F,j,W,U,10,c[57]),W=e(W,V,F,j,b,15,c[58]),j=e(j,W,V,F,P,21,c[59]),F=e(F,j,W,V,T,6,c[60]),V=e(V,F,j,W,D,10,c[61]),W=e(W,V,F,j,y,15,c[62]),j=e(j,W,V,F,L,21,c[63]),p[0]=p[0]+F|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,l=this._nDataBytes*8,u=t.sigBytes*8;a[u>>>5]|=128<<24-u%32;var h=E.floor(l/4294967296),p=l;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 g=this._hash,v=g.words,y=0;y<4;y++){var x=v[y];v[y]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return g},clone:function(){var t=m.clone.call(this);return t._hash=this._hash.clone(),t}});function r(s,t,a,l,u,h,p){var g=s+(t&a|~t&l)+u+p;return(g<<h|g>>>32-h)+t}function i(s,t,a,l,u,h,p){var g=s+(t&l|a&~l)+u+p;return(g<<h|g>>>32-h)+t}function n(s,t,a,l,u,h,p){var g=s+(t^a^l)+u+p;return(g<<h|g>>>32-h)+t}function e(s,t,a,l,u,h,p){var g=s+(a^(t|~l))+u+p;return(g<<h|g>>>32-h)+t}C.MD5=m._createHelper(o),C.HmacMD5=m._createHmacHelper(o)}(Math),O.MD5})},czTT:function(H,B,d){},d4KN:function(H,B,d){var O=d("ProS"),E=d("bYtY");function C(A,w){E.each(w,function(m){m.update="updateView",O.registerAction(m,function(f,c){var o={};return c.eachComponent({mainType:"series",subType:A,query:f},function(r){r[m.method]&&r[m.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,B,d){var O=d("ProS"),E=d("szbU");d("vF/C"),d("qwVE"),d("MHoB"),d("PNag"),d("1u/T"),O.registerPreprocessor(E)},"dF/Y":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="DownloadOutlined";var f=B.a=E.forwardRef(m)},dMvE:function(H,B){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,w=.1,m=.4;return C===0?0:C===1?1:(!w||w<1?(w=1,A=m/4):A=m*Math.asin(1/w)/(2*Math.PI),-(w*Math.pow(2,10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/m)))},elasticOut:function(C){var A,w=.1,m=.4;return C===0?0:C===1?1:(!w||w<1?(w=1,A=m/4):A=m*Math.asin(1/w)/(2*Math.PI),w*Math.pow(2,-10*C)*Math.sin((C-A)*(2*Math.PI)/m)+1)},elasticInOut:function(C){var A,w=.1,m=.4;return C===0?0:C===1?1:(!w||w<1?(w=1,A=m/4):A=m*Math.asin(1/w)/(2*Math.PI),(C*=2)<1?-.5*(w*Math.pow(2,10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/m)):w*Math.pow(2,-10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/m)*.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,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("q1tI"),A=d.n(C),w=d("3S7+"),m=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 s=0,e=Object.getOwnPropertySymbols(r);s<e.length;s++)i.indexOf(e[s])<0&&Object.prototype.propertyIsEnumerable.call(r,e[s])&&(n[e[s]]=r[e[s]]);return n},o=C.forwardRef(function(r,i){var n=r.prefixCls,e=r.title,s=r.content,t=c(r,["prefixCls","title","content"]),a=C.useContext(m.b),l=a.getPrefixCls,u=function(g){return C.createElement(C.Fragment,null,e&&C.createElement("div",{className:"".concat(g,"-title")},Object(f.a)(e)),C.createElement("div",{className:"".concat(g,"-inner-content")},Object(f.a)(s)))},h=l("popover",n);return C.createElement(w.a,E()({},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:{}},B.a=o},digP:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},dm2S:function(H,B,d){"use strict";d.d(B,"a",function(){return A});var O=d("ODXe"),E=d("q1tI"),C=d.n(E);function A(w){var m=E.useRef(!1),f=E.useState(w),c=Object(O.a)(f,2),o=c[0],r=c[1];E.useEffect(function(){return m.current=!1,function(){m.current=!0}},[]);function i(n,e){if(e&&m.current)return;r(n)}return[o,i]}},dmGj:function(H,B,d){var O=d("DEFe"),E=d("ProS"),C=E.extendComponentView({type:"geo",init:function(A,w){var m=new O(w,!0);this._mapDraw=m,this.group.add(m.group)},render:function(A,w,m,f){if(f&&f.type==="geoToggleSelect"&&f.from===this.uid)return;var c=this._mapDraw;A.get("show")?c.draw(A,w,m,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,B,d){var O=d("ProS"),E=d("bYtY"),C=d("YH21"),A=d("Kagy"),w=d("IUWy"),m=A.toolbox.dataView,f=new Array(60).join("-"),c=" ";function o(v){var y={},x=[],T=[];return v.eachRawSeries(function(S){var b=S.coordinateSystem;if(b&&(b.type==="cartesian2d"||b.type==="polar")){var _=b.getBaseAxis();if(_.type==="category"){var I=_.dim+"_"+_.index;y[I]||(y[I]={categoryAxis:_,valueAxis:b.getOtherAxis(_),series:[]},T.push({axisDim:_.dim,axisIndex:_.index})),y[I].series.push(S)}else x.push(S)}else x.push(S)}),{seriesGroupByCategoryAxis:y,other:x,meta:T}}function r(v){var y=[];return E.each(v,function(x,T){var S=x.categoryAxis,b=x.valueAxis,_=b.dim,I=[" "].concat(E.map(x.series,function(M){return M.name})),L=[S.model.getCategories()];E.each(x.series,function(M){L.push(M.getRawData().mapArray(_,function(U){return U}))});for(var N=[I.join(c)],D=0;D<L[0].length;D++){for(var R=[],P=0;P<L.length;P++)R.push(L[P][D]);N.push(R.join(c))}y.push(N.join(`
|
|
|
`))}),y.join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`)}function i(v){return E.map(v,function(y){var x=y.getRawData(),T=[y.name],S=[];return x.each(x.dimensions,function(){for(var b=arguments.length,_=arguments[b-1],I=x.getName(_),L=0;L<b-1;L++)S[L]=arguments[L];T.push((I?I+c:"")+S.join(c))}),T.join(`
|
|
|
`)}).join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`)}function n(v){var y=o(v);return{value:E.filter([r(y.seriesGroupByCategoryAxis),i(y.other)],function(x){return x.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`),meta:y.meta}}function e(v){return v.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s(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),x=e(y.shift()).split(t),T=[],S=E.map(x,function(L){return{name:L,data:[]}}),b=0;b<y.length;b++){var _=e(y[b]).split(t);T.push(_.shift());for(var I=0;I<_.length;I++)S[I]&&(S[I].data[b]=_[I])}return{series:S,categories:T}}function l(v){for(var y=v.split(/\n+/g),x=e(y.shift()),T=[],S=0;S<y.length;S++){var b=e(y[S]).split(t),_="",I,L=!1;isNaN(b[0])?(L=!0,_=b[0],b=b.slice(1),T[S]={name:_,value:[]},I=T[S].value):I=T[S]=[];for(var N=0;N<b.length;N++)I.push(+b[N]);I.length===1&&(L?T[S].value=I[0]:T[S]=I[0])}return{name:x,data:T}}function u(v,y){var x=v.split(new RegExp(`
|
|
|
*`+f+`
|
|
|
*`,"g")),T={series:[]};return E.each(x,function(S,b){if(s(S)){var _=a(S),I=y[b],L=I.axisDim+"Axis";I&&(T[L]=T[L]||[],T[L][I.axisIndex]={data:_.categories},T.series=T.series.concat(_.series))}else{var _=l(S);T.series.push(_)}}),T}function 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:E.clone(m.title),lang:E.clone(m.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h.prototype.onclick=function(v,y){var x=y.getDom(),T=this.model;this._dom&&x.removeChild(this._dom);var S=document.createElement("div");S.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",S.style.backgroundColor=T.get("backgroundColor")||"#fff";var b=document.createElement("h4"),_=T.get("lang")||[];b.innerHTML=_[0]||T.get("title"),b.style.cssText="margin: 10px 20px;",b.style.color=T.get("textColor");var I=document.createElement("div"),L=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var N=T.get("optionToContent"),D=T.get("contentToOption"),R=n(v);if(typeof N=="function"){var P=N(y.getOption());typeof P=="string"?I.innerHTML=P:E.isDom(P)&&I.appendChild(P)}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=R.value;var M=R.meta,U=document.createElement("div");U.style.cssText="position:absolute;bottom:0;left:0;right:0;";var F="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",j=document.createElement("div"),W=document.createElement("div");F+=";background-color:"+T.get("buttonColor"),F+=";color:"+T.get("buttonTextColor");var V=this;function z(){x.removeChild(S),V._dom=null}C.addEventListener(j,"click",z),C.addEventListener(W,"click",function(){var Y;try{typeof D=="function"?Y=D(I,y.getOption()):Y=u(L.value,M)}catch($){throw z(),new Error("Data view format error "+$)}Y&&y.dispatchAction({type:"changeDataView",newOption:Y}),z()}),j.innerHTML=_[1],W.innerHTML=_[2],W.style.cssText=F,j.style.cssText=F,!T.get("readOnly")&&U.appendChild(W),U.appendChild(j),S.appendChild(b),S.appendChild(I),S.appendChild(U),I.style.height=x.clientHeight-80+"px",x.appendChild(S),this._dom=S},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 E.map(v,function(x,T){var S=y&&y[T];return E.isObject(S)&&!E.isArray(S)?(E.isObject(x)&&!E.isArray(x)&&(x=x.value),E.defaults({value:x},S)):x})}w.register("dataView",h),O.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(v,y){var x=[];E.each(v.newOption.series,function(T){var S=y.getSeriesByName(T.name)[0];if(!S)x.push(E.extend({type:"scatter"},T));else{var b=S.get("data");x.push({name:T.name,data:p(T.data,b)})}}),y.mergeOption(E.defaults({series:x},v.newOption))});var g=h;H.exports=g},dqUG:function(H,B,d){var O=d("Gev7"),E=d("bYtY"),C=d("6GrX"),A=d("pzxd"),w=d("gut8"),m=w.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=m.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}},E.inherits(f,O);var c=f;H.exports=c},dt0z:function(H,B,d){var O=d("zoYe");function E(C){return C==null?"":O(C)}H.exports=E},dtIV:function(H,B,d){"use strict";d.r(B),function(O){d.d(B,"AcroForm",function(){return Ne}),d.d(B,"AcroFormAppearance",function(){return X}),d.d(B,"AcroFormButton",function(){return nt}),d.d(B,"AcroFormCheckBox",function(){return Dt}),d.d(B,"AcroFormChoiceField",function(){return Je}),d.d(B,"AcroFormComboBox",function(){return et}),d.d(B,"AcroFormEditBox",function(){return ze}),d.d(B,"AcroFormListBox",function(){return Te}),d.d(B,"AcroFormPasswordField",function(){return ie}),d.d(B,"AcroFormPushButton",function(){return Ot}),d.d(B,"AcroFormRadioButton",function(){return Ct}),d.d(B,"AcroFormTextField",function(){return Be}),d.d(B,"GState",function(){return P}),d.d(B,"ShadingPattern",function(){return U}),d.d(B,"TilingPattern",function(){return F}),d.d(B,"jsPDF",function(){return j});var E=d("cDf5"),C=d.n(E),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 w=function(){return typeof window!="undefined"?window:typeof O!="undefined"?O:typeof self!="undefined"?self:this}();function m(){w.console&&typeof w.console.log=="function"&&w.console.log.apply(w.console,arguments)}var f={log:m,warn:function(Se){w.console&&(typeof w.console.warn=="function"?w.console.warn.apply(w.console,arguments):m.call(null,arguments))},error:function(Se){w.console&&(typeof w.console.error=="function"?w.console.error.apply(w.console,arguments):m(Se))}};function c($e,Se,Re){var je=new XMLHttpRequest;je.open("GET",$e),je.responseType="blob",je.onload=function(){e(je.response,Se,Re)},je.onerror=function(){f.error("could not download file")},je.send()}function o($e){var Se=new XMLHttpRequest;Se.open("HEAD",$e,!1);try{Se.send()}catch(Re){}return Se.status>=200&&Se.status<=299}function r($e){try{$e.dispatchEvent(new MouseEvent("click"))}catch(Re){var Se=document.createEvent("MouseEvents");Se.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$e.dispatchEvent(Se)}}var i,n,e=w.saveAs||((typeof window=="undefined"?"undefined":C()(window))!=="object"||window!==w?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function($e,Se,Re){var je=w.URL||w.webkitURL,Ye=document.createElement("a");Se=Se||$e.name||"download",Ye.download=Se,Ye.rel="noopener",typeof $e=="string"?(Ye.href=$e,Ye.origin!==location.origin?o(Ye.href)?c($e,Se,Re):r(Ye,Ye.target="_blank"):r(Ye)):(Ye.href=je.createObjectURL($e),setTimeout(function(){je.revokeObjectURL(Ye.href)},4e4),setTimeout(function(){r(Ye)},0))}:"msSaveOrOpenBlob"in navigator?function($e,Se,Re){if(Se=Se||$e.name||"download",typeof $e=="string")if(o($e))c($e,Se,Re);else{var je=document.createElement("a");je.href=$e,je.target="_blank",setTimeout(function(){r(je)})}else navigator.msSaveOrOpenBlob(function(Ye,Ve){return Ve===void 0?Ve={autoBom:!1}:C()(Ve)!=="object"&&(f.warn("Deprecated: Expected third argument to be a object"),Ve={autoBom:!Ve}),Ve.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}($e,Re),Se)}:function($e,Se,Re,je){if((je=je||open("","_blank"))&&(je.document.title=je.document.body.innerText="downloading..."),typeof $e=="string")return c($e,Se,Re);var Ye=$e.type==="application/octet-stream",Ve=/constructor/i.test(w.HTMLElement)||w.safari,qe=/CriOS\/[\d]+/.test(navigator.userAgent);if((qe||Ye&&Ve)&&(typeof FileReader=="undefined"?"undefined":C()(FileReader))==="object"){var xt=new FileReader;xt.onloadend=function(){var Rr=xt.result;Rr=qe?Rr:Rr.replace(/^data:[^;]*;/,"data:attachment/file;"),je?je.location.href=Rr:location=Rr,je=null},xt.readAsDataURL($e)}else{var ct=w.URL||w.webkitURL,Jt=ct.createObjectURL($e);je?je.location=Jt:location.href=Jt,je=null,setTimeout(function(){ct.revokeObjectURL(Jt)},4e4)}});/**
|
|
|
* A class to parse color values
|
|
|
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
|
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
|
* @license Use it if you like it
|
|
|
*/function s($e){var Se;$e=$e||"",this.ok=!1,$e.charAt(0)=="#"&&($e=$e.substr(1,6)),$e={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"}[$e=($e=$e.replace(/ /g,"")).toLowerCase()]||$e;for(var Re=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(ct){return[parseInt(ct[1]),parseInt(ct[2]),parseInt(ct[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ct){return[parseInt(ct[1],16),parseInt(ct[2],16),parseInt(ct[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ct){return[parseInt(ct[1]+ct[1],16),parseInt(ct[2]+ct[2],16),parseInt(ct[3]+ct[3],16)]}}],je=0;je<Re.length;je++){var Ye=Re[je].re,Ve=Re[je].process,qe=Ye.exec($e);qe&&(Se=Ve(qe),this.r=Se[0],this.g=Se[1],this.b=Se[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 xt=this.r.toString(16),ct=this.g.toString(16),Jt=this.b.toString(16);return xt.length==1&&(xt="0"+xt),ct.length==1&&(ct="0"+ct),Jt.length==1&&(Jt="0"+Jt),"#"+xt+ct+Jt}}/**
|
|
|
* @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($e,Se){var Re=$e[0],je=$e[1],Ye=$e[2],Ve=$e[3];Re=l(Re,je,Ye,Ve,Se[0],7,-680876936),Ve=l(Ve,Re,je,Ye,Se[1],12,-389564586),Ye=l(Ye,Ve,Re,je,Se[2],17,606105819),je=l(je,Ye,Ve,Re,Se[3],22,-1044525330),Re=l(Re,je,Ye,Ve,Se[4],7,-176418897),Ve=l(Ve,Re,je,Ye,Se[5],12,1200080426),Ye=l(Ye,Ve,Re,je,Se[6],17,-1473231341),je=l(je,Ye,Ve,Re,Se[7],22,-45705983),Re=l(Re,je,Ye,Ve,Se[8],7,1770035416),Ve=l(Ve,Re,je,Ye,Se[9],12,-1958414417),Ye=l(Ye,Ve,Re,je,Se[10],17,-42063),je=l(je,Ye,Ve,Re,Se[11],22,-1990404162),Re=l(Re,je,Ye,Ve,Se[12],7,1804603682),Ve=l(Ve,Re,je,Ye,Se[13],12,-40341101),Ye=l(Ye,Ve,Re,je,Se[14],17,-1502002290),Re=u(Re,je=l(je,Ye,Ve,Re,Se[15],22,1236535329),Ye,Ve,Se[1],5,-165796510),Ve=u(Ve,Re,je,Ye,Se[6],9,-1069501632),Ye=u(Ye,Ve,Re,je,Se[11],14,643717713),je=u(je,Ye,Ve,Re,Se[0],20,-373897302),Re=u(Re,je,Ye,Ve,Se[5],5,-701558691),Ve=u(Ve,Re,je,Ye,Se[10],9,38016083),Ye=u(Ye,Ve,Re,je,Se[15],14,-660478335),je=u(je,Ye,Ve,Re,Se[4],20,-405537848),Re=u(Re,je,Ye,Ve,Se[9],5,568446438),Ve=u(Ve,Re,je,Ye,Se[14],9,-1019803690),Ye=u(Ye,Ve,Re,je,Se[3],14,-187363961),je=u(je,Ye,Ve,Re,Se[8],20,1163531501),Re=u(Re,je,Ye,Ve,Se[13],5,-1444681467),Ve=u(Ve,Re,je,Ye,Se[2],9,-51403784),Ye=u(Ye,Ve,Re,je,Se[7],14,1735328473),Re=h(Re,je=u(je,Ye,Ve,Re,Se[12],20,-1926607734),Ye,Ve,Se[5],4,-378558),Ve=h(Ve,Re,je,Ye,Se[8],11,-2022574463),Ye=h(Ye,Ve,Re,je,Se[11],16,1839030562),je=h(je,Ye,Ve,Re,Se[14],23,-35309556),Re=h(Re,je,Ye,Ve,Se[1],4,-1530992060),Ve=h(Ve,Re,je,Ye,Se[4],11,1272893353),Ye=h(Ye,Ve,Re,je,Se[7],16,-155497632),je=h(je,Ye,Ve,Re,Se[10],23,-1094730640),Re=h(Re,je,Ye,Ve,Se[13],4,681279174),Ve=h(Ve,Re,je,Ye,Se[0],11,-358537222),Ye=h(Ye,Ve,Re,je,Se[3],16,-722521979),je=h(je,Ye,Ve,Re,Se[6],23,76029189),Re=h(Re,je,Ye,Ve,Se[9],4,-640364487),Ve=h(Ve,Re,je,Ye,Se[12],11,-421815835),Ye=h(Ye,Ve,Re,je,Se[15],16,530742520),Re=p(Re,je=h(je,Ye,Ve,Re,Se[2],23,-995338651),Ye,Ve,Se[0],6,-198630844),Ve=p(Ve,Re,je,Ye,Se[7],10,1126891415),Ye=p(Ye,Ve,Re,je,Se[14],15,-1416354905),je=p(je,Ye,Ve,Re,Se[5],21,-57434055),Re=p(Re,je,Ye,Ve,Se[12],6,1700485571),Ve=p(Ve,Re,je,Ye,Se[3],10,-1894986606),Ye=p(Ye,Ve,Re,je,Se[10],15,-1051523),je=p(je,Ye,Ve,Re,Se[1],21,-2054922799),Re=p(Re,je,Ye,Ve,Se[8],6,1873313359),Ve=p(Ve,Re,je,Ye,Se[15],10,-30611744),Ye=p(Ye,Ve,Re,je,Se[6],15,-1560198380),je=p(je,Ye,Ve,Re,Se[13],21,1309151649),Re=p(Re,je,Ye,Ve,Se[4],6,-145523070),Ve=p(Ve,Re,je,Ye,Se[11],10,-1120210379),Ye=p(Ye,Ve,Re,je,Se[2],15,718787259),je=p(je,Ye,Ve,Re,Se[9],21,-343485551),$e[0]=_(Re,$e[0]),$e[1]=_(je,$e[1]),$e[2]=_(Ye,$e[2]),$e[3]=_(Ve,$e[3])}function a($e,Se,Re,je,Ye,Ve){return Se=_(_(Se,$e),_(je,Ve)),_(Se<<Ye|Se>>>32-Ye,Re)}function l($e,Se,Re,je,Ye,Ve,qe){return a(Se&Re|~Se&je,$e,Se,Ye,Ve,qe)}function u($e,Se,Re,je,Ye,Ve,qe){return a(Se&je|Re&~je,$e,Se,Ye,Ve,qe)}function h($e,Se,Re,je,Ye,Ve,qe){return a(Se^Re^je,$e,Se,Ye,Ve,qe)}function p($e,Se,Re,je,Ye,Ve,qe){return a(Re^(Se|~je),$e,Se,Ye,Ve,qe)}function g($e){var Se,Re=$e.length,je=[1732584193,-271733879,-1732584194,271733878];for(Se=64;Se<=$e.length;Se+=64)t(je,v($e.substring(Se-64,Se)));$e=$e.substring(Se-64);var Ye=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Se=0;Se<$e.length;Se++)Ye[Se>>2]|=$e.charCodeAt(Se)<<(Se%4<<3);if(Ye[Se>>2]|=128<<(Se%4<<3),Se>55)for(t(je,Ye),Se=0;Se<16;Se++)Ye[Se]=0;return Ye[14]=8*Re,t(je,Ye),je}function v($e){var Se,Re=[];for(Se=0;Se<64;Se+=4)Re[Se>>2]=$e.charCodeAt(Se)+($e.charCodeAt(Se+1)<<8)+($e.charCodeAt(Se+2)<<16)+($e.charCodeAt(Se+3)<<24);return Re}i=w.atob.bind(w),n=w.btoa.bind(w);var y="0123456789abcdef".split("");function x($e){for(var Se="",Re=0;Re<4;Re++)Se+=y[$e>>8*Re+4&15]+y[$e>>8*Re&15];return Se}function T($e){return String.fromCharCode((255&$e)>>0,(65280&$e)>>8,(16711680&$e)>>16,(4278190080&$e)>>24)}function S($e){return g($e).map(T).join("")}var b=function($e){for(var Se=0;Se<$e.length;Se++)$e[Se]=x($e[Se]);return $e.join("")}(g("hello"))!="5d41402abc4b2a76b9719d911017c592";function _($e,Se){if(b){var Re=(65535&$e)+(65535&Se);return($e>>16)+(Se>>16)+(Re>>16)<<16|65535&Re}return $e+Se&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($e,Se){var Re,je,Ye,Ve;if($e!==Re){for(var qe=(Ye=$e,Ve=1+(256/$e.length>>0),new Array(Ve+1).join(Ye)),xt=[],ct=0;ct<256;ct++)xt[ct]=ct;var Jt=0;for(ct=0;ct<256;ct++){var Rr=xt[ct];Jt=(Jt+Rr+qe.charCodeAt(ct))%256,xt[ct]=xt[Jt],xt[Jt]=Rr}Re=$e,je=xt}else xt=je;var Ir=Se.length,Xr=0,qt=0,pn="";for(ct=0;ct<Ir;ct++)qt=(qt+(Rr=xt[Xr=(Xr+1)%256]))%256,xt[Xr]=xt[qt],xt[qt]=Rr,qe=xt[(xt[Xr]+xt[qt])%256],pn+=String.fromCharCode(Se.charCodeAt(ct)^qe);return pn}/**
|
|
|
* @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($e,Se,Re,je){this.v=1,this.r=2;var Ye=192;$e.forEach(function(xt){if(L.perm!==void 0)throw new Error("Invalid permission: "+xt);Ye+=L[xt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Ve=(Se+this.padding).substr(0,32),qe=(Re+this.padding).substr(0,32);this.O=this.processOwnerPassword(Ve,qe),this.P=-(1+(255^Ye)),this.encryptionKey=S(Ve+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(je)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function D($e){if(/[^\u0000-\u00ff]/.test($e))throw new Error("Invalid PDF Name Object: "+$e+", Only accept ASCII characters.");for(var Se="",Re=$e.length,je=0;je<Re;je++){var Ye=$e.charCodeAt(je);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?Se+="#"+("0"+Ye.toString(16)).slice(-2):Se+=$e[je]}return Se}function R($e){if(C()($e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Se={};this.subscribe=function(Re,je,Ye){if(Ye=Ye||!1,typeof Re!="string"||typeof je!="function"||typeof Ye!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Se.hasOwnProperty(Re)||(Se[Re]={});var Ve=Math.random().toString(35);return Se[Re][Ve]=[je,!!Ye],Ve},this.unsubscribe=function(Re){for(var je in Se)if(Se[je][Re])return delete Se[je][Re],Object.keys(Se[je]).length===0&&delete Se[je],!0;return!1},this.publish=function(Re){if(Se.hasOwnProperty(Re)){var je=Array.prototype.slice.call(arguments,1),Ye=[];for(var Ve in Se[Re]){var qe=Se[Re][Ve];try{qe[0].apply($e,je)}catch(xt){w.console&&f.error("jsPDF PubSub Error",xt.message,xt)}qe[1]&&Ye.push(Ve)}Ye.length&&Ye.forEach(this.unsubscribe)}},this.getTopics=function(){return Se}}function P($e){if(!(this instanceof P))return new P($e);var Se="opacity,stroke-opacity".split(",");for(var Re in $e)$e.hasOwnProperty(Re)&&Se.indexOf(Re)>=0&&(this[Re]=$e[Re]);this.id="",this.objectNumber=-1}function M($e,Se){this.gState=$e,this.matrix=Se,this.id="",this.objectNumber=-1}function U($e,Se,Re,je,Ye){if(!(this instanceof U))return new U($e,Se,Re,je,Ye);this.type=$e==="axial"?2:3,this.coords=Se,this.colors=Re,M.call(this,je,Ye)}function F($e,Se,Re,je,Ye){if(!(this instanceof F))return new F($e,Se,Re,je,Ye);this.boundingBox=$e,this.xStep=Se,this.yStep=Re,this.stream="",this.cloneIndex=0,M.call(this,je,Ye)}function j($e){var Se,Re=typeof arguments[0]=="string"?arguments[0]:"p",je=arguments[1],Ye=arguments[2],Ve=arguments[3],qe=[],xt=1,ct=16,Jt="S",Rr=null;C()($e=$e||{})==="object"&&(Re=$e.orientation,je=$e.unit||je,Ye=$e.format||Ye,Ve=$e.compress||$e.compressPdf||Ve,(Rr=$e.encryption||null)!==null&&(Rr.userPassword=Rr.userPassword||"",Rr.ownerPassword=Rr.ownerPassword||"",Rr.userPermissions=Rr.userPermissions||[]),xt=typeof $e.userUnit=="number"?Math.abs($e.userUnit):1,$e.precision!==void 0&&(Se=$e.precision),$e.floatPrecision!==void 0&&(ct=$e.floatPrecision),Jt=$e.defaultPathOperation||"S"),qe=$e.filters||(Ve===!0?["FlateEncode"]:qe),je=je||"mm",Re=(""+(Re||"P")).toLowerCase();var Ir=$e.putOnlyUsedFonts||!1,Xr={},qt={internal:{},__private__:{}};qt.__private__.PubSub=R;var pn="1.3",fr=qt.__private__.getPdfVersion=function(){return pn};qt.__private__.setPdfVersion=function(It){pn=It};var mn={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]};qt.__private__.getPageFormats=function(){return mn};var en=qt.__private__.getPageFormat=function(It){return mn[It]};Ye=Ye||"a4";var kr={COMPAT:"compat",ADVANCED:"advanced"},Gn=kr.COMPAT;function di(){this.saveGraphicsState(),gn(new Di(vr,0,0,-vr,0,ts()*vr).toString()+" cm"),this.setFontSize(this.getFontSize()/vr),Jt="n",Gn=kr.ADVANCED}function _i(){this.restoreGraphicsState(),Jt="S",Gn=kr.COMPAT}var Br=qt.__private__.combineFontStyleAndFontWeight=function(It,Vt){if(It=="bold"&&Vt=="normal"||It=="bold"&&Vt==400||It=="normal"&&Vt=="italic"||It=="bold"&&Vt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Vt&&(It=Vt==400||Vt==="normal"?It==="italic"?"italic":"normal":Vt!=700&&Vt!=="bold"||It!=="normal"?(Vt==700?"bold":Vt)+""+It:"bold"),It};qt.advancedAPI=function(It){var Vt=Gn===kr.COMPAT;return Vt&&di.call(this),typeof It!="function"||(It(this),Vt&&_i.call(this)),this},qt.compatAPI=function(It){var Vt=Gn===kr.ADVANCED;return Vt&&_i.call(this),typeof It!="function"||(It(this),Vt&&di.call(this)),this},qt.isAdvancedAPI=function(){return Gn===kr.ADVANCED};var sn,Sn=function(Vt){if(Gn!==kr.ADVANCED)throw new Error(Vt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Pt=qt.roundToPrecision=qt.__private__.roundToPrecision=function(It,Vt){var hn=Se||Vt;if(isNaN(It)||isNaN(hn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return It.toFixed(hn).replace(/0+$/,"")};sn=qt.hpf=qt.__private__.hpf=typeof ct=="number"?function(It){if(isNaN(It))throw new Error("Invalid argument passed to jsPDF.hpf");return Pt(It,ct)}:ct==="smart"?function(It){if(isNaN(It))throw new Error("Invalid argument passed to jsPDF.hpf");return Pt(It,It>-1&&It<1?16:5)}:function(It){if(isNaN(It))throw new Error("Invalid argument passed to jsPDF.hpf");return Pt(It,16)};var gt=qt.f2=qt.__private__.f2=function(It){if(isNaN(It))throw new Error("Invalid argument passed to jsPDF.f2");return Pt(It,2)},Et=qt.__private__.f3=function(It){if(isNaN(It))throw new Error("Invalid argument passed to jsPDF.f3");return Pt(It,3)},Lt=qt.scale=qt.__private__.scale=function(It){if(isNaN(It))throw new Error("Invalid argument passed to jsPDF.scale");return Gn===kr.COMPAT?It*vr:Gn===kr.ADVANCED?It:void 0},kt=function(Vt){return Gn===kr.COMPAT?ts()-Vt:Gn===kr.ADVANCED?Vt:void 0},yt=function(Vt){return Lt(kt(Vt))};qt.__private__.setPrecision=qt.setPrecision=function(It){typeof parseInt(It,10)=="number"&&(Se=parseInt(It,10))};var Qt,tr="00000000000000000000000000000000",ir=qt.__private__.getFileId=function(){return tr},yr=qt.__private__.setFileId=function(It){return tr=It!==void 0&&/^[a-fA-F0-9]{32}$/.test(It)?It.toUpperCase():tr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Rr!==null&&(Ji=new N(Rr.userPermissions,Rr.userPassword,Rr.ownerPassword,tr)),tr};qt.setFileId=function(It){return yr(It),this},qt.getFileId=function(){return ir()};var xn=qt.__private__.convertDateToPDFDate=function(It){var Vt=It.getTimezoneOffset(),hn=Vt<0?"+":"-",zn=Math.floor(Math.abs(Vt/60)),vt=Math.abs(Vt%60),ae=[hn,ln(zn),"'",ln(vt),"'"].join("");return["D:",It.getFullYear(),ln(It.getMonth()+1),ln(It.getDate()),ln(It.getHours()),ln(It.getMinutes()),ln(It.getSeconds()),ae].join("")},vn=qt.__private__.convertPDFDateToDate=function(It){var Vt=parseInt(It.substr(2,4),10),hn=parseInt(It.substr(6,2),10)-1,zn=parseInt(It.substr(8,2),10),vt=parseInt(It.substr(10,2),10),ae=parseInt(It.substr(12,2),10),me=parseInt(It.substr(14,2),10);return new Date(Vt,hn,zn,vt,ae,me,0)},Wn=qt.__private__.setCreationDate=function(It){var Vt;if(It===void 0&&(It=new Date),It instanceof Date)Vt=xn(It);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(It))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Vt=It}return Qt=Vt},Yr=qt.__private__.getCreationDate=function(It){var Vt=Qt;return It==="jsDate"&&(Vt=vn(Qt)),Vt};qt.setCreationDate=function(It){return Wn(It),this},qt.getCreationDate=function(It){return Yr(It)};var xr,ln=qt.__private__.padd2=function(It){return("0"+parseInt(It)).slice(-2)},On=qt.__private__.padd2Hex=function(It){return("00"+(It=It.toString())).substr(It.length)},In=0,Un=[],ti=[],ui=0,si=[],Pi=[],zi=!1,Ri=ti,Yi=function(){In=0,ui=0,ti=[],Un=[],si=[],ra=ta(),pa=ta()};qt.__private__.setCustomOutputDestination=function(It){zi=!0,Ri=It};var $n=function(Vt){zi||(Ri=Vt)};qt.__private__.resetCustomOutputDestination=function(){zi=!1,Ri=ti};var gn=qt.__private__.out=function(It){return It=It.toString(),ui+=It.length+1,Ri.push(It),Ri},mi=qt.__private__.write=function(It){return gn(arguments.length===1?It.toString():Array.prototype.join.call(arguments," "))},Hi=qt.__private__.getArrayBuffer=function(It){for(var Vt=It.length,hn=new ArrayBuffer(Vt),zn=new Uint8Array(hn);Vt--;)zn[Vt]=It.charCodeAt(Vt);return hn},Li=[["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]];qt.__private__.getStandardFonts=function(){return Li};var Bi=$e.fontSize||16;qt.__private__.setFontSize=qt.setFontSize=function(It){return Bi=Gn===kr.ADVANCED?It/vr:It,this};var wr,lr=qt.__private__.getFontSize=qt.getFontSize=function(){return Gn===kr.COMPAT?Bi:Bi*vr},on=$e.R2L||!1;qt.__private__.setR2L=qt.setR2L=function(It){return on=It,this},qt.__private__.getR2L=qt.getR2L=function(){return on};var Zt,br=qt.__private__.setZoomMode=function(It){var Vt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(It))wr=It;else if(isNaN(It)){if(Vt.indexOf(It)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+It+'" is not recognized.');wr=It}else wr=parseInt(It,10)};qt.__private__.getZoomMode=function(){return wr};var Or,Wr=qt.__private__.setPageMode=function(It){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(It)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+It+'" is not recognized.');Zt=It};qt.__private__.getPageMode=function(){return Zt};var An=qt.__private__.setLayoutMode=function(It){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(It)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+It+'" is not recognized.');Or=It};qt.__private__.getLayoutMode=function(){return Or},qt.__private__.setDisplayMode=qt.setDisplayMode=function(It,Vt,hn){return br(It),An(Vt),Wr(hn),this};var bt={title:"",subject:"",author:"",keywords:"",creator:""};qt.__private__.getDocumentProperty=function(It){if(Object.keys(bt).indexOf(It)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return bt[It]},qt.__private__.getDocumentProperties=function(){return bt},qt.__private__.setDocumentProperties=qt.setProperties=qt.setDocumentProperties=function(It){for(var Vt in bt)bt.hasOwnProperty(Vt)&&It[Vt]&&(bt[Vt]=It[Vt]);return this},qt.__private__.setDocumentProperty=function(It,Vt){if(Object.keys(bt).indexOf(It)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return bt[It]=Vt};var mr,vr,Fr,nn,cn,tn={},Ln={},Tn=[],Xn={},ci={},Jn={},pi={},Si=null,Ni=0,xi=[],yi=new R(qt),vi=$e.hotfixes||[],Ti={},Ui={},$i=[],Di=function It(Vt,hn,zn,vt,ae,me){if(!(this instanceof It))return new It(Vt,hn,zn,vt,ae,me);isNaN(Vt)&&(Vt=1),isNaN(hn)&&(hn=0),isNaN(zn)&&(zn=0),isNaN(vt)&&(vt=1),isNaN(ae)&&(ae=0),isNaN(me)&&(me=0),this._matrix=[Vt,hn,zn,vt,ae,me]};Object.defineProperty(Di.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Vt){this._matrix[0]=Vt}}),Object.defineProperty(Di.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Vt){this._matrix[1]=Vt}}),Object.defineProperty(Di.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Vt){this._matrix[2]=Vt}}),Object.defineProperty(Di.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Vt){this._matrix[3]=Vt}}),Object.defineProperty(Di.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Vt){this._matrix[4]=Vt}}),Object.defineProperty(Di.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Vt){this._matrix[5]=Vt}}),Object.defineProperty(Di.prototype,"a",{get:function(){return this._matrix[0]},set:function(Vt){this._matrix[0]=Vt}}),Object.defineProperty(Di.prototype,"b",{get:function(){return this._matrix[1]},set:function(Vt){this._matrix[1]=Vt}}),Object.defineProperty(Di.prototype,"c",{get:function(){return this._matrix[2]},set:function(Vt){this._matrix[2]=Vt}}),Object.defineProperty(Di.prototype,"d",{get:function(){return this._matrix[3]},set:function(Vt){this._matrix[3]=Vt}}),Object.defineProperty(Di.prototype,"e",{get:function(){return this._matrix[4]},set:function(Vt){this._matrix[4]=Vt}}),Object.defineProperty(Di.prototype,"f",{get:function(){return this._matrix[5]},set:function(Vt){this._matrix[5]=Vt}}),Object.defineProperty(Di.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Di.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Di.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Di.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Di.prototype.join=function(It){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(sn).join(It)},Di.prototype.multiply=function(It){var Vt=It.sx*this.sx+It.shy*this.shx,hn=It.sx*this.shy+It.shy*this.sy,zn=It.shx*this.sx+It.sy*this.shx,vt=It.shx*this.shy+It.sy*this.sy,ae=It.tx*this.sx+It.ty*this.shx+this.tx,me=It.tx*this.shy+It.ty*this.sy+this.ty;return new Di(Vt,hn,zn,vt,ae,me)},Di.prototype.decompose=function(){var It=this.sx,Vt=this.shy,hn=this.shx,zn=this.sy,vt=this.tx,ae=this.ty,me=Math.sqrt(It*It+Vt*Vt),be=(It/=me)*hn+(Vt/=me)*zn;hn-=It*be,zn-=Vt*be;var Ke=Math.sqrt(hn*hn+zn*zn);return be/=Ke,It*(zn/=Ke)<Vt*(hn/=Ke)&&(It=-It,Vt=-Vt,be=-be,me=-me),{scale:new Di(me,0,0,Ke,0,0),translate:new Di(1,0,0,1,vt,ae),rotate:new Di(It,Vt,-Vt,It,0,0),skew:new Di(1,0,be,1,0,0)}},Di.prototype.toString=function(It){return this.join(" ")},Di.prototype.inversed=function(){var It=this.sx,Vt=this.shy,hn=this.shx,zn=this.sy,vt=this.tx,ae=this.ty,me=1/(It*zn-Vt*hn),be=zn*me,Ke=-Vt*me,At=-hn*me,Gt=It*me;return new Di(be,Ke,At,Gt,-be*vt-At*ae,-Ke*vt-Gt*ae)},Di.prototype.applyToPoint=function(It){var Vt=It.x*this.sx+It.y*this.shx+this.tx,hn=It.x*this.shy+It.y*this.sy+this.ty;return new ws(Vt,hn)},Di.prototype.applyToRectangle=function(It){var Vt=this.applyToPoint(It),hn=this.applyToPoint(new ws(It.x+It.w,It.y+It.h));return new qo(Vt.x,Vt.y,hn.x-Vt.x,hn.y-Vt.y)},Di.prototype.clone=function(){var It=this.sx,Vt=this.shy,hn=this.shx,zn=this.sy,vt=this.tx,ae=this.ty;return new Di(It,Vt,hn,zn,vt,ae)},qt.Matrix=Di;var ua=qt.matrixMult=function(It,Vt){return Vt.multiply(It)},aa=new Di(1,0,0,1,0,0);qt.unitMatrix=qt.identityMatrix=aa;var Gi=function(Vt,hn){if(!ci[Vt]){var zn=(hn instanceof U?"Sh":"P")+(Object.keys(Xn).length+1).toString(10);hn.id=zn,ci[Vt]=zn,Xn[zn]=hn,yi.publish("addPattern",hn)}};qt.ShadingPattern=U,qt.TilingPattern=F,qt.addShadingPattern=function(It,Vt){return Sn("addShadingPattern()"),Gi(It,Vt),this},qt.beginTilingPattern=function(It){Sn("beginTilingPattern()"),_s(It.boundingBox[0],It.boundingBox[1],It.boundingBox[2]-It.boundingBox[0],It.boundingBox[3]-It.boundingBox[1],It.matrix)},qt.endTilingPattern=function(It,Vt){Sn("endTilingPattern()"),Vt.stream=Pi[xr].join(`
|
|
|
`),Gi(It,Vt),yi.publish("endTilingPattern",Vt),$i.pop().restore()};var Vi=qt.__private__.newObject=function(){var It=ta();return Xi(It,!0),It},ta=qt.__private__.newObjectDeferred=function(){return In++,Un[In]=function(){return ui},In},Xi=function(Vt,hn){return hn=typeof hn=="boolean"&&hn,Un[Vt]=ui,hn&&gn(Vt+" 0 obj"),Vt},ga=qt.__private__.newAdditionalObject=function(){var It={objId:ta(),content:""};return si.push(It),It},ra=ta(),pa=ta(),_a=qt.__private__.decodeColorString=function(It){var Vt=It.split(" ");if(Vt.length!==2||Vt[1]!=="g"&&Vt[1]!=="G")Vt.length===5&&(Vt[4]==="k"||Vt[4]==="K")&&(Vt=[(1-Vt[0])*(1-Vt[3]),(1-Vt[1])*(1-Vt[3]),(1-Vt[2])*(1-Vt[3]),"r"]);else{var hn=parseFloat(Vt[0]);Vt=[hn,hn,hn,"r"]}for(var zn="#",vt=0;vt<3;vt++)zn+=("0"+Math.floor(255*parseFloat(Vt[vt])).toString(16)).slice(-2);return zn},Da=qt.__private__.encodeColorString=function(It){var Vt;typeof It=="string"&&(It={ch1:It});var hn=It.ch1,zn=It.ch2,vt=It.ch3,ae=It.ch4,me=It.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof hn=="string"&&hn.charAt(0)!=="#"){var be=new s(hn);if(be.ok)hn=be.toHex();else if(!/^\d*\.?\d*$/.test(hn))throw new Error('Invalid color "'+hn+'" passed to jsPDF.encodeColorString.')}if(typeof hn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(hn)&&(hn="#"+hn[1]+hn[1]+hn[2]+hn[2]+hn[3]+hn[3]),typeof hn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(hn)){var Ke=parseInt(hn.substr(1),16);hn=Ke>>16&255,zn=Ke>>8&255,vt=255&Ke}if(zn===void 0||ae===void 0&&hn===zn&&zn===vt)if(typeof hn=="string")Vt=hn+" "+me[0];else switch(It.precision){case 2:Vt=gt(hn/255)+" "+me[0];break;case 3:default:Vt=Et(hn/255)+" "+me[0]}else if(ae===void 0||C()(ae)==="object"){if(ae&&!isNaN(ae.a)&&ae.a===0)return Vt=["1.","1.","1.",me[1]].join(" ");if(typeof hn=="string")Vt=[hn,zn,vt,me[1]].join(" ");else switch(It.precision){case 2:Vt=[gt(hn/255),gt(zn/255),gt(vt/255),me[1]].join(" ");break;default:case 3:Vt=[Et(hn/255),Et(zn/255),Et(vt/255),me[1]].join(" ")}}else if(typeof hn=="string")Vt=[hn,zn,vt,ae,me[2]].join(" ");else switch(It.precision){case 2:Vt=[gt(hn),gt(zn),gt(vt),gt(ae),me[2]].join(" ");break;case 3:default:Vt=[Et(hn),Et(zn),Et(vt),Et(ae),me[2]].join(" ")}return Vt},Ra=qt.__private__.getFilters=function(){return qe},Ao=qt.__private__.putStream=function(It){var Vt=(It=It||{}).data||"",hn=It.filters||Ra(),zn=It.alreadyAppliedFilters||[],vt=It.addLength1||!1,ae=Vt.length,me=It.objectId,be=function(Qn){return Qn};if(Rr!==null&&me===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Rr!==null&&(be=Ji.encryptor(me,0));var Ke={};hn===!0&&(hn=["FlateEncode"]);var At=It.additionalKeyValues||[],Gt=(Ke=j.API.processDataByFilters!==void 0?j.API.processDataByFilters(Vt,hn):{data:Vt,reverseChain:[]}).reverseChain+(Array.isArray(zn)?zn.join(" "):zn.toString());if(Ke.data.length!==0&&(At.push({key:"Length",value:Ke.data.length}),vt===!0&&At.push({key:"Length1",value:ae})),Gt.length!=0)if(Gt.split("/").length-1==1)At.push({key:"Filter",value:Gt});else{At.push({key:"Filter",value:"["+Gt+"]"});for(var Dr=0;Dr<At.length;Dr+=1)if(At[Dr].key==="DecodeParms"){for(var Gr=[],fn=0;fn<Ke.reverseChain.split("/").length-1;fn+=1)Gr.push("null");Gr.push(At[Dr].value),At[Dr].value="["+Gr.join(" ")+"]"}}gn("<<");for(var Kn=0;Kn<At.length;Kn++)gn("/"+At[Kn].key+" "+At[Kn].value);gn(">>"),Ke.data.length!==0&&(gn("stream"),gn(be(Ke.data)),gn("endstream"))},ja=qt.__private__.putPage=function(It){var Vt=It.number,hn=It.data,zn=It.objId,vt=It.contentsObjId;Xi(zn,!0),gn("<</Type /Page"),gn("/Parent "+It.rootDictionaryObjId+" 0 R"),gn("/Resources "+It.resourceDictionaryObjId+" 0 R"),gn("/MediaBox ["+parseFloat(sn(It.mediaBox.bottomLeftX))+" "+parseFloat(sn(It.mediaBox.bottomLeftY))+" "+sn(It.mediaBox.topRightX)+" "+sn(It.mediaBox.topRightY)+"]"),It.cropBox!==null&&gn("/CropBox ["+sn(It.cropBox.bottomLeftX)+" "+sn(It.cropBox.bottomLeftY)+" "+sn(It.cropBox.topRightX)+" "+sn(It.cropBox.topRightY)+"]"),It.bleedBox!==null&&gn("/BleedBox ["+sn(It.bleedBox.bottomLeftX)+" "+sn(It.bleedBox.bottomLeftY)+" "+sn(It.bleedBox.topRightX)+" "+sn(It.bleedBox.topRightY)+"]"),It.trimBox!==null&&gn("/TrimBox ["+sn(It.trimBox.bottomLeftX)+" "+sn(It.trimBox.bottomLeftY)+" "+sn(It.trimBox.topRightX)+" "+sn(It.trimBox.topRightY)+"]"),It.artBox!==null&&gn("/ArtBox ["+sn(It.artBox.bottomLeftX)+" "+sn(It.artBox.bottomLeftY)+" "+sn(It.artBox.topRightX)+" "+sn(It.artBox.topRightY)+"]"),typeof It.userUnit=="number"&&It.userUnit!==1&&gn("/UserUnit "+It.userUnit),yi.publish("putPage",{objId:zn,pageContext:xi[Vt],pageNumber:Vt,page:hn}),gn("/Contents "+vt+" 0 R"),gn(">>"),gn("endobj");var ae=hn.join(`
|
|
|
`);return Gn===kr.ADVANCED&&(ae+=`
|
|
|
Q`),Xi(vt,!0),Ao({data:ae,filters:Ra(),objectId:vt}),gn("endobj"),zn},Ya=qt.__private__.putPages=function(){var It,Vt,hn=[];for(It=1;It<=Ni;It++)xi[It].objId=ta(),xi[It].contentsObjId=ta();for(It=1;It<=Ni;It++)hn.push(ja({number:It,data:Pi[It],objId:xi[It].objId,contentsObjId:xi[It].contentsObjId,mediaBox:xi[It].mediaBox,cropBox:xi[It].cropBox,bleedBox:xi[It].bleedBox,trimBox:xi[It].trimBox,artBox:xi[It].artBox,userUnit:xi[It].userUnit,rootDictionaryObjId:ra,resourceDictionaryObjId:pa}));Xi(ra,!0),gn("<</Type /Pages");var zn="/Kids [";for(Vt=0;Vt<Ni;Vt++)zn+=hn[Vt]+" 0 R ";gn(zn+"]"),gn("/Count "+Ni),gn(">>"),gn("endobj"),yi.publish("postPutPages")},Ia=function(Vt){yi.publish("putFont",{font:Vt,out:gn,newObject:Vi,putStream:Ao}),Vt.isAlreadyPutted!==!0&&(Vt.objectNumber=Vi(),gn("<<"),gn("/Type /Font"),gn("/BaseFont /"+D(Vt.postScriptName)),gn("/Subtype /Type1"),typeof Vt.encoding=="string"&&gn("/Encoding /"+Vt.encoding),gn("/FirstChar 32"),gn("/LastChar 255"),gn(">>"),gn("endobj"))},Va=function(){for(var Vt in tn)tn.hasOwnProperty(Vt)&&(Ir===!1||Ir===!0&&Xr.hasOwnProperty(Vt))&&Ia(tn[Vt])},co=function(Vt){Vt.objectNumber=Vi();var hn=[];hn.push({key:"Type",value:"/XObject"}),hn.push({key:"Subtype",value:"/Form"}),hn.push({key:"BBox",value:"["+[sn(Vt.x),sn(Vt.y),sn(Vt.x+Vt.width),sn(Vt.y+Vt.height)].join(" ")+"]"}),hn.push({key:"Matrix",value:"["+Vt.matrix.toString()+"]"});var zn=Vt.pages[1].join(`
|
|
|
`);Ao({data:zn,additionalKeyValues:hn,objectId:Vt.objectNumber}),gn("endobj")},Ca=function(){for(var Vt in Ti)Ti.hasOwnProperty(Vt)&&co(Ti[Vt])},yo=function(Vt,hn){var zn,vt=[],ae=1/(hn-1);for(zn=0;zn<1;zn+=ae)vt.push(zn);if(vt.push(1),Vt[0].offset!=0){var me={offset:0,color:Vt[0].color};Vt.unshift(me)}if(Vt[Vt.length-1].offset!=1){var be={offset:1,color:Vt[Vt.length-1].color};Vt.push(be)}for(var Ke="",At=0,Gt=0;Gt<vt.length;Gt++){for(zn=vt[Gt];zn>Vt[At+1].offset;)At++;var Dr=Vt[At].offset,Gr=(zn-Dr)/(Vt[At+1].offset-Dr),fn=Vt[At].color,Kn=Vt[At+1].color;Ke+=On(Math.round((1-Gr)*fn[0]+Gr*Kn[0]).toString(16))+On(Math.round((1-Gr)*fn[1]+Gr*Kn[1]).toString(16))+On(Math.round((1-Gr)*fn[2]+Gr*Kn[2]).toString(16))}return Ke.trim()},uo=function(Vt,hn){hn||(hn=21);var zn=Vi(),vt=yo(Vt.colors,hn),ae=[];ae.push({key:"FunctionType",value:"0"}),ae.push({key:"Domain",value:"[0.0 1.0]"}),ae.push({key:"Size",value:"["+hn+"]"}),ae.push({key:"BitsPerSample",value:"8"}),ae.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ae.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ao({data:vt,additionalKeyValues:ae,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:zn}),gn("endobj"),Vt.objectNumber=Vi(),gn("<< /ShadingType "+Vt.type),gn("/ColorSpace /DeviceRGB");var me="/Coords ["+sn(parseFloat(Vt.coords[0]))+" "+sn(parseFloat(Vt.coords[1]))+" ";Vt.type===2?me+=sn(parseFloat(Vt.coords[2]))+" "+sn(parseFloat(Vt.coords[3])):me+=sn(parseFloat(Vt.coords[2]))+" "+sn(parseFloat(Vt.coords[3]))+" "+sn(parseFloat(Vt.coords[4]))+" "+sn(parseFloat(Vt.coords[5])),gn(me+="]"),Vt.matrix&&gn("/Matrix ["+Vt.matrix.toString()+"]"),gn("/Function "+zn+" 0 R"),gn("/Extend [true true]"),gn(">>"),gn("endobj")},Ga=function(Vt,hn){var zn=ta(),vt=Vi();hn.push({resourcesOid:zn,objectOid:vt}),Vt.objectNumber=vt;var ae=[];ae.push({key:"Type",value:"/Pattern"}),ae.push({key:"PatternType",value:"1"}),ae.push({key:"PaintType",value:"1"}),ae.push({key:"TilingType",value:"1"}),ae.push({key:"BBox",value:"["+Vt.boundingBox.map(sn).join(" ")+"]"}),ae.push({key:"XStep",value:sn(Vt.xStep)}),ae.push({key:"YStep",value:sn(Vt.yStep)}),ae.push({key:"Resources",value:zn+" 0 R"}),Vt.matrix&&ae.push({key:"Matrix",value:"["+Vt.matrix.toString()+"]"}),Ao({data:Vt.stream,additionalKeyValues:ae,objectId:Vt.objectNumber}),gn("endobj")},Oo=function(Vt){var hn;for(hn in Xn)Xn.hasOwnProperty(hn)&&(Xn[hn]instanceof U?uo(Xn[hn]):Xn[hn]instanceof F&&Ga(Xn[hn],Vt))},oa=function(Vt){for(var hn in Vt.objectNumber=Vi(),gn("<<"),Vt)switch(hn){case"opacity":gn("/ca "+gt(Vt[hn]));break;case"stroke-opacity":gn("/CA "+gt(Vt[hn]))}gn(">>"),gn("endobj")},qa=function(){var Vt;for(Vt in Jn)Jn.hasOwnProperty(Vt)&&oa(Jn[Vt])},oo=function(){for(var Vt in gn("/XObject <<"),Ti)Ti.hasOwnProperty(Vt)&&Ti[Vt].objectNumber>=0&&gn("/"+Vt+" "+Ti[Vt].objectNumber+" 0 R");yi.publish("putXobjectDict"),gn(">>")},Ro=function(){Ji.oid=Vi(),gn("<<"),gn("/Filter /Standard"),gn("/V "+Ji.v),gn("/R "+Ji.r),gn("/U <"+Ji.toHexString(Ji.U)+">"),gn("/O <"+Ji.toHexString(Ji.O)+">"),gn("/P "+Ji.P),gn(">>"),gn("endobj")},Xa=function(){for(var Vt in gn("/Font <<"),tn)tn.hasOwnProperty(Vt)&&(Ir===!1||Ir===!0&&Xr.hasOwnProperty(Vt))&&gn("/"+Vt+" "+tn[Vt].objectNumber+" 0 R");gn(">>")},_o=function(){if(Object.keys(Xn).length>0){for(var Vt in gn("/Shading <<"),Xn)Xn.hasOwnProperty(Vt)&&Xn[Vt]instanceof U&&Xn[Vt].objectNumber>=0&&gn("/"+Vt+" "+Xn[Vt].objectNumber+" 0 R");yi.publish("putShadingPatternDict"),gn(">>")}},go=function(Vt){if(Object.keys(Xn).length>0){for(var hn in gn("/Pattern <<"),Xn)Xn.hasOwnProperty(hn)&&Xn[hn]instanceof qt.TilingPattern&&Xn[hn].objectNumber>=0&&Xn[hn].objectNumber<Vt&&gn("/"+hn+" "+Xn[hn].objectNumber+" 0 R");yi.publish("putTilingPatternDict"),gn(">>")}},Ja=function(){if(Object.keys(Jn).length>0){var Vt;for(Vt in gn("/ExtGState <<"),Jn)Jn.hasOwnProperty(Vt)&&Jn[Vt].objectNumber>=0&&gn("/"+Vt+" "+Jn[Vt].objectNumber+" 0 R");yi.publish("putGStateDict"),gn(">>")}},Fa=function(Vt){Xi(Vt.resourcesOid,!0),gn("<<"),gn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Xa(),_o(),go(Vt.objectOid),Ja(),oo(),gn(">>"),gn("endobj")},ha=function(){var Vt=[];Va(),qa(),Ca(),Oo(Vt),yi.publish("putResources"),Vt.forEach(Fa),Fa({resourcesOid:pa,objectOid:Number.MAX_SAFE_INTEGER}),yi.publish("postPutResources")},rt=function(){yi.publish("putAdditionalObjects");for(var Vt=0;Vt<si.length;Vt++){var hn=si[Vt];Xi(hn.objId,!0),gn(hn.content),gn("endobj")}yi.publish("postPutAdditionalObjects")},cr=function(Vt){Ln[Vt.fontName]=Ln[Vt.fontName]||{},Ln[Vt.fontName][Vt.fontStyle]=Vt.id},Pr=function(Vt,hn,zn,vt,ae){var me={id:"F"+(Object.keys(tn).length+1).toString(10),postScriptName:Vt,fontName:hn,fontStyle:zn,encoding:vt,isStandardFont:ae||!1,metadata:{}};return yi.publish("addFont",{font:me,instance:this}),tn[me.id]=me,cr(me),me.id},Lr=function(Vt){for(var hn=0,zn=Li.length;hn<zn;hn++){var vt=Pr.call(this,Vt[hn][0],Vt[hn][1],Vt[hn][2],Li[hn][3],!0);Ir===!1&&(Xr[vt]=!0);var ae=Vt[hn][0].split("-");cr({id:vt,fontName:ae[0],fontStyle:ae[1]||""})}yi.publish("addFonts",{fonts:tn,dictionary:Ln})},_n=function(Vt){return Vt.foo=function(){try{return Vt.apply(this,arguments)}catch(vt){var hn=vt.stack||"";~hn.indexOf(" at ")&&(hn=hn.split(" at ")[1]);var zn="Error in function "+hn.split(`
|
|
|
`)[0].split("<")[0]+": "+vt.message;if(!w.console)throw new Error(zn);w.console.error(zn,vt),w.alert&&alert(zn)}},Vt.foo.bar=Vt,Vt.foo},Vr=function(Vt,hn){var zn,vt,ae,me,be,Ke,At,Gt,Dr;if(ae=(hn=hn||{}).sourceEncoding||"Unicode",be=hn.outputEncoding,(hn.autoencode||be)&&tn[mr].metadata&&tn[mr].metadata[ae]&&tn[mr].metadata[ae].encoding&&(me=tn[mr].metadata[ae].encoding,!be&&tn[mr].encoding&&(be=tn[mr].encoding),!be&&me.codePages&&(be=me.codePages[0]),typeof be=="string"&&(be=me[be]),be)){for(At=!1,Ke=[],zn=0,vt=Vt.length;zn<vt;zn++)(Gt=be[Vt.charCodeAt(zn)])?Ke.push(String.fromCharCode(Gt)):Ke.push(Vt[zn]),Ke[zn].charCodeAt(0)>>8&&(At=!0);Vt=Ke.join("")}for(zn=Vt.length;At===void 0&&zn!==0;)Vt.charCodeAt(zn-1)>>8&&(At=!0),zn--;if(!At)return Vt;for(Ke=hn.noBOM?[]:[254,255],zn=0,vt=Vt.length;zn<vt;zn++){if((Dr=(Gt=Vt.charCodeAt(zn))>>8)>>8)throw new Error("Character at position "+zn+" of string '"+Vt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ke.push(Dr),Ke.push(Gt-(Dr<<8))}return String.fromCharCode.apply(void 0,Ke)},_r=qt.__private__.pdfEscape=qt.pdfEscape=function(It,Vt){return Vr(It,Vt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kn=qt.__private__.beginPage=function(It){Pi[++Ni]=[],xi[Ni]={objId:0,contentsObjId:0,userUnit:Number(xt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(It[0]),topRightY:Number(It[1])}},jn(Ni),$n(Pi[xr])},Ur=function(Vt,hn){var zn,vt,ae;switch(Re=hn||Re,typeof Vt=="string"&&(zn=en(Vt.toLowerCase()),Array.isArray(zn)&&(vt=zn[0],ae=zn[1])),Array.isArray(Vt)&&(vt=Vt[0]*vr,ae=Vt[1]*vr),isNaN(vt)&&(vt=Ye[0],ae=Ye[1]),(vt>14400||ae>14400)&&(f.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),vt=Math.min(14400,vt),ae=Math.min(14400,ae)),Ye=[vt,ae],Re.substr(0,1)){case"l":ae>vt&&(Ye=[ae,vt]);break;case"p":vt>ae&&(Ye=[ae,vt])}kn(Ye),ko(za),gn(zo),Ko!==0&&gn(Ko+" J"),hs!==0&&gn(hs+" j"),yi.publish("addPage",{pageNumber:Ni})},En=function(Vt){Vt>0&&Vt<=Ni&&(Pi.splice(Vt,1),xi.splice(Vt,1),Ni--,xr>Ni&&(xr=Ni),this.setPage(xr))},jn=function(Vt){Vt>0&&Vt<=Ni&&(xr=Vt)},Hn=qt.__private__.getNumberOfPages=qt.getNumberOfPages=function(){return Pi.length-1},Bn=function(Vt,hn,zn){var vt,ae=void 0;return zn=zn||{},Vt=Vt!==void 0?Vt:tn[mr].fontName,hn=hn!==void 0?hn:tn[mr].fontStyle,vt=Vt.toLowerCase(),Ln[vt]!==void 0&&Ln[vt][hn]!==void 0?ae=Ln[vt][hn]:Ln[Vt]!==void 0&&Ln[Vt][hn]!==void 0?ae=Ln[Vt][hn]:zn.disableWarning===!1&&f.warn("Unable to look up font label for font '"+Vt+"', '"+hn+"'. Refer to getFontList() for available fonts."),ae||zn.noFallback||(ae=Ln.times[hn])==null&&(ae=Ln.times.normal),ae},ri=qt.__private__.putInfo=function(){var It=Vi(),Vt=function(vt){return vt};for(var hn in Rr!==null&&(Vt=Ji.encryptor(It,0)),gn("<<"),gn("/Producer ("+_r(Vt("jsPDF "+j.version))+")"),bt)bt.hasOwnProperty(hn)&&bt[hn]&&gn("/"+hn.substr(0,1).toUpperCase()+hn.substr(1)+" ("+_r(Vt(bt[hn]))+")");gn("/CreationDate ("+_r(Vt(Qt))+")"),gn(">>"),gn("endobj")},Yn=qt.__private__.putCatalog=function(It){var Vt=(It=It||{}).rootDictionaryObjId||ra;switch(Vi(),gn("<<"),gn("/Type /Catalog"),gn("/Pages "+Vt+" 0 R"),wr||(wr="fullwidth"),wr){case"fullwidth":gn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":gn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":gn("/OpenAction [3 0 R /Fit]");break;case"original":gn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var hn=""+wr;hn.substr(hn.length-1)==="%"&&(wr=parseInt(wr)/100),typeof wr=="number"&&gn("/OpenAction [3 0 R /XYZ null null "+gt(wr)+"]")}switch(Or||(Or="continuous"),Or){case"continuous":gn("/PageLayout /OneColumn");break;case"single":gn("/PageLayout /SinglePage");break;case"two":case"twoleft":gn("/PageLayout /TwoColumnLeft");break;case"tworight":gn("/PageLayout /TwoColumnRight")}Zt&&gn("/PageMode /"+Zt),yi.publish("putCatalog"),gn(">>"),gn("endobj")},ii=qt.__private__.putTrailer=function(){gn("trailer"),gn("<<"),gn("/Size "+(In+1)),gn("/Root "+In+" 0 R"),gn("/Info "+(In-1)+" 0 R"),Rr!==null&&gn("/Encrypt "+Ji.oid+" 0 R"),gn("/ID [ <"+tr+"> <"+tr+"> ]"),gn(">>")},ai=qt.__private__.putHeader=function(){gn("%PDF-"+pn),gn("%\xBA\xDF\xAC\xE0")},ki=qt.__private__.putXRef=function(){var It="0000000000";gn("xref"),gn("0 "+(In+1)),gn("0000000000 65535 f ");for(var Vt=1;Vt<=In;Vt++)typeof Un[Vt]=="function"?gn((It+Un[Vt]()).slice(-10)+" 00000 n "):Un[Vt]!==void 0?gn((It+Un[Vt]).slice(-10)+" 00000 n "):gn("0000000000 00000 n ")},bi=qt.__private__.buildDocument=function(){Yi(),$n(ti),yi.publish("buildDocument"),ai(),Ya(),rt(),ha(),Rr!==null&&Ro(),ri(),Yn();var It=ui;return ki(),ii(),gn("startxref"),gn(""+It),gn("%%EOF"),$n(Pi[xr]),ti.join(`
|
|
|
`)},Ki=qt.__private__.getBlob=function(It){return new Blob([Hi(It)],{type:"application/pdf"})},Aa=qt.output=qt.__private__.output=_n(function(It,Vt){switch(typeof(Vt=Vt||{})=="string"?Vt={filename:Vt}:Vt.filename=Vt.filename||"generated.pdf",It){case void 0:return bi();case"save":qt.save(Vt.filename);break;case"arraybuffer":return Hi(bi());case"blob":return Ki(bi());case"bloburi":case"bloburl":if(w.URL!==void 0&&typeof w.URL.createObjectURL=="function")return w.URL&&w.URL.createObjectURL(Ki(bi()))||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 hn="",zn=bi();try{hn=n(zn)}catch(fn){hn=n(unescape(encodeURIComponent(zn)))}return"data:application/pdf;filename="+Vt.filename+";base64,"+hn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(w)==="[object Window]"){var vt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ae=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Vt.pdfObjectUrl&&(vt=Vt.pdfObjectUrl,ae="");var me='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+vt+'"'+ae+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Vt)+");</script></body></html>",be=w.open();return be!==null&&be.document.write(me),be}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(w)==="[object Window]"){var Ke='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Vt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Vt.filename+'" width="500px" height="400px" /></body></html>',At=w.open();if(At!==null){At.document.write(Ke);var Gt=this;At.document.documentElement.querySelector("#pdfViewer").onload=function(){At.document.title=Vt.filename,At.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Gt.output("bloburl"))}}return At}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(w)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Dr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Vt)+'"></iframe></body></html>',Gr=w.open();if(Gr!==null&&(Gr.document.write(Dr),Gr.document.title=Vt.filename),Gr||typeof safari=="undefined")return Gr;break;case"datauri":case"dataurl":return w.document.location.href=this.output("datauristring",Vt);default:return null}}),ea=function(Vt){return Array.isArray(vi)===!0&&vi.indexOf(Vt)>-1};switch(je){case"pt":vr=1;break;case"mm":vr=72/25.4;break;case"cm":vr=72/2.54;break;case"in":vr=72;break;case"px":vr=ea("px_scaling")==1?.75:96/72;break;case"pc":case"em":vr=12;break;case"ex":vr=6;break;default:if(typeof je!="number")throw new Error("Invalid unit: "+je);vr=je}var Ji=null;Wn(),yr();var sa=function(Vt){return Rr!==null?Ji.encryptor(Vt,0):function(hn){return hn}},fa=qt.__private__.getPageInfo=qt.getPageInfo=function(It){if(isNaN(It)||It%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:xi[It].objId,pageNumber:It,pageContext:xi[It]}},xo=qt.__private__.getPageInfoByObjId=function(It){if(isNaN(It)||It%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Vt in xi)if(xi[Vt].objId===It)break;return fa(Vt)},Qa=qt.__private__.getCurrentPageInfo=qt.getCurrentPageInfo=function(){return{objId:xi[xr].objId,pageNumber:xr,pageContext:xi[xr]}};qt.addPage=function(){return Ur.apply(this,arguments),this},qt.setPage=function(){return jn.apply(this,arguments),$n.call(this,Pi[xr]),this},qt.insertPage=function(It){return this.addPage(),this.movePage(xr,It),this},qt.movePage=function(It,Vt){var hn,zn;if(It>Vt){hn=Pi[It],zn=xi[It];for(var vt=It;vt>Vt;vt--)Pi[vt]=Pi[vt-1],xi[vt]=xi[vt-1];Pi[Vt]=hn,xi[Vt]=zn,this.setPage(Vt)}else if(It<Vt){hn=Pi[It],zn=xi[It];for(var ae=It;ae<Vt;ae++)Pi[ae]=Pi[ae+1],xi[ae]=xi[ae+1];Pi[Vt]=hn,xi[Vt]=zn,this.setPage(Vt)}return this},qt.deletePage=function(){return En.apply(this,arguments),this},qt.__private__.text=qt.text=function(It,Vt,hn,zn,vt){var ae,me,be,Ke,At,Gt,Dr,Gr,fn,Kn=(zn=zn||{}).scope||this;if(typeof It=="number"&&typeof Vt=="number"&&(typeof hn=="string"||Array.isArray(hn))){var qn=hn;hn=Vt,Vt=It,It=qn}if(arguments[3]instanceof Di==!1?(be=arguments[4],Ke=arguments[5],C()(Dr=arguments[3])==="object"&&Dr!==null||(typeof be=="string"&&(Ke=be,be=null),typeof Dr=="string"&&(Ke=Dr,Dr=null),typeof Dr=="number"&&(be=Dr,Dr=null),zn={flags:Dr,angle:be,align:Ke})):(Sn("The transform parameter of text() with a Matrix value"),fn=vt),isNaN(Vt)||isNaN(hn)||It==null)throw new Error("Invalid arguments passed to jsPDF.text");if(It.length===0)return Kn;var Qn="",Ei=!1,Fi=typeof zn.lineHeightFactor=="number"?zn.lineHeightFactor:Ba,va=Kn.internal.scaleFactor;function Oa(Ns){return Ns=Ns.split(" ").join(Array(zn.TabLen||9).join(" ")),_r(Ns,Dr)}function fo(Ns){for(var ys,Ds=Ns.concat(),xs=[],Xs=Ds.length;Xs--;)typeof(ys=Ds.shift())=="string"?xs.push(ys):Array.isArray(Ns)&&(ys.length===1||ys[1]===void 0&&ys[2]===void 0)?xs.push(ys[0]):xs.push([ys[0],ys[1],ys[2]]);return xs}function wo(Ns,ys){var Ds;if(typeof Ns=="string")Ds=ys(Ns)[0];else if(Array.isArray(Ns)){for(var xs,Xs,ll=Ns.concat(),El=[],jl=ll.length;jl--;)typeof(xs=ll.shift())=="string"?El.push(ys(xs)[0]):Array.isArray(xs)&&typeof xs[0]=="string"&&(Xs=ys(xs[0],xs[1],xs[2]),El.push([Xs[0],Xs[1],Xs[2]]));Ds=El}return Ds}var lo=!1,Yo=!0;if(typeof It=="string")lo=!0;else if(Array.isArray(It)){var Vo=It.concat();me=[];for(var No,ao=Vo.length;ao--;)(typeof(No=Vo.shift())!="string"||Array.isArray(No)&&typeof No[0]!="string")&&(Yo=!1);lo=Yo}if(lo===!1)throw new Error('Type of text must be string or Array. "'+It+'" is not recognized.');typeof It=="string"&&(It=It.match(/[\r?\n]/)?It.split(/\r\n|\r|\n/g):[It]);var Ka=Bi/Kn.internal.scaleFactor,is=Ka*(Fi-1);switch(zn.baseline){case"bottom":hn-=is;break;case"top":hn+=Ka-is;break;case"hanging":hn+=Ka-2*is;break;case"middle":hn+=Ka/2-is}if((Gt=zn.maxWidth||0)>0&&(typeof It=="string"?It=Kn.splitTextToSize(It,Gt):Object.prototype.toString.call(It)==="[object Array]"&&(It=It.reduce(function(Ns,ys){return Ns.concat(Kn.splitTextToSize(ys,Gt))},[]))),ae={text:It,x:Vt,y:hn,options:zn,mutex:{pdfEscape:_r,activeFontKey:mr,fonts:tn,activeFontSize:Bi}},yi.publish("preProcessText",ae),It=ae.text,be=(zn=ae.options).angle,fn instanceof Di==!1&&be&&typeof be=="number"){be*=Math.PI/180,zn.rotationDirection===0&&(be=-be),Gn===kr.ADVANCED&&(be=-be);var Is=Math.cos(be),Go=Math.sin(be);fn=new Di(Is,Go,-Go,Is,0,0)}else be&&be instanceof Di&&(fn=be);Gn!==kr.ADVANCED||fn||(fn=aa),(At=zn.charSpace||Es)!==void 0&&(Qn+=sn(Lt(At))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Gr=zn.horizontalScale)!==void 0&&(Qn+=sn(100*Gr)+` Tz
|
|
|
`),zn.lang;var la=-1,Vs=zn.renderingMode!==void 0?zn.renderingMode:zn.stroke,Hs=Kn.internal.getCurrentPageInfo().pageContext;switch(Vs){case 0:case!1:case"fill":la=0;break;case 1:case!0:case"stroke":la=1;break;case 2:case"fillThenStroke":la=2;break;case 3:case"invisible":la=3;break;case 4:case"fillAndAddForClipping":la=4;break;case 5:case"strokeAndAddPathForClipping":la=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":la=6;break;case 7:case"addToPathForClipping":la=7}var fs=Hs.usedRenderingMode!==void 0?Hs.usedRenderingMode:-1;la!==-1?Qn+=la+` Tr
|
|
|
`:fs!==-1&&(Qn+=`0 Tr
|
|
|
`),la!==-1&&(Hs.usedRenderingMode=la),Ke=zn.align||"left";var as,Ss=Bi*Fi,xl=Kn.internal.pageSize.getWidth(),vl=tn[mr];At=zn.charSpace||Es,Gt=zn.maxWidth||0,Dr=Object.assign({autoencode:!0,noBOM:!0},zn.flags);var zs=[];if(Object.prototype.toString.call(It)==="[object Array]"){var Zo;me=fo(It),Ke!=="left"&&(as=me.map(function(Ns){return Kn.getStringUnitWidth(Ns,{font:vl,charSpace:At,fontSize:Bi,doKerning:!1})*Bi/va}));var As,nl=0;if(Ke==="right"){Vt-=as[0],It=[],ao=me.length;for(var Ps=0;Ps<ao;Ps++)Ps===0?(As=ho(Vt),Zo=bo(hn)):(As=Lt(nl-as[Ps]),Zo=-Ss),It.push([me[Ps],As,Zo]),nl=as[Ps]}else if(Ke==="center"){Vt-=as[0]/2,It=[],ao=me.length;for(var po=0;po<ao;po++)po===0?(As=ho(Vt),Zo=bo(hn)):(As=Lt((nl-as[po])/2),Zo=-Ss),It.push([me[po],As,Zo]),nl=as[po]}else if(Ke==="left"){It=[],ao=me.length;for(var Wa=0;Wa<ao;Wa++)It.push(me[Wa])}else{if(Ke!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');It=[],ao=me.length,Gt=Gt!==0?Gt:xl;for(var Eo=0;Eo<ao;Eo++)Zo=Eo===0?bo(hn):-Ss,As=Eo===0?ho(Vt):0,Eo<ao-1?zs.push(sn(Lt((Gt-as[Eo])/(me[Eo].split(" ").length-1)))):zs.push(0),It.push([me[Eo],As,Zo])}}var Xo=typeof zn.R2L=="boolean"?zn.R2L:on;Xo===!0&&(It=wo(It,function(Ns,ys,Ds){return[Ns.split("").reverse().join(""),ys,Ds]})),ae={text:It,x:Vt,y:hn,options:zn,mutex:{pdfEscape:_r,activeFontKey:mr,fonts:tn,activeFontSize:Bi}},yi.publish("postProcessText",ae),It=ae.text,Ei=ae.mutex.isHex||!1;var $o=tn[mr].encoding;$o!=="WinAnsiEncoding"&&$o!=="StandardEncoding"||(It=wo(It,function(Ns,ys,Ds){return[Oa(Ns),ys,Ds]})),me=fo(It),It=[];for(var Co,rs,os,Fs=0,ol=1,Zs=Array.isArray(me[0])?ol:Fs,dl="",hl=function(ys,Ds,xs){var Xs="";return xs instanceof Di?(xs=typeof zn.angle=="number"?ua(xs,new Di(1,0,0,1,ys,Ds)):ua(new Di(1,0,0,1,ys,Ds),xs),Gn===kr.ADVANCED&&(xs=ua(new Di(1,0,0,-1,0,0),xs)),Xs=xs.join(" ")+` Tm
|
|
|
`):Xs=sn(ys)+" "+sn(Ds)+` Td
|
|
|
`,Xs},sl=0;sl<me.length;sl++){switch(dl="",Zs){case ol:os=(Ei?"<":"(")+me[sl][0]+(Ei?">":")"),Co=parseFloat(me[sl][1]),rs=parseFloat(me[sl][2]);break;case Fs:os=(Ei?"<":"(")+me[sl]+(Ei?">":")"),Co=ho(Vt),rs=bo(hn)}zs!==void 0&&zs[sl]!==void 0&&(dl=zs[sl]+` Tw
|
|
|
`),sl===0?It.push(dl+hl(Co,rs,fn)+os):Zs===Fs?It.push(dl+os):Zs===ol&&It.push(dl+hl(Co,rs,fn)+os)}It=Zs===Fs?It.join(` Tj
|
|
|
T* `):It.join(` Tj
|
|
|
`),It+=` Tj
|
|
|
`;var yl=`BT
|
|
|
/`;return yl+=mr+" "+Bi+` Tf
|
|
|
`,yl+=sn(Bi*Fi)+` TL
|
|
|
`,yl+=es+`
|
|
|
`,yl+=Qn,yl+=It,gn(yl+="ET"),Xr[mr]=!0,Kn};var Wi=qt.__private__.clip=qt.clip=function(It){return gn(It==="evenodd"?"W*":"W"),this};qt.clipEvenOdd=function(){return Wi("evenodd")},qt.__private__.discardPath=qt.discardPath=function(){return gn("n"),this};var qi=qt.__private__.isValidStyle=function(It){var Vt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(It)!==-1&&(Vt=!0),Vt};qt.__private__.setDefaultPathOperation=qt.setDefaultPathOperation=function(It){return qi(It)&&(Jt=It),this};var ca=qt.__private__.getStyle=qt.getStyle=function(It){var Vt=Jt;switch(It){case"D":case"S":Vt="S";break;case"F":Vt="f";break;case"FD":case"DF":Vt="B";break;case"f":case"f*":case"B":case"B*":Vt=It}return Vt},ma=qt.close=function(){return gn("h"),this};qt.stroke=function(){return gn("S"),this},qt.fill=function(It){return ka("f",It),this},qt.fillEvenOdd=function(It){return ka("f*",It),this},qt.fillStroke=function(It){return ka("B",It),this},qt.fillStrokeEvenOdd=function(It){return ka("B*",It),this};var ka=function(Vt,hn){C()(hn)==="object"?eo(hn,Vt):gn(Vt)},La=function(Vt){Vt===null||Gn===kr.ADVANCED&&Vt===void 0||(Vt=ca(Vt),gn(Vt))};function Za(It,Vt,hn,zn,vt){var ae=new F(Vt||this.boundingBox,hn||this.xStep,zn||this.yStep,this.gState,vt||this.matrix);ae.stream=this.stream;var me=It+"$$"+this.cloneIndex+++"$$";return Gi(me,ae),ae}var eo=function(Vt,hn){var zn=ci[Vt.key],vt=Xn[zn];if(vt instanceof U)gn("q"),gn(Po(hn)),vt.gState&&qt.setGState(vt.gState),gn(Vt.matrix.toString()+" cm"),gn("/"+zn+" sh"),gn("Q");else if(vt instanceof F){var ae=new Di(1,0,0,-1,0,ts());Vt.matrix&&(ae=ae.multiply(Vt.matrix||aa),zn=Za.call(vt,Vt.key,Vt.boundingBox,Vt.xStep,Vt.yStep,ae).id),gn("q"),gn("/Pattern cs"),gn("/"+zn+" scn"),vt.gState&&qt.setGState(vt.gState),gn(hn),gn("Q")}},Po=function(Vt){switch(Vt){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"}},jo=qt.moveTo=function(It,Vt){return gn(sn(Lt(It))+" "+sn(yt(Vt))+" m"),this},cs=qt.lineTo=function(It,Vt){return gn(sn(Lt(It))+" "+sn(yt(Vt))+" l"),this},Mo=qt.curveTo=function(It,Vt,hn,zn,vt,ae){return gn([sn(Lt(It)),sn(yt(Vt)),sn(Lt(hn)),sn(yt(zn)),sn(Lt(vt)),sn(yt(ae)),"c"].join(" ")),this};qt.__private__.line=qt.line=function(It,Vt,hn,zn,vt){if(isNaN(It)||isNaN(Vt)||isNaN(hn)||isNaN(zn)||!qi(vt))throw new Error("Invalid arguments passed to jsPDF.line");return Gn===kr.COMPAT?this.lines([[hn-It,zn-Vt]],It,Vt,[1,1],vt||"S"):this.lines([[hn-It,zn-Vt]],It,Vt,[1,1]).stroke()},qt.__private__.lines=qt.lines=function(It,Vt,hn,zn,vt,ae){var me,be,Ke,At,Gt,Dr,Gr,fn,Kn,qn,Qn,Ei;if(typeof It=="number"&&(Ei=hn,hn=Vt,Vt=It,It=Ei),zn=zn||[1,1],ae=ae||!1,isNaN(Vt)||isNaN(hn)||!Array.isArray(It)||!Array.isArray(zn)||!qi(vt)||typeof ae!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(jo(Vt,hn),me=zn[0],be=zn[1],At=It.length,qn=Vt,Qn=hn,Ke=0;Ke<At;Ke++)(Gt=It[Ke]).length===2?(qn=Gt[0]*me+qn,Qn=Gt[1]*be+Qn,cs(qn,Qn)):(Dr=Gt[0]*me+qn,Gr=Gt[1]*be+Qn,fn=Gt[2]*me+qn,Kn=Gt[3]*be+Qn,qn=Gt[4]*me+qn,Qn=Gt[5]*be+Qn,Mo(Dr,Gr,fn,Kn,qn,Qn));return ae&&ma(),La(vt),this},qt.path=function(It){for(var Vt=0;Vt<It.length;Vt++){var hn=It[Vt],zn=hn.c;switch(hn.op){case"m":jo(zn[0],zn[1]);break;case"l":cs(zn[0],zn[1]);break;case"c":Mo.apply(this,zn);break;case"h":ma()}}return this},qt.__private__.rect=qt.rect=function(It,Vt,hn,zn,vt){if(isNaN(It)||isNaN(Vt)||isNaN(hn)||isNaN(zn)||!qi(vt))throw new Error("Invalid arguments passed to jsPDF.rect");return Gn===kr.COMPAT&&(zn=-zn),gn([sn(Lt(It)),sn(yt(Vt)),sn(Lt(hn)),sn(Lt(zn)),"re"].join(" ")),La(vt),this},qt.__private__.triangle=qt.triangle=function(It,Vt,hn,zn,vt,ae,me){if(isNaN(It)||isNaN(Vt)||isNaN(hn)||isNaN(zn)||isNaN(vt)||isNaN(ae)||!qi(me))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[hn-It,zn-Vt],[vt-hn,ae-zn],[It-vt,Vt-ae]],It,Vt,[1,1],me,!0),this},qt.__private__.roundedRect=qt.roundedRect=function(It,Vt,hn,zn,vt,ae,me){if(isNaN(It)||isNaN(Vt)||isNaN(hn)||isNaN(zn)||isNaN(vt)||isNaN(ae)||!qi(me))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var be=4/3*(Math.SQRT2-1);return vt=Math.min(vt,.5*hn),ae=Math.min(ae,.5*zn),this.lines([[hn-2*vt,0],[vt*be,0,vt,ae-ae*be,vt,ae],[0,zn-2*ae],[0,ae*be,-vt*be,ae,-vt,ae],[2*vt-hn,0],[-vt*be,0,-vt,-ae*be,-vt,-ae],[0,2*ae-zn],[0,-ae*be,vt*be,-ae,vt,-ae]],It+vt,Vt,[1,1],me,!0),this},qt.__private__.ellipse=qt.ellipse=function(It,Vt,hn,zn,vt){if(isNaN(It)||isNaN(Vt)||isNaN(hn)||isNaN(zn)||!qi(vt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ae=4/3*(Math.SQRT2-1)*hn,me=4/3*(Math.SQRT2-1)*zn;return jo(It+hn,Vt),Mo(It+hn,Vt-me,It+ae,Vt-zn,It,Vt-zn),Mo(It-ae,Vt-zn,It-hn,Vt-me,It-hn,Vt),Mo(It-hn,Vt+me,It-ae,Vt+zn,It,Vt+zn),Mo(It+ae,Vt+zn,It+hn,Vt+me,It+hn,Vt),La(vt),this},qt.__private__.circle=qt.circle=function(It,Vt,hn,zn){if(isNaN(It)||isNaN(Vt)||isNaN(hn)||!qi(zn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(It,Vt,hn,hn,zn)},qt.setFont=function(It,Vt,hn){return hn&&(Vt=Br(Vt,hn)),mr=Bn(It,Vt,{disableWarning:!1}),this};var Lo=qt.__private__.getFont=qt.getFont=function(){return tn[Bn.apply(qt,arguments)]};qt.__private__.getFontList=qt.getFontList=function(){var It,Vt,hn={};for(It in Ln)if(Ln.hasOwnProperty(It))for(Vt in hn[It]=[],Ln[It])Ln[It].hasOwnProperty(Vt)&&hn[It].push(Vt);return hn},qt.addFont=function(It,Vt,hn,zn,vt){var ae=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ae.indexOf(arguments[3])!==-1?vt=arguments[3]:arguments[3]&&ae.indexOf(arguments[3])==-1&&(hn=Br(hn,zn)),vt=vt||"Identity-H",Pr.call(this,It,Vt,hn,vt)};var Ba,za=$e.lineWidth||.200025,Ta=qt.__private__.getLineWidth=qt.getLineWidth=function(){return za},ko=qt.__private__.setLineWidth=qt.setLineWidth=function(It){return za=It,gn(sn(Lt(It))+" w"),this};qt.__private__.setLineDash=j.API.setLineDash=j.API.setLineDashPattern=function(It,Vt){if(It=It||[],Vt=Vt||0,isNaN(Vt)||!Array.isArray(It))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return It=It.map(function(hn){return sn(Lt(hn))}).join(" "),Vt=sn(Lt(Vt)),gn("["+It+"] "+Vt+" d"),this};var Qo=qt.__private__.getLineHeight=qt.getLineHeight=function(){return Bi*Ba};qt.__private__.getLineHeight=qt.getLineHeight=function(){return Bi*Ba};var so=qt.__private__.setLineHeightFactor=qt.setLineHeightFactor=function(It){return typeof(It=It||1.15)=="number"&&(Ba=It),this},Os=qt.__private__.getLineHeightFactor=qt.getLineHeightFactor=function(){return Ba};so($e.lineHeight);var ho=qt.__private__.getHorizontalCoordinate=function(It){return Lt(It)},bo=qt.__private__.getVerticalCoordinate=function(It){return Gn===kr.ADVANCED?It:xi[xr].mediaBox.topRightY-xi[xr].mediaBox.bottomLeftY-Lt(It)},ds=qt.__private__.getHorizontalCoordinateString=qt.getHorizontalCoordinateString=function(It){return sn(ho(It))},Ho=qt.__private__.getVerticalCoordinateString=qt.getVerticalCoordinateString=function(It){return sn(bo(It))},zo=$e.strokeColor||"0 G";qt.__private__.getStrokeColor=qt.getDrawColor=function(){return _a(zo)},qt.__private__.setStrokeColor=qt.setDrawColor=function(It,Vt,hn,zn){return zo=Da({ch1:It,ch2:Vt,ch3:hn,ch4:zn,pdfColorType:"draw",precision:2}),gn(zo),this};var rn=$e.fillColor||"0 g";qt.__private__.getFillColor=qt.getFillColor=function(){return _a(rn)},qt.__private__.setFillColor=qt.setFillColor=function(It,Vt,hn,zn){return rn=Da({ch1:It,ch2:Vt,ch3:hn,ch4:zn,pdfColorType:"fill",precision:2}),gn(rn),this};var es=$e.textColor||"0 g",Js=qt.__private__.getTextColor=qt.getTextColor=function(){return _a(es)};qt.__private__.setTextColor=qt.setTextColor=function(It,Vt,hn,zn){return es=Da({ch1:It,ch2:Vt,ch3:hn,ch4:zn,pdfColorType:"text",precision:3}),this};var Es=$e.charSpace,gs=qt.__private__.getCharSpace=qt.getCharSpace=function(){return parseFloat(Es||0)};qt.__private__.setCharSpace=qt.setCharSpace=function(It){if(isNaN(It))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Es=It,this};var Ko=0;qt.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},qt.__private__.setLineCap=qt.setLineCap=function(It){var Vt=qt.CapJoinStyles[It];if(Vt===void 0)throw new Error("Line cap style of '"+It+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ko=Vt,gn(Vt+" J"),this};var hs=0;qt.__private__.setLineJoin=qt.setLineJoin=function(It){var Vt=qt.CapJoinStyles[It];if(Vt===void 0)throw new Error("Line join style of '"+It+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hs=Vt,gn(Vt+" j"),this},qt.__private__.setLineMiterLimit=qt.__private__.setMiterLimit=qt.setLineMiterLimit=qt.setMiterLimit=function(It){if(It=It||0,isNaN(It))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return gn(sn(Lt(It))+" M"),this},qt.GState=P,qt.setGState=function(It){(It=typeof It=="string"?Jn[pi[It]]:bs(null,It)).equals(Si)||(gn("/"+It.id+" gs"),Si=It)};var bs=function(Vt,hn){if(!Vt||!pi[Vt]){var zn=!1;for(var vt in Jn)if(Jn.hasOwnProperty(vt)&&Jn[vt].equals(hn)){zn=!0;break}if(zn)hn=Jn[vt];else{var ae="GS"+(Object.keys(Jn).length+1).toString(10);Jn[ae]=hn,hn.id=ae}return Vt&&(pi[Vt]=hn.id),yi.publish("addGState",hn),hn}};qt.addGState=function(It,Vt){return bs(It,Vt),this},qt.saveGraphicsState=function(){return gn("q"),Tn.push({key:mr,size:Bi,color:es}),this},qt.restoreGraphicsState=function(){gn("Q");var It=Tn.pop();return mr=It.key,Bi=It.size,es=It.color,Si=null,this},qt.setCurrentTransformationMatrix=function(It){return gn(It.toString()+" cm"),this},qt.comment=function(It){return gn("#"+It),this};var ws=function(Vt,hn){var zn=Vt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return zn},set:function(be){isNaN(be)||(zn=parseFloat(be))}});var vt=hn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return vt},set:function(be){isNaN(be)||(vt=parseFloat(be))}});var ae="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ae},set:function(be){ae=be.toString()}}),this},qo=function(Vt,hn,zn,vt){ws.call(this,Vt,hn),this.type="rect";var ae=zn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ae},set:function(Ke){isNaN(Ke)||(ae=parseFloat(Ke))}});var me=vt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return me},set:function(Ke){isNaN(Ke)||(me=parseFloat(Ke))}}),this},us=function(){this.page=Ni,this.currentPage=xr,this.pages=Pi.slice(0),this.pagesContext=xi.slice(0),this.x=Fr,this.y=nn,this.matrix=cn,this.width=to(xr),this.height=ts(xr),this.outputDestination=Ri,this.id="",this.objectNumber=-1};us.prototype.restore=function(){Ni=this.page,xr=this.currentPage,xi=this.pagesContext,Pi=this.pages,Fr=this.x,nn=this.y,cn=this.matrix,Jo(xr,this.width),Ha(xr,this.height),Ri=this.outputDestination};var _s=function(Vt,hn,zn,vt,ae){$i.push(new us),Ni=xr=0,Pi=[],Fr=Vt,nn=hn,cn=ae,kn([zn,vt])},vs=function(Vt){if(Ui[Vt])$i.pop().restore();else{var hn=new us,zn="Xo"+(Object.keys(Ti).length+1).toString(10);hn.id=zn,Ui[Vt]=zn,Ti[zn]=hn,yi.publish("addFormObject",hn),$i.pop().restore()}};for(var vo in qt.beginFormObject=function(It,Vt,hn,zn,vt){return _s(It,Vt,hn,zn,vt),this},qt.endFormObject=function(It){return vs(It),this},qt.doFormObject=function(It,Vt){var hn=Ti[Ui[It]];return gn("q"),gn(Vt.toString()+" cm"),gn("/"+hn.id+" Do"),gn("Q"),this},qt.getFormObject=function(It){var Vt=Ti[Ui[It]];return{x:Vt.x,y:Vt.y,width:Vt.width,height:Vt.height,matrix:Vt.matrix}},qt.save=function(It,Vt){return It=It||"generated.pdf",(Vt=Vt||{}).returnPromise=Vt.returnPromise||!1,Vt.returnPromise===!1?(e(Ki(bi()),It),typeof e.unload=="function"&&w.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(hn,zn){try{var vt=e(Ki(bi()),It);typeof e.unload=="function"&&w.setTimeout&&setTimeout(e.unload,911),hn(vt)}catch(ae){zn(ae.message)}})},j.API)j.API.hasOwnProperty(vo)&&(vo==="events"&&j.API.events.length?function(It,Vt){var hn,zn,vt;for(vt=Vt.length-1;vt!==-1;vt--)hn=Vt[vt][0],zn=Vt[vt][1],It.subscribe.apply(It,[hn].concat(typeof zn=="function"?[zn]:zn))}(yi,j.API.events):qt[vo]=j.API[vo]);var to=qt.getPageWidth=function(It){return(xi[It=It||xr].mediaBox.topRightX-xi[It].mediaBox.bottomLeftX)/vr},Jo=qt.setPageWidth=function(It,Vt){xi[It].mediaBox.topRightX=Vt*vr+xi[It].mediaBox.bottomLeftX},ts=qt.getPageHeight=function(It){return(xi[It=It||xr].mediaBox.topRightY-xi[It].mediaBox.bottomLeftY)/vr},Ha=qt.setPageHeight=function(It,Vt){xi[It].mediaBox.topRightY=Vt*vr+xi[It].mediaBox.bottomLeftY};return qt.internal={pdfEscape:_r,getStyle:ca,getFont:Lo,getFontSize:lr,getCharSpace:gs,getTextColor:Js,getLineHeight:Qo,getLineHeightFactor:Os,getLineWidth:Ta,write:mi,getHorizontalCoordinate:ho,getVerticalCoordinate:bo,getCoordinateString:ds,getVerticalCoordinateString:Ho,collections:{},newObject:Vi,newAdditionalObject:ga,newObjectDeferred:ta,newObjectDeferredBegin:Xi,getFilters:Ra,putStream:Ao,events:yi,scaleFactor:vr,pageSize:{getWidth:function(){return to(xr)},setWidth:function(Vt){Jo(xr,Vt)},getHeight:function(){return ts(xr)},setHeight:function(Vt){Ha(xr,Vt)}},encryptionOptions:Rr,encryption:Ji,getEncryptor:sa,output:Aa,getNumberOfPages:Hn,pages:Pi,out:gn,f2:gt,f3:Et,getPageInfo:fa,getPageInfoByObjId:xo,getCurrentPageInfo:Qa,getPDFVersion:fr,Point:ws,Rectangle:qo,Matrix:Di,hasHotfix:ea},Object.defineProperty(qt.internal.pageSize,"width",{get:function(){return to(xr)},set:function(Vt){Jo(xr,Vt)},enumerable:!0,configurable:!0}),Object.defineProperty(qt.internal.pageSize,"height",{get:function(){return ts(xr)},set:function(Vt){Ha(xr,Vt)},enumerable:!0,configurable:!0}),Lr.call(qt,Li),mr="F1",Ur(Ye,Re),yi.publish("initialized"),qt}N.prototype.lsbFirstWord=function($e){return String.fromCharCode($e>>0&255,$e>>8&255,$e>>16&255,$e>>24&255)},N.prototype.toHexString=function($e){return $e.split("").map(function(Se){return("0"+(255&Se.charCodeAt(0)).toString(16)).slice(-2)}).join("")},N.prototype.hexToBytes=function($e){for(var Se=[],Re=0;Re<$e.length;Re+=2)Se.push(String.fromCharCode(parseInt($e.substr(Re,2),16)));return Se.join("")},N.prototype.processOwnerPassword=function($e,Se){return I(S(Se).substr(0,5),$e)},N.prototype.encryptor=function($e,Se){var Re=S(this.encryptionKey+String.fromCharCode(255&$e,$e>>8&255,$e>>16&255,255&Se,Se>>8&255)).substr(0,10);return function(je){return I(Re,je)}},P.prototype.equals=function($e){var Se,Re="id,objectNumber,equals";if(!$e||C()($e)!==C()(this))return!1;var je=0;for(Se in this)if(!(Re.indexOf(Se)>=0)){if(this.hasOwnProperty(Se)&&!$e.hasOwnProperty(Se))return!1;if(this[Se]!==$e[Se])return!1;je++}for(Se in $e)$e.hasOwnProperty(Se)&&Re.indexOf(Se)<0&&je--;return je===0},j.API={events:[]},j.version="2.5.1";var W=j.API,V=1,z=function(Se){return Se.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Y=function(Se){return Se.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},$=function(Se){return Se.toFixed(2)},ue=function(Se){return Se.toFixed(5)};W.__acroform__={};var ne=function(Se,Re){Se.prototype=Object.create(Re.prototype),Se.prototype.constructor=Se},ge=function(Se){return Se*V},Oe=function(Se){var Re=new xe,je=X.internal.getHeight(Se)||0,Ye=X.internal.getWidth(Se)||0;return Re.BBox=[0,0,Number($(Ye)),Number($(je))],Re},De=W.__acroform__.setBit=function($e,Se){if($e=$e||0,Se=Se||0,isNaN($e)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return $e|=1<<Se},He=W.__acroform__.clearBit=function($e,Se){if($e=$e||0,Se=Se||0,isNaN($e)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return $e&=~(1<<Se)},pe=W.__acroform__.getBit=function($e,Se){if(isNaN($e)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return($e&1<<Se)==0?0:1},Ue=W.__acroform__.getBitForPdf=function($e,Se){if(isNaN($e)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return pe($e,Se-1)},oe=W.__acroform__.setBitForPdf=function($e,Se){if(isNaN($e)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return De($e,Se-1)},ee=W.__acroform__.clearBitForPdf=function($e,Se){if(isNaN($e)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return He($e,Se-1)},Xe=W.__acroform__.calculateCoordinates=function($e,Se){var Re=Se.internal.getHorizontalCoordinate,je=Se.internal.getVerticalCoordinate,Ye=$e[0],Ve=$e[1],qe=$e[2],xt=$e[3],ct={};return ct.lowerLeft_X=Re(Ye)||0,ct.lowerLeft_Y=je(Ve+xt)||0,ct.upperRight_X=Re(Ye+qe)||0,ct.upperRight_Y=je(Ve)||0,[Number($(ct.lowerLeft_X)),Number($(ct.lowerLeft_Y)),Number($(ct.upperRight_X)),Number($(ct.upperRight_Y))]},se=function(Se){if(Se.appearanceStreamContent)return Se.appearanceStreamContent;if(Se.V||Se.DV){var Re=[],je=Se._V||Se.DV,Ye=Q(Se,je),Ve=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id;Re.push("/Tx BMC"),Re.push("q"),Re.push("BT"),Re.push(Se.scope.__private__.encodeColorString(Se.color)),Re.push("/"+Ve+" "+$(Ye.fontSize)+" Tf"),Re.push("1 0 0 1 0 0 Tm"),Re.push(Ye.text),Re.push("ET"),Re.push("Q"),Re.push("EMC");var qe=Oe(Se);return qe.scope=Se.scope,qe.stream=Re.join(`
|
|
|
`),qe}},Q=function(Se,Re){var je=Se.fontSize===0?Se.maxFontSize:Se.fontSize,Ye={text:"",fontSize:""},Ve=(Re=(Re=Re.substr(0,1)=="("?Re.substr(1):Re).substr(Re.length-1)==")"?Re.substr(0,Re.length-1):Re).split(" ");Ve=Se.multiline?Ve.map(function(Lt){return Lt.split(`
|
|
|
`)}):Ve.map(function(Lt){return[Lt]});var qe=je,xt=X.internal.getHeight(Se)||0;xt=xt<0?-xt:xt;var ct=X.internal.getWidth(Se)||0;ct=ct<0?-ct:ct;var Jt=function(kt,yt,Qt){if(kt+1<Ve.length){var tr=yt+" "+Ve[kt+1][0];return G(tr,Se,Qt).width<=ct-4}return!1};qe++;e:for(;qe>0;){Re="",qe--;var Rr,Ir,Xr=G("3",Se,qe).height,qt=Se.multiline?xt-qe:(xt-Xr)/2,pn=qt+=2,fr=0,mn=0,en=0;if(qe<=0){Re=`(...) Tj
|
|
|
`,Re+="% Width of Text: "+G(Re,Se,qe=12).width+", FieldWidth:"+ct+`
|
|
|
`;break}for(var kr="",Gn=0,di=0;di<Ve.length;di++)if(Ve.hasOwnProperty(di)){var _i=!1;if(Ve[di].length!==1&&en!==Ve[di].length-1){if((Xr+2)*(Gn+2)+2>xt)continue e;kr+=Ve[di][en],_i=!0,mn=di,di--}else{kr=(kr+=Ve[di][en]+" ").substr(kr.length-1)==" "?kr.substr(0,kr.length-1):kr;var Br=parseInt(di),sn=Jt(Br,kr,qe),Sn=di>=Ve.length-1;if(sn&&!Sn){kr+=" ",en=0;continue}if(sn||Sn){if(Sn)mn=Br;else if(Se.multiline&&(Xr+2)*(Gn+2)+2>xt)continue e}else{if(!Se.multiline)continue e;if((Xr+2)*(Gn+2)+2>xt)continue e;mn=Br}}for(var Pt="",gt=fr;gt<=mn;gt++){var Et=Ve[gt];if(Se.multiline){if(gt===mn){Pt+=Et[en]+" ",en=(en+1)%Et.length;continue}if(gt===fr){Pt+=Et[Et.length-1]+" ";continue}}Pt+=Et[0]+" "}switch(Pt=Pt.substr(Pt.length-1)==" "?Pt.substr(0,Pt.length-1):Pt,Ir=G(Pt,Se,qe).width,Se.textAlign){case"right":Rr=ct-Ir-2;break;case"center":Rr=(ct-Ir)/2;break;case"left":default:Rr=2}Re+=$(Rr)+" "+$(pn)+` Td
|
|
|
`,Re+="("+z(Pt)+`) Tj
|
|
|
`,Re+=-$(Rr)+` 0 Td
|
|
|
`,pn=-(qe+2),Ir=0,fr=_i?mn:mn+1,Gn++,kr=""}break}return Ye.text=Re,Ye.fontSize=qe,Ye},G=function(Se,Re,je){var Ye=Re.scope.internal.getFont(Re.fontName,Re.fontStyle),Ve=Re.scope.getStringUnitWidth(Se,{font:Ye,fontSize:parseFloat(je),charSpace:0})*parseFloat(je);return{height:Re.scope.getStringUnitWidth("3",{font:Ye,fontSize:parseFloat(je),charSpace:0})*parseFloat(je)*1.5,width:Ve}},J={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ve=function(Se,Re){var je={type:"reference",object:Se};Re.internal.getPageInfo(Se.page).pageContext.annotations.find(function(Ye){return Ye.type===je.type&&Ye.object===je.object})===void 0&&Re.internal.getPageInfo(Se.page).pageContext.annotations.push(je)},de=function(Se,Re){for(var je in Se)if(Se.hasOwnProperty(je)){var Ye=je,Ve=Se[je];Re.internal.newObjectDeferredBegin(Ve.objId,!0),C()(Ve)==="object"&&typeof Ve.putStream=="function"&&Ve.putStream(),delete Se[Ye]}},Ce=function(Se,Re){if(Re.scope=Se,Se.internal!==void 0&&(Se.internal.acroformPlugin===void 0||Se.internal.acroformPlugin.isInitialized===!1)){if(ot.FieldNum=0,Se.internal.acroformPlugin=JSON.parse(JSON.stringify(J)),Se.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");V=Se.internal.scaleFactor,Se.internal.acroformPlugin.acroFormDictionaryRoot=new Qe,Se.internal.acroformPlugin.acroFormDictionaryRoot.scope=Se,Se.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Se.internal.events.subscribe("postPutResources",function(){!function(je){je.internal.events.unsubscribe(je.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete je.internal.acroformPlugin.acroFormDictionaryRoot._eventID,je.internal.acroformPlugin.printedOut=!0}(Se)}),Se.internal.events.subscribe("buildDocument",function(){!function(je){je.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ye=je.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ve in Ye)if(Ye.hasOwnProperty(Ve)){var qe=Ye[Ve];qe.objId=void 0,qe.hasAnnotation&&ve(qe,je)}}(Se)}),Se.internal.events.subscribe("putCatalog",function(){!function(je){if(je.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");je.internal.write("/AcroForm "+je.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Se)}),Se.internal.events.subscribe("postPutPages",function(je){!function(Ye,Ve){var qe=!Ye;for(var xt in Ye||(Ve.internal.newObjectDeferredBegin(Ve.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ve.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ye=Ye||Ve.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ye.hasOwnProperty(xt)){var ct=Ye[xt],Jt=[],Rr=ct.Rect;if(ct.Rect&&(ct.Rect=Xe(ct.Rect,Ve)),Ve.internal.newObjectDeferredBegin(ct.objId,!0),ct.DA=X.createDefaultAppearanceStream(ct),C()(ct)==="object"&&typeof ct.getKeyValueListForStream=="function"&&(Jt=ct.getKeyValueListForStream()),ct.Rect=Rr,ct.hasAppearanceStream&&!ct.appearanceStreamContent){var Ir=se(ct);Jt.push({key:"AP",value:"<</N "+Ir+">>"}),Ve.internal.acroformPlugin.xForms.push(Ir)}if(ct.appearanceStreamContent){var Xr="";for(var qt in ct.appearanceStreamContent)if(ct.appearanceStreamContent.hasOwnProperty(qt)){var pn=ct.appearanceStreamContent[qt];if(Xr+="/"+qt+" ",Xr+="<<",Object.keys(pn).length>=1||Array.isArray(pn)){for(var xt in pn)if(pn.hasOwnProperty(xt)){var fr=pn[xt];typeof fr=="function"&&(fr=fr.call(Ve,ct)),Xr+="/"+xt+" "+fr+" ",Ve.internal.acroformPlugin.xForms.indexOf(fr)>=0||Ve.internal.acroformPlugin.xForms.push(fr)}}else typeof(fr=pn)=="function"&&(fr=fr.call(Ve,ct)),Xr+="/"+xt+" "+fr,Ve.internal.acroformPlugin.xForms.indexOf(fr)>=0||Ve.internal.acroformPlugin.xForms.push(fr);Xr+=">>"}Jt.push({key:"AP",value:`<<
|
|
|
`+Xr+">>"})}Ve.internal.putStream({additionalKeyValues:Jt,objectId:ct.objId}),Ve.internal.out("endobj")}qe&&de(Ve.internal.acroformPlugin.xForms,Ve)}(je,Se)}),Se.internal.acroformPlugin.isInitialized=!0}},Ee=W.__acroform__.arrayToPdfArray=function($e,Se,Re){var je=function(xt){return xt};if(Array.isArray($e)){for(var Ye="[",Ve=0;Ve<$e.length;Ve++)switch(Ve!==0&&(Ye+=" "),C()($e[Ve])){case"boolean":case"number":case"object":Ye+=$e[Ve].toString();break;case"string":$e[Ve].substr(0,1)!=="/"?(Se!==void 0&&Re&&(je=Re.internal.getEncryptor(Se)),Ye+="("+z(je($e[Ve].toString()))+")"):Ye+=$e[Ve].toString()}return Ye+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},le=function(Se,Re,je){var Ye=function(qe){return qe};return Re!==void 0&&je&&(Ye=je.internal.getEncryptor(Re)),(Se=Se||"").toString(),Se="("+z(Ye(Se))+")"},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(Re){this._objId=Re}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fe.prototype.toString=function(){return this.objId+" 0 R"},fe.prototype.putStream=function(){var $e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:$e,objectId:this.objId}),this.scope.internal.out("endobj")},fe.prototype.getKeyValueListForStream=function(){var $e=[],Se=Object.getOwnPropertyNames(this).filter(function(Ve){return Ve!="content"&&Ve!="appearanceStreamContent"&&Ve!="scope"&&Ve!="objId"&&Ve.substring(0,1)!="_"});for(var Re in Se)if(Object.getOwnPropertyDescriptor(this,Se[Re]).configurable===!1){var je=Se[Re],Ye=this[je];Ye&&(Array.isArray(Ye)?$e.push({key:je,value:Ee(Ye,this.objId,this.scope)}):Ye instanceof fe?(Ye.scope=this.scope,$e.push({key:je,value:Ye.objId+" 0 R"})):typeof Ye!="function"&&$e.push({key:je,value:Ye}))}return $e};var xe=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 Se,Re=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Re},set:function(Ye){Re=Ye}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Ye){Se=Ye.trim()},get:function(){return Se||null}})};ne(xe,fe);var Qe=function(){fe.call(this);var Se,Re=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return Re.length>0?Re:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Re}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Se){var Ye=function(qe){return qe};return this.scope&&(Ye=this.scope.internal.getEncryptor(this.objId)),"("+z(Ye(Se))+")"}},set:function(Ye){Se=Ye}})};ne(Qe,fe);var ot=function $e(){fe.call(this);var Se=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(kr){if(isNaN(kr))throw new Error('Invalid value "'+kr+'" for attribute F supplied.');Se=kr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(Se,3))},set:function(kr){Boolean(kr)===!0?this.F=oe(Se,3):this.F=ee(Se,3)}});var Re=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Re},set:function(kr){if(isNaN(kr))throw new Error('Invalid value "'+kr+'" for attribute Ff supplied.');Re=kr}});var je=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(je.length!==0)return je},set:function(kr){je=kr!==void 0?kr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!je||isNaN(je[0])?0:je[0]},set:function(kr){je[0]=kr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!je||isNaN(je[1])?0:je[1]},set:function(kr){je[1]=kr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!je||isNaN(je[2])?0:je[2]},set:function(kr){je[2]=kr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!je||isNaN(je[3])?0:je[3]},set:function(kr){je[3]=kr}});var Ye="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ye},set:function(kr){switch(kr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ye=kr;break;default:throw new Error('Invalid value "'+kr+'" for attribute FT supplied.')}}});var Ve=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Ve||Ve.length<1){if(this instanceof Tt)return;Ve="FieldObject"+$e.FieldNum++}var kr=function(di){return di};return this.scope&&(kr=this.scope.internal.getEncryptor(this.objId)),"("+z(kr(Ve))+")"},set:function(kr){Ve=kr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Ve},set:function(kr){Ve=kr}});var qe="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return qe},set:function(kr){qe=kr}});var xt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return xt},set:function(kr){xt=kr}});var ct=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ct},set:function(kr){ct=kr}});var Jt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Jt===void 0?50/V:Jt},set:function(kr){Jt=kr}});var Rr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Rr},set:function(kr){Rr=kr}});var Ir="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ir||this instanceof Tt||this instanceof Be))return le(Ir,this.objId,this.scope)},set:function(kr){kr=kr.toString(),Ir=kr}});var Xr=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Xr)return this instanceof nt==!1?le(Xr,this.objId,this.scope):Xr},set:function(kr){kr=kr.toString(),Xr=this instanceof nt==!1?kr.substr(0,1)==="("?Y(kr.substr(1,kr.length-2)):Y(kr):kr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof nt==!0?Y(Xr.substr(1,Xr.length-1)):Xr},set:function(kr){kr=kr.toString(),Xr=this instanceof nt==!0?"/"+kr:kr}});var qt=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(qt)return qt},set:function(kr){this.V=kr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(qt)return this instanceof nt==!1?le(qt,this.objId,this.scope):qt},set:function(kr){kr=kr.toString(),qt=this instanceof nt==!1?kr.substr(0,1)==="("?Y(kr.substr(1,kr.length-2)):Y(kr):kr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof nt==!0?Y(qt.substr(1,qt.length-1)):qt},set:function(kr){kr=kr.toString(),qt=this instanceof nt==!0?"/"+kr:kr}}),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 pn,fr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return fr},set:function(kr){kr=Boolean(kr),fr=kr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(pn)return pn},set:function(kr){pn=kr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,1))},set:function(kr){Boolean(kr)===!0?this.Ff=oe(this.Ff,1):this.Ff=ee(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,2))},set:function(kr){Boolean(kr)===!0?this.Ff=oe(this.Ff,2):this.Ff=ee(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,3))},set:function(kr){Boolean(kr)===!0?this.Ff=oe(this.Ff,3):this.Ff=ee(this.Ff,3)}});var mn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(mn!==null)return mn},set:function(kr){if([0,1,2].indexOf(kr)===-1)throw new Error('Invalid value "'+kr+'" for attribute Q supplied.');mn=kr}}),Object.defineProperty(this,"textAlign",{get:function(){var kr;switch(mn){case 0:default:kr="left";break;case 1:kr="center";break;case 2:kr="right"}return kr},configurable:!0,enumerable:!0,set:function(kr){switch(kr){case"right":case 2:mn=2;break;case"center":case 1:mn=1;break;case"left":case 0:default:mn=0}}})};ne(ot,fe);var Je=function(){ot.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Se=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(Ye){Se=Ye}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(Ye){Se=Ye}});var Re=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ee(Re,this.objId,this.scope)},set:function(Ye){var Ve,qe;qe=[],typeof(Ve=Ye)=="string"&&(qe=function(xt,ct,Jt){Jt||(Jt=1);for(var Rr,Ir=[];Rr=ct.exec(xt);)Ir.push(Rr[Jt]);return Ir}(Ve,/\((.*?)\)/g)),Re=qe}}),this.getOptions=function(){return Re},this.setOptions=function(je){Re=je,this.sort&&Re.sort()},this.addOption=function(je){je=(je=je||"").toString(),Re.push(je),this.sort&&Re.sort()},this.removeOption=function(je,Ye){for(Ye=Ye||!1,je=(je=je||"").toString();Re.indexOf(je)!==-1&&(Re.splice(Re.indexOf(je),1),Ye!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,18))},set:function(Ye){Boolean(Ye)===!0?this.Ff=oe(this.Ff,18):this.Ff=ee(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,19))},set:function(Ye){this.combo===!0&&(Boolean(Ye)===!0?this.Ff=oe(this.Ff,19):this.Ff=ee(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,20))},set:function(Ye){Boolean(Ye)===!0?(this.Ff=oe(this.Ff,20),Re.sort()):this.Ff=ee(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,22))},set:function(Ye){Boolean(Ye)===!0?this.Ff=oe(this.Ff,22):this.Ff=ee(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,23))},set:function(Ye){Boolean(Ye)===!0?this.Ff=oe(this.Ff,23):this.Ff=ee(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,27))},set:function(Ye){Boolean(Ye)===!0?this.Ff=oe(this.Ff,27):this.Ff=ee(this.Ff,27)}}),this.hasAppearanceStream=!1};ne(Je,ot);var Te=function(){Je.call(this),this.fontName="helvetica",this.combo=!1};ne(Te,Je);var et=function(){Te.call(this),this.combo=!0};ne(et,Te);var ze=function(){et.call(this),this.edit=!0};ne(ze,et);var nt=function(){ot.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,15))},set:function(Ye){Boolean(Ye)===!0?this.Ff=oe(this.Ff,15):this.Ff=ee(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,16))},set:function(Ye){Boolean(Ye)===!0?this.Ff=oe(this.Ff,16):this.Ff=ee(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,17))},set:function(Ye){Boolean(Ye)===!0?this.Ff=oe(this.Ff,17):this.Ff=ee(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,26))},set:function(Ye){Boolean(Ye)===!0?this.Ff=oe(this.Ff,26):this.Ff=ee(this.Ff,26)}});var Se,Re={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ye=function(ct){return ct};if(this.scope&&(Ye=this.scope.internal.getEncryptor(this.objId)),Object.keys(Re).length!==0){var Ve,qe=[];for(Ve in qe.push("<<"),Re)qe.push("/"+Ve+" ("+z(Ye(Re[Ve]))+")");return qe.push(">>"),qe.join(`
|
|
|
`)}},set:function(Ye){C()(Ye)==="object"&&(Re=Ye)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Re.CA||""},set:function(Ye){typeof Ye=="string"&&(Re.CA=Ye)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(Ye){Se=Ye}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Se.substr(1,Se.length-1)},set:function(Ye){Se="/"+Ye}})};ne(nt,ot);var Ot=function(){nt.call(this),this.pushButton=!0};ne(Ot,nt);var Ct=function(){nt.call(this),this.radio=!0,this.pushButton=!1;var Se=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(je){Se=je!==void 0?je:[]}})};ne(Ct,nt);var Tt=function(){var Se,Re;ot.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(qe){Se=qe}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Re},set:function(qe){Re=qe}});var je,Ye={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var qe=function(Rr){return Rr};this.scope&&(qe=this.scope.internal.getEncryptor(this.objId));var xt,ct=[];for(xt in ct.push("<<"),Ye)ct.push("/"+xt+" ("+z(qe(Ye[xt]))+")");return ct.push(">>"),ct.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 je},set:function(qe){je=qe}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return je.substr(1,je.length-1)},set:function(qe){je="/"+qe}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=X.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ne(Tt,ot),Ct.prototype.setAppearance=function($e){if(!("createAppearanceStream"in $e)||!("getCA"in $e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Se in this.Kids)if(this.Kids.hasOwnProperty(Se)){var Re=this.Kids[Se];Re.appearanceStreamContent=$e.createAppearanceStream(Re.optionName),Re.caption=$e.getCA()}},Ct.prototype.createOption=function($e){var Se=new Tt;return Se.Parent=this,Se.optionName=$e,this.Kids.push(Se),Fe.call(this.scope,Se),Se};var Dt=function(){nt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=X.CheckBox.createAppearanceStream()};ne(Dt,nt);var Be=function(){ot.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,13))},set:function(je){Boolean(je)===!0?this.Ff=oe(this.Ff,13):this.Ff=ee(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,21))},set:function(je){Boolean(je)===!0?this.Ff=oe(this.Ff,21):this.Ff=ee(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,23))},set:function(je){Boolean(je)===!0?this.Ff=oe(this.Ff,23):this.Ff=ee(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,24))},set:function(je){Boolean(je)===!0?this.Ff=oe(this.Ff,24):this.Ff=ee(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,25))},set:function(je){Boolean(je)===!0?this.Ff=oe(this.Ff,25):this.Ff=ee(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,26))},set:function(je){Boolean(je)===!0?this.Ff=oe(this.Ff,26):this.Ff=ee(this.Ff,26)}});var Se=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(je){Se=je}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(je){Number.isInteger(je)&&(Se=je)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ne(Be,ot);var ie=function(){Be.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ue(this.Ff,14))},set:function(Re){Boolean(Re)===!0?this.Ff=oe(this.Ff,14):this.Ff=ee(this.Ff,14)}}),this.password=!0};ne(ie,Be);var X={CheckBox:{createAppearanceStream:function(){return{N:{On:X.CheckBox.YesNormal},D:{On:X.CheckBox.YesPushDown,Off:X.CheckBox.OffPushDown}}},YesPushDown:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=[],Ye=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,Ve=Se.scope.__private__.encodeColorString(Se.color),qe=Q(Se,Se.caption);return je.push("0.749023 g"),je.push("0 0 "+$(X.internal.getWidth(Se))+" "+$(X.internal.getHeight(Se))+" re"),je.push("f"),je.push("BMC"),je.push("q"),je.push("0 0 1 rg"),je.push("/"+Ye+" "+$(qe.fontSize)+" Tf "+Ve),je.push("BT"),je.push(qe.text),je.push("ET"),je.push("Q"),je.push("EMC"),Re.stream=je.join(`
|
|
|
`),Re},YesNormal:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,Ye=Se.scope.__private__.encodeColorString(Se.color),Ve=[],qe=X.internal.getHeight(Se),xt=X.internal.getWidth(Se),ct=Q(Se,Se.caption);return Ve.push("1 g"),Ve.push("0 0 "+$(xt)+" "+$(qe)+" re"),Ve.push("f"),Ve.push("q"),Ve.push("0 0 1 rg"),Ve.push("0 0 "+$(xt-1)+" "+$(qe-1)+" re"),Ve.push("W"),Ve.push("n"),Ve.push("0 g"),Ve.push("BT"),Ve.push("/"+je+" "+$(ct.fontSize)+" Tf "+Ye),Ve.push(ct.text),Ve.push("ET"),Ve.push("Q"),Re.stream=Ve.join(`
|
|
|
`),Re},OffPushDown:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=[];return je.push("0.749023 g"),je.push("0 0 "+$(X.internal.getWidth(Se))+" "+$(X.internal.getHeight(Se))+" re"),je.push("f"),Re.stream=je.join(`
|
|
|
`),Re}},RadioButton:{Circle:{createAppearanceStream:function(Se){var Re={D:{Off:X.RadioButton.Circle.OffPushDown},N:{}};return Re.N[Se]=X.RadioButton.Circle.YesNormal,Re.D[Se]=X.RadioButton.Circle.YesPushDown,Re},getCA:function(){return"l"},YesNormal:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=[],Ye=X.internal.getWidth(Se)<=X.internal.getHeight(Se)?X.internal.getWidth(Se)/4:X.internal.getHeight(Se)/4;Ye=Number((.9*Ye).toFixed(5));var Ve=X.internal.Bezier_C,qe=Number((Ye*Ve).toFixed(5));return je.push("q"),je.push("1 0 0 1 "+ue(X.internal.getWidth(Se)/2)+" "+ue(X.internal.getHeight(Se)/2)+" cm"),je.push(Ye+" 0 m"),je.push(Ye+" "+qe+" "+qe+" "+Ye+" 0 "+Ye+" c"),je.push("-"+qe+" "+Ye+" -"+Ye+" "+qe+" -"+Ye+" 0 c"),je.push("-"+Ye+" -"+qe+" -"+qe+" -"+Ye+" 0 -"+Ye+" c"),je.push(qe+" -"+Ye+" "+Ye+" -"+qe+" "+Ye+" 0 c"),je.push("f"),je.push("Q"),Re.stream=je.join(`
|
|
|
`),Re},YesPushDown:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=[],Ye=X.internal.getWidth(Se)<=X.internal.getHeight(Se)?X.internal.getWidth(Se)/4:X.internal.getHeight(Se)/4;Ye=Number((.9*Ye).toFixed(5));var Ve=Number((2*Ye).toFixed(5)),qe=Number((Ve*X.internal.Bezier_C).toFixed(5)),xt=Number((Ye*X.internal.Bezier_C).toFixed(5));return je.push("0.749023 g"),je.push("q"),je.push("1 0 0 1 "+ue(X.internal.getWidth(Se)/2)+" "+ue(X.internal.getHeight(Se)/2)+" cm"),je.push(Ve+" 0 m"),je.push(Ve+" "+qe+" "+qe+" "+Ve+" 0 "+Ve+" c"),je.push("-"+qe+" "+Ve+" -"+Ve+" "+qe+" -"+Ve+" 0 c"),je.push("-"+Ve+" -"+qe+" -"+qe+" -"+Ve+" 0 -"+Ve+" c"),je.push(qe+" -"+Ve+" "+Ve+" -"+qe+" "+Ve+" 0 c"),je.push("f"),je.push("Q"),je.push("0 g"),je.push("q"),je.push("1 0 0 1 "+ue(X.internal.getWidth(Se)/2)+" "+ue(X.internal.getHeight(Se)/2)+" cm"),je.push(Ye+" 0 m"),je.push(Ye+" "+xt+" "+xt+" "+Ye+" 0 "+Ye+" c"),je.push("-"+xt+" "+Ye+" -"+Ye+" "+xt+" -"+Ye+" 0 c"),je.push("-"+Ye+" -"+xt+" -"+xt+" -"+Ye+" 0 -"+Ye+" c"),je.push(xt+" -"+Ye+" "+Ye+" -"+xt+" "+Ye+" 0 c"),je.push("f"),je.push("Q"),Re.stream=je.join(`
|
|
|
`),Re},OffPushDown:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=[],Ye=X.internal.getWidth(Se)<=X.internal.getHeight(Se)?X.internal.getWidth(Se)/4:X.internal.getHeight(Se)/4;Ye=Number((.9*Ye).toFixed(5));var Ve=Number((2*Ye).toFixed(5)),qe=Number((Ve*X.internal.Bezier_C).toFixed(5));return je.push("0.749023 g"),je.push("q"),je.push("1 0 0 1 "+ue(X.internal.getWidth(Se)/2)+" "+ue(X.internal.getHeight(Se)/2)+" cm"),je.push(Ve+" 0 m"),je.push(Ve+" "+qe+" "+qe+" "+Ve+" 0 "+Ve+" c"),je.push("-"+qe+" "+Ve+" -"+Ve+" "+qe+" -"+Ve+" 0 c"),je.push("-"+Ve+" -"+qe+" -"+qe+" -"+Ve+" 0 -"+Ve+" c"),je.push(qe+" -"+Ve+" "+Ve+" -"+qe+" "+Ve+" 0 c"),je.push("f"),je.push("Q"),Re.stream=je.join(`
|
|
|
`),Re}},Cross:{createAppearanceStream:function(Se){var Re={D:{Off:X.RadioButton.Cross.OffPushDown},N:{}};return Re.N[Se]=X.RadioButton.Cross.YesNormal,Re.D[Se]=X.RadioButton.Cross.YesPushDown,Re},getCA:function(){return"8"},YesNormal:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=[],Ye=X.internal.calculateCross(Se);return je.push("q"),je.push("1 1 "+$(X.internal.getWidth(Se)-2)+" "+$(X.internal.getHeight(Se)-2)+" re"),je.push("W"),je.push("n"),je.push($(Ye.x1.x)+" "+$(Ye.x1.y)+" m"),je.push($(Ye.x2.x)+" "+$(Ye.x2.y)+" l"),je.push($(Ye.x4.x)+" "+$(Ye.x4.y)+" m"),je.push($(Ye.x3.x)+" "+$(Ye.x3.y)+" l"),je.push("s"),je.push("Q"),Re.stream=je.join(`
|
|
|
`),Re},YesPushDown:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=X.internal.calculateCross(Se),Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+$(X.internal.getWidth(Se))+" "+$(X.internal.getHeight(Se))+" re"),Ye.push("f"),Ye.push("q"),Ye.push("1 1 "+$(X.internal.getWidth(Se)-2)+" "+$(X.internal.getHeight(Se)-2)+" re"),Ye.push("W"),Ye.push("n"),Ye.push($(je.x1.x)+" "+$(je.x1.y)+" m"),Ye.push($(je.x2.x)+" "+$(je.x2.y)+" l"),Ye.push($(je.x4.x)+" "+$(je.x4.y)+" m"),Ye.push($(je.x3.x)+" "+$(je.x3.y)+" l"),Ye.push("s"),Ye.push("Q"),Re.stream=Ye.join(`
|
|
|
`),Re},OffPushDown:function(Se){var Re=Oe(Se);Re.scope=Se.scope;var je=[];return je.push("0.749023 g"),je.push("0 0 "+$(X.internal.getWidth(Se))+" "+$(X.internal.getHeight(Se))+" re"),je.push("f"),Re.stream=je.join(`
|
|
|
`),Re}}},createDefaultAppearanceStream:function(Se){var Re=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,je=Se.scope.__private__.encodeColorString(Se.color);return"/"+Re+" "+Se.fontSize+" Tf "+je}};X.internal={Bezier_C:.551915024494,calculateCross:function(Se){var Re=X.internal.getWidth(Se),je=X.internal.getHeight(Se),Ye=Math.min(Re,je);return{x1:{x:(Re-Ye)/2,y:(je-Ye)/2+Ye},x2:{x:(Re-Ye)/2+Ye,y:(je-Ye)/2},x3:{x:(Re-Ye)/2,y:(je-Ye)/2},x4:{x:(Re-Ye)/2+Ye,y:(je-Ye)/2+Ye}}}},X.internal.getWidth=function($e){var Se=0;return C()($e)==="object"&&(Se=ge($e.Rect[2])),Se},X.internal.getHeight=function($e){var Se=0;return C()($e)==="object"&&(Se=ge($e.Rect[3])),Se};var Fe=W.addField=function($e){if(Ce(this,$e),!($e instanceof ot))throw new Error("Invalid argument passed to jsPDF.addField.");var Se;return(Se=$e).scope.internal.acroformPlugin.printedOut&&(Se.scope.internal.acroformPlugin.printedOut=!1,Se.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Se.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Se),$e.page=$e.scope.internal.getCurrentPageInfo().pageNumber,this};W.AcroFormChoiceField=Je,W.AcroFormListBox=Te,W.AcroFormComboBox=et,W.AcroFormEditBox=ze,W.AcroFormButton=nt,W.AcroFormPushButton=Ot,W.AcroFormRadioButton=Ct,W.AcroFormCheckBox=Dt,W.AcroFormTextField=Be,W.AcroFormPasswordField=ie,W.AcroFormAppearance=X,W.AcroForm={ChoiceField:Je,ListBox:Te,ComboBox:et,EditBox:ze,Button:nt,PushButton:Ot,RadioButton:Ct,CheckBox:Dt,TextField:Be,PasswordField:ie,Appearance:X},j.AcroForm={ChoiceField:Je,ListBox:Te,ComboBox:et,EditBox:ze,Button:nt,PushButton:Ot,RadioButton:Ct,CheckBox:Dt,TextField:Be,PasswordField:ie,Appearance:X};var Ne=j.AcroForm;function q($e){return $e.reduce(function(Se,Re,je){return Se[Re]=je,Se},{})}!function($e){$e.__addimage__={};var Se="UNKNOWN",Re={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]]},je=$e.__addimage__.getImageFileTypeByImageData=function(Et,Lt){var kt,yt,Qt,tr,ir,yr=Se;if((Lt=Lt||Se)==="RGBA"||Et.data!==void 0&&Et.data instanceof Uint8ClampedArray&&"height"in Et&&"width"in Et)return"RGBA";if(Br(Et))for(ir in Re)for(Qt=Re[ir],kt=0;kt<Qt.length;kt+=1){for(tr=!0,yt=0;yt<Qt[kt].length;yt+=1)if(Qt[kt][yt]!==void 0&&Qt[kt][yt]!==Et[yt]){tr=!1;break}if(tr===!0){yr=ir;break}}else for(ir in Re)for(Qt=Re[ir],kt=0;kt<Qt.length;kt+=1){for(tr=!0,yt=0;yt<Qt[kt].length;yt+=1)if(Qt[kt][yt]!==void 0&&Qt[kt][yt]!==Et.charCodeAt(yt)){tr=!1;break}if(tr===!0){yr=ir;break}}return yr===Se&&Lt!==Se&&(yr=Lt),yr},Ye=function Et(Lt){for(var kt=this.internal.write,yt=this.internal.putStream,Qt=(0,this.internal.getFilters)();Qt.indexOf("FlateEncode")!==-1;)Qt.splice(Qt.indexOf("FlateEncode"),1);Lt.objectId=this.internal.newObject();var tr=[];if(tr.push({key:"Type",value:"/XObject"}),tr.push({key:"Subtype",value:"/Image"}),tr.push({key:"Width",value:Lt.width}),tr.push({key:"Height",value:Lt.height}),Lt.colorSpace===mn.INDEXED?tr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Lt.palette.length/3-1)+" "+("sMask"in Lt&&Lt.sMask!==void 0?Lt.objectId+2:Lt.objectId+1)+" 0 R]"}):(tr.push({key:"ColorSpace",value:"/"+Lt.colorSpace}),Lt.colorSpace===mn.DEVICE_CMYK&&tr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),tr.push({key:"BitsPerComponent",value:Lt.bitsPerComponent}),"decodeParameters"in Lt&&Lt.decodeParameters!==void 0&&tr.push({key:"DecodeParms",value:"<<"+Lt.decodeParameters+">>"}),"transparency"in Lt&&Array.isArray(Lt.transparency)){for(var ir="",yr=0,xn=Lt.transparency.length;yr<xn;yr++)ir+=Lt.transparency[yr]+" "+Lt.transparency[yr]+" ";tr.push({key:"Mask",value:"["+ir+"]"})}Lt.sMask!==void 0&&tr.push({key:"SMask",value:Lt.objectId+1+" 0 R"});var vn=Lt.filter!==void 0?["/"+Lt.filter]:void 0;if(yt({data:Lt.data,additionalKeyValues:tr,alreadyAppliedFilters:vn,objectId:Lt.objectId}),kt("endobj"),"sMask"in Lt&&Lt.sMask!==void 0){var Wn="/Predictor "+Lt.predictor+" /Colors 1 /BitsPerComponent "+Lt.bitsPerComponent+" /Columns "+Lt.width,Yr={width:Lt.width,height:Lt.height,colorSpace:"DeviceGray",bitsPerComponent:Lt.bitsPerComponent,decodeParameters:Wn,data:Lt.sMask};"filter"in Lt&&(Yr.filter=Lt.filter),Et.call(this,Yr)}if(Lt.colorSpace===mn.INDEXED){var xr=this.internal.newObject();yt({data:Sn(new Uint8Array(Lt.palette)),objectId:xr}),kt("endobj")}},Ve=function(){var Lt=this.internal.collections.addImage_images;for(var kt in Lt)Ye.call(this,Lt[kt])},qe=function(){var Lt,kt=this.internal.collections.addImage_images,yt=this.internal.write;for(var Qt in kt)yt("/I"+(Lt=kt[Qt]).index,Lt.objectId,"0","R")},xt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Ve),this.internal.events.subscribe("putXobjectDict",qe))},ct=function(){var Lt=this.internal.collections.addImage_images;return xt.call(this),Lt},Jt=function(){return Object.keys(this.internal.collections.addImage_images).length},Rr=function(Lt){return typeof $e["process"+Lt.toUpperCase()]=="function"},Ir=function(Lt){return C()(Lt)==="object"&&Lt.nodeType===1},Xr=function(Lt,kt){if(Lt.nodeName==="IMG"&&Lt.hasAttribute("src")){var yt=""+Lt.getAttribute("src");if(yt.indexOf("data:image/")===0)return i(unescape(yt).split("base64,").pop());var Qt=$e.loadFile(yt,!0);if(Qt!==void 0)return Qt}if(Lt.nodeName==="CANVAS"){if(Lt.width===0||Lt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Lt.width+", height: "+Lt.height);var tr;switch(kt){case"PNG":tr="image/png";break;case"WEBP":tr="image/webp";break;case"JPEG":case"JPG":default:tr="image/jpeg"}return i(Lt.toDataURL(tr,1).split("base64,").pop())}},qt=function(Lt){var kt=this.internal.collections.addImage_images;if(kt){for(var yt in kt)if(Lt===kt[yt].alias)return kt[yt]}},pn=function(Lt,kt,yt){return Lt||kt||(Lt=-96,kt=-96),Lt<0&&(Lt=-1*yt.width*72/Lt/this.internal.scaleFactor),kt<0&&(kt=-1*yt.height*72/kt/this.internal.scaleFactor),Lt===0&&(Lt=kt*yt.width/yt.height),kt===0&&(kt=Lt*yt.height/yt.width),[Lt,kt]},fr=function(Lt,kt,yt,Qt,tr,ir){var yr=pn.call(this,yt,Qt,tr),xn=this.internal.getCoordinateString,vn=this.internal.getVerticalCoordinateString,Wn=ct.call(this);if(yt=yr[0],Qt=yr[1],Wn[tr.index]=tr,ir){ir*=Math.PI/180;var Yr=Math.cos(ir),xr=Math.sin(ir),ln=function(Un){return Un.toFixed(4)},On=[ln(Yr),ln(xr),ln(-1*xr),ln(Yr),0,0,"cm"]}this.internal.write("q"),ir?(this.internal.write([1,"0","0",1,xn(Lt),vn(kt+Qt),"cm"].join(" ")),this.internal.write(On.join(" ")),this.internal.write([xn(yt),"0","0",xn(Qt),"0","0","cm"].join(" "))):this.internal.write([xn(yt),"0","0",xn(Qt),xn(Lt),vn(kt+Qt),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+tr.index+" Do"),this.internal.write("Q")},mn=$e.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"};$e.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 en=$e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},kr=$e.__addimage__.sHashCode=function(Et){var Lt,kt,yt=0;if(typeof Et=="string")for(kt=Et.length,Lt=0;Lt<kt;Lt++)yt=(yt<<5)-yt+Et.charCodeAt(Lt),yt|=0;else if(Br(Et))for(kt=Et.byteLength/2,Lt=0;Lt<kt;Lt++)yt=(yt<<5)-yt+Et[Lt],yt|=0;return yt},Gn=$e.__addimage__.validateStringAsBase64=function(Et){(Et=Et||"").toString().trim();var Lt=!0;return Et.length===0&&(Lt=!1),Et.length%4!=0&&(Lt=!1),/^[A-Za-z0-9+/]+$/.test(Et.substr(0,Et.length-2))===!1&&(Lt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Et.substr(-2))===!1&&(Lt=!1),Lt},di=$e.__addimage__.extractImageFromDataUrl=function(Et){var Lt=(Et=Et||"").split("base64,"),kt=null;if(Lt.length===2){var yt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Lt[0]);Array.isArray(yt)&&(kt={mimeType:yt[1],charset:yt[2],data:Lt[1]})}return kt},_i=$e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};$e.__addimage__.isArrayBuffer=function(Et){return _i()&&Et instanceof ArrayBuffer};var Br=$e.__addimage__.isArrayBufferView=function(Et){return _i()&&typeof Uint32Array!="undefined"&&(Et instanceof Int8Array||Et instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Et instanceof Uint8ClampedArray||Et instanceof Int16Array||Et instanceof Uint16Array||Et instanceof Int32Array||Et instanceof Uint32Array||Et instanceof Float32Array||Et instanceof Float64Array)},sn=$e.__addimage__.binaryStringToUint8Array=function(Et){for(var Lt=Et.length,kt=new Uint8Array(Lt),yt=0;yt<Lt;yt++)kt[yt]=Et.charCodeAt(yt);return kt},Sn=$e.__addimage__.arrayBufferToBinaryString=function(Et){for(var Lt="",kt=Br(Et)?Et:new Uint8Array(Et),yt=0;yt<kt.length;yt+=8192)Lt+=String.fromCharCode.apply(null,kt.subarray(yt,yt+8192));return Lt};$e.addImage=function(){var Et,Lt,kt,yt,Qt,tr,ir,yr,xn;if(typeof arguments[1]=="number"?(Lt=Se,kt=arguments[1],yt=arguments[2],Qt=arguments[3],tr=arguments[4],ir=arguments[5],yr=arguments[6],xn=arguments[7]):(Lt=arguments[1],kt=arguments[2],yt=arguments[3],Qt=arguments[4],tr=arguments[5],ir=arguments[6],yr=arguments[7],xn=arguments[8]),C()(Et=arguments[0])==="object"&&!Ir(Et)&&"imageData"in Et){var vn=Et;Et=vn.imageData,Lt=vn.format||Lt||Se,kt=vn.x||kt||0,yt=vn.y||yt||0,Qt=vn.w||vn.width||Qt,tr=vn.h||vn.height||tr,ir=vn.alias||ir,yr=vn.compression||yr,xn=vn.rotation||vn.angle||xn}var Wn=this.internal.getFilters();if(yr===void 0&&Wn.indexOf("FlateEncode")!==-1&&(yr="SLOW"),isNaN(kt)||isNaN(yt))throw new Error("Invalid coordinates passed to jsPDF.addImage");xt.call(this);var Yr=Pt.call(this,Et,Lt,ir,yr);return fr.call(this,kt,yt,Qt,tr,Yr,xn),this};var Pt=function(Lt,kt,yt,Qt){var tr,ir,yr;if(typeof Lt=="string"&&je(Lt)===Se){Lt=unescape(Lt);var xn=gt(Lt,!1);(xn!==""||(xn=$e.loadFile(Lt,!0))!==void 0)&&(Lt=xn)}if(Ir(Lt)&&(Lt=Xr(Lt,kt)),kt=je(Lt,kt),!Rr(kt))throw new Error("addImage does not support files of type '"+kt+"', please ensure that a plugin for '"+kt+"' support is added.");if(((yr=yt)==null||yr.length===0)&&(yt=function(vn){return typeof vn=="string"||Br(vn)?kr(vn):Br(vn.data)?kr(vn.data):null}(Lt)),(tr=qt.call(this,yt))||(_i()&&(Lt instanceof Uint8Array||kt==="RGBA"||(ir=Lt,Lt=sn(Lt))),tr=this["process"+kt.toUpperCase()](Lt,Jt.call(this),yt,function(vn){return vn&&typeof vn=="string"&&(vn=vn.toUpperCase()),vn in $e.image_compression?vn:en.NONE}(Qt),ir)),!tr)throw new Error("An unknown error occurred whilst processing the image.");return tr},gt=$e.__addimage__.convertBase64ToBinaryString=function(Et,Lt){var kt;Lt=typeof Lt!="boolean"||Lt;var yt,Qt="";if(typeof Et=="string"){yt=(kt=di(Et))!==null?kt.data:Et;try{Qt=i(yt)}catch(tr){if(Lt)throw Gn(yt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+tr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Qt};$e.getImageProperties=function(Et){var Lt,kt,yt="";if(Ir(Et)&&(Et=Xr(Et)),typeof Et=="string"&&je(Et)===Se&&((yt=gt(Et,!1))===""&&(yt=$e.loadFile(Et)||""),Et=yt),kt=je(Et),!Rr(kt))throw new Error("addImage does not support files of type '"+kt+"', please ensure that a plugin for '"+kt+"' support is added.");if(!_i()||Et instanceof Uint8Array||(Et=sn(Et)),!(Lt=this["process"+kt.toUpperCase()](Et)))throw new Error("An unknown error occurred whilst processing the image");return Lt.fileType=kt,Lt}}(j.API),function($e){var Se=function(je){if(je!==void 0&&je!="")return!0};j.API.events.push(["addPage",function(Re){this.internal.getPageInfo(Re.pageNumber).pageContext.annotations=[]}]),$e.events.push(["putPage",function(Re){for(var je,Ye,Ve,qe=this.internal.getCoordinateString,xt=this.internal.getVerticalCoordinateString,ct=this.internal.getPageInfoByObjId(Re.objId),Jt=Re.pageContext.annotations,Rr=!1,Ir=0;Ir<Jt.length&&!Rr;Ir++)switch((je=Jt[Ir]).type){case"link":(Se(je.options.url)||Se(je.options.pageNumber))&&(Rr=!0);break;case"reference":case"text":case"freetext":Rr=!0}if(Rr!=0){this.internal.write("/Annots [");for(var Xr=0;Xr<Jt.length;Xr++){je=Jt[Xr];var qt=this.internal.pdfEscape,pn=this.internal.getEncryptor(Re.objId);switch(je.type){case"reference":this.internal.write(" "+je.object.objId+" 0 R ");break;case"text":var fr=this.internal.newAdditionalObject(),mn=this.internal.newAdditionalObject(),en=this.internal.getEncryptor(fr.objId),kr=je.title||"Note";Ve="<</Type /Annot /Subtype /Text "+(Ye="/Rect ["+qe(je.bounds.x)+" "+xt(je.bounds.y+je.bounds.h)+" "+qe(je.bounds.x+je.bounds.w)+" "+xt(je.bounds.y)+"] ")+"/Contents ("+qt(en(je.contents))+")",Ve+=" /Popup "+mn.objId+" 0 R",Ve+=" /P "+ct.objId+" 0 R",Ve+=" /T ("+qt(en(kr))+") >>",fr.content=Ve;var Gn=fr.objId+" 0 R";Ve="<</Type /Annot /Subtype /Popup "+(Ye="/Rect ["+qe(je.bounds.x+30)+" "+xt(je.bounds.y+je.bounds.h)+" "+qe(je.bounds.x+je.bounds.w+30)+" "+xt(je.bounds.y)+"] ")+" /Parent "+Gn,je.open&&(Ve+=" /Open true"),Ve+=" >>",mn.content=Ve,this.internal.write(fr.objId,"0 R",mn.objId,"0 R");break;case"freetext":Ye="/Rect ["+qe(je.bounds.x)+" "+xt(je.bounds.y)+" "+qe(je.bounds.x+je.bounds.w)+" "+xt(je.bounds.y+je.bounds.h)+"] ";var di=je.color||"#000000";Ve="<</Type /Annot /Subtype /FreeText "+Ye+"/Contents ("+qt(pn(je.contents))+")",Ve+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+di+")",Ve+=" /Border [0 0 0]",Ve+=" >>",this.internal.write(Ve);break;case"link":if(je.options.name){var _i=this.annotations._nameMap[je.options.name];je.options.pageNumber=_i.page,je.options.top=_i.y}else je.options.top||(je.options.top=0);if(Ye="/Rect ["+je.finalBounds.x+" "+je.finalBounds.y+" "+je.finalBounds.w+" "+je.finalBounds.h+"] ",Ve="",je.options.url)Ve="<</Type /Annot /Subtype /Link "+Ye+"/Border [0 0 0] /A <</S /URI /URI ("+qt(pn(je.options.url))+") >>";else if(je.options.pageNumber)switch(Ve="<</Type /Annot /Subtype /Link "+Ye+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(je.options.pageNumber).objId+" 0 R",je.options.magFactor=je.options.magFactor||"XYZ",je.options.magFactor){case"Fit":Ve+=" /Fit]";break;case"FitH":Ve+=" /FitH "+je.options.top+"]";break;case"FitV":je.options.left=je.options.left||0,Ve+=" /FitV "+je.options.left+"]";break;case"XYZ":default:var Br=xt(je.options.top);je.options.left=je.options.left||0,je.options.zoom===void 0&&(je.options.zoom=0),Ve+=" /XYZ "+je.options.left+" "+Br+" "+je.options.zoom+"]"}Ve!=""&&(Ve+=" >>",this.internal.write(Ve))}}this.internal.write("]")}}]),$e.createAnnotation=function(Re){var je=this.internal.getCurrentPageInfo();switch(Re.type){case"link":this.link(Re.bounds.x,Re.bounds.y,Re.bounds.w,Re.bounds.h,Re);break;case"text":case"freetext":je.pageContext.annotations.push(Re)}},$e.link=function(Re,je,Ye,Ve,qe){var xt=this.internal.getCurrentPageInfo(),ct=this.internal.getCoordinateString,Jt=this.internal.getVerticalCoordinateString;xt.pageContext.annotations.push({finalBounds:{x:ct(Re),y:Jt(je),w:ct(Re+Ye),h:Jt(je+Ve)},options:qe,type:"link"})},$e.textWithLink=function(Re,je,Ye,Ve){var qe,xt,ct=this.getTextWidth(Re),Jt=this.internal.getLineHeight()/this.internal.scaleFactor;if(Ve.maxWidth!==void 0){xt=Ve.maxWidth;var Rr=this.splitTextToSize(Re,xt).length;qe=Math.ceil(Jt*Rr)}else xt=ct,qe=Jt;return this.text(Re,je,Ye,Ve),Ye+=.2*Jt,Ve.align==="center"&&(je-=ct/2),Ve.align==="right"&&(je-=ct),this.link(je,Ye-Jt,xt,qe,Ve),ct},$e.getTextWidth=function(Re){var je=this.internal.getFontSize();return this.getStringUnitWidth(Re)*je/this.internal.scaleFactor}}(j.API),function($e){var Se={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]},Re={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}},je={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ye=[1570,1571,1573,1575];$e.__arabicParser__={};var Ve=$e.__arabicParser__.isInArabicSubstitutionA=function(fr){return Se[fr.charCodeAt(0)]!==void 0},qe=$e.__arabicParser__.isArabicLetter=function(fr){return typeof fr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(fr)},xt=$e.__arabicParser__.isArabicEndLetter=function(fr){return qe(fr)&&Ve(fr)&&Se[fr.charCodeAt(0)].length<=2},ct=$e.__arabicParser__.isArabicAlfLetter=function(fr){return qe(fr)&&Ye.indexOf(fr.charCodeAt(0))>=0};$e.__arabicParser__.arabicLetterHasIsolatedForm=function(fr){return qe(fr)&&Ve(fr)&&Se[fr.charCodeAt(0)].length>=1};var Jt=$e.__arabicParser__.arabicLetterHasFinalForm=function(fr){return qe(fr)&&Ve(fr)&&Se[fr.charCodeAt(0)].length>=2};$e.__arabicParser__.arabicLetterHasInitialForm=function(fr){return qe(fr)&&Ve(fr)&&Se[fr.charCodeAt(0)].length>=3};var Rr=$e.__arabicParser__.arabicLetterHasMedialForm=function(fr){return qe(fr)&&Ve(fr)&&Se[fr.charCodeAt(0)].length==4},Ir=$e.__arabicParser__.resolveLigatures=function(fr){var mn=0,en=Re,kr="",Gn=0;for(mn=0;mn<fr.length;mn+=1)en[fr.charCodeAt(mn)]!==void 0?(Gn++,typeof(en=en[fr.charCodeAt(mn)])=="number"&&(kr+=String.fromCharCode(en),en=Re,Gn=0),mn===fr.length-1&&(en=Re,kr+=fr.charAt(mn-(Gn-1)),mn-=Gn-1,Gn=0)):(en=Re,kr+=fr.charAt(mn-Gn),mn-=Gn,Gn=0);return kr};$e.__arabicParser__.isArabicDiacritic=function(fr){return fr!==void 0&&je[fr.charCodeAt(0)]!==void 0};var Xr=$e.__arabicParser__.getCorrectForm=function(fr,mn,en){return qe(fr)?Ve(fr)===!1?-1:!Jt(fr)||!qe(mn)&&!qe(en)||!qe(en)&&xt(mn)||xt(fr)&&!qe(mn)||xt(fr)&&ct(mn)||xt(fr)&&xt(mn)?0:Rr(fr)&&qe(mn)&&!xt(mn)&&qe(en)&&Jt(en)?3:xt(fr)||!qe(en)?1:2:-1},qt=function(mn){var en=0,kr=0,Gn=0,di="",_i="",Br="",sn=(mn=mn||"").split("\\s+"),Sn=[];for(en=0;en<sn.length;en+=1){for(Sn.push(""),kr=0;kr<sn[en].length;kr+=1)di=sn[en][kr],_i=sn[en][kr-1],Br=sn[en][kr+1],qe(di)?(Gn=Xr(di,_i,Br),Sn[en]+=Gn!==-1?String.fromCharCode(Se[di.charCodeAt(0)][Gn]):di):Sn[en]+=di;Sn[en]=Ir(Sn[en])}return Sn.join(" ")},pn=$e.__arabicParser__.processArabic=$e.processArabic=function(){var fr,mn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,en=[];if(Array.isArray(mn)){var kr=0;for(en=[],kr=0;kr<mn.length;kr+=1)Array.isArray(mn[kr])?en.push([qt(mn[kr][0]),mn[kr][1],mn[kr][2]]):en.push([qt(mn[kr])]);fr=en}else fr=qt(mn);return typeof arguments[0]=="string"?fr:(arguments[0].text=fr,arguments[0])};$e.events.push(["preProcessText",pn])}(j.API),j.API.autoPrint=function($e){var Se;switch(($e=$e||{}).variant=$e.variant||"non-conform",$e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Se=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 "+Se+" 0 R")})}return this},function($e){var Se=function(){var je=void 0;Object.defineProperty(this,"pdf",{get:function(){return je},set:function(Jt){je=Jt}});var Ye=150;Object.defineProperty(this,"width",{get:function(){return Ye},set:function(Jt){Ye=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?150:Jt,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ye+1)}});var Ve=300;Object.defineProperty(this,"height",{get:function(){return Ve},set:function(Jt){Ve=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?300:Jt,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ve+1)}});var qe=[];Object.defineProperty(this,"childNodes",{get:function(){return qe},set:function(Jt){qe=Jt}});var xt={};Object.defineProperty(this,"style",{get:function(){return xt},set:function(Jt){xt=Jt}}),Object.defineProperty(this,"parentNode",{})};Se.prototype.getContext=function(Re,je){var Ye;if((Re=Re||"2d")!=="2d")return null;for(Ye in je)this.pdf.context2d.hasOwnProperty(Ye)&&(this.pdf.context2d[Ye]=je[Ye]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Se.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},$e.events.push(["initialized",function(){this.canvas=new Se,this.canvas.pdf=this}])}(j.API),function($e){var Se={left:0,top:0,bottom:0,right:0},Re=!1,je=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({},Se),this.internal.__cell__.margins.width=this.getPageWidth(),Ye.call(this))},Ye=function(){this.internal.__cell__.lastCell=new Ve,this.internal.__cell__.pages=1},Ve=function(){var Jt=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Jt},set:function(en){Jt=en}});var Rr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Rr},set:function(en){Rr=en}});var Ir=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Ir},set:function(en){Ir=en}});var Xr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Xr},set:function(en){Xr=en}});var qt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return qt},set:function(en){qt=en}});var pn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return pn},set:function(en){pn=en}});var fr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return fr},set:function(en){fr=en}}),this};Ve.prototype.clone=function(){return new Ve(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Ve.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},$e.setHeaderFunction=function(ct){return je.call(this),this.internal.__cell__.headerFunction=typeof ct=="function"?ct:void 0,this},$e.getTextDimensions=function(ct,Jt){je.call(this);var Rr=(Jt=Jt||{}).fontSize||this.getFontSize(),Ir=Jt.font||this.getFont(),Xr=Jt.scaleFactor||this.internal.scaleFactor,qt=0,pn=0,fr=0,mn=this;if(!Array.isArray(ct)&&typeof ct!="string"){if(typeof ct!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ct=String(ct)}var en=Jt.maxWidth;en>0?typeof ct=="string"?ct=this.splitTextToSize(ct,en):Object.prototype.toString.call(ct)==="[object Array]"&&(ct=ct.reduce(function(Gn,di){return Gn.concat(mn.splitTextToSize(di,en))},[])):ct=Array.isArray(ct)?ct:[ct];for(var kr=0;kr<ct.length;kr++)qt<(fr=this.getStringUnitWidth(ct[kr],{font:Ir})*Rr)&&(qt=fr);return qt!==0&&(pn=ct.length),{w:qt/=Xr,h:Math.max((pn*Rr*this.getLineHeightFactor()-Rr*(this.getLineHeightFactor()-1))/Xr,0)}},$e.cellAddPage=function(){je.call(this),this.addPage();var ct=this.internal.__cell__.margins||Se;return this.internal.__cell__.lastCell=new Ve(ct.left,ct.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var qe=$e.cell=function(){var ct;ct=arguments[0]instanceof Ve?arguments[0]:new Ve(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),je.call(this);var Jt=this.internal.__cell__.lastCell,Rr=this.internal.__cell__.padding,Ir=this.internal.__cell__.margins||Se,Xr=this.internal.__cell__.tableHeaderRow,qt=this.internal.__cell__.printHeaders;return Jt.lineNumber!==void 0&&(Jt.lineNumber===ct.lineNumber?(ct.x=(Jt.x||0)+(Jt.width||0),ct.y=Jt.y||0):Jt.y+Jt.height+ct.height+Ir.bottom>this.getPageHeight()?(this.cellAddPage(),ct.y=Ir.top,qt&&Xr&&(this.printHeaderRow(ct.lineNumber,!0),ct.y+=Xr[0].height)):ct.y=Jt.y+Jt.height||ct.y),ct.text[0]!==void 0&&(this.rect(ct.x,ct.y,ct.width,ct.height,Re===!0?"FD":void 0),ct.align==="right"?this.text(ct.text,ct.x+ct.width-Rr,ct.y+Rr,{align:"right",baseline:"top"}):ct.align==="center"?this.text(ct.text,ct.x+ct.width/2,ct.y+Rr,{align:"center",baseline:"top",maxWidth:ct.width-Rr-Rr}):this.text(ct.text,ct.x+Rr,ct.y+Rr,{align:"left",baseline:"top",maxWidth:ct.width-Rr-Rr})),this.internal.__cell__.lastCell=ct,this};$e.table=function(ct,Jt,Rr,Ir,Xr){if(je.call(this),!Rr)throw new Error("No data for PDF table.");var qt,pn,fr,mn,en=[],kr=[],Gn=[],di={},_i={},Br=[],sn=[],Sn=(Xr=Xr||{}).autoSize||!1,Pt=Xr.printHeaders!==!1,gt=Xr.css&&Xr.css["font-size"]!==void 0?16*Xr.css["font-size"]:Xr.fontSize||12,Et=Xr.margins||Object.assign({width:this.getPageWidth()},Se),Lt=typeof Xr.padding=="number"?Xr.padding:3,kt=Xr.headerBackgroundColor||"#c8c8c8",yt=Xr.headerTextColor||"#000";if(Ye.call(this),this.internal.__cell__.printHeaders=Pt,this.internal.__cell__.margins=Et,this.internal.__cell__.table_font_size=gt,this.internal.__cell__.padding=Lt,this.internal.__cell__.headerBackgroundColor=kt,this.internal.__cell__.headerTextColor=yt,this.setFontSize(gt),Ir==null)kr=en=Object.keys(Rr[0]),Gn=en.map(function(){return"left"});else if(Array.isArray(Ir)&&C()(Ir[0])==="object")for(en=Ir.map(function(vn){return vn.name}),kr=Ir.map(function(vn){return vn.prompt||vn.name||""}),Gn=Ir.map(function(vn){return vn.align||"left"}),qt=0;qt<Ir.length;qt+=1)_i[Ir[qt].name]=Ir[qt].width*(19.049976/25.4);else Array.isArray(Ir)&&typeof Ir[0]=="string"&&(kr=en=Ir,Gn=en.map(function(){return"left"}));if(Sn||Array.isArray(Ir)&&typeof Ir[0]=="string")for(qt=0;qt<en.length;qt+=1){for(di[mn=en[qt]]=Rr.map(function(vn){return vn[mn]}),this.setFont(void 0,"bold"),Br.push(this.getTextDimensions(kr[qt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),pn=di[mn],this.setFont(void 0,"normal"),fr=0;fr<pn.length;fr+=1)Br.push(this.getTextDimensions(pn[fr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);_i[mn]=Math.max.apply(null,Br)+Lt+Lt,Br=[]}if(Pt){var Qt={};for(qt=0;qt<en.length;qt+=1)Qt[en[qt]]={},Qt[en[qt]].text=kr[qt],Qt[en[qt]].align=Gn[qt];var tr=xt.call(this,Qt,_i);sn=en.map(function(vn){return new Ve(ct,Jt,_i[vn],tr,Qt[vn].text,void 0,Qt[vn].align)}),this.setTableHeaderRow(sn),this.printHeaderRow(1,!1)}var ir=Ir.reduce(function(vn,Wn){return vn[Wn.name]=Wn.align,vn},{});for(qt=0;qt<Rr.length;qt+=1){"rowStart"in Xr&&Xr.rowStart instanceof Function&&Xr.rowStart({row:qt,data:Rr[qt]},this);var yr=xt.call(this,Rr[qt],_i);for(fr=0;fr<en.length;fr+=1){var xn=Rr[qt][en[fr]];"cellStart"in Xr&&Xr.cellStart instanceof Function&&Xr.cellStart({row:qt,col:fr,data:xn},this),qe.call(this,new Ve(ct,Jt,_i[en[fr]],yr,xn,qt+2,ir[en[fr]]))}}return this.internal.__cell__.table_x=ct,this.internal.__cell__.table_y=Jt,this};var xt=function(Jt,Rr){var Ir=this.internal.__cell__.padding,Xr=this.internal.__cell__.table_font_size,qt=this.internal.scaleFactor;return Object.keys(Jt).map(function(pn){var fr=Jt[pn];return this.splitTextToSize(fr.hasOwnProperty("text")?fr.text:fr,Rr[pn]-Ir-Ir)},this).map(function(pn){return this.getLineHeightFactor()*pn.length*Xr/qt+Ir+Ir},this).reduce(function(pn,fr){return Math.max(pn,fr)},0)};$e.setTableHeaderRow=function(ct){je.call(this),this.internal.__cell__.tableHeaderRow=ct},$e.printHeaderRow=function(ct,Jt){if(je.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Rr;if(Re=!0,typeof this.internal.__cell__.headerFunction=="function"){var Ir=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Ve(Ir[0],Ir[1],Ir[2],Ir[3],void 0,-1)}this.setFont(void 0,"bold");for(var Xr=[],qt=0;qt<this.internal.__cell__.tableHeaderRow.length;qt+=1){Rr=this.internal.__cell__.tableHeaderRow[qt].clone(),Jt&&(Rr.y=this.internal.__cell__.margins.top||0,Xr.push(Rr)),Rr.lineNumber=ct;var pn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),qe.call(this,Rr),this.setTextColor(pn)}Xr.length>0&&this.setTableHeaderRow(Xr),this.setFont(void 0,"normal"),Re=!1}}(j.API);var ht={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Rt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ut=q(Rt),Xt=[100,200,300,400,500,600,700,800,900],or=q(Xt);function Zr($e){var Se=$e.family.replace(/"|'/g,"").toLowerCase(),Re=function(Ve){return ht[Ve=Ve||"normal"]?Ve:"normal"}($e.style),je=function(Ve){if(!Ve)return 400;if(typeof Ve=="number")return Ve>=100&&Ve<=900&&Ve%100==0?Ve:400;if(/^\d00$/.test(Ve))return parseInt(Ve);switch(Ve){case"bold":return 700;case"normal":default:return 400}}($e.weight),Ye=function(Ve){return typeof ut[Ve=Ve||"normal"]=="number"?Ve:"normal"}($e.stretch);return{family:Se,style:Re,weight:je,stretch:Ye,src:$e.src||[],ref:$e.ref||{name:Se,style:[Ye,Re,je].join(" ")}}}function ar($e,Se,Re,je){var Ye;for(Ye=Re;Ye>=0&&Ye<Se.length;Ye+=je)if($e[Se[Ye]])return $e[Se[Ye]];for(Ye=Re;Ye>=0&&Ye<Se.length;Ye-=je)if($e[Se[Ye]])return $e[Se[Ye]]}var dr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},er={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ht($e){return[$e.stretch,$e.style,$e.weight,$e.family].join(" ")}function dt($e,Se,Re){for(var je=(Re=Re||{}).defaultFontFamily||"times",Ye=Object.assign({},dr,Re.genericFontFamilies||{}),Ve=null,qe=null,xt=0;xt<Se.length;++xt)if(Ye[(Ve=Zr(Se[xt])).family]&&(Ve.family=Ye[Ve.family]),$e.hasOwnProperty(Ve.family)){qe=$e[Ve.family];break}if(!(qe=qe||$e[je]))throw new Error("Could not find a font-family for the rule '"+Ht(Ve)+"' and default family '"+je+"'.");if(qe=function(ct,Jt){if(Jt[ct])return Jt[ct];var Rr=ut[ct],Ir=Rr<=ut.normal?-1:1,Xr=ar(Jt,Rt,Rr,Ir);if(!Xr)throw new Error("Could not find a matching font-stretch value for "+ct);return Xr}(Ve.stretch,qe),qe=function(ct,Jt){if(Jt[ct])return Jt[ct];for(var Rr=ht[ct],Ir=0;Ir<Rr.length;++Ir)if(Jt[Rr[Ir]])return Jt[Rr[Ir]];throw new Error("Could not find a matching font-style for "+ct)}(Ve.style,qe),!(qe=function(ct,Jt){if(Jt[ct])return Jt[ct];if(ct===400&&Jt[500])return Jt[500];if(ct===500&&Jt[400])return Jt[400];var Rr=or[ct],Ir=ar(Jt,Xt,Rr,ct<400?-1:1);if(!Ir)throw new Error("Could not find a matching font-weight for value "+ct);return Ir}(Ve.weight,qe)))throw new Error("Failed to resolve a font for the rule '"+Ht(Ve)+"'.");return qe}function Hr($e){return $e.trimLeft()}function dn($e,Se){for(var Re=0;Re<$e.length;){if($e.charAt(Re)===Se)return[$e.substring(0,Re),$e.substring(Re+1)];Re+=1}return null}function Nn($e){var Se=$e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Se===null?null:[Se[0],$e.substring(Se[0].length)]}var Vn,gi,bn,Mn=["times"];!function($e){var Se,Re,je,Ye,Ve,qe,xt,ct,Jt,Rr=function(xr){return xr=xr||{},this.isStrokeTransparent=xr.isStrokeTransparent||!1,this.strokeOpacity=xr.strokeOpacity||1,this.strokeStyle=xr.strokeStyle||"#000000",this.fillStyle=xr.fillStyle||"#000000",this.isFillTransparent=xr.isFillTransparent||!1,this.fillOpacity=xr.fillOpacity||1,this.font=xr.font||"10px sans-serif",this.textBaseline=xr.textBaseline||"alphabetic",this.textAlign=xr.textAlign||"left",this.lineWidth=xr.lineWidth||1,this.lineJoin=xr.lineJoin||"miter",this.lineCap=xr.lineCap||"butt",this.path=xr.path||[],this.transform=xr.transform!==void 0?xr.transform.clone():new ct,this.globalCompositeOperation=xr.globalCompositeOperation||"normal",this.globalAlpha=xr.globalAlpha||1,this.clip_path=xr.clip_path||[],this.currentPoint=xr.currentPoint||new qe,this.miterLimit=xr.miterLimit||10,this.lastPoint=xr.lastPoint||new qe,this.lineDashOffset=xr.lineDashOffset||0,this.lineDash=xr.lineDash||[],this.margin=xr.margin||[0,0,0,0],this.prevPageLastElemOffset=xr.prevPageLastElemOffset||0,this.ignoreClearRect=typeof xr.ignoreClearRect!="boolean"||xr.ignoreClearRect,this};$e.events.push(["initialized",function(){this.context2d=new Ir(this),Se=this.internal.f2,Re=this.internal.getCoordinateString,je=this.internal.getVerticalCoordinateString,Ye=this.internal.getHorizontalCoordinate,Ve=this.internal.getVerticalCoordinate,qe=this.internal.Point,xt=this.internal.Rectangle,ct=this.internal.Matrix,Jt=new Rr}]);var Ir=function(xr){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var ln=xr;Object.defineProperty(this,"pdf",{get:function(){return ln}});var On=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return On},set:function(mi){On=Boolean(mi)}});var In=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return In},set:function(mi){In=Boolean(mi)}});var Un=0;Object.defineProperty(this,"posX",{get:function(){return Un},set:function(mi){isNaN(mi)||(Un=mi)}});var ti=0;Object.defineProperty(this,"posY",{get:function(){return ti},set:function(mi){isNaN(mi)||(ti=mi)}}),Object.defineProperty(this,"margin",{get:function(){return Jt.margin},set:function(mi){var Hi;typeof mi=="number"?Hi=[mi,mi,mi,mi]:((Hi=new Array(4))[0]=mi[0],Hi[1]=mi.length>=2?mi[1]:Hi[0],Hi[2]=mi.length>=3?mi[2]:Hi[0],Hi[3]=mi.length>=4?mi[3]:Hi[1]),Jt.margin=Hi}});var ui=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ui},set:function(mi){ui=mi}});var si=0;Object.defineProperty(this,"lastBreak",{get:function(){return si},set:function(mi){si=mi}});var Pi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Pi},set:function(mi){Pi=mi}}),Object.defineProperty(this,"ctx",{get:function(){return Jt},set:function(mi){mi instanceof Rr&&(Jt=mi)}}),Object.defineProperty(this,"path",{get:function(){return Jt.path},set:function(mi){Jt.path=mi}});var zi=[];Object.defineProperty(this,"ctxStack",{get:function(){return zi},set:function(mi){zi=mi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(mi){var Hi;Hi=Xr(mi),this.ctx.fillStyle=Hi.style,this.ctx.isFillTransparent=Hi.a===0,this.ctx.fillOpacity=Hi.a,this.pdf.setFillColor(Hi.r,Hi.g,Hi.b,{a:Hi.a}),this.pdf.setTextColor(Hi.r,Hi.g,Hi.b,{a:Hi.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(mi){var Hi=Xr(mi);this.ctx.strokeStyle=Hi.style,this.ctx.isStrokeTransparent=Hi.a===0,this.ctx.strokeOpacity=Hi.a,Hi.a===0?this.pdf.setDrawColor(255,255,255):(Hi.a,this.pdf.setDrawColor(Hi.r,Hi.g,Hi.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(mi){["butt","round","square"].indexOf(mi)!==-1&&(this.ctx.lineCap=mi,this.pdf.setLineCap(mi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(mi){isNaN(mi)||(this.ctx.lineWidth=mi,this.pdf.setLineWidth(mi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(mi){["bevel","round","miter"].indexOf(mi)!==-1&&(this.ctx.lineJoin=mi,this.pdf.setLineJoin(mi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(mi){isNaN(mi)||(this.ctx.miterLimit=mi,this.pdf.setMiterLimit(mi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(mi){this.ctx.textBaseline=mi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(mi){["right","end","center","left","start"].indexOf(mi)!==-1&&(this.ctx.textAlign=mi)}});var Ri=null;function Yi(gn,mi){if(Ri===null){var Hi=function(Li){var Bi=[];return Object.keys(Li).forEach(function(wr){Li[wr].forEach(function(lr){var on=null;switch(lr){case"bold":on={family:wr,weight:"bold"};break;case"italic":on={family:wr,style:"italic"};break;case"bolditalic":on={family:wr,weight:"bold",style:"italic"};break;case"":case"normal":on={family:wr}}on!==null&&(on.ref={name:wr,style:lr},Bi.push(on))})}),Bi}(gn.getFontList());Ri=function(Li){for(var Bi={},wr=0;wr<Li.length;++wr){var lr=Zr(Li[wr]),on=lr.family,Zt=lr.stretch,br=lr.style,Or=lr.weight;Bi[on]=Bi[on]||{},Bi[on][Zt]=Bi[on][Zt]||{},Bi[on][Zt][br]=Bi[on][Zt][br]||{},Bi[on][Zt][br][Or]=lr}return Bi}(Hi.concat(mi))}return Ri}var $n=null;Object.defineProperty(this,"fontFaces",{get:function(){return $n},set:function(mi){Ri=null,$n=mi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(mi){var Hi;if(this.ctx.font=mi,(Hi=/^\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(mi))!==null){var Li=Hi[1],Bi=(Hi[2],Hi[3]),wr=Hi[4],lr=(Hi[5],Hi[6]),on=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(wr)[2];wr=on==="px"?Math.floor(parseFloat(wr)*this.pdf.internal.scaleFactor):on==="em"?Math.floor(parseFloat(wr)*this.pdf.getFontSize()):Math.floor(parseFloat(wr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(wr);var Zt=function(vr){var Fr,nn,cn=[],tn=vr.trim();if(tn==="")return Mn;if(tn in er)return[er[tn]];for(;tn!=="";){switch(nn=null,Fr=(tn=Hr(tn)).charAt(0)){case'"':case"'":nn=dn(tn.substring(1),Fr);break;default:nn=Nn(tn)}if(nn===null)return Mn;if(cn.push(nn[0]),(tn=Hr(nn[1]))!==""&&tn.charAt(0)!==",")return Mn;tn=tn.replace(/^,/,"")}return cn}(lr);if(this.fontFaces){var br=dt(Yi(this.pdf,this.fontFaces),Zt.map(function(vr){return{family:vr,stretch:"normal",weight:Bi,style:Li}}));this.pdf.setFont(br.ref.name,br.ref.style)}else{var Or="";(Bi==="bold"||parseInt(Bi,10)>=700||Li==="bold")&&(Or="bold"),Li==="italic"&&(Or+="italic"),Or.length===0&&(Or="normal");for(var Wr="",An={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"},bt=0;bt<Zt.length;bt++){if(this.pdf.internal.getFont(Zt[bt],Or,{noFallback:!0,disableWarning:!0})!==void 0){Wr=Zt[bt];break}if(Or==="bolditalic"&&this.pdf.internal.getFont(Zt[bt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Wr=Zt[bt],Or="bold";else if(this.pdf.internal.getFont(Zt[bt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Wr=Zt[bt],Or="normal";break}}if(Wr===""){for(var mr=0;mr<Zt.length;mr++)if(An[Zt[mr]]){Wr=An[Zt[mr]];break}}Wr=Wr===""?"Times":Wr,this.pdf.setFont(Wr,Or)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(mi){this.ctx.globalCompositeOperation=mi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(mi){this.ctx.globalAlpha=mi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(mi){this.ctx.lineDashOffset=mi,Wn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(mi){this.ctx.lineDash=mi,Wn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(mi){this.ctx.ignoreClearRect=Boolean(mi)}})};Ir.prototype.setLineDash=function(Yr){this.lineDash=Yr},Ir.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Ir.prototype.fill=function(){di.call(this,"fill",!1)},Ir.prototype.stroke=function(){di.call(this,"stroke",!1)},Ir.prototype.beginPath=function(){this.path=[{type:"begin"}]},Ir.prototype.moveTo=function(Yr,xr){if(isNaN(Yr)||isNaN(xr))throw f.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var ln=this.ctx.transform.applyToPoint(new qe(Yr,xr));this.path.push({type:"mt",x:ln.x,y:ln.y}),this.ctx.lastPoint=new qe(Yr,xr)},Ir.prototype.closePath=function(){var Yr=new qe(0,0),xr=0;for(xr=this.path.length-1;xr!==-1;xr--)if(this.path[xr].type==="begin"&&C()(this.path[xr+1])==="object"&&typeof this.path[xr+1].x=="number"){Yr=new qe(this.path[xr+1].x,this.path[xr+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new qe(Yr.x,Yr.y)},Ir.prototype.lineTo=function(Yr,xr){if(isNaN(Yr)||isNaN(xr))throw f.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var ln=this.ctx.transform.applyToPoint(new qe(Yr,xr));this.path.push({type:"lt",x:ln.x,y:ln.y}),this.ctx.lastPoint=new qe(ln.x,ln.y)},Ir.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),di.call(this,null,!0)},Ir.prototype.quadraticCurveTo=function(Yr,xr,ln,On){if(isNaN(ln)||isNaN(On)||isNaN(Yr)||isNaN(xr))throw f.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var In=this.ctx.transform.applyToPoint(new qe(ln,On)),Un=this.ctx.transform.applyToPoint(new qe(Yr,xr));this.path.push({type:"qct",x1:Un.x,y1:Un.y,x:In.x,y:In.y}),this.ctx.lastPoint=new qe(In.x,In.y)},Ir.prototype.bezierCurveTo=function(Yr,xr,ln,On,In,Un){if(isNaN(In)||isNaN(Un)||isNaN(Yr)||isNaN(xr)||isNaN(ln)||isNaN(On))throw f.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ti=this.ctx.transform.applyToPoint(new qe(In,Un)),ui=this.ctx.transform.applyToPoint(new qe(Yr,xr)),si=this.ctx.transform.applyToPoint(new qe(ln,On));this.path.push({type:"bct",x1:ui.x,y1:ui.y,x2:si.x,y2:si.y,x:ti.x,y:ti.y}),this.ctx.lastPoint=new qe(ti.x,ti.y)},Ir.prototype.arc=function(Yr,xr,ln,On,In,Un){if(isNaN(Yr)||isNaN(xr)||isNaN(ln)||isNaN(On)||isNaN(In))throw f.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Un=Boolean(Un),!this.ctx.transform.isIdentity){var ti=this.ctx.transform.applyToPoint(new qe(Yr,xr));Yr=ti.x,xr=ti.y;var ui=this.ctx.transform.applyToPoint(new qe(0,ln)),si=this.ctx.transform.applyToPoint(new qe(0,0));ln=Math.sqrt(Math.pow(ui.x-si.x,2)+Math.pow(ui.y-si.y,2))}Math.abs(In-On)>=2*Math.PI&&(On=0,In=2*Math.PI),this.path.push({type:"arc",x:Yr,y:xr,radius:ln,startAngle:On,endAngle:In,counterclockwise:Un})},Ir.prototype.arcTo=function(Yr,xr,ln,On,In){throw new Error("arcTo not implemented.")},Ir.prototype.rect=function(Yr,xr,ln,On){if(isNaN(Yr)||isNaN(xr)||isNaN(ln)||isNaN(On))throw f.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Yr,xr),this.lineTo(Yr+ln,xr),this.lineTo(Yr+ln,xr+On),this.lineTo(Yr,xr+On),this.lineTo(Yr,xr),this.lineTo(Yr+ln,xr),this.lineTo(Yr,xr)},Ir.prototype.fillRect=function(Yr,xr,ln,On){if(isNaN(Yr)||isNaN(xr)||isNaN(ln)||isNaN(On))throw f.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!qt.call(this)){var In={};this.lineCap!=="butt"&&(In.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(In.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Yr,xr,ln,On),this.fill(),In.hasOwnProperty("lineCap")&&(this.lineCap=In.lineCap),In.hasOwnProperty("lineJoin")&&(this.lineJoin=In.lineJoin)}},Ir.prototype.strokeRect=function(Yr,xr,ln,On){if(isNaN(Yr)||isNaN(xr)||isNaN(ln)||isNaN(On))throw f.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");pn.call(this)||(this.beginPath(),this.rect(Yr,xr,ln,On),this.stroke())},Ir.prototype.clearRect=function(Yr,xr,ln,On){if(isNaN(Yr)||isNaN(xr)||isNaN(ln)||isNaN(On))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(Yr,xr,ln,On))},Ir.prototype.save=function(Yr){Yr=typeof Yr!="boolean"||Yr;for(var xr=this.pdf.internal.getCurrentPageInfo().pageNumber,ln=0;ln<this.pdf.internal.getNumberOfPages();ln++)this.pdf.setPage(ln+1),this.pdf.internal.out("q");if(this.pdf.setPage(xr),Yr){this.ctx.fontSize=this.pdf.internal.getFontSize();var On=new Rr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=On}},Ir.prototype.restore=function(Yr){Yr=typeof Yr!="boolean"||Yr;for(var xr=this.pdf.internal.getCurrentPageInfo().pageNumber,ln=0;ln<this.pdf.internal.getNumberOfPages();ln++)this.pdf.setPage(ln+1),this.pdf.internal.out("Q");this.pdf.setPage(xr),Yr&&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)},Ir.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Xr=function(xr){var ln,On,In,Un;if(xr.isCanvasGradient===!0&&(xr=xr.getColor()),!xr)return{r:0,g:0,b:0,a:0,style:xr};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(xr))ln=0,On=0,In=0,Un=0;else{var ti=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(xr);if(ti!==null)ln=parseInt(ti[1]),On=parseInt(ti[2]),In=parseInt(ti[3]),Un=1;else if((ti=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(xr))!==null)ln=parseInt(ti[1]),On=parseInt(ti[2]),In=parseInt(ti[3]),Un=parseFloat(ti[4]);else{if(Un=1,typeof xr=="string"&&xr.charAt(0)!=="#"){var ui=new s(xr);xr=ui.ok?ui.toHex():"#000000"}xr.length===4?(ln=xr.substring(1,2),ln+=ln,On=xr.substring(2,3),On+=On,In=xr.substring(3,4),In+=In):(ln=xr.substring(1,3),On=xr.substring(3,5),In=xr.substring(5,7)),ln=parseInt(ln,16),On=parseInt(On,16),In=parseInt(In,16)}}return{r:ln,g:On,b:In,a:Un,style:xr}},qt=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},pn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Ir.prototype.fillText=function(Yr,xr,ln,On){if(isNaN(xr)||isNaN(ln)||typeof Yr!="string")throw f.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(On=isNaN(On)?void 0:On,!qt.call(this)){var In=yr(this.ctx.transform.rotation),Un=this.ctx.transform.scaleX;Lt.call(this,{text:Yr,x:xr,y:ln,scale:Un,angle:In,align:this.textAlign,maxWidth:On})}},Ir.prototype.strokeText=function(Yr,xr,ln,On){if(isNaN(xr)||isNaN(ln)||typeof Yr!="string")throw f.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!pn.call(this)){On=isNaN(On)?void 0:On;var In=yr(this.ctx.transform.rotation),Un=this.ctx.transform.scaleX;Lt.call(this,{text:Yr,x:xr,y:ln,scale:Un,renderingMode:"stroke",angle:In,align:this.textAlign,maxWidth:On})}},Ir.prototype.measureText=function(Yr){if(typeof Yr!="string")throw f.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var xr=this.pdf,ln=this.pdf.internal.scaleFactor,On=xr.internal.getFontSize(),In=xr.getStringUnitWidth(Yr)*On/xr.internal.scaleFactor,Un=function(ui){var si=(ui=ui||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return si}}),this};return new Un({width:In*=Math.round(96*ln/72*1e4)/1e4})},Ir.prototype.scale=function(Yr,xr){if(isNaN(Yr)||isNaN(xr))throw f.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var ln=new ct(Yr,0,0,xr,0,0);this.ctx.transform=this.ctx.transform.multiply(ln)},Ir.prototype.rotate=function(Yr){if(isNaN(Yr))throw f.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var xr=new ct(Math.cos(Yr),Math.sin(Yr),-Math.sin(Yr),Math.cos(Yr),0,0);this.ctx.transform=this.ctx.transform.multiply(xr)},Ir.prototype.translate=function(Yr,xr){if(isNaN(Yr)||isNaN(xr))throw f.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var ln=new ct(1,0,0,1,Yr,xr);this.ctx.transform=this.ctx.transform.multiply(ln)},Ir.prototype.transform=function(Yr,xr,ln,On,In,Un){if(isNaN(Yr)||isNaN(xr)||isNaN(ln)||isNaN(On)||isNaN(In)||isNaN(Un))throw f.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ti=new ct(Yr,xr,ln,On,In,Un);this.ctx.transform=this.ctx.transform.multiply(ti)},Ir.prototype.setTransform=function(Yr,xr,ln,On,In,Un){Yr=isNaN(Yr)?1:Yr,xr=isNaN(xr)?0:xr,ln=isNaN(ln)?0:ln,On=isNaN(On)?1:On,In=isNaN(In)?0:In,Un=isNaN(Un)?0:Un,this.ctx.transform=new ct(Yr,xr,ln,On,In,Un)};var fr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Ir.prototype.drawImage=function(Yr,xr,ln,On,In,Un,ti,ui,si){var Pi=this.pdf.getImageProperties(Yr),zi=1,Ri=1,Yi=1,$n=1;On!==void 0&&ui!==void 0&&(Yi=ui/On,$n=si/In,zi=Pi.width/On*ui/On,Ri=Pi.height/In*si/In),Un===void 0&&(Un=xr,ti=ln,xr=0,ln=0),On!==void 0&&ui===void 0&&(ui=On,si=In),On===void 0&&ui===void 0&&(ui=Pi.width,si=Pi.height);for(var gn,mi=this.ctx.transform.decompose(),Hi=yr(mi.rotate.shx),Li=new ct,Bi=(Li=(Li=(Li=Li.multiply(mi.translate)).multiply(mi.skew)).multiply(mi.scale)).applyToRectangle(new xt(Un-xr*Yi,ti-ln*$n,On*zi,In*Ri)),wr=mn.call(this,Bi),lr=[],on=0;on<wr.length;on+=1)lr.indexOf(wr[on])===-1&&lr.push(wr[on]);if(Gn(lr),this.autoPaging)for(var Zt=lr[0],br=lr[lr.length-1],Or=Zt;Or<br+1;Or++){this.pdf.setPage(Or);var Wr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],An=Or===1?this.posY+this.margin[0]:this.margin[0],bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],mr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],vr=Or===1?0:bt+(Or-2)*mr;if(this.ctx.clip_path.length!==0){var Fr=this.path;gn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=kr(gn,this.posX+this.margin[3],-vr+An+this.ctx.prevPageLastElemOffset),_i.call(this,"fill",!0),this.path=Fr}var nn=JSON.parse(JSON.stringify(Bi));nn=kr([nn],this.posX+this.margin[3],-vr+An+this.ctx.prevPageLastElemOffset)[0];var cn=(Or>Zt||Or<br)&&fr.call(this);cn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Wr,mr,null).clip().discardPath()),this.pdf.addImage(Yr,"JPEG",nn.x,nn.y,nn.w,nn.h,null,null,Hi),cn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Yr,"JPEG",Bi.x,Bi.y,Bi.w,Bi.h,null,null,Hi)};var mn=function(xr,ln,On){var In=[];ln=ln||this.pdf.internal.pageSize.width,On=On||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Un=this.posY+this.ctx.prevPageLastElemOffset;switch(xr.type){default:case"mt":case"lt":In.push(Math.floor((xr.y+Un)/On)+1);break;case"arc":In.push(Math.floor((xr.y+Un-xr.radius)/On)+1),In.push(Math.floor((xr.y+Un+xr.radius)/On)+1);break;case"qct":var ti=xn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,xr.x1,xr.y1,xr.x,xr.y);In.push(Math.floor((ti.y+Un)/On)+1),In.push(Math.floor((ti.y+ti.h+Un)/On)+1);break;case"bct":var ui=vn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,xr.x1,xr.y1,xr.x2,xr.y2,xr.x,xr.y);In.push(Math.floor((ui.y+Un)/On)+1),In.push(Math.floor((ui.y+ui.h+Un)/On)+1);break;case"rect":In.push(Math.floor((xr.y+Un)/On)+1),In.push(Math.floor((xr.y+xr.h+Un)/On)+1)}for(var si=0;si<In.length;si+=1)for(;this.pdf.internal.getNumberOfPages()<In[si];)en.call(this);return In},en=function(){var xr=this.fillStyle,ln=this.strokeStyle,On=this.font,In=this.lineCap,Un=this.lineWidth,ti=this.lineJoin;this.pdf.addPage(),this.fillStyle=xr,this.strokeStyle=ln,this.font=On,this.lineCap=In,this.lineWidth=Un,this.lineJoin=ti},kr=function(xr,ln,On){for(var In=0;In<xr.length;In++)switch(xr[In].type){case"bct":xr[In].x2+=ln,xr[In].y2+=On;case"qct":xr[In].x1+=ln,xr[In].y1+=On;case"mt":case"lt":case"arc":default:xr[In].x+=ln,xr[In].y+=On}return xr},Gn=function(xr){return xr.sort(function(ln,On){return ln-On})},di=function(xr,ln){for(var On,In,Un=this.fillStyle,ti=this.strokeStyle,ui=this.lineCap,si=this.lineWidth,Pi=Math.abs(si*this.ctx.transform.scaleX),zi=this.lineJoin,Ri=JSON.parse(JSON.stringify(this.path)),Yi=JSON.parse(JSON.stringify(this.path)),$n=[],gn=0;gn<Yi.length;gn++)if(Yi[gn].x!==void 0)for(var mi=mn.call(this,Yi[gn]),Hi=0;Hi<mi.length;Hi+=1)$n.indexOf(mi[Hi])===-1&&$n.push(mi[Hi]);for(var Li=0;Li<$n.length;Li++)for(;this.pdf.internal.getNumberOfPages()<$n[Li];)en.call(this);if(Gn($n),this.autoPaging)for(var Bi=$n[0],wr=$n[$n.length-1],lr=Bi;lr<wr+1;lr++){this.pdf.setPage(lr),this.fillStyle=Un,this.strokeStyle=ti,this.lineCap=ui,this.lineWidth=Pi,this.lineJoin=zi;var on=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Zt=lr===1?this.posY+this.margin[0]:this.margin[0],br=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Or=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Wr=lr===1?0:br+(lr-2)*Or;if(this.ctx.clip_path.length!==0){var An=this.path;On=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=kr(On,this.posX+this.margin[3],-Wr+Zt+this.ctx.prevPageLastElemOffset),_i.call(this,xr,!0),this.path=An}if(In=JSON.parse(JSON.stringify(Ri)),this.path=kr(In,this.posX+this.margin[3],-Wr+Zt+this.ctx.prevPageLastElemOffset),ln===!1||lr===0){var bt=(lr>Bi||lr<wr)&&fr.call(this);bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],on,Or,null).clip().discardPath()),_i.call(this,xr,ln),bt&&this.pdf.restoreGraphicsState()}this.lineWidth=si}else this.lineWidth=Pi,_i.call(this,xr,ln),this.lineWidth=si;this.path=Ri},_i=function(xr,ln){if((xr!=="stroke"||ln||!pn.call(this))&&(xr==="stroke"||ln||!qt.call(this))){for(var On,In,Un=[],ti=this.path,ui=0;ui<ti.length;ui++){var si=ti[ui];switch(si.type){case"begin":Un.push({begin:!0});break;case"close":Un.push({close:!0});break;case"mt":Un.push({start:si,deltas:[],abs:[]});break;case"lt":var Pi=Un.length;if(ti[ui-1]&&!isNaN(ti[ui-1].x)&&(On=[si.x-ti[ui-1].x,si.y-ti[ui-1].y],Pi>0)){for(;Pi>=0;Pi--)if(Un[Pi-1].close!==!0&&Un[Pi-1].begin!==!0){Un[Pi-1].deltas.push(On),Un[Pi-1].abs.push(si);break}}break;case"bct":On=[si.x1-ti[ui-1].x,si.y1-ti[ui-1].y,si.x2-ti[ui-1].x,si.y2-ti[ui-1].y,si.x-ti[ui-1].x,si.y-ti[ui-1].y],Un[Un.length-1].deltas.push(On);break;case"qct":var zi=ti[ui-1].x+2/3*(si.x1-ti[ui-1].x),Ri=ti[ui-1].y+2/3*(si.y1-ti[ui-1].y),Yi=si.x+2/3*(si.x1-si.x),$n=si.y+2/3*(si.y1-si.y),gn=si.x,mi=si.y;On=[zi-ti[ui-1].x,Ri-ti[ui-1].y,Yi-ti[ui-1].x,$n-ti[ui-1].y,gn-ti[ui-1].x,mi-ti[ui-1].y],Un[Un.length-1].deltas.push(On);break;case"arc":Un.push({deltas:[],abs:[],arc:!0}),Array.isArray(Un[Un.length-1].abs)&&Un[Un.length-1].abs.push(si)}}In=ln?null:xr==="stroke"?"stroke":"fill";for(var Hi=!1,Li=0;Li<Un.length;Li++)if(Un[Li].arc)for(var Bi=Un[Li].abs,wr=0;wr<Bi.length;wr++){var lr=Bi[wr];lr.type==="arc"?Sn.call(this,lr.x,lr.y,lr.radius,lr.startAngle,lr.endAngle,lr.counterclockwise,void 0,ln,!Hi):kt.call(this,lr.x,lr.y),Hi=!0}else if(Un[Li].close===!0)this.pdf.internal.out("h"),Hi=!1;else if(Un[Li].begin!==!0){var on=Un[Li].start.x,Zt=Un[Li].start.y;yt.call(this,Un[Li].deltas,on,Zt),Hi=!0}In&&Pt.call(this,In),ln&>.call(this)}},Br=function(xr){var ln=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,On=ln*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return xr-On;case"top":return xr+ln-On;case"hanging":return xr+ln-2*On;case"middle":return xr+ln/2-On;case"ideographic":return xr;case"alphabetic":default:return xr}},sn=function(xr){return xr+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Ir.prototype.createLinearGradient=function(){var Yr=function(){};return Yr.colorStops=[],Yr.addColorStop=function(xr,ln){this.colorStops.push([xr,ln])},Yr.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Yr.isCanvasGradient=!0,Yr},Ir.prototype.createPattern=function(){return this.createLinearGradient()},Ir.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Sn=function(xr,ln,On,In,Un,ti,ui,si,Pi){for(var zi=tr.call(this,On,In,Un,ti),Ri=0;Ri<zi.length;Ri++){var Yi=zi[Ri];Ri===0&&(Pi?Et.call(this,Yi.x1+xr,Yi.y1+ln):kt.call(this,Yi.x1+xr,Yi.y1+ln)),Qt.call(this,xr,ln,Yi.x2,Yi.y2,Yi.x3,Yi.y3,Yi.x4,Yi.y4)}si?gt.call(this):Pt.call(this,ui)},Pt=function(xr){switch(xr){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},gt=function(){this.pdf.clip(),this.pdf.discardPath()},Et=function(xr,ln){this.pdf.internal.out(Re(xr)+" "+je(ln)+" m")},Lt=function(xr){var ln;switch(xr.align){case"right":case"end":ln="right";break;case"center":ln="center";break;case"left":case"start":default:ln="left"}var On=this.pdf.getTextDimensions(xr.text),In=Br.call(this,xr.y),Un=sn.call(this,In)-On.h,ti=this.ctx.transform.applyToPoint(new qe(xr.x,In)),ui=this.ctx.transform.decompose(),si=new ct;si=(si=(si=si.multiply(ui.translate)).multiply(ui.skew)).multiply(ui.scale);for(var Pi,zi,Ri,Yi=this.ctx.transform.applyToRectangle(new xt(xr.x,In,On.w,On.h)),$n=si.applyToRectangle(new xt(xr.x,Un,On.w,On.h)),gn=mn.call(this,$n),mi=[],Hi=0;Hi<gn.length;Hi+=1)mi.indexOf(gn[Hi])===-1&&mi.push(gn[Hi]);if(Gn(mi),this.autoPaging)for(var Li=mi[0],Bi=mi[mi.length-1],wr=Li;wr<Bi+1;wr++){this.pdf.setPage(wr);var lr=wr===1?this.posY+this.margin[0]:this.margin[0],on=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Zt=this.pdf.internal.pageSize.height-this.margin[2],br=Zt-this.margin[0],Or=this.pdf.internal.pageSize.width-this.margin[1],Wr=Or-this.margin[3],An=wr===1?0:on+(wr-2)*br;if(this.ctx.clip_path.length!==0){var bt=this.path;Pi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=kr(Pi,this.posX+this.margin[3],-1*An+lr),_i.call(this,"fill",!0),this.path=bt}var mr=kr([JSON.parse(JSON.stringify($n))],this.posX+this.margin[3],-An+lr+this.ctx.prevPageLastElemOffset)[0];xr.scale>=.01&&(zi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(zi*xr.scale),Ri=this.lineWidth,this.lineWidth=Ri*xr.scale);var vr=this.autoPaging!=="text";if(vr||mr.y+mr.h<=Zt){if(vr||mr.y>=lr&&mr.x<=Or){var Fr=vr?xr.text:this.pdf.splitTextToSize(xr.text,xr.maxWidth||Or-mr.x)[0],nn=kr([JSON.parse(JSON.stringify(Yi))],this.posX+this.margin[3],-An+lr+this.ctx.prevPageLastElemOffset)[0],cn=vr&&(wr>Li||wr<Bi)&&fr.call(this);cn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Wr,br,null).clip().discardPath()),this.pdf.text(Fr,nn.x,nn.y,{angle:xr.angle,align:ln,renderingMode:xr.renderingMode}),cn&&this.pdf.restoreGraphicsState()}}else mr.y<Zt&&(this.ctx.prevPageLastElemOffset+=Zt-mr.y);xr.scale>=.01&&(this.pdf.setFontSize(zi),this.lineWidth=Ri)}else xr.scale>=.01&&(zi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(zi*xr.scale),Ri=this.lineWidth,this.lineWidth=Ri*xr.scale),this.pdf.text(xr.text,ti.x+this.posX,ti.y+this.posY,{angle:xr.angle,align:ln,renderingMode:xr.renderingMode,maxWidth:xr.maxWidth}),xr.scale>=.01&&(this.pdf.setFontSize(zi),this.lineWidth=Ri)},kt=function(xr,ln,On,In){On=On||0,In=In||0,this.pdf.internal.out(Re(xr+On)+" "+je(ln+In)+" l")},yt=function(xr,ln,On){return this.pdf.lines(xr,ln,On,null,null)},Qt=function(xr,ln,On,In,Un,ti,ui,si){this.pdf.internal.out([Se(Ye(On+xr)),Se(Ve(In+ln)),Se(Ye(Un+xr)),Se(Ve(ti+ln)),Se(Ye(ui+xr)),Se(Ve(si+ln)),"c"].join(" "))},tr=function(xr,ln,On,In){for(var Un=2*Math.PI,ti=Math.PI/2;ln>On;)ln-=Un;var ui=Math.abs(On-ln);ui<Un&&In&&(ui=Un-ui);for(var si=[],Pi=In?-1:1,zi=ln;ui>1e-5;){var Ri=zi+Pi*Math.min(ui,ti);si.push(ir.call(this,xr,zi,Ri)),ui-=Math.abs(Ri-zi),zi=Ri}return si},ir=function(xr,ln,On){var In=(On-ln)/2,Un=xr*Math.cos(In),ti=xr*Math.sin(In),ui=Un,si=-ti,Pi=ui*ui+si*si,zi=Pi+ui*Un+si*ti,Ri=4/3*(Math.sqrt(2*Pi*zi)-zi)/(ui*ti-si*Un),Yi=ui-Ri*si,$n=si+Ri*ui,gn=Yi,mi=-$n,Hi=In+ln,Li=Math.cos(Hi),Bi=Math.sin(Hi);return{x1:xr*Math.cos(ln),y1:xr*Math.sin(ln),x2:Yi*Li-$n*Bi,y2:Yi*Bi+$n*Li,x3:gn*Li-mi*Bi,y3:gn*Bi+mi*Li,x4:xr*Math.cos(On),y4:xr*Math.sin(On)}},yr=function(xr){return 180*xr/Math.PI},xn=function(xr,ln,On,In,Un,ti){var ui=xr+.5*(On-xr),si=ln+.5*(In-ln),Pi=Un+.5*(On-Un),zi=ti+.5*(In-ti),Ri=Math.min(xr,Un,ui,Pi),Yi=Math.max(xr,Un,ui,Pi),$n=Math.min(ln,ti,si,zi),gn=Math.max(ln,ti,si,zi);return new xt(Ri,$n,Yi-Ri,gn-$n)},vn=function(xr,ln,On,In,Un,ti,ui,si){var Pi,zi,Ri,Yi,$n,gn,mi,Hi,Li,Bi,wr,lr,on,Zt,br=On-xr,Or=In-ln,Wr=Un-On,An=ti-In,bt=ui-Un,mr=si-ti;for(zi=0;zi<41;zi++)Li=(mi=(Ri=xr+(Pi=zi/40)*br)+Pi*(($n=On+Pi*Wr)-Ri))+Pi*($n+Pi*(Un+Pi*bt-$n)-mi),Bi=(Hi=(Yi=ln+Pi*Or)+Pi*((gn=In+Pi*An)-Yi))+Pi*(gn+Pi*(ti+Pi*mr-gn)-Hi),zi==0?(wr=Li,lr=Bi,on=Li,Zt=Bi):(wr=Math.min(wr,Li),lr=Math.min(lr,Bi),on=Math.max(on,Li),Zt=Math.max(Zt,Bi));return new xt(Math.round(wr),Math.round(lr),Math.round(on-wr),Math.round(Zt-lr))},Wn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var xr,ln,On=(xr=this.ctx.lineDash,ln=this.ctx.lineDashOffset,JSON.stringify({lineDash:xr,lineDashOffset:ln}));this.prevLineDash!==On&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=On)}}}(j.API),function($e){var Se=function(qe){var xt,ct,Jt,Rr,Ir,Xr,qt,pn,fr,mn;for(/[^\x00-\xFF]/.test(qe),ct=[],Jt=0,Rr=(qe+=xt="\0\0\0\0".slice(qe.length%4||4)).length;Rr>Jt;Jt+=4)(Ir=(qe.charCodeAt(Jt)<<24)+(qe.charCodeAt(Jt+1)<<16)+(qe.charCodeAt(Jt+2)<<8)+qe.charCodeAt(Jt+3))!==0?(Xr=(Ir=((Ir=((Ir=((Ir=(Ir-(mn=Ir%85))/85)-(fr=Ir%85))/85)-(pn=Ir%85))/85)-(qt=Ir%85))/85)%85,ct.push(Xr+33,qt+33,pn+33,fr+33,mn+33)):ct.push(122);return function(en,kr){for(var Gn=kr;Gn>0;Gn--)en.pop()}(ct,xt.length),String.fromCharCode.apply(String,ct)+"~>"},Re=function(qe){var xt,ct,Jt,Rr,Ir,Xr=String,qt="length",pn=255,fr="charCodeAt",mn="slice",en="replace";for(qe[mn](-2),qe=qe[mn](0,-2)[en](/\s/g,"")[en]("z","!!!!!"),Jt=[],Rr=0,Ir=(qe+=xt="uuuuu"[mn](qe[qt]%5||5))[qt];Ir>Rr;Rr+=5)ct=52200625*(qe[fr](Rr)-33)+614125*(qe[fr](Rr+1)-33)+7225*(qe[fr](Rr+2)-33)+85*(qe[fr](Rr+3)-33)+(qe[fr](Rr+4)-33),Jt.push(pn&ct>>24,pn&ct>>16,pn&ct>>8,pn&ct);return function(kr,Gn){for(var di=Gn;di>0;di--)kr.pop()}(Jt,xt[qt]),Xr.fromCharCode.apply(Xr,Jt)},je=function(qe){var xt=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"),xt.test(qe)===!1)return"";for(var ct="",Jt=0;Jt<qe.length;Jt+=2)ct+=String.fromCharCode("0x"+(qe[Jt]+qe[Jt+1]));return ct},Ye=function(qe){for(var xt=new Uint8Array(qe.length),ct=qe.length;ct--;)xt[ct]=qe.charCodeAt(ct);return qe=(xt=Object(A.b)(xt)).reduce(function(Jt,Rr){return Jt+String.fromCharCode(Rr)},"")};$e.processDataByFilters=function(Ve,qe){var xt=0,ct=Ve||"",Jt=[];for(typeof(qe=qe||[])=="string"&&(qe=[qe]),xt=0;xt<qe.length;xt+=1)switch(qe[xt]){case"ASCII85Decode":case"/ASCII85Decode":ct=Re(ct),Jt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ct=Se(ct),Jt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ct=je(ct),Jt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ct=ct.split("").map(function(Rr){return("0"+Rr.charCodeAt().toString(16)).slice(-2)}).join("")+">",Jt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ct=Ye(ct),Jt.push("/FlateDecode");break;default:throw new Error('The filter: "'+qe[xt]+'" is not implemented')}return{data:ct,reverseChain:Jt.reverse().join(" ")}}}(j.API),function($e){$e.loadFile=function(Se,Re,je){return function(Ye,Ve,qe){Ve=Ve!==!1,qe=typeof qe=="function"?qe:function(){};var xt=void 0;try{xt=function(ct,Jt,Rr){var Ir=new XMLHttpRequest,Xr=0,qt=function(fr){var mn=fr.length,en=[],kr=String.fromCharCode;for(Xr=0;Xr<mn;Xr+=1)en.push(kr(255&fr.charCodeAt(Xr)));return en.join("")};if(Ir.open("GET",ct,!Jt),Ir.overrideMimeType("text/plain; charset=x-user-defined"),Jt===!1&&(Ir.onload=function(){Ir.status===200?Rr(qt(this.responseText)):Rr(void 0)}),Ir.send(null),Jt&&Ir.status===200)return qt(Ir.responseText)}(Ye,Ve,qe)}catch(ct){}return xt}(Se,Re,je)},$e.loadImageFile=$e.loadFile}(j.API),function($e){function Se(){return(w.html2canvas?Promise.resolve(w.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 Re(){return(w.DOMPurify?Promise.resolve(w.DOMPurify):d.e(242).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 je=function(xt){var ct=C()(xt);return ct==="undefined"?"undefined":ct==="string"||xt instanceof String?"string":ct==="number"||xt instanceof Number?"number":ct==="function"||xt instanceof Function?"function":xt&&xt.constructor===Array?"array":xt&&xt.nodeType===1?"element":ct==="object"?"object":"unknown"},Ye=function(xt,ct){var Jt=document.createElement(xt);for(var Rr in ct.className&&(Jt.className=ct.className),ct.innerHTML&&ct.dompurify&&(Jt.innerHTML=ct.dompurify.sanitize(ct.innerHTML)),ct.style)Jt.style[Rr]=ct.style[Rr];return Jt},Ve=function qe(xt){var ct=Object.assign(qe.convert(Promise.resolve()),JSON.parse(JSON.stringify(qe.template))),Jt=qe.convert(Promise.resolve(),ct);return Jt=(Jt=Jt.setProgress(1,qe,1,[qe])).set(xt)};(Ve.prototype=Object.create(Promise.prototype)).constructor=Ve,Ve.convert=function(qe,xt){return qe.__proto__=xt||Ve.prototype,qe},Ve.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"}},Ve.prototype.from=function(qe,xt){return this.then(function(){switch(xt=xt||function(ct){switch(je(ct)){case"string":return"string";case"element":return ct.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(qe)){case"string":return this.then(Re).then(function(ct){return this.set({src:Ye("div",{innerHTML:qe,dompurify:ct})})});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.")}})},Ve.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.")}},Ve.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},xt=function ct(Jt,Rr){for(var Ir=Jt.nodeType===3?document.createTextNode(Jt.nodeValue):Jt.cloneNode(!1),Xr=Jt.firstChild;Xr;Xr=Xr.nextSibling)Rr!==!0&&Xr.nodeType===1&&Xr.nodeName==="SCRIPT"||Ir.appendChild(ct(Xr,Rr));return Jt.nodeType===1&&(Jt.nodeName==="CANVAS"?(Ir.width=Jt.width,Ir.height=Jt.height,Ir.getContext("2d").drawImage(Jt,0,0)):Jt.nodeName!=="TEXTAREA"&&Jt.nodeName!=="SELECT"||(Ir.value=Jt.value),Ir.addEventListener("load",function(){Ir.scrollTop=Jt.scrollTop,Ir.scrollLeft=Jt.scrollLeft},!0)),Ir}(this.prop.src,this.opt.html2canvas.javascriptEnabled);xt.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(xt),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"})},Ve.prototype.toCanvas=function(){var qe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(qe).then(Se).then(function(xt){var ct=Object.assign({},this.opt.html2canvas);return delete ct.onrendered,xt(this.prop.container,ct)}).then(function(xt){(this.opt.html2canvas.onrendered||function(){})(xt),this.prop.canvas=xt,document.body.removeChild(this.prop.overlay)})},Ve.prototype.toContext2d=function(){var qe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(qe).then(Se).then(function(xt){var ct=this.opt.jsPDF,Jt=this.opt.fontFaces,Rr=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,Ir=Object.assign({async:!0,allowTaint:!0,scale:Rr,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 Ir.onrendered,ct.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ct.context2d.posX=this.opt.x,ct.context2d.posY=this.opt.y,ct.context2d.margin=this.opt.margin,ct.context2d.fontFaces=Jt,Jt)for(var Xr=0;Xr<Jt.length;++Xr){var qt=Jt[Xr],pn=qt.src.find(function(fr){return fr.format==="truetype"});pn&&ct.addFont(pn.url,qt.ref.name,qt.ref.style)}return Ir.windowHeight=Ir.windowHeight||0,Ir.windowHeight=Ir.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Ir.windowHeight,ct.context2d.save(!0),xt(this.prop.container,Ir)}).then(function(xt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(xt),this.prop.canvas=xt,document.body.removeChild(this.prop.overlay)})},Ve.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})},Ve.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Ve.prototype.output=function(qe,xt,ct){return(ct=ct||"pdf").toLowerCase()==="img"||ct.toLowerCase()==="image"?this.outputImg(qe,xt):this.outputPdf(qe,xt)},Ve.prototype.outputPdf=function(qe,xt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(qe,xt)})},Ve.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.'}})},Ve.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)})},Ve.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Ve.prototype.set=function(qe){if(je(qe)!=="object")return this;var xt=Object.keys(qe||{}).map(function(ct){if(ct in Ve.template.prop)return function(){this.prop[ct]=qe[ct]};switch(ct){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[ct]=qe[ct]}}},this);return this.then(function(){return this.thenList(xt)})},Ve.prototype.get=function(qe,xt){return this.then(function(){var ct=qe in Ve.template.prop?this.prop[qe]:this.opt[qe];return xt?xt(ct):ct})},Ve.prototype.setMargin=function(qe){return this.then(function(){switch(je(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)},Ve.prototype.setPageSize=function(qe){function xt(ct,Jt){return Math.floor(ct*Jt/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:xt(qe.inner.width,qe.k),height:xt(qe.inner.height,qe.k)},qe.inner.ratio=qe.inner.height/qe.inner.width),this.prop.pageSize=qe})},Ve.prototype.setProgress=function(qe,xt,ct,Jt){return qe!=null&&(this.progress.val=qe),xt!=null&&(this.progress.state=xt),ct!=null&&(this.progress.n=ct),Jt!=null&&(this.progress.stack=Jt),this.progress.ratio=this.progress.val/this.progress.state,this},Ve.prototype.updateProgress=function(qe,xt,ct,Jt){return this.setProgress(qe?this.progress.val+qe:null,xt||null,ct?this.progress.n+ct:null,Jt?this.progress.stack.concat(Jt):null)},Ve.prototype.then=function(qe,xt){var ct=this;return this.thenCore(qe,xt,function(Jt,Rr){return ct.updateProgress(null,null,1,[Jt]),Promise.prototype.then.call(this,function(Ir){return ct.updateProgress(null,Jt),Ir}).then(Jt,Rr).then(function(Ir){return ct.updateProgress(1),Ir})})},Ve.prototype.thenCore=function(qe,xt,ct){ct=ct||Promise.prototype.then,qe&&(qe=qe.bind(this)),xt&&(xt=xt.bind(this));var Jt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Ve.convert(Object.assign({},this),Promise.prototype),Rr=ct.call(Jt,qe,xt);return Ve.convert(Rr,this.__proto__)},Ve.prototype.thenExternal=function(qe,xt){return Promise.prototype.then.call(this,qe,xt)},Ve.prototype.thenList=function(qe){var xt=this;return qe.forEach(function(ct){xt=xt.thenCore(ct)}),xt},Ve.prototype.catch=function(qe){qe&&(qe=qe.bind(this));var xt=Promise.prototype.catch.call(this,qe);return Ve.convert(xt,this)},Ve.prototype.catchExternal=function(qe){return Promise.prototype.catch.call(this,qe)},Ve.prototype.error=function(qe){return this.then(function(){throw new Error(qe)})},Ve.prototype.using=Ve.prototype.set,Ve.prototype.saveAs=Ve.prototype.save,Ve.prototype.export=Ve.prototype.output,Ve.prototype.run=Ve.prototype.then,j.getPageSize=function(qe,xt,ct){if(C()(qe)==="object"){var Jt=qe;qe=Jt.orientation,xt=Jt.unit||xt,ct=Jt.format||ct}xt=xt||"mm",ct=ct||"a4",qe=(""+(qe||"P")).toLowerCase();var Rr,Ir=(""+ct).toLowerCase(),Xr={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(xt){case"pt":Rr=1;break;case"mm":Rr=72/25.4;break;case"cm":Rr=72/2.54;break;case"in":Rr=72;break;case"px":Rr=.75;break;case"pc":case"em":Rr=12;break;case"ex":Rr=6;break;default:throw"Invalid unit: "+xt}var qt,pn=0,fr=0;if(Xr.hasOwnProperty(Ir))pn=Xr[Ir][1]/Rr,fr=Xr[Ir][0]/Rr;else try{pn=ct[1],fr=ct[0]}catch(mn){throw new Error("Invalid format: "+ct)}if(qe==="p"||qe==="portrait")qe="p",fr>pn&&(qt=fr,fr=pn,pn=qt);else{if(qe!=="l"&&qe!=="landscape")throw"Invalid orientation: "+qe;qe="l",pn>fr&&(qt=fr,fr=pn,pn=qt)}return{width:fr,height:pn,unit:xt,k:Rr,orientation:qe}},$e.html=function(qe,xt){(xt=xt||{}).callback=xt.callback||function(){},xt.html2canvas=xt.html2canvas||{},xt.html2canvas.canvas=xt.html2canvas.canvas||this.canvas,xt.jsPDF=xt.jsPDF||this,xt.fontFaces=xt.fontFaces?xt.fontFaces.map(Zr):null;var ct=new Ve(xt);return xt.worker?ct:ct.from(qe).doCallback()}}(j.API),j.API.addJS=function($e){return bn=$e,this.internal.events.subscribe("postPutResources",function(){Vn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Vn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),gi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+bn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Vn!==void 0&&gi!==void 0&&this.internal.out("/Names <</JavaScript "+Vn+" 0 R>>")}),this},function($e){var Se;$e.events.push(["postPutResources",function(){var Re=this,je=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ye=Re.outline.render().split(/\r\n/),Ve=0;Ve<Ye.length;Ve++){var qe=Ye[Ve],xt=je.exec(qe);if(xt!=null){var ct=xt[1];Re.internal.newObjectDeferredBegin(ct,!1)}Re.internal.write(qe)}if(this.outline.createNamedDestinations){var Jt=this.internal.pages.length,Rr=[];for(Ve=0;Ve<Jt;Ve++){var Ir=Re.internal.newObject();Rr.push(Ir);var Xr=Re.internal.getPageInfo(Ve+1);Re.internal.write("<< /D["+Xr.objId+" 0 R /XYZ null null null]>> endobj")}var qt=Re.internal.newObject();for(Re.internal.write("<< /Names [ "),Ve=0;Ve<Rr.length;Ve++)Re.internal.write("(page_"+(Ve+1)+")"+Rr[Ve]+" 0 R");Re.internal.write(" ] >>","endobj"),Se=Re.internal.newObject(),Re.internal.write("<< /Dests "+qt+" 0 R"),Re.internal.write(">>","endobj")}}]),$e.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 "+Se+" 0 R"))}]),$e.events.push(["initialized",function(){var Re=this;Re.outline={createNamedDestinations:!1,root:{children:[]}},Re.outline.add=function(je,Ye,Ve){var qe={title:Ye,options:Ve,children:[]};return je==null&&(je=this.root),je.children.push(qe),qe},Re.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Re,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Re.outline.genIds_r=function(je){je.id=Re.internal.newObjectDeferred();for(var Ye=0;Ye<je.children.length;Ye++)this.genIds_r(je.children[Ye])},Re.outline.renderRoot=function(je){this.objStart(je),this.line("/Type /Outlines"),je.children.length>0&&(this.line("/First "+this.makeRef(je.children[0])),this.line("/Last "+this.makeRef(je.children[je.children.length-1]))),this.line("/Count "+this.count_r({count:0},je)),this.objEnd()},Re.outline.renderItems=function(je){for(var Ye=this.ctx.pdf.internal.getVerticalCoordinateString,Ve=0;Ve<je.children.length;Ve++){var qe=je.children[Ve];this.objStart(qe),this.line("/Title "+this.makeString(qe.title)),this.line("/Parent "+this.makeRef(je)),Ve>0&&this.line("/Prev "+this.makeRef(je.children[Ve-1])),Ve<je.children.length-1&&this.line("/Next "+this.makeRef(je.children[Ve+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 xt=this.count=this.count_r({count:0},qe);if(xt>0&&this.line("/Count "+xt),qe.options&&qe.options.pageNumber){var ct=Re.internal.getPageInfo(qe.options.pageNumber);this.line("/Dest ["+ct.objId+" 0 R /XYZ 0 "+Ye(0)+" 0]")}this.objEnd()}for(var Jt=0;Jt<je.children.length;Jt++)this.renderItems(je.children[Jt])},Re.outline.line=function(je){this.ctx.val+=je+`\r
|
|
|
`},Re.outline.makeRef=function(je){return je.id+" 0 R"},Re.outline.makeString=function(je){return"("+Re.internal.pdfEscape(je)+")"},Re.outline.objStart=function(je){this.ctx.val+=`\r
|
|
|
`+je.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},Re.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},Re.outline.count_r=function(je,Ye){for(var Ve=0;Ve<Ye.children.length;Ve++)je.count++,this.count_r(je,Ye.children[Ve]);return je.count}}])}(j.API),function($e){var Se=[192,193,194,195,196,197,198,199];$e.processJPEG=function(Re,je,Ye,Ve,qe,xt){var ct,Jt=this.decode.DCT_DECODE,Rr=null;if(typeof Re=="string"||this.__addimage__.isArrayBuffer(Re)||this.__addimage__.isArrayBufferView(Re)){switch(Re=qe||Re,Re=this.__addimage__.isArrayBuffer(Re)?new Uint8Array(Re):Re,(ct=function(Ir){for(var Xr,qt=256*Ir.charCodeAt(4)+Ir.charCodeAt(5),pn=Ir.length,fr={width:0,height:0,numcomponents:1},mn=4;mn<pn;mn+=2){if(mn+=qt,Se.indexOf(Ir.charCodeAt(mn+1))!==-1){Xr=256*Ir.charCodeAt(mn+5)+Ir.charCodeAt(mn+6),fr={width:256*Ir.charCodeAt(mn+7)+Ir.charCodeAt(mn+8),height:Xr,numcomponents:Ir.charCodeAt(mn+9)};break}qt=256*Ir.charCodeAt(mn+2)+Ir.charCodeAt(mn+3)}return fr}(Re=this.__addimage__.isArrayBufferView(Re)?this.__addimage__.arrayBufferToBinaryString(Re):Re)).numcomponents){case 1:xt=this.color_spaces.DEVICE_GRAY;break;case 4:xt=this.color_spaces.DEVICE_CMYK;break;case 3:xt=this.color_spaces.DEVICE_RGB}Rr={data:Re,width:ct.width,height:ct.height,colorSpace:xt,bitsPerComponent:8,filter:Jt,index:je,alias:Ye}}return Rr}}(j.API);var jt,St,Ie,_e,Le,Ze=function(){var $e,Se,Re;function je(Ve){var qe,xt,ct,Jt,Rr,Ir,Xr,qt,pn,fr,mn,en,kr,Gn;for(this.data=Ve,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Ir=null;;){switch(qe=this.readUInt32(),pn=function(){var di,_i;for(_i=[],di=0;di<4;++di)_i.push(String.fromCharCode(this.data[this.pos++]));return _i}.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":Ir&&this.animation.frames.push(Ir),this.pos+=4,Ir={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Rr=this.readUInt16(),Jt=this.readUInt16()||100,Ir.delay=1e3*Rr/Jt,Ir.disposeOp=this.data[this.pos++],Ir.blendOp=this.data[this.pos++],Ir.data=[];break;case"IDAT":case"fdAT":for(pn==="fdAT"&&(this.pos+=4,qe-=4),Ve=(Ir!=null?Ir.data:void 0)||this.imgData,en=0;0<=qe?en<qe:en>qe;0<=qe?++en:--en)Ve.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ct=this.palette.length/3,this.transparency.indexed=this.read(qe),this.transparency.indexed.length>ct)throw new Error("More transparent colors than palette size");if((fr=ct-this.transparency.indexed.length)>0)for(kr=0;0<=fr?kr<fr:kr>fr;0<=fr?++kr:--kr)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":Xr=(mn=this.read(qe)).indexOf(0),qt=String.fromCharCode.apply(String,mn.slice(0,Xr)),this.text[qt]=String.fromCharCode.apply(String,mn.slice(Xr+1));break;case"IEND":return Ir&&this.animation.frames.push(Ir),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Gn=this.colorType)===4||Gn===6,xt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*xt,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")}}je.prototype.read=function(Ve){var qe,xt;for(xt=[],qe=0;0<=Ve?qe<Ve:qe>Ve;0<=Ve?++qe:--qe)xt.push(this.data[this.pos++]);return xt},je.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},je.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},je.prototype.decodePixels=function(Ve){var qe=this.pixelBitlength/8,xt=new Uint8Array(this.width*this.height*qe),ct=0,Jt=this;if(Ve==null&&(Ve=this.imgData),Ve.length===0)return new Uint8Array(0);function Rr(Ir,Xr,qt,pn){var fr,mn,en,kr,Gn,di,_i,Br,sn,Sn,Pt,gt,Et,Lt,kt,yt,Qt,tr,ir,yr,xn,vn=Math.ceil((Jt.width-Ir)/qt),Wn=Math.ceil((Jt.height-Xr)/pn),Yr=Jt.width==vn&&Jt.height==Wn;for(Lt=qe*vn,gt=Yr?xt:new Uint8Array(Lt*Wn),di=Ve.length,Et=0,mn=0;Et<Wn&&ct<di;){switch(Ve[ct++]){case 0:for(kr=Qt=0;Qt<Lt;kr=Qt+=1)gt[mn++]=Ve[ct++];break;case 1:for(kr=tr=0;tr<Lt;kr=tr+=1)fr=Ve[ct++],Gn=kr<qe?0:gt[mn-qe],gt[mn++]=(fr+Gn)%256;break;case 2:for(kr=ir=0;ir<Lt;kr=ir+=1)fr=Ve[ct++],en=(kr-kr%qe)/qe,kt=Et&>[(Et-1)*Lt+en*qe+kr%qe],gt[mn++]=(kt+fr)%256;break;case 3:for(kr=yr=0;yr<Lt;kr=yr+=1)fr=Ve[ct++],en=(kr-kr%qe)/qe,Gn=kr<qe?0:gt[mn-qe],kt=Et&>[(Et-1)*Lt+en*qe+kr%qe],gt[mn++]=(fr+Math.floor((Gn+kt)/2))%256;break;case 4:for(kr=xn=0;xn<Lt;kr=xn+=1)fr=Ve[ct++],en=(kr-kr%qe)/qe,Gn=kr<qe?0:gt[mn-qe],Et===0?kt=yt=0:(kt=gt[(Et-1)*Lt+en*qe+kr%qe],yt=en&>[(Et-1)*Lt+(en-1)*qe+kr%qe]),_i=Gn+kt-yt,Br=Math.abs(_i-Gn),Sn=Math.abs(_i-kt),Pt=Math.abs(_i-yt),sn=Br<=Sn&&Br<=Pt?Gn:Sn<=Pt?kt:yt,gt[mn++]=(fr+sn)%256;break;default:throw new Error("Invalid filter algorithm: "+Ve[ct-1])}if(!Yr){var xr=((Xr+Et*pn)*Jt.width+Ir)*qe,ln=Et*Lt;for(kr=0;kr<vn;kr+=1){for(var On=0;On<qe;On+=1)xt[xr++]=gt[ln++];xr+=(qt-1)*qe}}Et++}}return Ve=Object(A.a)(Ve),Jt.interlaceMethod==1?(Rr(0,0,8,8),Rr(4,0,8,8),Rr(0,4,4,8),Rr(2,0,4,4),Rr(0,2,2,4),Rr(1,0,2,2),Rr(0,1,1,2)):Rr(0,0,1,1),xt},je.prototype.decodePalette=function(){var Ve,qe,xt,ct,Jt,Rr,Ir,Xr,qt;for(xt=this.palette,Rr=this.transparency.indexed||[],Jt=new Uint8Array((Rr.length||0)+xt.length),ct=0,Ve=0,qe=Ir=0,Xr=xt.length;Ir<Xr;qe=Ir+=3)Jt[ct++]=xt[qe],Jt[ct++]=xt[qe+1],Jt[ct++]=xt[qe+2],Jt[ct++]=(qt=Rr[Ve++])!=null?qt:255;return Jt},je.prototype.copyToImageData=function(Ve,qe){var xt,ct,Jt,Rr,Ir,Xr,qt,pn,fr,mn,en;if(ct=this.colors,fr=null,xt=this.hasAlphaChannel,this.palette.length&&(fr=(en=this._decodedPalette)!=null?en:this._decodedPalette=this.decodePalette(),ct=4,xt=!0),pn=(Jt=Ve.data||Ve).length,Ir=fr||qe,Rr=Xr=0,ct===1)for(;Rr<pn;)qt=fr?4*qe[Rr/4]:Xr,mn=Ir[qt++],Jt[Rr++]=mn,Jt[Rr++]=mn,Jt[Rr++]=mn,Jt[Rr++]=xt?Ir[qt++]:255,Xr=qt;else for(;Rr<pn;)qt=fr?4*qe[Rr/4]:Xr,Jt[Rr++]=Ir[qt++],Jt[Rr++]=Ir[qt++],Jt[Rr++]=Ir[qt++],Jt[Rr++]=xt?Ir[qt++]:255,Xr=qt},je.prototype.decode=function(){var Ve;return Ve=new Uint8Array(this.width*this.height*4),this.copyToImageData(Ve,this.decodePixels()),Ve};var Ye=function(){if(Object.prototype.toString.call(w)==="[object Window]"){try{Se=w.document.createElement("canvas"),Re=Se.getContext("2d")}catch(qe){return!1}return!0}return!1};return Ye(),$e=function(qe){var xt;if(Ye()===!0)return Re.width=qe.width,Re.height=qe.height,Re.clearRect(0,0,qe.width,qe.height),Re.putImageData(qe,0,0),(xt=new Image).src=Se.toDataURL(),xt;throw new Error("This method requires a Browser with Canvas-capability.")},je.prototype.decodeFrames=function(Ve){var qe,xt,ct,Jt,Rr,Ir,Xr,qt;if(this.animation){for(qt=[],xt=Rr=0,Ir=(Xr=this.animation.frames).length;Rr<Ir;xt=++Rr)qe=Xr[xt],ct=Ve.createImageData(qe.width,qe.height),Jt=this.decodePixels(new Uint8Array(qe.data)),this.copyToImageData(ct,Jt),qe.imageData=ct,qt.push(qe.image=$e(ct));return qt}},je.prototype.renderFrame=function(Ve,qe){var xt,ct,Jt;return xt=(ct=this.animation.frames)[qe],Jt=ct[qe-1],qe===0&&Ve.clearRect(0,0,this.width,this.height),(Jt!=null?Jt.disposeOp:void 0)===1?Ve.clearRect(Jt.xOffset,Jt.yOffset,Jt.width,Jt.height):(Jt!=null?Jt.disposeOp:void 0)===2&&Ve.putImageData(Jt.imageData,Jt.xOffset,Jt.yOffset),xt.blendOp===0&&Ve.clearRect(xt.xOffset,xt.yOffset,xt.width,xt.height),Ve.drawImage(xt.image,xt.xOffset,xt.yOffset)},je.prototype.animate=function(Ve){var qe,xt,ct,Jt,Rr,Ir,Xr=this;return xt=0,Ir=this.animation,Jt=Ir.numFrames,ct=Ir.frames,Rr=Ir.numPlays,(qe=function(){var pn,fr;if(pn=xt++%Jt,fr=ct[pn],Xr.renderFrame(Ve,pn),Jt>1&&xt/Jt<Rr)return Xr.animation._timeout=setTimeout(qe,fr.delay)})()},je.prototype.stopAnimation=function(){var Ve;return clearTimeout((Ve=this.animation)!=null?Ve._timeout:void 0)},je.prototype.render=function(Ve){var qe,xt;return Ve._png&&Ve._png.stopAnimation(),Ve._png=this,Ve.width=this.width,Ve.height=this.height,qe=Ve.getContext("2d"),this.animation?(this.decodeFrames(qe),this.animate(qe)):(xt=qe.createImageData(this.width,this.height),this.copyToImageData(xt,this.decodePixels()),qe.putImageData(xt,0,0))},je}();/**
|
|
|
* @license
|
|
|
*
|
|
|
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
* the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
* ====================================================================
|
|
|
*//**
|
|
|
* @license
|
|
|
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|
|
*
|
|
|
* https://github.com/deanm/omggif
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
* of this software and associated documentation files (the "Software"), to
|
|
|
* deal in the Software without restriction, including without limitation the
|
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
* all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
* IN THE SOFTWARE.
|
|
|
*
|
|
|
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|
|
* including animation and compression. It does not rely on any specific
|
|
|
* underlying system, so should run in the browser, Node, or Plask.
|
|
|
*/function it($e){var Se=0;if($e[Se++]!==71||$e[Se++]!==73||$e[Se++]!==70||$e[Se++]!==56||($e[Se++]+1&253)!=56||$e[Se++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Re=$e[Se++]|$e[Se++]<<8,je=$e[Se++]|$e[Se++]<<8,Ye=$e[Se++],Ve=Ye>>7,qe=1<<(7&Ye)+1;$e[Se++],$e[Se++];var xt=null,ct=null;Ve&&(xt=Se,ct=qe,Se+=3*qe);var Jt=!0,Rr=[],Ir=0,Xr=null,qt=0,pn=null;for(this.width=Re,this.height=je;Jt&&Se<$e.length;)switch($e[Se++]){case 33:switch($e[Se++]){case 255:if($e[Se]!==11||$e[Se+1]==78&&$e[Se+2]==69&&$e[Se+3]==84&&$e[Se+4]==83&&$e[Se+5]==67&&$e[Se+6]==65&&$e[Se+7]==80&&$e[Se+8]==69&&$e[Se+9]==50&&$e[Se+10]==46&&$e[Se+11]==48&&$e[Se+12]==3&&$e[Se+13]==1&&$e[Se+16]==0)Se+=14,pn=$e[Se++]|$e[Se++]<<8,Se++;else for(Se+=12;;){if(!((Et=$e[Se++])>=0))throw Error("Invalid block size");if(Et===0)break;Se+=Et}break;case 249:if($e[Se++]!==4||$e[Se+4]!==0)throw new Error("Invalid graphics extension block.");var fr=$e[Se++];Ir=$e[Se++]|$e[Se++]<<8,Xr=$e[Se++],(1&fr)==0&&(Xr=null),qt=fr>>2&7,Se++;break;case 254:for(;;){if(!((Et=$e[Se++])>=0))throw Error("Invalid block size");if(Et===0)break;Se+=Et}break;default:throw new Error("Unknown graphic control label: 0x"+$e[Se-1].toString(16))}break;case 44:var mn=$e[Se++]|$e[Se++]<<8,en=$e[Se++]|$e[Se++]<<8,kr=$e[Se++]|$e[Se++]<<8,Gn=$e[Se++]|$e[Se++]<<8,di=$e[Se++],_i=di>>6&1,Br=1<<(7&di)+1,sn=xt,Sn=ct,Pt=!1;di>>7&&(Pt=!0,sn=Se,Sn=Br,Se+=3*Br);var gt=Se;for(Se++;;){var Et;if(!((Et=$e[Se++])>=0))throw Error("Invalid block size");if(Et===0)break;Se+=Et}Rr.push({x:mn,y:en,width:kr,height:Gn,has_local_palette:Pt,palette_offset:sn,palette_size:Sn,data_offset:gt,data_length:Se-gt,transparent_index:Xr,interlaced:!!_i,delay:Ir,disposal:qt});break;case 59:Jt=!1;break;default:throw new Error("Unknown gif block: 0x"+$e[Se-1].toString(16))}this.numFrames=function(){return Rr.length},this.loopCount=function(){return pn},this.frameInfo=function(Lt){if(Lt<0||Lt>=Rr.length)throw new Error("Frame index out of range.");return Rr[Lt]},this.decodeAndBlitFrameBGRA=function(Lt,kt){var yt=this.frameInfo(Lt),Qt=yt.width*yt.height,tr=new Uint8Array(Qt);ft($e,yt.data_offset,tr,Qt);var ir=yt.palette_offset,yr=yt.transparent_index;yr===null&&(yr=256);var xn=yt.width,vn=Re-xn,Wn=xn,Yr=4*(yt.y*Re+yt.x),xr=4*((yt.y+yt.height)*Re+yt.x),ln=Yr,On=4*vn;yt.interlaced===!0&&(On+=4*Re*7);for(var In=8,Un=0,ti=tr.length;Un<ti;++Un){var ui=tr[Un];if(Wn===0&&(Wn=xn,(ln+=On)>=xr&&(On=4*vn+4*Re*(In-1),ln=Yr+(xn+vn)*(In<<1),In>>=1)),ui===yr)ln+=4;else{var si=$e[ir+3*ui],Pi=$e[ir+3*ui+1],zi=$e[ir+3*ui+2];kt[ln++]=zi,kt[ln++]=Pi,kt[ln++]=si,kt[ln++]=255}--Wn}},this.decodeAndBlitFrameRGBA=function(Lt,kt){var yt=this.frameInfo(Lt),Qt=yt.width*yt.height,tr=new Uint8Array(Qt);ft($e,yt.data_offset,tr,Qt);var ir=yt.palette_offset,yr=yt.transparent_index;yr===null&&(yr=256);var xn=yt.width,vn=Re-xn,Wn=xn,Yr=4*(yt.y*Re+yt.x),xr=4*((yt.y+yt.height)*Re+yt.x),ln=Yr,On=4*vn;yt.interlaced===!0&&(On+=4*Re*7);for(var In=8,Un=0,ti=tr.length;Un<ti;++Un){var ui=tr[Un];if(Wn===0&&(Wn=xn,(ln+=On)>=xr&&(On=4*vn+4*Re*(In-1),ln=Yr+(xn+vn)*(In<<1),In>>=1)),ui===yr)ln+=4;else{var si=$e[ir+3*ui],Pi=$e[ir+3*ui+1],zi=$e[ir+3*ui+2];kt[ln++]=si,kt[ln++]=Pi,kt[ln++]=zi,kt[ln++]=255}--Wn}}}function ft($e,Se,Re,je){for(var Ye=$e[Se++],Ve=1<<Ye,qe=Ve+1,xt=qe+1,ct=Ye+1,Jt=(1<<ct)-1,Rr=0,Ir=0,Xr=0,qt=$e[Se++],pn=new Int32Array(4096),fr=null;;){for(;Rr<16&&qt!==0;)Ir|=$e[Se++]<<Rr,Rr+=8,qt===1?qt=$e[Se++]:--qt;if(Rr<ct)break;var mn=Ir&Jt;if(Ir>>=ct,Rr-=ct,mn!==Ve){if(mn===qe)break;for(var en=mn<xt?mn:fr,kr=0,Gn=en;Gn>Ve;)Gn=pn[Gn]>>8,++kr;var di=Gn;if(Xr+kr+(en!==mn?1:0)>je)return void f.log("Warning, gif stream longer than expected.");Re[Xr++]=di;var _i=Xr+=kr;for(en!==mn&&(Re[Xr++]=di),Gn=en;kr--;)Gn=pn[Gn],Re[--_i]=255&Gn,Gn>>=8;fr!==null&&xt<4096&&(pn[xt++]=fr<<8|di,xt>=Jt+1&&ct<12&&(++ct,Jt=Jt<<1|1)),fr=mn}else xt=qe+1,Jt=(1<<(ct=Ye+1))-1,fr=null}return Xr!==je&&f.log("Warning, gif stream shorter than expected."),Re}/**
|
|
|
* @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 Nt($e){var Se,Re,je,Ye,Ve,qe=Math.floor,xt=new Array(64),ct=new Array(64),Jt=new Array(64),Rr=new Array(64),Ir=new Array(65535),Xr=new Array(65535),qt=new Array(64),pn=new Array(64),fr=[],mn=0,en=7,kr=new Array(64),Gn=new Array(64),di=new Array(64),_i=new Array(256),Br=new Array(2048),sn=[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],Sn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Pt=[0,1,2,3,4,5,6,7,8,9,10,11],gt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Et=[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],Lt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],kt=[0,1,2,3,4,5,6,7,8,9,10,11],yt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Qt=[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 tr(Yr,xr){for(var ln=0,On=0,In=new Array,Un=1;Un<=16;Un++){for(var ti=1;ti<=Yr[Un];ti++)In[xr[On]]=[],In[xr[On]][0]=ln,In[xr[On]][1]=Un,On++,ln++;ln*=2}return In}function ir(Yr){for(var xr=Yr[0],ln=Yr[1]-1;ln>=0;)xr&1<<ln&&(mn|=1<<en),ln--,--en<0&&(mn==255?(yr(255),yr(0)):yr(mn),en=7,mn=0)}function yr(Yr){fr.push(Yr)}function xn(Yr){yr(Yr>>8&255),yr(255&Yr)}function vn(Yr,xr,ln,On,In){for(var Un,ti=In[0],ui=In[240],si=function(Li,Bi){var wr,lr,on,Zt,br,Or,Wr,An,bt,mr,vr=0;for(bt=0;bt<8;++bt){wr=Li[vr],lr=Li[vr+1],on=Li[vr+2],Zt=Li[vr+3],br=Li[vr+4],Or=Li[vr+5],Wr=Li[vr+6];var Fr=wr+(An=Li[vr+7]),nn=wr-An,cn=lr+Wr,tn=lr-Wr,Ln=on+Or,Tn=on-Or,Xn=Zt+br,ci=Zt-br,Jn=Fr+Xn,pi=Fr-Xn,Si=cn+Ln,Ni=cn-Ln;Li[vr]=Jn+Si,Li[vr+4]=Jn-Si;var xi=.707106781*(Ni+pi);Li[vr+2]=pi+xi,Li[vr+6]=pi-xi;var yi=.382683433*((Jn=ci+Tn)-(Ni=tn+nn)),vi=.5411961*Jn+yi,Ti=1.306562965*Ni+yi,Ui=.707106781*(Si=Tn+tn),$i=nn+Ui,Di=nn-Ui;Li[vr+5]=Di+vi,Li[vr+3]=Di-vi,Li[vr+1]=$i+Ti,Li[vr+7]=$i-Ti,vr+=8}for(vr=0,bt=0;bt<8;++bt){wr=Li[vr],lr=Li[vr+8],on=Li[vr+16],Zt=Li[vr+24],br=Li[vr+32],Or=Li[vr+40],Wr=Li[vr+48];var ua=wr+(An=Li[vr+56]),aa=wr-An,Gi=lr+Wr,Vi=lr-Wr,ta=on+Or,Xi=on-Or,ga=Zt+br,ra=Zt-br,pa=ua+ga,_a=ua-ga,Da=Gi+ta,Ra=Gi-ta;Li[vr]=pa+Da,Li[vr+32]=pa-Da;var Ao=.707106781*(Ra+_a);Li[vr+16]=_a+Ao,Li[vr+48]=_a-Ao;var ja=.382683433*((pa=ra+Xi)-(Ra=Vi+aa)),Ya=.5411961*pa+ja,Ia=1.306562965*Ra+ja,Va=.707106781*(Da=Xi+Vi),co=aa+Va,Ca=aa-Va;Li[vr+40]=Ca+Ya,Li[vr+24]=Ca-Ya,Li[vr+8]=co+Ia,Li[vr+56]=co-Ia,vr++}for(bt=0;bt<64;++bt)mr=Li[bt]*Bi[bt],qt[bt]=mr>0?mr+.5|0:mr-.5|0;return qt}(Yr,xr),Pi=0;Pi<64;++Pi)pn[sn[Pi]]=si[Pi];var zi=pn[0]-ln;ln=pn[0],zi==0?ir(On[0]):(ir(On[Xr[Un=32767+zi]]),ir(Ir[Un]));for(var Ri=63;Ri>0&&pn[Ri]==0;)Ri--;if(Ri==0)return ir(ti),ln;for(var Yi,$n=1;$n<=Ri;){for(var gn=$n;pn[$n]==0&&$n<=Ri;)++$n;var mi=$n-gn;if(mi>=16){Yi=mi>>4;for(var Hi=1;Hi<=Yi;++Hi)ir(ui);mi&=15}Un=32767+pn[$n],ir(In[(mi<<4)+Xr[Un]]),ir(Ir[Un]),$n++}return Ri!=63&&ir(ti),ln}function Wn(Yr){(Yr=Math.min(Math.max(Yr,1),100),Ve!=Yr)&&(!function(xr){for(var ln=[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],On=0;On<64;On++){var In=qe((ln[On]*xr+50)/100);In=Math.min(Math.max(In,1),255),xt[sn[On]]=In}for(var Un=[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],ti=0;ti<64;ti++){var ui=qe((Un[ti]*xr+50)/100);ui=Math.min(Math.max(ui,1),255),ct[sn[ti]]=ui}for(var si=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Pi=0,zi=0;zi<8;zi++)for(var Ri=0;Ri<8;Ri++)Jt[Pi]=1/(xt[sn[Pi]]*si[zi]*si[Ri]*8),Rr[Pi]=1/(ct[sn[Pi]]*si[zi]*si[Ri]*8),Pi++}(Yr<50?Math.floor(5e3/Yr):Math.floor(200-2*Yr)),Ve=Yr)}this.encode=function(Yr,xr){xr&&Wn(xr),fr=new Array,mn=0,en=7,xn(65496),xn(65504),xn(16),yr(74),yr(70),yr(73),yr(70),yr(0),yr(1),yr(1),yr(0),xn(1),xn(1),yr(0),yr(0),function(){xn(65499),xn(132),yr(0);for(var lr=0;lr<64;lr++)yr(xt[lr]);yr(1);for(var on=0;on<64;on++)yr(ct[on])}(),function(lr,on){xn(65472),xn(17),yr(8),xn(on),xn(lr),yr(3),yr(1),yr(17),yr(0),yr(2),yr(17),yr(1),yr(3),yr(17),yr(1)}(Yr.width,Yr.height),function(){xn(65476),xn(418),yr(0);for(var lr=0;lr<16;lr++)yr(Sn[lr+1]);for(var on=0;on<=11;on++)yr(Pt[on]);yr(16);for(var Zt=0;Zt<16;Zt++)yr(gt[Zt+1]);for(var br=0;br<=161;br++)yr(Et[br]);yr(1);for(var Or=0;Or<16;Or++)yr(Lt[Or+1]);for(var Wr=0;Wr<=11;Wr++)yr(kt[Wr]);yr(17);for(var An=0;An<16;An++)yr(yt[An+1]);for(var bt=0;bt<=161;bt++)yr(Qt[bt])}(),xn(65498),xn(12),yr(3),yr(1),yr(0),yr(2),yr(17),yr(3),yr(17),yr(0),yr(63),yr(0);var ln=0,On=0,In=0;mn=0,en=7,this.encode.displayName="_encode_";for(var Un,ti,ui,si,Pi,zi,Ri,Yi,$n,gn=Yr.data,mi=Yr.width,Hi=Yr.height,Li=4*mi,Bi=0;Bi<Hi;){for(Un=0;Un<Li;){for(Pi=Li*Bi+Un,Ri=-1,Yi=0,$n=0;$n<64;$n++)zi=Pi+(Yi=$n>>3)*Li+(Ri=4*(7&$n)),Bi+Yi>=Hi&&(zi-=Li*(Bi+1+Yi-Hi)),Un+Ri>=Li&&(zi-=Un+Ri-Li+4),ti=gn[zi++],ui=gn[zi++],si=gn[zi++],kr[$n]=(Br[ti]+Br[ui+256>>0]+Br[si+512>>0]>>16)-128,Gn[$n]=(Br[ti+768>>0]+Br[ui+1024>>0]+Br[si+1280>>0]>>16)-128,di[$n]=(Br[ti+1280>>0]+Br[ui+1536>>0]+Br[si+1792>>0]>>16)-128;ln=vn(kr,Jt,ln,Se,je),On=vn(Gn,Rr,On,Re,Ye),In=vn(di,Rr,In,Re,Ye),Un+=32}Bi+=8}if(en>=0){var wr=[];wr[1]=en+1,wr[0]=(1<<en+1)-1,ir(wr)}return xn(65497),new Uint8Array(fr)},$e=$e||50,function(){for(var Yr=String.fromCharCode,xr=0;xr<256;xr++)_i[xr]=Yr(xr)}(),Se=tr(Sn,Pt),Re=tr(Lt,kt),je=tr(gt,Et),Ye=tr(yt,Qt),function(){for(var Yr=1,xr=2,ln=1;ln<=15;ln++){for(var On=Yr;On<xr;On++)Xr[32767+On]=ln,Ir[32767+On]=[],Ir[32767+On][1]=ln,Ir[32767+On][0]=On;for(var In=-(xr-1);In<=-Yr;In++)Xr[32767+In]=ln,Ir[32767+In]=[],Ir[32767+In][1]=ln,Ir[32767+In][0]=xr-1+In;Yr<<=1,xr<<=1}}(),function(){for(var Yr=0;Yr<256;Yr++)Br[Yr]=19595*Yr,Br[Yr+256>>0]=38470*Yr,Br[Yr+512>>0]=7471*Yr+32768,Br[Yr+768>>0]=-11059*Yr,Br[Yr+1024>>0]=-21709*Yr,Br[Yr+1280>>0]=32768*Yr+8421375,Br[Yr+1536>>0]=-27439*Yr,Br[Yr+1792>>0]=-5329*Yr}(),Wn($e)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function Ar($e,Se){if(this.pos=0,this.buffer=$e,this.datav=new DataView($e.buffer),this.is_with_alpha=!!Se,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 Mr($e){function Se(Sn){if(!Sn)throw Error("assert :P")}function Re(Sn,Pt,gt){for(var Et=0;4>Et;Et++)if(Sn[Pt+Et]!=gt.charCodeAt(Et))return!0;return!1}function je(Sn,Pt,gt,Et,Lt){for(var kt=0;kt<Lt;kt++)Sn[Pt+kt]=gt[Et+kt]}function Ye(Sn,Pt,gt,Et){for(var Lt=0;Lt<Et;Lt++)Sn[Pt+Lt]=gt}function Ve(Sn){return new Int32Array(Sn)}function qe(Sn,Pt){for(var gt=[],Et=0;Et<Sn;Et++)gt.push(new Pt);return gt}function xt(Sn,Pt){var gt=[];return function Et(Lt,kt,yt){for(var Qt=yt[kt],tr=0;tr<Qt&&(Lt.push(yt.length>kt+1?[]:new Pt),!(yt.length<kt+1));tr++)Et(Lt[tr],kt+1,yt)}(gt,0,Sn),gt}var ct=function(){var Pt=this;function gt(Ae,We){for(var pt=1<<We-1>>>0;Ae&pt;)pt>>>=1;return pt?(Ae&pt-1)+pt:Ae}function Et(Ae,We,pt,nr,Tr){Se(!(nr%pt));do Ae[We+(nr-=pt)]=Tr;while(0<nr)}function Lt(Ae,We,pt,nr,Tr){if(Se(2328>=Tr),512>=Tr)var zr=Ve(512);else if((zr=Ve(Tr))==null)return 0;return function(Me,te,ye,Ge,st,Ft){var zt,Yt,Nr=te,Qr=1<<ye,Cr=Ve(16),Er=Ve(16);for(Se(st!=0),Se(Ge!=null),Se(Me!=null),Se(0<ye),Yt=0;Yt<st;++Yt){if(15<Ge[Yt])return 0;++Cr[Ge[Yt]]}if(Cr[0]==st)return 0;for(Er[1]=0,zt=1;15>zt;++zt){if(Cr[zt]>1<<zt)return 0;Er[zt+1]=Er[zt]+Cr[zt]}for(Yt=0;Yt<st;++Yt)zt=Ge[Yt],0<Ge[Yt]&&(Ft[Er[zt]++]=Yt);if(Er[15]==1)return(Ge=new kt).g=0,Ge.value=Ft[0],Et(Me,Nr,1,Qr,Ge),Qr;var Kr,qr=-1,Cn=Qr-1,oi=0,hi=1,ji=1,Oi=1<<ye;for(Yt=0,zt=1,st=2;zt<=ye;++zt,st<<=1){if(hi+=ji<<=1,0>(ji-=Cr[zt]))return 0;for(;0<Cr[zt];--Cr[zt])(Ge=new kt).g=zt,Ge.value=Ft[Yt++],Et(Me,Nr+oi,st,Oi,Ge),oi=gt(oi,zt)}for(zt=ye+1,st=2;15>=zt;++zt,st<<=1){if(hi+=ji<<=1,0>(ji-=Cr[zt]))return 0;for(;0<Cr[zt];--Cr[zt]){if(Ge=new kt,(oi&Cn)!=qr){for(Nr+=Oi,Kr=1<<(qr=zt)-ye;15>qr&&!(0>=(Kr-=Cr[qr]));)++qr,Kr<<=1;Qr+=Oi=1<<(Kr=qr-ye),Me[te+(qr=oi&Cn)].g=Kr+ye,Me[te+qr].value=Nr-te-qr}Ge.g=zt-ye,Ge.value=Ft[Yt++],Et(Me,Nr+(oi>>ye),st,Oi,Ge),oi=gt(oi,zt)}}return hi!=2*Er[15]-1?0:Qr}(Ae,We,pt,nr,Tr,zr)}function kt(){this.value=this.g=0}function yt(){this.value=this.g=0}function Qt(){this.G=qe(5,kt),this.H=Ve(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=qe(Ka,yt)}function tr(Ae,We,pt,nr){Se(Ae!=null),Se(We!=null),Se(2147483648>nr),Ae.Ca=254,Ae.I=0,Ae.b=-8,Ae.Ka=0,Ae.oa=We,Ae.pa=pt,Ae.Jd=We,Ae.Yc=pt+nr,Ae.Zc=4<=nr?pt+nr-4+1:pt,ti(Ae)}function ir(Ae,We){for(var pt=0;0<We--;)pt|=si(Ae,128)<<We;return pt}function yr(Ae,We){var pt=ir(Ae,We);return ui(Ae)?-pt:pt}function xn(Ae,We,pt,nr){var Tr,zr=0;for(Se(Ae!=null),Se(We!=null),Se(4294967288>nr),Ae.Sb=nr,Ae.Ra=0,Ae.u=0,Ae.h=0,4<nr&&(nr=4),Tr=0;Tr<nr;++Tr)zr+=We[pt+Tr]<<8*Tr;Ae.Ra=zr,Ae.bb=nr,Ae.oa=We,Ae.pa=pt}function vn(Ae){for(;8<=Ae.u&&Ae.bb<Ae.Sb;)Ae.Ra>>>=8,Ae.Ra+=Ae.oa[Ae.pa+Ae.bb]<<Go-8>>>0,++Ae.bb,Ae.u-=8;On(Ae)&&(Ae.h=1,Ae.u=0)}function Wn(Ae,We){if(Se(0<=We),!Ae.h&&We<=Is){var pt=ln(Ae)&is[We];return Ae.u+=We,vn(Ae),pt}return Ae.h=1,Ae.u=0}function Yr(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function xr(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ln(Ae){return Ae.Ra>>>(Ae.u&Go-1)>>>0}function On(Ae){return Se(Ae.bb<=Ae.Sb),Ae.h||Ae.bb==Ae.Sb&&Ae.u>Go}function In(Ae,We){Ae.u=We,Ae.h=On(Ae)}function Un(Ae){Ae.u>=la&&(Se(Ae.u>=la),vn(Ae))}function ti(Ae){Se(Ae!=null&&Ae.oa!=null),Ae.pa<Ae.Zc?(Ae.I=(Ae.oa[Ae.pa++]|Ae.I<<8)>>>0,Ae.b+=8):(Se(Ae!=null&&Ae.oa!=null),Ae.pa<Ae.Yc?(Ae.b+=8,Ae.I=Ae.oa[Ae.pa++]|Ae.I<<8):Ae.Ka?Ae.b=0:(Ae.I<<=8,Ae.b+=8,Ae.Ka=1))}function ui(Ae){return ir(Ae,1)}function si(Ae,We){var pt=Ae.Ca;0>Ae.b&&ti(Ae);var nr=Ae.b,Tr=pt*We>>>8,zr=(Ae.I>>>nr>Tr)+0;for(zr?(pt-=Tr,Ae.I-=Tr+1<<nr>>>0):pt=Tr+1,nr=pt,Tr=0;256<=nr;)Tr+=8,nr>>=8;return nr=7^Tr+Vs[nr],Ae.b-=nr,Ae.Ca=(pt<<nr)-1,zr}function Pi(Ae,We,pt){Ae[We+0]=pt>>24&255,Ae[We+1]=pt>>16&255,Ae[We+2]=pt>>8&255,Ae[We+3]=pt>>0&255}function zi(Ae,We){return Ae[We+0]<<0|Ae[We+1]<<8}function Ri(Ae,We){return zi(Ae,We)|Ae[We+2]<<16}function Yi(Ae,We){return zi(Ae,We)|zi(Ae,We+2)<<16}function $n(Ae,We){var pt=1<<We;return Se(Ae!=null),Se(0<We),Ae.X=Ve(pt),Ae.X==null?0:(Ae.Mb=32-We,Ae.Xa=We,1)}function gn(Ae,We){Se(Ae!=null),Se(We!=null),Se(Ae.Xa==We.Xa),je(We.X,0,Ae.X,0,1<<We.Xa)}function mi(){this.X=[],this.Xa=this.Mb=0}function Hi(Ae,We,pt,nr){Se(pt!=null),Se(nr!=null);var Tr=pt[0],zr=nr[0];return Tr==0&&(Tr=(Ae*zr+We/2)/We),zr==0&&(zr=(We*Tr+Ae/2)/Ae),0>=Tr||0>=zr?0:(pt[0]=Tr,nr[0]=zr,1)}function Li(Ae,We){return Ae+(1<<We)-1>>>We}function Bi(Ae,We){return((4278255360&Ae)+(4278255360&We)>>>0&4278255360)+((16711935&Ae)+(16711935&We)>>>0&16711935)>>>0}function wr(Ae,We){Pt[We]=function(pt,nr,Tr,zr,Me,te,ye){var Ge;for(Ge=0;Ge<Me;++Ge){var st=Pt[Ae](te[ye+Ge-1],Tr,zr+Ge);te[ye+Ge]=Bi(pt[nr+Ge],st)}}}function lr(){this.ud=this.hd=this.jd=0}function on(Ae,We){return((4278124286&(Ae^We))>>>1)+(Ae&We)>>>0}function Zt(Ae){return 0<=Ae&&256>Ae?Ae:0>Ae?0:255<Ae?255:void 0}function br(Ae,We){return Zt(Ae+(Ae-We+.5>>1))}function Or(Ae,We,pt){return Math.abs(We-pt)-Math.abs(Ae-pt)}function Wr(Ae,We,pt,nr,Tr,zr,Me){for(nr=zr[Me-1],pt=0;pt<Tr;++pt)zr[Me+pt]=nr=Bi(Ae[We+pt],nr)}function An(Ae,We,pt,nr,Tr){var zr;for(zr=0;zr<pt;++zr){var Me=Ae[We+zr],te=Me>>8&255,ye=16711935&(ye=(ye=16711935&Me)+((te<<16)+te));nr[Tr+zr]=(4278255360&Me)+ye>>>0}}function bt(Ae,We){We.jd=Ae>>0&255,We.hd=Ae>>8&255,We.ud=Ae>>16&255}function mr(Ae,We,pt,nr,Tr,zr){var Me;for(Me=0;Me<nr;++Me){var te=We[pt+Me],ye=te>>>8,Ge=te,st=255&(st=(st=te>>>16)+((Ae.jd<<24>>24)*(ye<<24>>24)>>>5));Ge=255&(Ge=(Ge=Ge+((Ae.hd<<24>>24)*(ye<<24>>24)>>>5))+((Ae.ud<<24>>24)*(st<<24>>24)>>>5)),Tr[zr+Me]=(4278255360&te)+(st<<16)+Ge}}function vr(Ae,We,pt,nr,Tr){Pt[We]=function(zr,Me,te,ye,Ge,st,Ft,zt,Yt){for(ye=Ft;ye<zt;++ye)for(Ft=0;Ft<Yt;++Ft)Ge[st++]=Tr(te[nr(zr[Me++])])},Pt[Ae]=function(zr,Me,te,ye,Ge,st,Ft){var zt=8>>zr.b,Yt=zr.Ea,Nr=zr.K[0],Qr=zr.w;if(8>zt)for(zr=(1<<zr.b)-1,Qr=(1<<zt)-1;Me<te;++Me){var Cr,Er=0;for(Cr=0;Cr<Yt;++Cr)Cr&zr||(Er=nr(ye[Ge++])),st[Ft++]=Tr(Nr[Er&Qr]),Er>>=zt}else Pt["VP8LMapColor"+pt](ye,Ge,Nr,Qr,st,Ft,Me,te,Yt)}}function Fr(Ae,We,pt,nr,Tr){for(pt=We+pt;We<pt;){var zr=Ae[We++];nr[Tr++]=zr>>16&255,nr[Tr++]=zr>>8&255,nr[Tr++]=zr>>0&255}}function nn(Ae,We,pt,nr,Tr){for(pt=We+pt;We<pt;){var zr=Ae[We++];nr[Tr++]=zr>>16&255,nr[Tr++]=zr>>8&255,nr[Tr++]=zr>>0&255,nr[Tr++]=zr>>24&255}}function cn(Ae,We,pt,nr,Tr){for(pt=We+pt;We<pt;){var zr=(Me=Ae[We++])>>16&240|Me>>12&15,Me=Me>>0&240|Me>>28&15;nr[Tr++]=zr,nr[Tr++]=Me}}function tn(Ae,We,pt,nr,Tr){for(pt=We+pt;We<pt;){var zr=(Me=Ae[We++])>>16&248|Me>>13&7,Me=Me>>5&224|Me>>3&31;nr[Tr++]=zr,nr[Tr++]=Me}}function Ln(Ae,We,pt,nr,Tr){for(pt=We+pt;We<pt;){var zr=Ae[We++];nr[Tr++]=zr>>0&255,nr[Tr++]=zr>>8&255,nr[Tr++]=zr>>16&255}}function Tn(Ae,We,pt,nr,Tr,zr){if(zr==0)for(pt=We+pt;We<pt;)Pi(nr,((zr=Ae[We++])[0]>>24|zr[1]>>8&65280|zr[2]<<8&16711680|zr[3]<<24)>>>0),Tr+=32;else je(nr,Tr,Ae,We,pt)}function Xn(Ae,We){Pt[We][0]=Pt[Ae+"0"],Pt[We][1]=Pt[Ae+"1"],Pt[We][2]=Pt[Ae+"2"],Pt[We][3]=Pt[Ae+"3"],Pt[We][4]=Pt[Ae+"4"],Pt[We][5]=Pt[Ae+"5"],Pt[We][6]=Pt[Ae+"6"],Pt[We][7]=Pt[Ae+"7"],Pt[We][8]=Pt[Ae+"8"],Pt[We][9]=Pt[Ae+"9"],Pt[We][10]=Pt[Ae+"10"],Pt[We][11]=Pt[Ae+"11"],Pt[We][12]=Pt[Ae+"12"],Pt[We][13]=Pt[Ae+"13"],Pt[We][14]=Pt[Ae+"0"],Pt[We][15]=Pt[Ae+"0"]}function ci(Ae){return Ae==bu||Ae==bl||Ae==Fl||Ae==Hl}function Jn(){this.eb=[],this.size=this.A=this.fb=0}function pi(){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 Si(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Jn,this.f.kb=new pi,this.sd=null}function Ni(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xi(){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 yi(Ae){return alert("todo:WebPSamplerProcessPlane"),Ae.T}function vi(Ae,We){var pt=Ae.T,nr=We.ba.f.RGBA,Tr=nr.eb,zr=nr.fb+Ae.ka*nr.A,Me=Io[We.ba.S],te=Ae.y,ye=Ae.O,Ge=Ae.f,st=Ae.N,Ft=Ae.ea,zt=Ae.W,Yt=We.cc,Nr=We.dc,Qr=We.Mc,Cr=We.Nc,Er=Ae.ka,Kr=Ae.ka+Ae.T,qr=Ae.U,Cn=qr+1>>1;for(Er==0?Me(te,ye,null,null,Ge,st,Ft,zt,Ge,st,Ft,zt,Tr,zr,null,null,qr):(Me(We.ec,We.fc,te,ye,Yt,Nr,Qr,Cr,Ge,st,Ft,zt,Tr,zr-nr.A,Tr,zr,qr),++pt);Er+2<Kr;Er+=2)Yt=Ge,Nr=st,Qr=Ft,Cr=zt,st+=Ae.Rc,zt+=Ae.Rc,zr+=2*nr.A,Me(te,(ye+=2*Ae.fa)-Ae.fa,te,ye,Yt,Nr,Qr,Cr,Ge,st,Ft,zt,Tr,zr-nr.A,Tr,zr,qr);return ye+=Ae.fa,Ae.j+Kr<Ae.o?(je(We.ec,We.fc,te,ye,qr),je(We.cc,We.dc,Ge,st,Cn),je(We.Mc,We.Nc,Ft,zt,Cn),pt--):1&Kr||Me(te,ye,null,null,Ge,st,Ft,zt,Ge,st,Ft,zt,Tr,zr+nr.A,null,null,qr),pt}function Ti(Ae,We,pt){var nr=Ae.F,Tr=[Ae.J];if(nr!=null){var zr=Ae.U,Me=We.ba.S,te=Me==Qs||Me==Fl;We=We.ba.f.RGBA;var ye=[0],Ge=Ae.ka;ye[0]=Ae.T,Ae.Kb&&(Ge==0?--ye[0]:(--Ge,Tr[0]-=Ae.width),Ae.j+Ae.ka+Ae.T==Ae.o&&(ye[0]=Ae.o-Ae.j-Ge));var st=We.eb;Ge=We.fb+Ge*We.A,Ae=$s(nr,Tr[0],Ae.width,zr,ye,st,Ge+(te?0:3),We.A),Se(pt==ye),Ae&&ci(Me)&&El(st,Ge,te,zr,ye,We.A)}return 0}function Ui(Ae){var We=Ae.ma,pt=We.ba.S,nr=11>pt,Tr=pt==du||pt==nu||pt==Qs||pt==iu||pt==12||ci(pt);if(We.memory=null,We.Ib=null,We.Jb=null,We.Nd=null,!Vo(We.Oa,Ae,Tr?11:12))return 0;if(Tr&&ci(pt)&&Ke(),Ae.da)alert("todo:use_scaling");else{if(nr){if(We.Ib=yi,Ae.Kb){if(pt=Ae.U+1>>1,We.memory=Ve(Ae.U+2*pt),We.memory==null)return 0;We.ec=We.memory,We.fc=0,We.cc=We.ec,We.dc=We.fc+Ae.U,We.Mc=We.cc,We.Nc=We.dc+pt,We.Ib=vi,Ke()}}else alert("todo:EmitYUV");Tr&&(We.Jb=Ti,nr&&me())}if(nr&&!Fu){for(Ae=0;256>Ae;++Ae)ec[Ae]=89858*(Ae-128)+Yl>>Ks,Xu[Ae]=-22014*(Ae-128)+Yl,Gu[Ae]=-45773*(Ae-128),Bu[Ae]=113618*(Ae-128)+Yl>>Ks;for(Ae=gu;Ae<uu;++Ae)We=76283*(Ae-16)+Yl>>Ks,Yu[Ae-gu]=Ja(We,255),Uu[Ae-gu]=Ja(We+8>>4,15);Fu=1}return 1}function $i(Ae){var We=Ae.ma,pt=Ae.U,nr=Ae.T;return Se(!(1&Ae.ka)),0>=pt||0>=nr?0:(pt=We.Ib(Ae,We),We.Jb!=null&&We.Jb(Ae,We,pt),We.Dc+=pt,1)}function Di(Ae){Ae.ma.memory=null}function ua(Ae,We,pt,nr){return Wn(Ae,8)!=47?0:(We[0]=Wn(Ae,14)+1,pt[0]=Wn(Ae,14)+1,nr[0]=Wn(Ae,1),Wn(Ae,3)!=0?0:!Ae.h)}function aa(Ae,We){if(4>Ae)return Ae+1;var pt=Ae-2>>1;return(2+(1&Ae)<<pt)+Wn(We,pt)+1}function Gi(Ae,We){return 120<We?We-120:1<=(pt=((pt=ou[We-1])>>4)*Ae+(8-(15&pt)))?pt:1;var pt}function Vi(Ae,We,pt){var nr=ln(pt),Tr=Ae[We+=255&nr].g-8;return 0<Tr&&(In(pt,pt.u+8),nr=ln(pt),We+=Ae[We].value,We+=nr&(1<<Tr)-1),In(pt,pt.u+Ae[We].g),Ae[We].value}function ta(Ae,We,pt){return pt.g+=Ae.g,pt.value+=Ae.value<<We>>>0,Se(8>=pt.g),Ae.g}function Xi(Ae,We,pt){var nr=Ae.xc;return Se((We=nr==0?0:Ae.vc[Ae.md*(pt>>nr)+(We>>nr)])<Ae.Wb),Ae.Ya[We]}function ga(Ae,We,pt,nr){var Tr=Ae.ab,zr=Ae.c*We,Me=Ae.C;We=Me+We;var te=pt,ye=nr;for(nr=Ae.Ta,pt=Ae.Ua;0<Tr--;){var Ge=Ae.gc[Tr],st=Me,Ft=We,zt=te,Yt=ye,Nr=(ye=nr,te=pt,Ge.Ea);switch(Se(st<Ft),Se(Ft<=Ge.nc),Ge.hc){case 2:as(zt,Yt,(Ft-st)*Nr,ye,te);break;case 0:var Qr=st,Cr=Ft,Er=ye,Kr=te,qr=(Oi=Ge).Ea;Qr==0&&(Hs(zt,Yt,null,null,1,Er,Kr),Wr(zt,Yt+1,0,0,qr-1,Er,Kr+1),Yt+=qr,Kr+=qr,++Qr);for(var Cn=1<<Oi.b,oi=Cn-1,hi=Li(qr,Oi.b),ji=Oi.K,Oi=Oi.w+(Qr>>Oi.b)*hi;Qr<Cr;){var wa=ji,Qi=Oi,Ua=1;for(fs(zt,Yt,Er,Kr-qr,1,Er,Kr);Ua<qr;){var Sa=(Ua&~oi)+Cn;Sa>qr&&(Sa=qr),(0,Zo[wa[Qi++]>>8&15])(zt,Yt+ +Ua,Er,Kr+Ua-qr,Sa-Ua,Er,Kr+Ua),Ua=Sa}Yt+=qr,Kr+=qr,++Qr&oi||(Oi+=hi)}Ft!=Ge.nc&&je(ye,te-Nr,ye,te+(Ft-st-1)*Nr,Nr);break;case 1:for(Nr=zt,Cr=Yt,qr=(zt=Ge.Ea)-(Kr=zt&~(Er=(Yt=1<<Ge.b)-1)),Qr=Li(zt,Ge.b),Cn=Ge.K,Ge=Ge.w+(st>>Ge.b)*Qr;st<Ft;){for(oi=Cn,hi=Ge,ji=new lr,Oi=Cr+Kr,wa=Cr+zt;Cr<Oi;)bt(oi[hi++],ji),As(ji,Nr,Cr,Yt,ye,te),Cr+=Yt,te+=Yt;Cr<wa&&(bt(oi[hi++],ji),As(ji,Nr,Cr,qr,ye,te),Cr+=qr,te+=qr),++st&Er||(Ge+=Qr)}break;case 3:if(zt==ye&&Yt==te&&0<Ge.b){for(Cr=ye,zt=Nr=te+(Ft-st)*Nr-(Kr=(Ft-st)*Li(Ge.Ea,Ge.b)),Yt=ye,Er=te,Qr=[],Kr=(qr=Kr)-1;0<=Kr;--Kr)Qr[Kr]=Yt[Er+Kr];for(Kr=qr-1;0<=Kr;--Kr)Cr[zt+Kr]=Qr[Kr];Ss(Ge,st,Ft,ye,Nr,ye,te)}else Ss(Ge,st,Ft,zt,Yt,ye,te)}te=nr,ye=pt}ye!=pt&&je(nr,pt,te,ye,zr)}function ra(Ae,We){var pt=Ae.V,nr=Ae.Ba+Ae.c*Ae.C,Tr=We-Ae.C;if(Se(We<=Ae.l.o),Se(16>=Tr),0<Tr){var zr=Ae.l,Me=Ae.Ta,te=Ae.Ua,ye=zr.width;if(ga(Ae,Tr,pt,nr),Tr=te=[te],Se((pt=Ae.C)<(nr=We)),Se(zr.v<zr.va),nr>zr.o&&(nr=zr.o),pt<zr.j){var Ge=zr.j-pt;pt=zr.j,Tr[0]+=Ge*ye}if(pt>=nr?pt=0:(Tr[0]+=4*zr.v,zr.ka=pt-zr.j,zr.U=zr.va-zr.v,zr.T=nr-pt,pt=1),pt){if(te=te[0],11>(pt=Ae.ca).S){var st=pt.f.RGBA,Ft=(nr=pt.S,Tr=zr.U,zr=zr.T,Ge=st.eb,st.A),zt=zr;for(st=st.fb+Ae.Ma*st.A;0<zt--;){var Yt=Me,Nr=te,Qr=Tr,Cr=Ge,Er=st;switch(nr){case Pl:nl(Yt,Nr,Qr,Cr,Er);break;case du:Ps(Yt,Nr,Qr,Cr,Er);break;case bu:Ps(Yt,Nr,Qr,Cr,Er),El(Cr,Er,0,Qr,1,0);break;case ru:Eo(Yt,Nr,Qr,Cr,Er);break;case nu:Tn(Yt,Nr,Qr,Cr,Er,1);break;case bl:Tn(Yt,Nr,Qr,Cr,Er,1),El(Cr,Er,0,Qr,1,0);break;case Qs:Tn(Yt,Nr,Qr,Cr,Er,0);break;case Fl:Tn(Yt,Nr,Qr,Cr,Er,0),El(Cr,Er,1,Qr,1,0);break;case iu:po(Yt,Nr,Qr,Cr,Er);break;case Hl:po(Yt,Nr,Qr,Cr,Er),jl(Cr,Er,Qr,1,0);break;case au:Wa(Yt,Nr,Qr,Cr,Er);break;default:Se(0)}te+=ye,st+=Ft}Ae.Ma+=zr}else alert("todo:EmitRescaledRowsYUVA");Se(Ae.Ma<=pt.height)}}Ae.C=We,Se(Ae.C<=Ae.i)}function pa(Ae){var We;if(0<Ae.ua)return 0;for(We=0;We<Ae.Wb;++We){var pt=Ae.Ya[We].G,nr=Ae.Ya[We].H;if(0<pt[1][nr[1]+0].g||0<pt[2][nr[2]+0].g||0<pt[3][nr[3]+0].g)return 0}return 1}function _a(Ae,We,pt,nr,Tr,zr){if(Ae.Z!=0){var Me=Ae.qd,te=Ae.rd;for(Se(ro[Ae.Z]!=null);We<pt;++We)ro[Ae.Z](Me,te,nr,Tr,nr,Tr,zr),Me=nr,te=Tr,Tr+=zr;Ae.qd=Me,Ae.rd=te}}function Da(Ae,We){var pt=Ae.l.ma,nr=pt.Z==0||pt.Z==1?Ae.l.j:Ae.C;if(nr=Ae.C<nr?nr:Ae.C,Se(We<=Ae.l.o),We>nr){var Tr=Ae.l.width,zr=pt.ca,Me=pt.tb+Tr*nr,te=Ae.V,ye=Ae.Ba+Ae.c*nr,Ge=Ae.gc;Se(Ae.ab==1),Se(Ge[0].hc==3),vl(Ge[0],nr,We,te,ye,zr,Me),_a(pt,nr,We,zr,Me,Tr)}Ae.C=Ae.Ma=We}function Ra(Ae,We,pt,nr,Tr,zr,Me){var te=Ae.$/nr,ye=Ae.$%nr,Ge=Ae.m,st=Ae.s,Ft=pt+Ae.$,zt=Ft;Tr=pt+nr*Tr;var Yt=pt+nr*zr,Nr=280+st.ua,Qr=Ae.Pb?te:16777216,Cr=0<st.ua?st.Wa:null,Er=st.wc,Kr=Ft<Yt?Xi(st,ye,te):null;Se(Ae.C<zr),Se(Yt<=Tr);var qr=!1;e:for(;;){for(;qr||Ft<Yt;){var Cn=0;if(te>=Qr){var oi=Ft-pt;Se((Qr=Ae).Pb),Qr.wd=Qr.m,Qr.xd=oi,0<Qr.s.ua&&gn(Qr.s.Wa,Qr.s.vb),Qr=te+su}if(ye&Er||(Kr=Xi(st,ye,te)),Se(Kr!=null),Kr.Qb&&(We[Ft]=Kr.qb,qr=!0),!qr)if(Un(Ge),Kr.jc){Cn=Ge,oi=We;var hi=Ft,ji=Kr.pd[ln(Cn)&Ka-1];Se(Kr.jc),256>ji.g?(In(Cn,Cn.u+ji.g),oi[hi]=ji.value,Cn=0):(In(Cn,Cn.u+ji.g-256),Se(256<=ji.value),Cn=ji.value),Cn==0&&(qr=!0)}else Cn=Vi(Kr.G[0],Kr.H[0],Ge);if(Ge.h)break;if(qr||256>Cn){if(!qr)if(Kr.nd)We[Ft]=(Kr.qb|Cn<<8)>>>0;else{if(Un(Ge),qr=Vi(Kr.G[1],Kr.H[1],Ge),Un(Ge),oi=Vi(Kr.G[2],Kr.H[2],Ge),hi=Vi(Kr.G[3],Kr.H[3],Ge),Ge.h)break;We[Ft]=(hi<<24|qr<<16|Cn<<8|oi)>>>0}if(qr=!1,++Ft,++ye>=nr&&(ye=0,++te,Me!=null&&te<=zr&&!(te%16)&&Me(Ae,te),Cr!=null))for(;zt<Ft;)Cn=We[zt++],Cr.X[(506832829*Cn&4294967295)>>>Cr.Mb]=Cn}else if(280>Cn){if(Cn=aa(Cn-256,Ge),oi=Vi(Kr.G[4],Kr.H[4],Ge),Un(Ge),oi=Gi(nr,oi=aa(oi,Ge)),Ge.h)break;if(Ft-pt<oi||Tr-Ft<Cn)break e;for(hi=0;hi<Cn;++hi)We[Ft+hi]=We[Ft+hi-oi];for(Ft+=Cn,ye+=Cn;ye>=nr;)ye-=nr,++te,Me!=null&&te<=zr&&!(te%16)&&Me(Ae,te);if(Se(Ft<=Tr),ye&Er&&(Kr=Xi(st,ye,te)),Cr!=null)for(;zt<Ft;)Cn=We[zt++],Cr.X[(506832829*Cn&4294967295)>>>Cr.Mb]=Cn}else{if(!(Cn<Nr))break e;for(qr=Cn-280,Se(Cr!=null);zt<Ft;)Cn=We[zt++],Cr.X[(506832829*Cn&4294967295)>>>Cr.Mb]=Cn;Cn=Ft,Se(!(qr>>>(oi=Cr).Xa)),We[Cn]=oi.X[qr],qr=!0}qr||Se(Ge.h==On(Ge))}if(Ae.Pb&&Ge.h&&Ft<Tr)Se(Ae.m.h),Ae.a=5,Ae.m=Ae.wd,Ae.$=Ae.xd,0<Ae.s.ua&&gn(Ae.s.vb,Ae.s.Wa);else{if(Ge.h)break e;Me!=null&&Me(Ae,te>zr?zr:te),Ae.a=0,Ae.$=Ft-pt}return 1}return Ae.a=3,0}function Ao(Ae){Se(Ae!=null),Ae.vc=null,Ae.yc=null,Ae.Ya=null;var We=Ae.Wa;We!=null&&(We.X=null),Ae.vb=null,Se(Ae!=null)}function ja(){var Ae=new to;return Ae==null?null:(Ae.a=0,Ae.xb=Na,Xn("Predictor","VP8LPredictors"),Xn("Predictor","VP8LPredictors_C"),Xn("PredictorAdd","VP8LPredictorsAdd"),Xn("PredictorAdd","VP8LPredictorsAdd_C"),as=An,As=mr,nl=Fr,Ps=nn,po=cn,Wa=tn,Eo=Ln,Pt.VP8LMapColor32b=xl,Pt.VP8LMapColor8b=zs,Ae)}function Ya(Ae,We,pt,nr,Tr){var zr=1,Me=[Ae],te=[We],ye=nr.m,Ge=nr.s,st=null,Ft=0;e:for(;;){if(pt)for(;zr&&Wn(ye,1);){var zt=Me,Yt=te,Nr=nr,Qr=1,Cr=Nr.m,Er=Nr.gc[Nr.ab],Kr=Wn(Cr,2);if(Nr.Oc&1<<Kr)zr=0;else{switch(Nr.Oc|=1<<Kr,Er.hc=Kr,Er.Ea=zt[0],Er.nc=Yt[0],Er.K=[null],++Nr.ab,Se(4>=Nr.ab),Kr){case 0:case 1:Er.b=Wn(Cr,3)+2,Qr=Ya(Li(Er.Ea,Er.b),Li(Er.nc,Er.b),0,Nr,Er.K),Er.K=Er.K[0];break;case 3:var qr,Cn=Wn(Cr,8)+1,oi=16<Cn?0:4<Cn?1:2<Cn?2:3;if(zt[0]=Li(Er.Ea,oi),Er.b=oi,qr=Qr=Ya(Cn,1,0,Nr,Er.K)){var hi,ji=Cn,Oi=Er,wa=1<<(8>>Oi.b),Qi=Ve(wa);if(Qi==null)qr=0;else{var Ua=Oi.K[0],Sa=Oi.w;for(Qi[0]=Oi.K[0][0],hi=1;hi<1*ji;++hi)Qi[hi]=Bi(Ua[Sa+hi],Qi[hi-1]);for(;hi<4*wa;++hi)Qi[hi]=0;Oi.K[0]=null,Oi.K[0]=Qi,qr=1}}Qr=qr;break;case 2:break;default:Se(0)}zr=Qr}}if(Me=Me[0],te=te[0],zr&&Wn(ye,1)&&!(zr=1<=(Ft=Wn(ye,4))&&11>=Ft)){nr.a=3;break e}var So;if(So=zr)t:{var Fo,k,K,Z=nr,re=Me,ce=te,Pe=Ft,mt=pt,Wt=Z.m,sr=Z.s,pr=[null],wn=1,Rn=0,ei=hu[Pe];r:for(;;){if(mt&&Wn(Wt,1)){var ni=Wn(Wt,3)+2,Mi=Li(re,ni),Zi=Li(ce,ni),da=Mi*Zi;if(!Ya(Mi,Zi,0,Z,pr))break r;for(pr=pr[0],sr.xc=ni,Fo=0;Fo<da;++Fo){var ia=pr[Fo]>>8&65535;pr[Fo]=ia,ia>=wn&&(wn=ia+1)}}if(Wt.h)break r;for(k=0;5>k;++k){var na=Tu[k];!k&&0<Pe&&(na+=1<<Pe),Rn<na&&(Rn=na)}var xa=qe(wn*ei,kt),Ma=wn,To=qe(Ma,Qt);if(To==null)var no=null;else Se(65536>=Ma),no=To;var Wo=Ve(Rn);if(no==null||Wo==null||xa==null){Z.a=1;break r}var ps=xa;for(Fo=K=0;Fo<wn;++Fo){var Us=no[Fo],Ts=Us.G,tl=Us.H,ul=0,Gs=1,cl=0;for(k=0;5>k;++k){na=Tu[k],Ts[k]=ps,tl[k]=K,!k&&0<Pe&&(na+=1<<Pe);i:{var rl,ya=na,Ms=Z,Ls=Wo,Ws=ps,Lu=K,ns=0,Uo=Ms.m,Rl=Wn(Uo,1);if(Ye(Ls,0,0,ya),Rl){var al=Wn(Uo,1)+1,Nu=Wn(Uo,1),Ql=Wn(Uo,Nu==0?1:8);Ls[Ql]=1,al==2&&(Ls[Ql=Wn(Uo,8)]=1);var Ml=1}else{var vu=Ve(19),gl=Wn(Uo,4)+4;if(19<gl){Ms.a=3;var Jl=0;break i}for(rl=0;rl<gl;++rl)vu[Cl[rl]]=Wn(Uo,3);var ju=void 0,Qu=void 0,vc=Ms,Ac=vu,tc=ya,yc=Ls,sc=0,Du=vc.m,hc=8,bc=qe(128,kt);n:for(;Lt(bc,0,7,Ac,19);){if(Wn(Du,1)){var Tc=2+2*Wn(Du,3);if((ju=2+Wn(Du,Tc))>tc)break n}else ju=tc;for(Qu=0;Qu<tc&&ju--;){Un(Du);var wc=bc[0+(127&ln(Du))];In(Du,Du.u+wc.g);var xu=wc.value;if(16>xu)yc[Qu++]=xu,xu!=0&&(hc=xu);else{var Zl=xu==16,fc=xu-16,lc=Tl[fc],Sc=Wn(Du,Gl[fc])+lc;if(Qu+Sc>tc)break n;for(var Cc=Zl?hc:0;0<Sc--;)yc[Qu++]=Cc}}sc=1;break n}sc||(vc.a=3),Ml=sc}(Ml=Ml&&!Uo.h)&&(ns=Lt(Ws,Lu,8,Ls,ya)),Ml&&ns!=0?Jl=ns:(Ms.a=3,Jl=0)}if(Jl==0)break r;if(Gs&&Cu[k]==1&&(Gs=ps[K].g==0),ul+=ps[K].g,K+=Jl,3>=k){var Hu,Ru=Wo[0];for(Hu=1;Hu<na;++Hu)Wo[Hu]>Ru&&(Ru=Wo[Hu]);cl+=Ru}}if(Us.nd=Gs,Us.Qb=0,Gs&&(Us.qb=(Ts[3][tl[3]+0].value<<24|Ts[1][tl[1]+0].value<<16|Ts[2][tl[2]+0].value)>>>0,ul==0&&256>Ts[0][tl[0]+0].value&&(Us.Qb=1,Us.qb+=Ts[0][tl[0]+0].value<<8)),Us.jc=!Us.Qb&&6>cl,Us.jc){var Ku,Eu=Us;for(Ku=0;Ku<Ka;++Ku){var zl=Ku,Mu=Eu.pd[zl],uc=Eu.G[0][Eu.H[0]+zl];256<=uc.value?(Mu.g=uc.g+256,Mu.value=uc.value):(Mu.g=0,Mu.value=0,zl>>=ta(uc,8,Mu),zl>>=ta(Eu.G[1][Eu.H[1]+zl],16,Mu),zl>>=ta(Eu.G[2][Eu.H[2]+zl],0,Mu),ta(Eu.G[3][Eu.H[3]+zl],24,Mu))}}}sr.vc=pr,sr.Wb=wn,sr.Ya=no,sr.yc=xa,So=1;break t}So=0}if(!(zr=So)){nr.a=3;break e}if(0<Ft){if(Ge.ua=1<<Ft,!$n(Ge.Wa,Ft)){nr.a=1,zr=0;break e}}else Ge.ua=0;var cc=nr,xc=Me,Ec=te,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=Li(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,pt){nr.xb=Bo;break e}if((st=Ve(Me*te))==null){nr.a=1,zr=0;break e}zr=(zr=Ra(nr,st,0,Me,te,te,null))&&!ye.h;break e}return zr?(Tr!=null?Tr[0]=st:(Se(st==null),Se(pt)),nr.$=0,pt||Ao(Ge)):Ao(Ge),zr}function Ia(Ae,We){var pt=Ae.c*Ae.i,nr=pt+We+16*We;return Se(Ae.c<=We),Ae.V=Ve(nr),Ae.V==null?(Ae.Ta=null,Ae.Ua=0,Ae.a=1,0):(Ae.Ta=Ae.V,Ae.Ua=Ae.Ba+pt+We,1)}function Va(Ae,We){var pt=Ae.C,nr=We-pt,Tr=Ae.V,zr=Ae.Ba+Ae.c*pt;for(Se(We<=Ae.l.o);0<nr;){var Me=16<nr?16:nr,te=Ae.l.ma,ye=Ae.l.width,Ge=ye*Me,st=te.ca,Ft=te.tb+ye*pt,zt=Ae.Ta,Yt=Ae.Ua;ga(Ae,Me,Tr,zr),Nl(zt,Yt,st,Ft,Ge),_a(te,pt,pt+Me,st,Ft,ye),nr-=Me,Tr+=Me*Ae.c,pt+=Me}Se(pt==We),Ae.C=Ae.Ma=We}function co(){this.ub=this.yd=this.td=this.Rb=0}function Ca(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function yo(){this.Fb=this.Bb=this.Cb=0,this.Zb=Ve(4),this.Lb=Ve(4)}function uo(){this.Yb=function(){var Ae=[];return function We(pt,nr,Tr){for(var zr=Tr[nr],Me=0;Me<zr&&(pt.push(Tr.length>nr+1?[]:0),!(Tr.length<nr+1));Me++)We(pt[Me],nr+1,Tr)}(Ae,0,[3,11]),Ae}()}function Ga(){this.jb=Ve(3),this.Wc=xt([4,8],uo),this.Xc=xt([4,17],uo)}function Oo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Ve(4),this.od=new Ve(4)}function oa(){this.ld=this.La=this.dd=this.tc=0}function qa(){this.Na=this.la=0}function oo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ro(){this.ad=Ve(384),this.Za=0,this.Ob=Ve(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Xa(){this.uc=this.M=this.Nb=0,this.wa=Array(new oa),this.Y=0,this.ya=Array(new Ro),this.aa=0,this.l=new Fa}function _o(){this.y=Ve(16),this.f=Ve(8),this.ea=Ve(8)}function go(){this.cb=this.a=0,this.sc="",this.m=new Yr,this.Od=new co,this.Kc=new Ca,this.ed=new Oo,this.Qa=new yo,this.Ic=this.$c=this.Aa=0,this.D=new Xa,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=qe(8,Yr),this.ia=0,this.pb=qe(4,oo),this.Pa=new Ga,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new _o),this.Hd=0,this.rb=Array(new qa),this.sb=0,this.wa=Array(new oa),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 Ro),this.L=this.aa=0,this.gd=xt([4,2],oa),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 Ja(Ae,We){return 0>Ae?0:Ae>We?We:Ae}function Fa(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ha(){var Ae=new go;return Ae!=null&&(Ae.a=0,Ae.sc="OK",Ae.cb=0,Ae.Xb=0,Bl||(Bl=Lr)),Ae}function rt(Ae,We,pt){return Ae.a==0&&(Ae.a=We,Ae.sc=pt,Ae.cb=0),0}function cr(Ae,We,pt){return 3<=pt&&Ae[We+0]==157&&Ae[We+1]==1&&Ae[We+2]==42}function Pr(Ae,We){if(Ae==null)return 0;if(Ae.a=0,Ae.sc="OK",We==null)return rt(Ae,2,"null VP8Io passed to VP8GetHeaders()");var pt=We.data,nr=We.w,Tr=We.ha;if(4>Tr)return rt(Ae,7,"Truncated header.");var zr=pt[nr+0]|pt[nr+1]<<8|pt[nr+2]<<16,Me=Ae.Od;if(Me.Rb=!(1&zr),Me.td=zr>>1&7,Me.yd=zr>>4&1,Me.ub=zr>>5,3<Me.td)return rt(Ae,3,"Incorrect keyframe parameters.");if(!Me.yd)return rt(Ae,4,"Frame not displayable.");nr+=3,Tr-=3;var te=Ae.Kc;if(Me.Rb){if(7>Tr)return rt(Ae,7,"cannot parse picture header");if(!cr(pt,nr,Tr))return rt(Ae,3,"Bad code word");te.c=16383&(pt[nr+4]<<8|pt[nr+3]),te.Td=pt[nr+4]>>6,te.i=16383&(pt[nr+6]<<8|pt[nr+5]),te.Ud=pt[nr+6]>>6,nr+=7,Tr-=7,Ae.za=te.c+15>>4,Ae.Ub=te.i+15>>4,We.width=te.c,We.height=te.i,We.Da=0,We.j=0,We.v=0,We.va=We.width,We.o=We.height,We.da=0,We.ib=We.width,We.hb=We.height,We.U=We.width,We.T=We.height,Ye((zr=Ae.Pa).jb,0,255,zr.jb.length),Se((zr=Ae.Qa)!=null),zr.Cb=0,zr.Bb=0,zr.Fb=1,Ye(zr.Zb,0,0,zr.Zb.length),Ye(zr.Lb,0,0,zr.Lb)}if(Me.ub>Tr)return rt(Ae,7,"bad partition length");tr(zr=Ae.m,pt,nr,Me.ub),nr+=Me.ub,Tr-=Me.ub,Me.Rb&&(te.Ld=ui(zr),te.Kd=ui(zr)),te=Ae.Qa;var ye,Ge=Ae.Pa;if(Se(zr!=null),Se(te!=null),te.Cb=ui(zr),te.Cb){if(te.Bb=ui(zr),ui(zr)){for(te.Fb=ui(zr),ye=0;4>ye;++ye)te.Zb[ye]=ui(zr)?yr(zr,7):0;for(ye=0;4>ye;++ye)te.Lb[ye]=ui(zr)?yr(zr,6):0}if(te.Bb)for(ye=0;3>ye;++ye)Ge.jb[ye]=ui(zr)?ir(zr,8):255}else te.Bb=0;if(zr.Ka)return rt(Ae,3,"cannot parse segment header");if((te=Ae.ed).zd=ui(zr),te.Tb=ir(zr,6),te.wb=ir(zr,3),te.Pc=ui(zr),te.Pc&&ui(zr)){for(Ge=0;4>Ge;++Ge)ui(zr)&&(te.vd[Ge]=yr(zr,6));for(Ge=0;4>Ge;++Ge)ui(zr)&&(te.od[Ge]=yr(zr,6))}if(Ae.L=te.Tb==0?0:te.zd?1:2,zr.Ka)return rt(Ae,3,"cannot parse filter header");var st=Tr;if(Tr=ye=nr,nr=ye+st,te=st,Ae.Xb=(1<<ir(Ae.m,2))-1,st<3*(Ge=Ae.Xb))pt=7;else{for(ye+=3*Ge,te-=3*Ge,st=0;st<Ge;++st){var Ft=pt[Tr+0]|pt[Tr+1]<<8|pt[Tr+2]<<16;Ft>te&&(Ft=te),tr(Ae.Jc[+st],pt,ye,Ft),ye+=Ft,te-=Ft,Tr+=3}tr(Ae.Jc[+Ge],pt,ye,te),pt=ye<nr?0:5}if(pt!=0)return rt(Ae,pt,"cannot parse partitions");for(pt=ir(ye=Ae.m,7),Tr=ui(ye)?yr(ye,4):0,nr=ui(ye)?yr(ye,4):0,te=ui(ye)?yr(ye,4):0,Ge=ui(ye)?yr(ye,4):0,ye=ui(ye)?yr(ye,4):0,st=Ae.Qa,Ft=0;4>Ft;++Ft){if(st.Cb){var zt=st.Zb[Ft];st.Fb||(zt+=pt)}else{if(0<Ft){Ae.pb[Ft]=Ae.pb[0];continue}zt=pt}var Yt=Ae.pb[Ft];Yt.Sc[0]=Rs[Ja(zt+Tr,127)],Yt.Sc[1]=el[Ja(zt+0,127)],Yt.Eb[0]=2*Rs[Ja(zt+nr,127)],Yt.Eb[1]=101581*el[Ja(zt+te,127)]>>16,8>Yt.Eb[1]&&(Yt.Eb[1]=8),Yt.Qc[0]=Rs[Ja(zt+Ge,117)],Yt.Qc[1]=el[Ja(zt+ye,127)],Yt.lc=zt+ye}if(!Me.Rb)return rt(Ae,4,"Not a key frame.");for(ui(zr),Me=Ae.Pa,pt=0;4>pt;++pt){for(Tr=0;8>Tr;++Tr)for(nr=0;3>nr;++nr)for(te=0;11>te;++te)Ge=si(zr,pu[pt][Tr][nr][te])?ir(zr,8):Kl[pt][Tr][nr][te],Me.Wc[pt][Tr].Yb[nr][te]=Ge;for(Tr=0;17>Tr;++Tr)Me.Xc[pt][Tr]=Me.Wc[pt][mu[Tr]]}return Ae.kc=ui(zr),Ae.kc&&(Ae.Bd=ir(zr,8)),Ae.cb=1}function Lr(Ae,We,pt,nr,Tr,zr,Me){var te=We[Tr].Yb[pt];for(pt=0;16>Tr;++Tr){if(!si(Ae,te[pt+0]))return Tr;for(;!si(Ae,te[pt+1]);)if(te=We[++Tr].Yb[0],pt=0,Tr==16)return 16;var ye=We[Tr+1].Yb;if(si(Ae,te[pt+2])){var Ge=Ae,st=0;if(si(Ge,(zt=te)[(Ft=pt)+3]))if(si(Ge,zt[Ft+6])){for(te=0,Ft=2*(st=si(Ge,zt[Ft+8]))+(zt=si(Ge,zt[Ft+9+st])),st=0,zt=wu[Ft];zt[te];++te)st+=st+si(Ge,zt[te]);st+=3+(8<<Ft)}else si(Ge,zt[Ft+7])?(st=7+2*si(Ge,165),st+=si(Ge,145)):st=5+si(Ge,159);else st=si(Ge,zt[Ft+4])?3+si(Ge,zt[Ft+5]):2;te=ye[2]}else st=1,te=ye[1];ye=Me+fu[Tr],0>(Ge=Ae).b&&ti(Ge);var Ft,zt=Ge.b,Yt=(Ft=Ge.Ca>>1)-(Ge.I>>zt)>>31;--Ge.b,Ge.Ca+=Yt,Ge.Ca|=1,Ge.I-=(Ft+1&Yt)<<zt,zr[ye]=((st^Yt)-Yt)*nr[(0<Tr)+0]}return 16}function _n(Ae){var We=Ae.rb[Ae.sb-1];We.la=0,We.Na=0,Ye(Ae.zc,0,0,Ae.zc.length),Ae.ja=0}function Vr(Ae,We){if(Ae==null)return 0;if(We==null)return rt(Ae,2,"NULL VP8Io parameter in VP8Decode().");if(!Ae.cb&&!Pr(Ae,We))return 0;if(Se(Ae.cb),We.ac==null||We.ac(We)){We.ob&&(Ae.L=0);var pt=Ul[Ae.L];if(Ae.L==2?(Ae.yb=0,Ae.zb=0):(Ae.yb=We.v-pt>>4,Ae.zb=We.j-pt>>4,0>Ae.yb&&(Ae.yb=0),0>Ae.zb&&(Ae.zb=0)),Ae.Va=We.o+15+pt>>4,Ae.Hb=We.va+15+pt>>4,Ae.Hb>Ae.za&&(Ae.Hb=Ae.za),Ae.Va>Ae.Ub&&(Ae.Va=Ae.Ub),0<Ae.L){var nr=Ae.ed;for(pt=0;4>pt;++pt){var Tr;if(Ae.Qa.Cb){var zr=Ae.Qa.Lb[pt];Ae.Qa.Fb||(zr+=nr.Tb)}else zr=nr.Tb;for(Tr=0;1>=Tr;++Tr){var Me=Ae.gd[pt][Tr],te=zr;if(nr.Pc&&(te+=nr.vd[0],Tr&&(te+=nr.od[0])),0<(te=0>te?0:63<te?63:te)){var ye=te;0<nr.wb&&(ye=4<nr.wb?ye>>2:ye>>1)>9-nr.wb&&(ye=9-nr.wb),1>ye&&(ye=1),Me.dd=ye,Me.tc=2*te+ye,Me.ld=40<=te?2:15<=te?1:0}else Me.tc=0;Me.La=Tr}}}pt=0}else rt(Ae,6,"Frame setup failed"),pt=Ae.a;if(pt=pt==0){if(pt){Ae.$c=0,0<Ae.Aa||(Ae.Ic=Wl);e:{pt=Ae.Ic,nr=4*(ye=Ae.za);var Ge=32*ye,st=ye+1,Ft=0<Ae.L?ye*(0<Ae.Aa?2:1):0,zt=(Ae.Aa==2?2:1)*ye;if((Me=nr+832+(Tr=3*(16*pt+Ul[Ae.L])/2*Ge)+(zr=Ae.Fa!=null&&0<Ae.Fa.length?Ae.Kc.c*Ae.Kc.i:0))!=Me)pt=0;else{if(Me>Ae.Vb){if(Ae.Vb=0,Ae.Ec=Ve(Me),Ae.Fc=0,Ae.Ec==null){pt=rt(Ae,1,"no memory during frame initialization.");break e}Ae.Vb=Me}Me=Ae.Ec,te=Ae.Fc,Ae.Ac=Me,Ae.Bc=te,te+=nr,Ae.Gd=qe(Ge,_o),Ae.Hd=0,Ae.rb=qe(st+1,qa),Ae.sb=1,Ae.wa=Ft?qe(Ft,oa):null,Ae.Y=0,Ae.D.Nb=0,Ae.D.wa=Ae.wa,Ae.D.Y=Ae.Y,0<Ae.Aa&&(Ae.D.Y+=ye),Se(!0),Ae.oc=Me,Ae.pc=te,te+=832,Ae.ya=qe(zt,Ro),Ae.aa=0,Ae.D.ya=Ae.ya,Ae.D.aa=Ae.aa,Ae.Aa==2&&(Ae.D.aa+=ye),Ae.R=16*ye,Ae.B=8*ye,ye=(Ge=Ul[Ae.L])*Ae.R,Ge=Ge/2*Ae.B,Ae.sa=Me,Ae.ta=te+ye,Ae.qa=Ae.sa,Ae.ra=Ae.ta+16*pt*Ae.R+Ge,Ae.Ha=Ae.qa,Ae.Ia=Ae.ra+8*pt*Ae.B+Ge,Ae.$c=0,te+=Tr,Ae.mb=zr?Me:null,Ae.nb=zr?te:null,Se(te+zr<=Ae.Fc+Ae.Vb),_n(Ae),Ye(Ae.Ac,Ae.Bc,0,nr),pt=1}}if(pt){if(We.ka=0,We.y=Ae.sa,We.O=Ae.ta,We.f=Ae.qa,We.N=Ae.ra,We.ea=Ae.Ha,We.Vd=Ae.Ia,We.fa=Ae.R,We.Rc=Ae.B,We.F=null,We.J=0,!tu){for(pt=-255;255>=pt;++pt)kl[255+pt]=0>pt?-pt:pt;for(pt=-1020;1020>=pt;++pt)yu[1020+pt]=-128>pt?-128:127<pt?127:pt;for(pt=-112;112>=pt;++pt)cu[112+pt]=-16>pt?-16:15<pt?15:pt;for(pt=-255;510>=pt;++pt)eu[255+pt]=0>pt?0:255<pt?255:pt;tu=1}Xo=ii,$o=Hn,rs=Bn,os=ri,Fs=Yn,Co=jn,ol=Js,Zs=Es,dl=hs,hl=bs,sl=gs,yl=Ko,Ns=ws,ys=qo,Ds=bo,xs=ds,Xs=Ho,ll=zo,wl[0]=ma,wl[1]=ki,wl[2]=qi,wl[3]=ca,wl[4]=ka,wl[5]=Za,wl[6]=La,wl[7]=eo,wl[8]=jo,wl[9]=Po,pl[0]=sa,pl[1]=Ki,pl[2]=Aa,pl[3]=ea,pl[4]=fa,pl[5]=xo,pl[6]=Qa,Dl[0]=Ba,Dl[1]=bi,Dl[2]=cs,Dl[3]=Mo,Dl[4]=Ta,Dl[5]=za,Dl[6]=ko,pt=1}else pt=0}pt&&(pt=function(Yt,Nr){for(Yt.M=0;Yt.M<Yt.Va;++Yt.M){var Qr,Cr=Yt.Jc[Yt.M&Yt.Xb],Er=Yt.m,Kr=Yt;for(Qr=0;Qr<Kr.za;++Qr){var qr=Er,Cn=Kr,oi=Cn.Ac,hi=Cn.Bc+4*Qr,ji=Cn.zc,Oi=Cn.ya[Cn.aa+Qr];if(Cn.Qa.Bb?Oi.$b=si(qr,Cn.Pa.jb[0])?2+si(qr,Cn.Pa.jb[2]):si(qr,Cn.Pa.jb[1]):Oi.$b=0,Cn.kc&&(Oi.Ad=si(qr,Cn.Bd)),Oi.Za=!si(qr,145)+0,Oi.Za){var wa=Oi.Ob,Qi=0;for(Cn=0;4>Cn;++Cn){var Ua,Sa=ji[0+Cn];for(Ua=0;4>Ua;++Ua){Sa=lu[oi[hi+Ua]][Sa];for(var So=Xl[si(qr,Sa[0])];0<So;)So=Xl[2*So+si(qr,Sa[So])];Sa=-So,oi[hi+Ua]=Sa}je(wa,Qi,oi,hi,4),Qi+=4,ji[0+Cn]=Sa}}else Sa=si(qr,156)?si(qr,128)?1:3:si(qr,163)?2:0,Oi.Ob[0]=Sa,Ye(oi,hi,Sa,4),Ye(ji,0,Sa,4);Oi.Dd=si(qr,142)?si(qr,114)?si(qr,183)?1:3:2:0}if(Kr.m.Ka)return rt(Yt,7,"Premature end-of-partition0 encountered.");for(;Yt.ja<Yt.za;++Yt.ja){if(Kr=Cr,qr=(Er=Yt).rb[Er.sb-1],oi=Er.rb[Er.sb+Er.ja],Qr=Er.ya[Er.aa+Er.ja],hi=Er.kc?Qr.Ad:0)qr.la=oi.la=0,Qr.Za||(qr.Na=oi.Na=0),Qr.Hc=0,Qr.Gc=0,Qr.ia=0;else{var Fo,k;if(qr=oi,oi=Kr,hi=Er.Pa.Xc,ji=Er.ya[Er.aa+Er.ja],Oi=Er.pb[ji.$b],Cn=ji.ad,wa=0,Qi=Er.rb[Er.sb-1],Sa=Ua=0,Ye(Cn,wa,0,384),ji.Za)var K=0,Z=hi[3];else{So=Ve(16);var re=qr.Na+Qi.Na;if(re=Bl(oi,hi[1],re,Oi.Eb,0,So,0),qr.Na=Qi.Na=(0<re)+0,1<re)Xo(So,0,Cn,wa);else{var ce=So[0]+3>>3;for(So=0;256>So;So+=16)Cn[wa+So]=ce}K=1,Z=hi[0]}var Pe=15&qr.la,mt=15&Qi.la;for(So=0;4>So;++So){var Wt=1&mt;for(ce=k=0;4>ce;++ce)Pe=Pe>>1|(Wt=(re=Bl(oi,Z,re=Wt+(1&Pe),Oi.Sc,K,Cn,wa))>K)<<7,k=k<<2|(3<re?3:1<re?2:Cn[wa+0]!=0),wa+=16;Pe>>=4,mt=mt>>1|Wt<<7,Ua=(Ua<<8|k)>>>0}for(Z=Pe,K=mt>>4,Fo=0;4>Fo;Fo+=2){for(k=0,Pe=qr.la>>4+Fo,mt=Qi.la>>4+Fo,So=0;2>So;++So){for(Wt=1&mt,ce=0;2>ce;++ce)re=Wt+(1&Pe),Pe=Pe>>1|(Wt=0<(re=Bl(oi,hi[2],re,Oi.Qc,0,Cn,wa)))<<3,k=k<<2|(3<re?3:1<re?2:Cn[wa+0]!=0),wa+=16;Pe>>=2,mt=mt>>1|Wt<<5}Sa|=k<<4*Fo,Z|=Pe<<4<<Fo,K|=(240&mt)<<Fo}qr.la=Z,Qi.la=K,ji.Hc=Ua,ji.Gc=Sa,ji.ia=43690&Sa?0:Oi.ia,hi=!(Ua|Sa)}if(0<Er.L&&(Er.wa[Er.Y+Er.ja]=Er.gd[Qr.$b][Qr.Za],Er.wa[Er.Y+Er.ja].La|=!hi),Kr.Ka)return rt(Yt,7,"Premature end-of-file encountered.")}if(_n(Yt),Er=Nr,Kr=1,Qr=(Cr=Yt).D,qr=0<Cr.L&&Cr.M>=Cr.zb&&Cr.M<=Cr.Va,Cr.Aa==0)e:{if(Qr.M=Cr.M,Qr.uc=qr,lo(Cr,Qr),Kr=1,Qr=(k=Cr.D).Nb,qr=(Sa=Ul[Cr.L])*Cr.R,oi=Sa/2*Cr.B,So=16*Qr*Cr.R,ce=8*Qr*Cr.B,hi=Cr.sa,ji=Cr.ta-qr+So,Oi=Cr.qa,Cn=Cr.ra-oi+ce,wa=Cr.Ha,Qi=Cr.Ia-oi+ce,mt=(Pe=k.M)==0,Ua=Pe>=Cr.Va-1,Cr.Aa==2&&lo(Cr,k),k.uc)for(Wt=(re=Cr).D.M,Se(re.D.uc),k=re.yb;k<re.Hb;++k){K=k,Z=Wt;var sr=(pr=(na=re).D).Nb;Fo=na.R;var pr=pr.wa[pr.Y+K],wn=na.sa,Rn=na.ta+16*sr*Fo+16*K,ei=pr.dd,ni=pr.tc;if(ni!=0)if(Se(3<=ni),na.L==1)0<K&&xs(wn,Rn,Fo,ni+4),pr.La&&ll(wn,Rn,Fo,ni),0<Z&&Ds(wn,Rn,Fo,ni+4),pr.La&&Xs(wn,Rn,Fo,ni);else{var Mi=na.B,Zi=na.qa,da=na.ra+8*sr*Mi+8*K,ia=na.Ha,na=na.Ia+8*sr*Mi+8*K;sr=pr.ld,0<K&&(Zs(wn,Rn,Fo,ni+4,ei,sr),hl(Zi,da,ia,na,Mi,ni+4,ei,sr)),pr.La&&(yl(wn,Rn,Fo,ni,ei,sr),ys(Zi,da,ia,na,Mi,ni,ei,sr)),0<Z&&(ol(wn,Rn,Fo,ni+4,ei,sr),dl(Zi,da,ia,na,Mi,ni+4,ei,sr)),pr.La&&(sl(wn,Rn,Fo,ni,ei,sr),Ns(Zi,da,ia,na,Mi,ni,ei,sr))}}if(Cr.ia&&alert("todo:DitherRow"),Er.put!=null){if(k=16*Pe,Pe=16*(Pe+1),mt?(Er.y=Cr.sa,Er.O=Cr.ta+So,Er.f=Cr.qa,Er.N=Cr.ra+ce,Er.ea=Cr.Ha,Er.W=Cr.Ia+ce):(k-=Sa,Er.y=hi,Er.O=ji,Er.f=Oi,Er.N=Cn,Er.ea=wa,Er.W=Qi),Ua||(Pe-=Sa),Pe>Er.o&&(Pe=Er.o),Er.F=null,Er.J=null,Cr.Fa!=null&&0<Cr.Fa.length&&k<Pe&&(Er.J=Vt(Cr,Er,k,Pe-k),Er.F=Cr.mb,Er.F==null&&Er.F.length==0)){Kr=rt(Cr,3,"Could not decode alpha data.");break e}k<Er.j&&(Sa=Er.j-k,k=Er.j,Se(!(1&Sa)),Er.O+=Cr.R*Sa,Er.N+=Cr.B*(Sa>>1),Er.W+=Cr.B*(Sa>>1),Er.F!=null&&(Er.J+=Er.width*Sa)),k<Pe&&(Er.O+=Er.v,Er.N+=Er.v>>1,Er.W+=Er.v>>1,Er.F!=null&&(Er.J+=Er.v),Er.ka=k-Er.j,Er.U=Er.va-Er.v,Er.T=Pe-k,Kr=Er.put(Er))}Qr+1!=Cr.Ic||Ua||(je(Cr.sa,Cr.ta-qr,hi,ji+16*Cr.R,qr),je(Cr.qa,Cr.ra-oi,Oi,Cn+8*Cr.B,oi),je(Cr.Ha,Cr.Ia-oi,wa,Qi+8*Cr.B,oi))}if(!Kr)return rt(Yt,6,"Output aborted.")}return 1}(Ae,We)),We.bc!=null&&We.bc(We),pt&=1}return pt?(Ae.cb=0,pt):0}function _r(Ae,We,pt,nr,Tr){Tr=Ae[We+pt+32*nr]+(Tr>>3),Ae[We+pt+32*nr]=-256&Tr?0>Tr?0:255:Tr}function kn(Ae,We,pt,nr,Tr,zr){_r(Ae,We,0,pt,nr+Tr),_r(Ae,We,1,pt,nr+zr),_r(Ae,We,2,pt,nr-zr),_r(Ae,We,3,pt,nr-Tr)}function Ur(Ae){return(20091*Ae>>16)+Ae}function En(Ae,We,pt,nr){var Tr,zr=0,Me=Ve(16);for(Tr=0;4>Tr;++Tr){var te=Ae[We+0]+Ae[We+8],ye=Ae[We+0]-Ae[We+8],Ge=(35468*Ae[We+4]>>16)-Ur(Ae[We+12]),st=Ur(Ae[We+4])+(35468*Ae[We+12]>>16);Me[zr+0]=te+st,Me[zr+1]=ye+Ge,Me[zr+2]=ye-Ge,Me[zr+3]=te-st,zr+=4,We++}for(Tr=zr=0;4>Tr;++Tr)te=(Ae=Me[zr+0]+4)+Me[zr+8],ye=Ae-Me[zr+8],Ge=(35468*Me[zr+4]>>16)-Ur(Me[zr+12]),_r(pt,nr,0,0,te+(st=Ur(Me[zr+4])+(35468*Me[zr+12]>>16))),_r(pt,nr,1,0,ye+Ge),_r(pt,nr,2,0,ye-Ge),_r(pt,nr,3,0,te-st),zr++,nr+=32}function jn(Ae,We,pt,nr){var Tr=Ae[We+0]+4,zr=35468*Ae[We+4]>>16,Me=Ur(Ae[We+4]),te=35468*Ae[We+1]>>16;kn(pt,nr,0,Tr+Me,Ae=Ur(Ae[We+1]),te),kn(pt,nr,1,Tr+zr,Ae,te),kn(pt,nr,2,Tr-zr,Ae,te),kn(pt,nr,3,Tr-Me,Ae,te)}function Hn(Ae,We,pt,nr,Tr){En(Ae,We,pt,nr),Tr&&En(Ae,We+16,pt,nr+4)}function Bn(Ae,We,pt,nr){$o(Ae,We+0,pt,nr,1),$o(Ae,We+32,pt,nr+128,1)}function ri(Ae,We,pt,nr){var Tr;for(Ae=Ae[We+0]+4,Tr=0;4>Tr;++Tr)for(We=0;4>We;++We)_r(pt,nr,We,Tr,Ae)}function Yn(Ae,We,pt,nr){Ae[We+0]&&os(Ae,We+0,pt,nr),Ae[We+16]&&os(Ae,We+16,pt,nr+4),Ae[We+32]&&os(Ae,We+32,pt,nr+128),Ae[We+48]&&os(Ae,We+48,pt,nr+128+4)}function ii(Ae,We,pt,nr){var Tr,zr=Ve(16);for(Tr=0;4>Tr;++Tr){var Me=Ae[We+0+Tr]+Ae[We+12+Tr],te=Ae[We+4+Tr]+Ae[We+8+Tr],ye=Ae[We+4+Tr]-Ae[We+8+Tr],Ge=Ae[We+0+Tr]-Ae[We+12+Tr];zr[0+Tr]=Me+te,zr[8+Tr]=Me-te,zr[4+Tr]=Ge+ye,zr[12+Tr]=Ge-ye}for(Tr=0;4>Tr;++Tr)Me=(Ae=zr[0+4*Tr]+3)+zr[3+4*Tr],te=zr[1+4*Tr]+zr[2+4*Tr],ye=zr[1+4*Tr]-zr[2+4*Tr],Ge=Ae-zr[3+4*Tr],pt[nr+0]=Me+te>>3,pt[nr+16]=Ge+ye>>3,pt[nr+32]=Me-te>>3,pt[nr+48]=Ge-ye>>3,nr+=64}function ai(Ae,We,pt){var nr,Tr=We-32,zr=il,Me=255-Ae[Tr-1];for(nr=0;nr<pt;++nr){var te,ye=zr,Ge=Me+Ae[We-1];for(te=0;te<pt;++te)Ae[We+te]=ye[Ge+Ae[Tr+te]];We+=32}}function ki(Ae,We){ai(Ae,We,4)}function bi(Ae,We){ai(Ae,We,8)}function Ki(Ae,We){ai(Ae,We,16)}function Aa(Ae,We){var pt;for(pt=0;16>pt;++pt)je(Ae,We+32*pt,Ae,We-32,16)}function ea(Ae,We){var pt;for(pt=16;0<pt;--pt)Ye(Ae,We,Ae[We-1],16),We+=32}function Ji(Ae,We,pt){var nr;for(nr=0;16>nr;++nr)Ye(We,pt+32*nr,Ae,16)}function sa(Ae,We){var pt,nr=16;for(pt=0;16>pt;++pt)nr+=Ae[We-1+32*pt]+Ae[We+pt-32];Ji(nr>>5,Ae,We)}function fa(Ae,We){var pt,nr=8;for(pt=0;16>pt;++pt)nr+=Ae[We-1+32*pt];Ji(nr>>4,Ae,We)}function xo(Ae,We){var pt,nr=8;for(pt=0;16>pt;++pt)nr+=Ae[We+pt-32];Ji(nr>>4,Ae,We)}function Qa(Ae,We){Ji(128,Ae,We)}function Wi(Ae,We,pt){return Ae+2*We+pt+2>>2}function qi(Ae,We){var pt,nr=We-32;for(nr=new Uint8Array([Wi(Ae[nr-1],Ae[nr+0],Ae[nr+1]),Wi(Ae[nr+0],Ae[nr+1],Ae[nr+2]),Wi(Ae[nr+1],Ae[nr+2],Ae[nr+3]),Wi(Ae[nr+2],Ae[nr+3],Ae[nr+4])]),pt=0;4>pt;++pt)je(Ae,We+32*pt,nr,0,nr.length)}function ca(Ae,We){var pt=Ae[We-1],nr=Ae[We-1+32],Tr=Ae[We-1+64],zr=Ae[We-1+96];Pi(Ae,We+0,16843009*Wi(Ae[We-1-32],pt,nr)),Pi(Ae,We+32,16843009*Wi(pt,nr,Tr)),Pi(Ae,We+64,16843009*Wi(nr,Tr,zr)),Pi(Ae,We+96,16843009*Wi(Tr,zr,zr))}function ma(Ae,We){var pt,nr=4;for(pt=0;4>pt;++pt)nr+=Ae[We+pt-32]+Ae[We-1+32*pt];for(nr>>=3,pt=0;4>pt;++pt)Ye(Ae,We+32*pt,nr,4)}function ka(Ae,We){var pt=Ae[We-1+0],nr=Ae[We-1+32],Tr=Ae[We-1+64],zr=Ae[We-1-32],Me=Ae[We+0-32],te=Ae[We+1-32],ye=Ae[We+2-32],Ge=Ae[We+3-32];Ae[We+0+96]=Wi(nr,Tr,Ae[We-1+96]),Ae[We+1+96]=Ae[We+0+64]=Wi(pt,nr,Tr),Ae[We+2+96]=Ae[We+1+64]=Ae[We+0+32]=Wi(zr,pt,nr),Ae[We+3+96]=Ae[We+2+64]=Ae[We+1+32]=Ae[We+0+0]=Wi(Me,zr,pt),Ae[We+3+64]=Ae[We+2+32]=Ae[We+1+0]=Wi(te,Me,zr),Ae[We+3+32]=Ae[We+2+0]=Wi(ye,te,Me),Ae[We+3+0]=Wi(Ge,ye,te)}function La(Ae,We){var pt=Ae[We+1-32],nr=Ae[We+2-32],Tr=Ae[We+3-32],zr=Ae[We+4-32],Me=Ae[We+5-32],te=Ae[We+6-32],ye=Ae[We+7-32];Ae[We+0+0]=Wi(Ae[We+0-32],pt,nr),Ae[We+1+0]=Ae[We+0+32]=Wi(pt,nr,Tr),Ae[We+2+0]=Ae[We+1+32]=Ae[We+0+64]=Wi(nr,Tr,zr),Ae[We+3+0]=Ae[We+2+32]=Ae[We+1+64]=Ae[We+0+96]=Wi(Tr,zr,Me),Ae[We+3+32]=Ae[We+2+64]=Ae[We+1+96]=Wi(zr,Me,te),Ae[We+3+64]=Ae[We+2+96]=Wi(Me,te,ye),Ae[We+3+96]=Wi(te,ye,ye)}function Za(Ae,We){var pt=Ae[We-1+0],nr=Ae[We-1+32],Tr=Ae[We-1+64],zr=Ae[We-1-32],Me=Ae[We+0-32],te=Ae[We+1-32],ye=Ae[We+2-32],Ge=Ae[We+3-32];Ae[We+0+0]=Ae[We+1+64]=zr+Me+1>>1,Ae[We+1+0]=Ae[We+2+64]=Me+te+1>>1,Ae[We+2+0]=Ae[We+3+64]=te+ye+1>>1,Ae[We+3+0]=ye+Ge+1>>1,Ae[We+0+96]=Wi(Tr,nr,pt),Ae[We+0+64]=Wi(nr,pt,zr),Ae[We+0+32]=Ae[We+1+96]=Wi(pt,zr,Me),Ae[We+1+32]=Ae[We+2+96]=Wi(zr,Me,te),Ae[We+2+32]=Ae[We+3+96]=Wi(Me,te,ye),Ae[We+3+32]=Wi(te,ye,Ge)}function eo(Ae,We){var pt=Ae[We+0-32],nr=Ae[We+1-32],Tr=Ae[We+2-32],zr=Ae[We+3-32],Me=Ae[We+4-32],te=Ae[We+5-32],ye=Ae[We+6-32],Ge=Ae[We+7-32];Ae[We+0+0]=pt+nr+1>>1,Ae[We+1+0]=Ae[We+0+64]=nr+Tr+1>>1,Ae[We+2+0]=Ae[We+1+64]=Tr+zr+1>>1,Ae[We+3+0]=Ae[We+2+64]=zr+Me+1>>1,Ae[We+0+32]=Wi(pt,nr,Tr),Ae[We+1+32]=Ae[We+0+96]=Wi(nr,Tr,zr),Ae[We+2+32]=Ae[We+1+96]=Wi(Tr,zr,Me),Ae[We+3+32]=Ae[We+2+96]=Wi(zr,Me,te),Ae[We+3+64]=Wi(Me,te,ye),Ae[We+3+96]=Wi(te,ye,Ge)}function Po(Ae,We){var pt=Ae[We-1+0],nr=Ae[We-1+32],Tr=Ae[We-1+64],zr=Ae[We-1+96];Ae[We+0+0]=pt+nr+1>>1,Ae[We+2+0]=Ae[We+0+32]=nr+Tr+1>>1,Ae[We+2+32]=Ae[We+0+64]=Tr+zr+1>>1,Ae[We+1+0]=Wi(pt,nr,Tr),Ae[We+3+0]=Ae[We+1+32]=Wi(nr,Tr,zr),Ae[We+3+32]=Ae[We+1+64]=Wi(Tr,zr,zr),Ae[We+3+64]=Ae[We+2+64]=Ae[We+0+96]=Ae[We+1+96]=Ae[We+2+96]=Ae[We+3+96]=zr}function jo(Ae,We){var pt=Ae[We-1+0],nr=Ae[We-1+32],Tr=Ae[We-1+64],zr=Ae[We-1+96],Me=Ae[We-1-32],te=Ae[We+0-32],ye=Ae[We+1-32],Ge=Ae[We+2-32];Ae[We+0+0]=Ae[We+2+32]=pt+Me+1>>1,Ae[We+0+32]=Ae[We+2+64]=nr+pt+1>>1,Ae[We+0+64]=Ae[We+2+96]=Tr+nr+1>>1,Ae[We+0+96]=zr+Tr+1>>1,Ae[We+3+0]=Wi(te,ye,Ge),Ae[We+2+0]=Wi(Me,te,ye),Ae[We+1+0]=Ae[We+3+32]=Wi(pt,Me,te),Ae[We+1+32]=Ae[We+3+64]=Wi(nr,pt,Me),Ae[We+1+64]=Ae[We+3+96]=Wi(Tr,nr,pt),Ae[We+1+96]=Wi(zr,Tr,nr)}function cs(Ae,We){var pt;for(pt=0;8>pt;++pt)je(Ae,We+32*pt,Ae,We-32,8)}function Mo(Ae,We){var pt;for(pt=0;8>pt;++pt)Ye(Ae,We,Ae[We-1],8),We+=32}function Lo(Ae,We,pt){var nr;for(nr=0;8>nr;++nr)Ye(We,pt+32*nr,Ae,8)}function Ba(Ae,We){var pt,nr=8;for(pt=0;8>pt;++pt)nr+=Ae[We+pt-32]+Ae[We-1+32*pt];Lo(nr>>4,Ae,We)}function za(Ae,We){var pt,nr=4;for(pt=0;8>pt;++pt)nr+=Ae[We+pt-32];Lo(nr>>3,Ae,We)}function Ta(Ae,We){var pt,nr=4;for(pt=0;8>pt;++pt)nr+=Ae[We-1+32*pt];Lo(nr>>3,Ae,We)}function ko(Ae,We){Lo(128,Ae,We)}function Qo(Ae,We,pt){var nr=Ae[We-pt],Tr=Ae[We+0],zr=3*(Tr-nr)+Vl[1020+Ae[We-2*pt]-Ae[We+pt]],Me=Ys[112+(zr+4>>3)];Ae[We-pt]=il[255+nr+Ys[112+(zr+3>>3)]],Ae[We+0]=il[255+Tr-Me]}function so(Ae,We,pt,nr){var Tr=Ae[We+0],zr=Ae[We+pt];return fl[255+Ae[We-2*pt]-Ae[We-pt]]>nr||fl[255+zr-Tr]>nr}function Os(Ae,We,pt,nr){return 4*fl[255+Ae[We-pt]-Ae[We+0]]+fl[255+Ae[We-2*pt]-Ae[We+pt]]<=nr}function ho(Ae,We,pt,nr,Tr){var zr=Ae[We-3*pt],Me=Ae[We-2*pt],te=Ae[We-pt],ye=Ae[We+0],Ge=Ae[We+pt],st=Ae[We+2*pt],Ft=Ae[We+3*pt];return 4*fl[255+te-ye]+fl[255+Me-Ge]>nr?0:fl[255+Ae[We-4*pt]-zr]<=Tr&&fl[255+zr-Me]<=Tr&&fl[255+Me-te]<=Tr&&fl[255+Ft-st]<=Tr&&fl[255+st-Ge]<=Tr&&fl[255+Ge-ye]<=Tr}function bo(Ae,We,pt,nr){var Tr=2*nr+1;for(nr=0;16>nr;++nr)Os(Ae,We+nr,pt,Tr)&&Qo(Ae,We+nr,pt)}function ds(Ae,We,pt,nr){var Tr=2*nr+1;for(nr=0;16>nr;++nr)Os(Ae,We+nr*pt,1,Tr)&&Qo(Ae,We+nr*pt,1)}function Ho(Ae,We,pt,nr){var Tr;for(Tr=3;0<Tr;--Tr)bo(Ae,We+=4*pt,pt,nr)}function zo(Ae,We,pt,nr){var Tr;for(Tr=3;0<Tr;--Tr)ds(Ae,We+=4,pt,nr)}function rn(Ae,We,pt,nr,Tr,zr,Me,te){for(zr=2*zr+1;0<Tr--;){if(ho(Ae,We,pt,zr,Me))if(so(Ae,We,pt,te))Qo(Ae,We,pt);else{var ye=Ae,Ge=We,st=pt,Ft=ye[Ge-2*st],zt=ye[Ge-st],Yt=ye[Ge+0],Nr=ye[Ge+st],Qr=ye[Ge+2*st],Cr=27*(Kr=Vl[1020+3*(Yt-zt)+Vl[1020+Ft-Nr]])+63>>7,Er=18*Kr+63>>7,Kr=9*Kr+63>>7;ye[Ge-3*st]=il[255+ye[Ge-3*st]+Kr],ye[Ge-2*st]=il[255+Ft+Er],ye[Ge-st]=il[255+zt+Cr],ye[Ge+0]=il[255+Yt-Cr],ye[Ge+st]=il[255+Nr-Er],ye[Ge+2*st]=il[255+Qr-Kr]}We+=nr}}function es(Ae,We,pt,nr,Tr,zr,Me,te){for(zr=2*zr+1;0<Tr--;){if(ho(Ae,We,pt,zr,Me))if(so(Ae,We,pt,te))Qo(Ae,We,pt);else{var ye=Ae,Ge=We,st=pt,Ft=ye[Ge-st],zt=ye[Ge+0],Yt=ye[Ge+st],Nr=Ys[112+((Qr=3*(zt-Ft))+4>>3)],Qr=Ys[112+(Qr+3>>3)],Cr=Nr+1>>1;ye[Ge-2*st]=il[255+ye[Ge-2*st]+Cr],ye[Ge-st]=il[255+Ft+Qr],ye[Ge+0]=il[255+zt-Nr],ye[Ge+st]=il[255+Yt-Cr]}We+=nr}}function Js(Ae,We,pt,nr,Tr,zr){rn(Ae,We,pt,1,16,nr,Tr,zr)}function Es(Ae,We,pt,nr,Tr,zr){rn(Ae,We,1,pt,16,nr,Tr,zr)}function gs(Ae,We,pt,nr,Tr,zr){var Me;for(Me=3;0<Me;--Me)es(Ae,We+=4*pt,pt,1,16,nr,Tr,zr)}function Ko(Ae,We,pt,nr,Tr,zr){var Me;for(Me=3;0<Me;--Me)es(Ae,We+=4,1,pt,16,nr,Tr,zr)}function hs(Ae,We,pt,nr,Tr,zr,Me,te){rn(Ae,We,Tr,1,8,zr,Me,te),rn(pt,nr,Tr,1,8,zr,Me,te)}function bs(Ae,We,pt,nr,Tr,zr,Me,te){rn(Ae,We,1,Tr,8,zr,Me,te),rn(pt,nr,1,Tr,8,zr,Me,te)}function ws(Ae,We,pt,nr,Tr,zr,Me,te){es(Ae,We+4*Tr,Tr,1,8,zr,Me,te),es(pt,nr+4*Tr,Tr,1,8,zr,Me,te)}function qo(Ae,We,pt,nr,Tr,zr,Me,te){es(Ae,We+4,1,Tr,8,zr,Me,te),es(pt,nr+4,1,Tr,8,zr,Me,te)}function us(){this.ba=new Si,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new xi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function _s(){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 vs(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function vo(){this.ua=0,this.Wa=new mi,this.vb=new mi,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Qt,this.yc=new kt}function to(){this.xb=this.a=0,this.l=new Fa,this.ca=new Si,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new xr,this.Pb=0,this.wd=new xr,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new vo,this.ab=0,this.gc=qe(4,vs),this.Oc=0}function Jo(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Fa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ts(Ae,We,pt,nr,Tr,zr,Me){for(Ae=Ae==null?0:Ae[We+0],We=0;We<Me;++We)Tr[zr+We]=Ae+pt[nr+We]&255,Ae=Tr[zr+We]}function Ha(Ae,We,pt,nr,Tr,zr,Me){var te;if(Ae==null)ts(null,null,pt,nr,Tr,zr,Me);else for(te=0;te<Me;++te)Tr[zr+te]=Ae[We+te]+pt[nr+te]&255}function It(Ae,We,pt,nr,Tr,zr,Me){if(Ae==null)ts(null,null,pt,nr,Tr,zr,Me);else{var te,ye=Ae[We+0],Ge=ye,st=ye;for(te=0;te<Me;++te)Ge=st+(ye=Ae[We+te])-Ge,st=pt[nr+te]+(-256&Ge?0>Ge?0:255:Ge)&255,Ge=ye,Tr[zr+te]=st}}function Vt(Ae,We,pt,nr){var Tr=We.width,zr=We.o;if(Se(Ae!=null&&We!=null),0>pt||0>=nr||pt+nr>zr)return null;if(!Ae.Cc){if(Ae.ga==null){var Me;if(Ae.ga=new Jo,(Me=Ae.ga==null)||(Me=We.width*We.o,Se(Ae.Gb.length==0),Ae.Gb=Ve(Me),Ae.Uc=0,Ae.Gb==null?Me=0:(Ae.mb=Ae.Gb,Ae.nb=Ae.Uc,Ae.rc=null,Me=1),Me=!Me),!Me){Me=Ae.ga;var te=Ae.Fa,ye=Ae.P,Ge=Ae.qc,st=Ae.mb,Ft=Ae.nb,zt=ye+1,Yt=Ge-1,Nr=Me.l;if(Se(te!=null&&st!=null&&We!=null),ro[0]=null,ro[1]=ts,ro[2]=Ha,ro[3]=It,Me.ca=st,Me.tb=Ft,Me.c=We.width,Me.i=We.height,Se(0<Me.c&&0<Me.i),1>=Ge)We=0;else if(Me.$a=te[ye+0]>>0&3,Me.Z=te[ye+0]>>2&3,Me.Lc=te[ye+0]>>4&3,ye=te[ye+0]>>6&3,0>Me.$a||1<Me.$a||4<=Me.Z||1<Me.Lc||ye)We=0;else if(Nr.put=$i,Nr.ac=Ui,Nr.bc=Di,Nr.ma=Me,Nr.width=We.width,Nr.height=We.height,Nr.Da=We.Da,Nr.v=We.v,Nr.va=We.va,Nr.j=We.j,Nr.o=We.o,Me.$a)e:{Se(Me.$a==1),We=ja();t:for(;;){if(We==null){We=0;break e}if(Se(Me!=null),Me.mc=We,We.c=Me.c,We.i=Me.i,We.l=Me.l,We.l.ma=Me,We.l.width=Me.c,We.l.height=Me.i,We.a=0,xn(We.m,te,zt,Yt),!Ya(Me.c,Me.i,1,We,null))break t;if(We.ab==1&&We.gc[0].hc==3&&pa(We.s)?(Me.ic=1,te=We.c*We.i,We.Ta=null,We.Ua=0,We.V=Ve(te),We.Ba=0,We.V==null?(We.a=1,We=0):We=1):(Me.ic=0,We=Ia(We,Me.c)),!We)break t;We=1;break e}Me.mc=null,We=0}else We=Yt>=Me.c*Me.i;Me=!We}if(Me)return null;Ae.ga.Lc!=1?Ae.Ga=0:nr=zr-pt}Se(Ae.ga!=null),Se(pt+nr<=zr);e:{if(We=(te=Ae.ga).c,zr=te.l.o,te.$a==0){if(zt=Ae.rc,Yt=Ae.Vc,Nr=Ae.Fa,ye=Ae.P+1+pt*We,Ge=Ae.mb,st=Ae.nb+pt*We,Se(ye<=Ae.P+Ae.qc),te.Z!=0)for(Se(ro[te.Z]!=null),Me=0;Me<nr;++Me)ro[te.Z](zt,Yt,Nr,ye,Ge,st,We),zt=Ge,Yt=st,st+=We,ye+=We;else for(Me=0;Me<nr;++Me)je(Ge,st,Nr,ye,We),zt=Ge,Yt=st,st+=We,ye+=We;Ae.rc=zt,Ae.Vc=Yt}else{if(Se(te.mc!=null),We=pt+nr,Se((Me=te.mc)!=null),Se(We<=Me.i),Me.C>=We)We=1;else if(te.ic||me(),te.ic){te=Me.V,zt=Me.Ba,Yt=Me.c;var Qr=Me.i,Cr=(Nr=1,ye=Me.$/Yt,Ge=Me.$%Yt,st=Me.m,Ft=Me.s,Me.$),Er=Yt*Qr,Kr=Yt*We,qr=Ft.wc,Cn=Cr<Kr?Xi(Ft,Ge,ye):null;Se(Cr<=Er),Se(We<=Qr),Se(pa(Ft));t:for(;;){for(;!st.h&&Cr<Kr;){if(Ge&qr||(Cn=Xi(Ft,Ge,ye)),Se(Cn!=null),Un(st),256>(Qr=Vi(Cn.G[0],Cn.H[0],st)))te[zt+Cr]=Qr,++Cr,++Ge>=Yt&&(Ge=0,++ye<=We&&!(ye%16)&&Da(Me,ye));else{if(!(280>Qr)){Nr=0;break t}Qr=aa(Qr-256,st);var oi,hi=Vi(Cn.G[4],Cn.H[4],st);if(Un(st),!(Cr>=(hi=Gi(Yt,hi=aa(hi,st)))&&Er-Cr>=Qr)){Nr=0;break t}for(oi=0;oi<Qr;++oi)te[zt+Cr+oi]=te[zt+Cr+oi-hi];for(Cr+=Qr,Ge+=Qr;Ge>=Yt;)Ge-=Yt,++ye<=We&&!(ye%16)&&Da(Me,ye);Cr<Kr&&Ge&qr&&(Cn=Xi(Ft,Ge,ye))}Se(st.h==On(st))}Da(Me,ye>We?We:ye);break t}!Nr||st.h&&Cr<Er?(Nr=0,Me.a=st.h?5:3):Me.$=Cr,We=Nr}else We=Ra(Me,Me.V,Me.Ba,Me.c,Me.i,We,Va);if(!We){nr=0;break e}}pt+nr>=zr&&(Ae.Cc=1),nr=1}if(!nr)return null;if(Ae.Cc&&((nr=Ae.ga)!=null&&(nr.mc=null),Ae.ga=null,0<Ae.Ga))return alert("todo:WebPDequantizeLevels"),null}return Ae.nb+pt*Tr}function hn(Ae,We,pt,nr,Tr,zr){for(;0<Tr--;){var Me,te=Ae,ye=We+(pt?1:0),Ge=Ae,st=We+(pt?0:3);for(Me=0;Me<nr;++Me){var Ft=Ge[st+4*Me];Ft!=255&&(Ft*=32897,te[ye+4*Me+0]=te[ye+4*Me+0]*Ft>>23,te[ye+4*Me+1]=te[ye+4*Me+1]*Ft>>23,te[ye+4*Me+2]=te[ye+4*Me+2]*Ft>>23)}We+=zr}}function zn(Ae,We,pt,nr,Tr){for(;0<nr--;){var zr;for(zr=0;zr<pt;++zr){var Me=Ae[We+2*zr+0],te=15&(Ge=Ae[We+2*zr+1]),ye=4369*te,Ge=(240&Ge|Ge>>4)*ye>>16;Ae[We+2*zr+0]=(240&Me|Me>>4)*ye>>16&240|(15&Me|Me<<4)*ye>>16>>4&15,Ae[We+2*zr+1]=240&Ge|te}We+=Tr}}function vt(Ae,We,pt,nr,Tr,zr,Me,te){var ye,Ge,st=255;for(Ge=0;Ge<Tr;++Ge){for(ye=0;ye<nr;++ye){var Ft=Ae[We+ye];zr[Me+4*ye]=Ft,st&=Ft}We+=pt,Me+=te}return st!=255}function ae(Ae,We,pt,nr,Tr){var zr;for(zr=0;zr<Tr;++zr)pt[nr+zr]=Ae[We+zr]>>8}function me(){El=hn,jl=zn,$s=vt,Nl=ae}function be(Ae,We,pt){Pt[Ae]=function(nr,Tr,zr,Me,te,ye,Ge,st,Ft,zt,Yt,Nr,Qr,Cr,Er,Kr,qr){var Cn,oi=qr-1>>1,hi=te[ye+0]|Ge[st+0]<<16,ji=Ft[zt+0]|Yt[Nr+0]<<16;Se(nr!=null);var Oi=3*hi+ji+131074>>2;for(We(nr[Tr+0],255&Oi,Oi>>16,Qr,Cr),zr!=null&&(Oi=3*ji+hi+131074>>2,We(zr[Me+0],255&Oi,Oi>>16,Er,Kr)),Cn=1;Cn<=oi;++Cn){var wa=te[ye+Cn]|Ge[st+Cn]<<16,Qi=Ft[zt+Cn]|Yt[Nr+Cn]<<16,Ua=hi+wa+ji+Qi+524296,Sa=Ua+2*(wa+ji)>>3;Oi=Sa+hi>>1,hi=(Ua=Ua+2*(hi+Qi)>>3)+wa>>1,We(nr[Tr+2*Cn-1],255&Oi,Oi>>16,Qr,Cr+(2*Cn-1)*pt),We(nr[Tr+2*Cn-0],255&hi,hi>>16,Qr,Cr+(2*Cn-0)*pt),zr!=null&&(Oi=Ua+ji>>1,hi=Sa+Qi>>1,We(zr[Me+2*Cn-1],255&Oi,Oi>>16,Er,Kr+(2*Cn-1)*pt),We(zr[Me+2*Cn+0],255&hi,hi>>16,Er,Kr+(2*Cn+0)*pt)),hi=wa,ji=Qi}1&qr||(Oi=3*hi+ji+131074>>2,We(nr[Tr+qr-1],255&Oi,Oi>>16,Qr,Cr+(qr-1)*pt),zr!=null&&(Oi=3*ji+hi+131074>>2,We(zr[Me+qr-1],255&Oi,Oi>>16,Er,Kr+(qr-1)*pt)))}}function Ke(){Io[Pl]=Bs,Io[du]=_l,Io[ru]=Ol,Io[nu]=ml,Io[Qs]=Al,Io[iu]=Il,Io[au]=Ll,Io[bu]=_l,Io[bl]=ml,Io[Fl]=Al,Io[Hl]=Il}function At(Ae){return Ae&~Vu?0>Ae?0:255:Ae>>Ou}function Gt(Ae,We){return At((19077*Ae>>8)+(26149*We>>8)-14234)}function Dr(Ae,We,pt){return At((19077*Ae>>8)-(6419*We>>8)-(13320*pt>>8)+8708)}function Gr(Ae,We){return At((19077*Ae>>8)+(33050*We>>8)-17685)}function fn(Ae,We,pt,nr,Tr){nr[Tr+0]=Gt(Ae,pt),nr[Tr+1]=Dr(Ae,We,pt),nr[Tr+2]=Gr(Ae,We)}function Kn(Ae,We,pt,nr,Tr){nr[Tr+0]=Gr(Ae,We),nr[Tr+1]=Dr(Ae,We,pt),nr[Tr+2]=Gt(Ae,pt)}function qn(Ae,We,pt,nr,Tr){var zr=Dr(Ae,We,pt);We=zr<<3&224|Gr(Ae,We)>>3,nr[Tr+0]=248&Gt(Ae,pt)|zr>>5,nr[Tr+1]=We}function Qn(Ae,We,pt,nr,Tr){var zr=240&Gr(Ae,We)|15;nr[Tr+0]=240&Gt(Ae,pt)|Dr(Ae,We,pt)>>4,nr[Tr+1]=zr}function Ei(Ae,We,pt,nr,Tr){nr[Tr+0]=255,fn(Ae,We,pt,nr,Tr+1)}function Fi(Ae,We,pt,nr,Tr){Kn(Ae,We,pt,nr,Tr),nr[Tr+3]=255}function va(Ae,We,pt,nr,Tr){fn(Ae,We,pt,nr,Tr),nr[Tr+3]=255}function Ja(Ae,We){return 0>Ae?0:Ae>We?We:Ae}function Oa(Ae,We,pt){Pt[Ae]=function(nr,Tr,zr,Me,te,ye,Ge,st,Ft){for(var zt=st+(-2&Ft)*pt;st!=zt;)We(nr[Tr+0],zr[Me+0],te[ye+0],Ge,st),We(nr[Tr+1],zr[Me+0],te[ye+0],Ge,st+pt),Tr+=2,++Me,++ye,st+=2*pt;1&Ft&&We(nr[Tr+0],zr[Me+0],te[ye+0],Ge,st)}}function fo(Ae,We,pt){return pt==0?Ae==0?We==0?6:5:We==0?4:0:pt}function wo(Ae,We,pt,nr,Tr){switch(Ae>>>30){case 3:$o(We,pt,nr,Tr,0);break;case 2:Co(We,pt,nr,Tr);break;case 1:os(We,pt,nr,Tr)}}function lo(Ae,We){var pt,nr,Tr=We.M,zr=We.Nb,Me=Ae.oc,te=Ae.pc+40,ye=Ae.oc,Ge=Ae.pc+584,st=Ae.oc,Ft=Ae.pc+600;for(pt=0;16>pt;++pt)Me[te+32*pt-1]=129;for(pt=0;8>pt;++pt)ye[Ge+32*pt-1]=129,st[Ft+32*pt-1]=129;for(0<Tr?Me[te-1-32]=ye[Ge-1-32]=st[Ft-1-32]=129:(Ye(Me,te-32-1,127,21),Ye(ye,Ge-32-1,127,9),Ye(st,Ft-32-1,127,9)),nr=0;nr<Ae.za;++nr){var zt=We.ya[We.aa+nr];if(0<nr){for(pt=-1;16>pt;++pt)je(Me,te+32*pt-4,Me,te+32*pt+12,4);for(pt=-1;8>pt;++pt)je(ye,Ge+32*pt-4,ye,Ge+32*pt+4,4),je(st,Ft+32*pt-4,st,Ft+32*pt+4,4)}var Yt=Ae.Gd,Nr=Ae.Hd+nr,Qr=zt.ad,Cr=zt.Hc;if(0<Tr&&(je(Me,te-32,Yt[Nr].y,0,16),je(ye,Ge-32,Yt[Nr].f,0,8),je(st,Ft-32,Yt[Nr].ea,0,8)),zt.Za){var Er=Me,Kr=te-32+16;for(0<Tr&&(nr>=Ae.za-1?Ye(Er,Kr,Yt[Nr].y[15],4):je(Er,Kr,Yt[Nr+1].y,0,4)),pt=0;4>pt;pt++)Er[Kr+128+pt]=Er[Kr+256+pt]=Er[Kr+384+pt]=Er[Kr+0+pt];for(pt=0;16>pt;++pt,Cr<<=2)Er=Me,Kr=te+_u[pt],wl[zt.Ob[pt]](Er,Kr),wo(Cr,Qr,16*+pt,Er,Kr)}else if(Er=fo(nr,Tr,zt.Ob[0]),pl[Er](Me,te),Cr!=0)for(pt=0;16>pt;++pt,Cr<<=2)wo(Cr,Qr,16*+pt,Me,te+_u[pt]);for(pt=zt.Gc,Er=fo(nr,Tr,zt.Dd),Dl[Er](ye,Ge),Dl[Er](st,Ft),Cr=Qr,Er=ye,Kr=Ge,255&(zt=pt>>0)&&(170&zt?rs(Cr,256,Er,Kr):Fs(Cr,256,Er,Kr)),zt=st,Cr=Ft,255&(pt>>=8)&&(170&pt?rs(Qr,320,zt,Cr):Fs(Qr,320,zt,Cr)),Tr<Ae.Ub-1&&(je(Yt[Nr].y,0,Me,te+480,16),je(Yt[Nr].f,0,ye,Ge+224,8),je(Yt[Nr].ea,0,st,Ft+224,8)),pt=8*zr*Ae.B,Yt=Ae.sa,Nr=Ae.ta+16*nr+16*zr*Ae.R,Qr=Ae.qa,zt=Ae.ra+8*nr+pt,Cr=Ae.Ha,Er=Ae.Ia+8*nr+pt,pt=0;16>pt;++pt)je(Yt,Nr+pt*Ae.R,Me,te+32*pt,16);for(pt=0;8>pt;++pt)je(Qr,zt+pt*Ae.B,ye,Ge+32*pt,8),je(Cr,Er+pt*Ae.B,st,Ft+32*pt,8)}}function Yo(Ae,We,pt,nr,Tr,zr,Me,te,ye){var Ge=[0],st=[0],Ft=0,zt=ye!=null?ye.kd:0,Yt=ye!=null?ye:new _s;if(Ae==null||12>pt)return 7;Yt.data=Ae,Yt.w=We,Yt.ha=pt,We=[We],pt=[pt],Yt.gb=[Yt.gb];e:{var Nr=We,Qr=pt,Cr=Yt.gb;if(Se(Ae!=null),Se(Qr!=null),Se(Cr!=null),Cr[0]=0,12<=Qr[0]&&!Re(Ae,Nr[0],"RIFF")){if(Re(Ae,Nr[0]+8,"WEBP")){Cr=3;break e}var Er=Yi(Ae,Nr[0]+4);if(12>Er||4294967286<Er){Cr=3;break e}if(zt&&Er>Qr[0]-8){Cr=7;break e}Cr[0]=Er,Nr[0]+=12,Qr[0]-=12}Cr=0}if(Cr!=0)return Cr;for(Er=0<Yt.gb[0],pt=pt[0];;){e:{var Kr=Ae;Qr=We,Cr=pt;var qr=Ge,Cn=st,oi=Nr=[0];if((Oi=Ft=[Ft])[0]=0,8>Cr[0])Cr=7;else{if(!Re(Kr,Qr[0],"VP8X")){if(Yi(Kr,Qr[0]+4)!=10){Cr=3;break e}if(18>Cr[0]){Cr=7;break e}var hi=Yi(Kr,Qr[0]+8),ji=1+Ri(Kr,Qr[0]+12);if(2147483648<=ji*(Kr=1+Ri(Kr,Qr[0]+15))){Cr=3;break e}oi!=null&&(oi[0]=hi),qr!=null&&(qr[0]=ji),Cn!=null&&(Cn[0]=Kr),Qr[0]+=18,Cr[0]-=18,Oi[0]=1}Cr=0}}if(Ft=Ft[0],Nr=Nr[0],Cr!=0)return Cr;if(Qr=!!(2&Nr),!Er&&Ft)return 3;if(zr!=null&&(zr[0]=!!(16&Nr)),Me!=null&&(Me[0]=Qr),te!=null&&(te[0]=0),Me=Ge[0],Nr=st[0],Ft&&Qr&&ye==null){Cr=0;break}if(4>pt){Cr=7;break}if(Er&&Ft||!Er&&!Ft&&!Re(Ae,We[0],"ALPH")){pt=[pt],Yt.na=[Yt.na],Yt.P=[Yt.P],Yt.Sa=[Yt.Sa];e:{hi=Ae,Cr=We,Er=pt;var Oi=Yt.gb;qr=Yt.na,Cn=Yt.P,oi=Yt.Sa,ji=22,Se(hi!=null),Se(Er!=null),Kr=Cr[0];var wa=Er[0];for(Se(qr!=null),Se(oi!=null),qr[0]=null,Cn[0]=null,oi[0]=0;;){if(Cr[0]=Kr,Er[0]=wa,8>wa){Cr=7;break e}var Qi=Yi(hi,Kr+4);if(4294967286<Qi){Cr=3;break e}var Ua=8+Qi+1&-2;if(ji+=Ua,0<Oi&&ji>Oi){Cr=3;break e}if(!Re(hi,Kr,"VP8 ")||!Re(hi,Kr,"VP8L")){Cr=0;break e}if(wa[0]<Ua){Cr=7;break e}Re(hi,Kr,"ALPH")||(qr[0]=hi,Cn[0]=Kr+8,oi[0]=Qi),Kr+=Ua,wa-=Ua}}if(pt=pt[0],Yt.na=Yt.na[0],Yt.P=Yt.P[0],Yt.Sa=Yt.Sa[0],Cr!=0)break}pt=[pt],Yt.Ja=[Yt.Ja],Yt.xa=[Yt.xa];e:if(Oi=Ae,Cr=We,Er=pt,qr=Yt.gb[0],Cn=Yt.Ja,oi=Yt.xa,hi=Cr[0],Kr=!Re(Oi,hi,"VP8 "),ji=!Re(Oi,hi,"VP8L"),Se(Oi!=null),Se(Er!=null),Se(Cn!=null),Se(oi!=null),8>Er[0])Cr=7;else{if(Kr||ji){if(Oi=Yi(Oi,hi+4),12<=qr&&Oi>qr-12){Cr=3;break e}if(zt&&Oi>Er[0]-8){Cr=7;break e}Cn[0]=Oi,Cr[0]+=8,Er[0]-=8,oi[0]=ji}else oi[0]=5<=Er[0]&&Oi[hi+0]==47&&!(Oi[hi+4]>>5),Cn[0]=Er[0];Cr=0}if(pt=pt[0],Yt.Ja=Yt.Ja[0],Yt.xa=Yt.xa[0],We=We[0],Cr!=0)break;if(4294967286<Yt.Ja)return 3;if(te==null||Qr||(te[0]=Yt.xa?2:1),Me=[Me],Nr=[Nr],Yt.xa){if(5>pt){Cr=7;break}te=Me,zt=Nr,Qr=zr,Ae==null||5>pt?Ae=0:5<=pt&&Ae[We+0]==47&&!(Ae[We+4]>>5)?(Er=[0],Oi=[0],qr=[0],xn(Cn=new xr,Ae,We,pt),ua(Cn,Er,Oi,qr)?(te!=null&&(te[0]=Er[0]),zt!=null&&(zt[0]=Oi[0]),Qr!=null&&(Qr[0]=qr[0]),Ae=1):Ae=0):Ae=0}else{if(10>pt){Cr=7;break}te=Nr,Ae==null||10>pt||!cr(Ae,We+3,pt-3)?Ae=0:(zt=Ae[We+0]|Ae[We+1]<<8|Ae[We+2]<<16,Qr=16383&(Ae[We+7]<<8|Ae[We+6]),Ae=16383&(Ae[We+9]<<8|Ae[We+8]),1&zt||3<(zt>>1&7)||!(zt>>4&1)||zt>>5>=Yt.Ja||!Qr||!Ae?Ae=0:(Me&&(Me[0]=Qr),te&&(te[0]=Ae),Ae=1))}if(!Ae)return 3;if(Me=Me[0],Nr=Nr[0],Ft&&(Ge[0]!=Me||st[0]!=Nr))return 3;ye!=null&&(ye[0]=Yt,ye.offset=We-ye.w,Se(4294967286>We-ye.w),Se(ye.offset==ye.ha-pt));break}return Cr==0||Cr==7&&Ft&&ye==null?(zr!=null&&(zr[0]|=Yt.na!=null&&0<Yt.na.length),nr!=null&&(nr[0]=Me),Tr!=null&&(Tr[0]=Nr),0):Cr}function Vo(Ae,We,pt){var nr=We.width,Tr=We.height,zr=0,Me=0,te=nr,ye=Tr;if(We.Da=Ae!=null&&0<Ae.Da,We.Da&&(te=Ae.cd,ye=Ae.bd,zr=Ae.v,Me=Ae.j,11>pt||(zr&=-2,Me&=-2),0>zr||0>Me||0>=te||0>=ye||zr+te>nr||Me+ye>Tr))return 0;if(We.v=zr,We.j=Me,We.va=zr+te,We.o=Me+ye,We.U=te,We.T=ye,We.da=Ae!=null&&0<Ae.da,We.da){if(!Hi(te,ye,pt=[Ae.ib],zr=[Ae.hb]))return 0;We.ib=pt[0],We.hb=zr[0]}return We.ob=Ae!=null&&Ae.ob,We.Kb=Ae==null||!Ae.Sd,We.da&&(We.ob=We.ib<3*nr/4&&We.hb<3*Tr/4,We.Kb=0),1}function No(Ae){if(Ae==null)return 2;if(11>Ae.S){var We=Ae.f.RGBA;We.fb+=(Ae.height-1)*We.A,We.A=-We.A}else We=Ae.f.kb,Ae=Ae.height,We.O+=(Ae-1)*We.fa,We.fa=-We.fa,We.N+=(Ae-1>>1)*We.Ab,We.Ab=-We.Ab,We.W+=(Ae-1>>1)*We.Db,We.Db=-We.Db,We.F!=null&&(We.J+=(Ae-1)*We.lb,We.lb=-We.lb);return 0}function ao(Ae,We,pt,nr){if(nr==null||0>=Ae||0>=We)return 2;if(pt!=null){if(pt.Da){var Tr=pt.cd,zr=pt.bd,Me=-2&pt.v,te=-2&pt.j;if(0>Me||0>te||0>=Tr||0>=zr||Me+Tr>Ae||te+zr>We)return 2;Ae=Tr,We=zr}if(pt.da){if(!Hi(Ae,We,Tr=[pt.ib],zr=[pt.hb]))return 2;Ae=Tr[0],We=zr[0]}}nr.width=Ae,nr.height=We;e:{var ye=nr.width,Ge=nr.height;if(Ae=nr.S,0>=ye||0>=Ge||!(Ae>=Pl&&13>Ae))Ae=2;else{if(0>=nr.Rd&&nr.sd==null){Me=zr=Tr=We=0;var st=(te=ye*Su[Ae])*Ge;if(11>Ae||(zr=(Ge+1)/2*(We=(ye+1)/2),Ae==12&&(Me=(Tr=ye)*Ge)),(Ge=Ve(st+2*zr+Me))==null){Ae=1;break e}nr.sd=Ge,11>Ae?((ye=nr.f.RGBA).eb=Ge,ye.fb=0,ye.A=te,ye.size=st):((ye=nr.f.kb).y=Ge,ye.O=0,ye.fa=te,ye.Fd=st,ye.f=Ge,ye.N=0+st,ye.Ab=We,ye.Cd=zr,ye.ea=Ge,ye.W=0+st+zr,ye.Db=We,ye.Ed=zr,Ae==12&&(ye.F=Ge,ye.J=0+st+2*zr),ye.Tc=Me,ye.lb=Tr)}if(We=1,Tr=nr.S,zr=nr.width,Me=nr.height,Tr>=Pl&&13>Tr)if(11>Tr)Ae=nr.f.RGBA,We&=(te=Math.abs(Ae.A))*(Me-1)+zr<=Ae.size,We&=te>=zr*Su[Tr],We&=Ae.eb!=null;else{Ae=nr.f.kb,te=(zr+1)/2,st=(Me+1)/2,ye=Math.abs(Ae.fa),Ge=Math.abs(Ae.Ab);var Ft=Math.abs(Ae.Db),zt=Math.abs(Ae.lb),Yt=zt*(Me-1)+zr;We&=ye*(Me-1)+zr<=Ae.Fd,We&=Ge*(st-1)+te<=Ae.Cd,We=(We&=Ft*(st-1)+te<=Ae.Ed)&ye>=zr&Ge>=te&Ft>=te,We&=Ae.y!=null,We&=Ae.f!=null,We&=Ae.ea!=null,Tr==12&&(We&=zt>=zr,We&=Yt<=Ae.Tc,We&=Ae.F!=null)}else We=0;Ae=We?0:2}}return Ae!=0||pt!=null&&pt.fd&&(Ae=No(nr)),Ae}var Ka=64,is=[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],Is=24,Go=32,la=8,Vs=[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];wr("Predictor0","PredictorAdd0"),Pt.Predictor0=function(){return 4278190080},Pt.Predictor1=function(Ae){return Ae},Pt.Predictor2=function(Ae,We,pt){return We[pt+0]},Pt.Predictor3=function(Ae,We,pt){return We[pt+1]},Pt.Predictor4=function(Ae,We,pt){return We[pt-1]},Pt.Predictor5=function(Ae,We,pt){return on(on(Ae,We[pt+1]),We[pt+0])},Pt.Predictor6=function(Ae,We,pt){return on(Ae,We[pt-1])},Pt.Predictor7=function(Ae,We,pt){return on(Ae,We[pt+0])},Pt.Predictor8=function(Ae,We,pt){return on(We[pt-1],We[pt+0])},Pt.Predictor9=function(Ae,We,pt){return on(We[pt+0],We[pt+1])},Pt.Predictor10=function(Ae,We,pt){return on(on(Ae,We[pt-1]),on(We[pt+0],We[pt+1]))},Pt.Predictor11=function(Ae,We,pt){var nr=We[pt+0];return 0>=Or(nr>>24&255,Ae>>24&255,(We=We[pt-1])>>24&255)+Or(nr>>16&255,Ae>>16&255,We>>16&255)+Or(nr>>8&255,Ae>>8&255,We>>8&255)+Or(255&nr,255&Ae,255&We)?nr:Ae},Pt.Predictor12=function(Ae,We,pt){var nr=We[pt+0];return(Zt((Ae>>24&255)+(nr>>24&255)-((We=We[pt-1])>>24&255))<<24|Zt((Ae>>16&255)+(nr>>16&255)-(We>>16&255))<<16|Zt((Ae>>8&255)+(nr>>8&255)-(We>>8&255))<<8|Zt((255&Ae)+(255&nr)-(255&We)))>>>0},Pt.Predictor13=function(Ae,We,pt){var nr=We[pt-1];return(br((Ae=on(Ae,We[pt+0]))>>24&255,nr>>24&255)<<24|br(Ae>>16&255,nr>>16&255)<<16|br(Ae>>8&255,nr>>8&255)<<8|br(Ae>>0&255,nr>>0&255))>>>0};var Hs=Pt.PredictorAdd0;Pt.PredictorAdd1=Wr,wr("Predictor2","PredictorAdd2"),wr("Predictor3","PredictorAdd3"),wr("Predictor4","PredictorAdd4"),wr("Predictor5","PredictorAdd5"),wr("Predictor6","PredictorAdd6"),wr("Predictor7","PredictorAdd7"),wr("Predictor8","PredictorAdd8"),wr("Predictor9","PredictorAdd9"),wr("Predictor10","PredictorAdd10"),wr("Predictor11","PredictorAdd11"),wr("Predictor12","PredictorAdd12"),wr("Predictor13","PredictorAdd13");var fs=Pt.PredictorAdd2;vr("ColorIndexInverseTransform","MapARGB","32b",function(Ae){return Ae>>8&255},function(Ae){return Ae}),vr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Ae){return Ae},function(Ae){return Ae>>8&255});var as,Ss=Pt.ColorIndexInverseTransform,xl=Pt.MapARGB,vl=Pt.VP8LColorIndexInverseTransformAlpha,zs=Pt.MapAlpha,Zo=Pt.VP8LPredictorsAdd=[];Zo.length=16,(Pt.VP8LPredictors=[]).length=16,(Pt.VP8LPredictorsAdd_C=[]).length=16,(Pt.VP8LPredictors_C=[]).length=16;var As,nl,Ps,po,Wa,Eo,Xo,$o,Co,rs,os,Fs,ol,Zs,dl,hl,sl,yl,Ns,ys,Ds,xs,Xs,ll,El,jl,$s,Nl,kl=Ve(511),yu=Ve(2041),cu=Ve(225),eu=Ve(767),tu=0,Vl=yu,Ys=cu,il=eu,fl=kl,Pl=0,du=1,ru=2,nu=3,Qs=4,iu=5,au=6,bu=7,bl=8,Fl=9,Hl=10,Gl=[2,3,7],Tl=[3,3,11],Tu=[280,256,256,256,40],Cu=[0,1,1,1,0],Cl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ou=[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],hu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],su=8,Rs=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],el=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Bl=null,wu=[[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]],fu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Xl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Kl=[[[[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]]]],lu=[[[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]]],pu=[[[[255,255,255,255,255,255,255,255,255,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]]]],mu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],pl=[],wl=[],Dl=[],Bo=1,Na=2,ro=[],Io=[];be("UpsampleRgbLinePair",fn,3),be("UpsampleBgrLinePair",Kn,3),be("UpsampleRgbaLinePair",va,4),be("UpsampleBgraLinePair",Fi,4),be("UpsampleArgbLinePair",Ei,4),be("UpsampleRgba4444LinePair",Qn,2),be("UpsampleRgb565LinePair",qn,2);var Bs=Pt.UpsampleRgbLinePair,Ol=Pt.UpsampleBgrLinePair,_l=Pt.UpsampleRgbaLinePair,ml=Pt.UpsampleBgraLinePair,Al=Pt.UpsampleArgbLinePair,Il=Pt.UpsampleRgba4444LinePair,Ll=Pt.UpsampleRgb565LinePair,Ks=16,Yl=1<<Ks-1,gu=-227,uu=482,Ou=6,Vu=(256<<Ou)-1,Fu=0,ec=Ve(256),Bu=Ve(256),Gu=Ve(256),Xu=Ve(256),Yu=Ve(uu-gu),Uu=Ve(uu-gu);Oa("YuvToRgbRow",fn,3),Oa("YuvToBgrRow",Kn,3),Oa("YuvToRgbaRow",va,4),Oa("YuvToBgraRow",Fi,4),Oa("YuvToArgbRow",Ei,4),Oa("YuvToRgba4444Row",Qn,2),Oa("YuvToRgb565Row",qn,2);var _u=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ul=[0,2,8],Iu=[8,7,6,4,4,2,2,2,1,1,1,1],Wl=1;this.WebPDecodeRGBA=function(Ae,We,pt,nr,Tr){var zr=du,Me=new us,te=new Si;Me.ba=te,te.S=zr,te.width=[te.width],te.height=[te.height];var ye=te.width,Ge=te.height,st=new Ni;if(st==null||Ae==null)var Ft=2;else Se(st!=null),Ft=Yo(Ae,We,pt,st.width,st.height,st.Pd,st.Qd,st.format,null);if(Ft!=0?ye=0:(ye!=null&&(ye[0]=st.width[0]),Ge!=null&&(Ge[0]=st.height[0]),ye=1),ye){te.width=te.width[0],te.height=te.height[0],nr!=null&&(nr[0]=te.width),Tr!=null&&(Tr[0]=te.height);e:{if(nr=new Fa,(Tr=new _s).data=Ae,Tr.w=We,Tr.ha=pt,Tr.kd=1,We=[0],Se(Tr!=null),((Ae=Yo(Tr.data,Tr.w,Tr.ha,null,null,null,We,null,Tr))==0||Ae==7)&&We[0]&&(Ae=4),(We=Ae)==0){if(Se(Me!=null),nr.data=Tr.data,nr.w=Tr.w+Tr.offset,nr.ha=Tr.ha-Tr.offset,nr.put=$i,nr.ac=Ui,nr.bc=Di,nr.ma=Me,Tr.xa){if((Ae=ja())==null){Me=1;break e}if(function(zt,Yt){var Nr=[0],Qr=[0],Cr=[0];t:for(;;){if(zt==null)return 0;if(Yt==null)return zt.a=2,0;if(zt.l=Yt,zt.a=0,xn(zt.m,Yt.data,Yt.w,Yt.ha),!ua(zt.m,Nr,Qr,Cr)){zt.a=3;break t}if(zt.xb=Na,Yt.width=Nr[0],Yt.height=Qr[0],!Ya(Nr[0],Qr[0],1,zt,null))break t;return 1}return Se(zt.a!=0),0}(Ae,nr)){if(nr=(We=ao(nr.width,nr.height,Me.Oa,Me.ba))==0){t:{nr=Ae;r:for(;;){if(nr==null){nr=0;break t}if(Se(nr.s.yc!=null),Se(nr.s.Ya!=null),Se(0<nr.s.Wb),Se((pt=nr.l)!=null),Se((Tr=pt.ma)!=null),nr.xb!=0){if(nr.ca=Tr.ba,nr.tb=Tr.tb,Se(nr.ca!=null),!Vo(Tr.Oa,pt,nu)){nr.a=2;break r}if(!Ia(nr,pt.width))break r;if(pt.da)break r;if((pt.da||ci(nr.ca.S))&&me(),11>nr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),nr.ca.f.kb.F!=null&&me()),nr.Pb&&0<nr.s.ua&&nr.s.vb.X==null&&!$n(nr.s.vb,nr.s.Wa.Xa)){nr.a=1;break r}nr.xb=0}if(!Ra(nr,nr.V,nr.Ba,nr.c,nr.i,pt.o,ra))break r;Tr.Dc=nr.Ma,nr=1;break t}Se(nr.a!=0),nr=0}nr=!nr}nr&&(We=Ae.a)}else We=Ae.a}else{if((Ae=new ha)==null){Me=1;break e}if(Ae.Fa=Tr.na,Ae.P=Tr.P,Ae.qc=Tr.Sa,Pr(Ae,nr)){if((We=ao(nr.width,nr.height,Me.Oa,Me.ba))==0){if(Ae.Aa=0,pt=Me.Oa,Se((Tr=Ae)!=null),pt!=null){if(0<(ye=0>(ye=pt.Md)?0:100<ye?255:255*ye/100)){for(Ge=st=0;4>Ge;++Ge)12>(Ft=Tr.pb[Ge]).lc&&(Ft.ia=ye*Iu[0>Ft.lc?0:Ft.lc]>>3),st|=Ft.ia;st&&(alert("todo:VP8InitRandom"),Tr.ia=1)}Tr.Ga=pt.Id,100<Tr.Ga?Tr.Ga=100:0>Tr.Ga&&(Tr.Ga=0)}Vr(Ae,nr)||(We=Ae.a)}}else We=Ae.a}We==0&&Me.Oa!=null&&Me.Oa.fd&&(We=No(Me.ba))}Me=We}zr=Me!=0?null:11>zr?te.f.RGBA.eb:te.f.kb.y}else zr=null;return zr};var Su=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Jt(Sn,Pt){for(var gt="",Et=0;Et<4;Et++)gt+=String.fromCharCode(Sn[Pt++]);return gt}function Rr(Sn,Pt){return(Sn[Pt+0]<<0|Sn[Pt+1]<<8|Sn[Pt+2]<<16)>>>0}function Ir(Sn,Pt){return(Sn[Pt+0]<<0|Sn[Pt+1]<<8|Sn[Pt+2]<<16|Sn[Pt+3]<<24)>>>0}new ct;var Xr=[0],qt=[0],pn=[],fr=new ct,mn=$e,en=function(Sn,Pt){var gt={},Et=0,Lt=!1,kt=0,yt=0;if(gt.frames=[],!function(xr,ln,On,In){for(var Un=0;Un<In;Un++)if(xr[ln+Un]!=On.charCodeAt(Un))return!0;return!1}(Sn,Pt,"RIFF",4)){var Qt,tr;for(Ir(Sn,Pt+=4),Pt+=8;Pt<Sn.length;){var ir=Jt(Sn,Pt),yr=Ir(Sn,Pt+=4);Pt+=4;var xn=yr+(1&yr);switch(ir){case"VP8 ":case"VP8L":gt.frames[Et]===void 0&&(gt.frames[Et]={}),(Yr=gt.frames[Et]).src_off=Lt?yt:Pt-8,Yr.src_size=kt+yr+8,Et++,Lt&&(Lt=!1,kt=0,yt=0);break;case"VP8X":(Yr=gt.header={}).feature_flags=Sn[Pt];var vn=Pt+4;Yr.canvas_width=1+Rr(Sn,vn),vn+=3,Yr.canvas_height=1+Rr(Sn,vn),vn+=3;break;case"ALPH":Lt=!0,kt=xn+8,yt=Pt-8;break;case"ANIM":(Yr=gt.header).bgcolor=Ir(Sn,Pt),vn=Pt+4,Yr.loop_count=(Qt=Sn)[(tr=vn)+0]<<0|Qt[tr+1]<<8,vn+=2;break;case"ANMF":var Wn,Yr;(Yr=gt.frames[Et]={}).offset_x=2*Rr(Sn,Pt),Pt+=3,Yr.offset_y=2*Rr(Sn,Pt),Pt+=3,Yr.width=1+Rr(Sn,Pt),Pt+=3,Yr.height=1+Rr(Sn,Pt),Pt+=3,Yr.duration=Rr(Sn,Pt),Pt+=3,Wn=Sn[Pt++],Yr.dispose=1&Wn,Yr.blend=Wn>>1&1}ir!="ANMF"&&(Pt+=xn)}return gt}}(mn,0);en.response=mn,en.rgbaoutput=!0,en.dataurl=!1;var kr=en.header?en.header:null,Gn=en.frames?en.frames:null;if(kr){kr.loop_counter=kr.loop_count,Xr=[kr.canvas_height],qt=[kr.canvas_width];for(var di=0;di<Gn.length&&Gn[di].blend!=0;di++);}var _i=Gn[0],Br=fr.WebPDecodeRGBA(mn,_i.src_off,_i.src_size,qt,Xr);_i.rgba=Br,_i.imgwidth=qt[0],_i.imgheight=Xr[0];for(var sn=0;sn<qt[0]*Xr[0]*4;sn++)pn[sn]=Br[sn];return this.width=qt,this.height=Xr,this.data=pn,this}!function($e){var Se=function(){return typeof A.b=="function"},Re=function(qt,pn,fr,mn){var en=4,kr=qe;switch(mn){case $e.image_compression.FAST:en=1,kr=Ve;break;case $e.image_compression.MEDIUM:en=6,kr=xt;break;case $e.image_compression.SLOW:en=9,kr=ct}qt=je(qt,pn,fr,kr);var Gn=Object(A.b)(qt,{level:en});return $e.__addimage__.arrayBufferToBinaryString(Gn)},je=function(qt,pn,fr,mn){for(var en,kr,Gn,di=qt.length/pn,_i=new Uint8Array(qt.length+di),Br=Rr(),sn=0;sn<di;sn+=1){if(Gn=sn*pn,en=qt.subarray(Gn,Gn+pn),mn)_i.set(mn(en,fr,kr),Gn+sn);else{for(var Sn,Pt=Br.length,gt=[];Sn<Pt;Sn+=1)gt[Sn]=Br[Sn](en,fr,kr);var Et=Ir(gt.concat());_i.set(gt[Et],Gn+sn)}kr=en}return _i},Ye=function(qt){var pn=Array.apply([],qt);return pn.unshift(0),pn},Ve=function(qt,pn){var fr,mn=[],en=qt.length;mn[0]=1;for(var kr=0;kr<en;kr+=1)fr=qt[kr-pn]||0,mn[kr+1]=qt[kr]-fr+256&255;return mn},qe=function(qt,pn,fr){var mn,en=[],kr=qt.length;en[0]=2;for(var Gn=0;Gn<kr;Gn+=1)mn=fr&&fr[Gn]||0,en[Gn+1]=qt[Gn]-mn+256&255;return en},xt=function(qt,pn,fr){var mn,en,kr=[],Gn=qt.length;kr[0]=3;for(var di=0;di<Gn;di+=1)mn=qt[di-pn]||0,en=fr&&fr[di]||0,kr[di+1]=qt[di]+256-(mn+en>>>1)&255;return kr},ct=function(qt,pn,fr){var mn,en,kr,Gn,di=[],_i=qt.length;di[0]=4;for(var Br=0;Br<_i;Br+=1)mn=qt[Br-pn]||0,en=fr&&fr[Br]||0,kr=fr&&fr[Br-pn]||0,Gn=Jt(mn,en,kr),di[Br+1]=qt[Br]-Gn+256&255;return di},Jt=function(qt,pn,fr){if(qt===pn&&pn===fr)return qt;var mn=Math.abs(pn-fr),en=Math.abs(qt-fr),kr=Math.abs(qt+pn-fr-fr);return mn<=en&&mn<=kr?qt:en<=kr?pn:fr},Rr=function(){return[Ye,Ve,qe,xt,ct]},Ir=function(qt){var pn=qt.map(function(fr){return fr.reduce(function(mn,en){return mn+Math.abs(en)},0)});return pn.indexOf(Math.min.apply(null,pn))};$e.processPNG=function(Xr,qt,pn,fr){var mn,en,kr,Gn,di,_i,Br,sn,Sn,Pt,gt,Et,Lt,kt,yt,Qt=this.decode.FLATE_DECODE,tr="";if(this.__addimage__.isArrayBuffer(Xr)&&(Xr=new Uint8Array(Xr)),this.__addimage__.isArrayBufferView(Xr)){if(Xr=(kr=new Ze(Xr)).imgData,en=kr.bits,mn=kr.colorSpace,di=kr.colors,[4,6].indexOf(kr.colorType)!==-1){if(kr.bits===8){Sn=(sn=kr.pixelBitlength==32?new Uint32Array(kr.decodePixels().buffer):kr.pixelBitlength==16?new Uint16Array(kr.decodePixels().buffer):new Uint8Array(kr.decodePixels().buffer)).length,gt=new Uint8Array(Sn*kr.colors),Pt=new Uint8Array(Sn);var ir,yr=kr.pixelBitlength-kr.bits;for(kt=0,yt=0;kt<Sn;kt++){for(Lt=sn[kt],ir=0;ir<yr;)gt[yt++]=Lt>>>ir&255,ir+=kr.bits;Pt[kt]=Lt>>>ir&255}}if(kr.bits===16){Sn=(sn=new Uint32Array(kr.decodePixels().buffer)).length,gt=new Uint8Array(Sn*(32/kr.pixelBitlength)*kr.colors),Pt=new Uint8Array(Sn*(32/kr.pixelBitlength)),Et=kr.colors>1,kt=0,yt=0;for(var xn=0;kt<Sn;)Lt=sn[kt++],gt[yt++]=Lt>>>0&255,Et&&(gt[yt++]=Lt>>>16&255,Lt=sn[kt++],gt[yt++]=Lt>>>0&255),Pt[xn++]=Lt>>>16&255;en=8}fr!==$e.image_compression.NONE&&Se()?(Xr=Re(gt,kr.width*kr.colors,kr.colors,fr),Br=Re(Pt,kr.width,1,fr)):(Xr=gt,Br=Pt,Qt=void 0)}if(kr.colorType===3&&(mn=this.color_spaces.INDEXED,_i=kr.palette,kr.transparency.indexed)){var vn=kr.transparency.indexed,Wn=0;for(kt=0,Sn=vn.length;kt<Sn;++kt)Wn+=vn[kt];if((Wn/=255)===Sn-1&&vn.indexOf(0)!==-1)Gn=[vn.indexOf(0)];else if(Wn!==Sn){for(sn=kr.decodePixels(),Pt=new Uint8Array(sn.length),kt=0,Sn=sn.length;kt<Sn;kt++)Pt[kt]=vn[sn[kt]];Br=Re(Pt,kr.width,1)}}var Yr=function(xr){var ln;switch(xr){case $e.image_compression.FAST:ln=11;break;case $e.image_compression.MEDIUM:ln=13;break;case $e.image_compression.SLOW:ln=14;break;default:ln=12}return ln}(fr);return Qt===this.decode.FLATE_DECODE&&(tr="/Predictor "+Yr+" "),tr+="/Colors "+di+" /BitsPerComponent "+en+" /Columns "+kr.width,(this.__addimage__.isArrayBuffer(Xr)||this.__addimage__.isArrayBufferView(Xr))&&(Xr=this.__addimage__.arrayBufferToBinaryString(Xr)),(Br&&this.__addimage__.isArrayBuffer(Br)||this.__addimage__.isArrayBufferView(Br))&&(Br=this.__addimage__.arrayBufferToBinaryString(Br)),{alias:pn,data:Xr,index:qt,filter:Qt,decodeParameters:tr,transparency:Gn,palette:_i,sMask:Br,predictor:Yr,width:kr.width,height:kr.height,bitsPerComponent:en,colorSpace:mn}}}}(j.API),function($e){$e.processGIF89A=function(Se,Re,je,Ye){var Ve=new it(Se),qe=Ve.width,xt=Ve.height,ct=[];Ve.decodeAndBlitFrameRGBA(0,ct);var Jt={data:ct,width:qe,height:xt},Rr=new Nt(100).encode(Jt,100);return $e.processJPEG.call(this,Rr,Re,je,Ye)},$e.processGIF87A=$e.processGIF89A}(j.API),Ar.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 $e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array($e);for(var Se=0;Se<$e;Se++){var Re=this.datav.getUint8(this.pos++,!0),je=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),Ve=this.datav.getUint8(this.pos++,!0);this.palette[Se]={red:Ye,green:je,blue:Re,quad:Ve}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ar.prototype.parseBGR=function(){this.pos=this.offset;try{var $e="bit"+this.bitPP,Se=this.width*this.height*4;this.data=new Uint8Array(Se),this[$e]()}catch(Re){f.log("bit decode error:"+Re)}},Ar.prototype.bit1=function(){var $e,Se=Math.ceil(this.width/8),Re=Se%4;for($e=this.height-1;$e>=0;$e--){for(var je=this.bottom_up?$e:this.height-1-$e,Ye=0;Ye<Se;Ye++)for(var Ve=this.datav.getUint8(this.pos++,!0),qe=je*this.width*4+8*Ye*4,xt=0;xt<8&&8*Ye+xt<this.width;xt++){var ct=this.palette[Ve>>7-xt&1];this.data[qe+4*xt]=ct.blue,this.data[qe+4*xt+1]=ct.green,this.data[qe+4*xt+2]=ct.red,this.data[qe+4*xt+3]=255}Re!==0&&(this.pos+=4-Re)}},Ar.prototype.bit4=function(){for(var $e=Math.ceil(this.width/2),Se=$e%4,Re=this.height-1;Re>=0;Re--){for(var je=this.bottom_up?Re:this.height-1-Re,Ye=0;Ye<$e;Ye++){var Ve=this.datav.getUint8(this.pos++,!0),qe=je*this.width*4+2*Ye*4,xt=Ve>>4,ct=15&Ve,Jt=this.palette[xt];if(this.data[qe]=Jt.blue,this.data[qe+1]=Jt.green,this.data[qe+2]=Jt.red,this.data[qe+3]=255,2*Ye+1>=this.width)break;Jt=this.palette[ct],this.data[qe+4]=Jt.blue,this.data[qe+4+1]=Jt.green,this.data[qe+4+2]=Jt.red,this.data[qe+4+3]=255}Se!==0&&(this.pos+=4-Se)}},Ar.prototype.bit8=function(){for(var $e=this.width%4,Se=this.height-1;Se>=0;Se--){for(var Re=this.bottom_up?Se:this.height-1-Se,je=0;je<this.width;je++){var Ye=this.datav.getUint8(this.pos++,!0),Ve=Re*this.width*4+4*je;if(Ye<this.palette.length){var qe=this.palette[Ye];this.data[Ve]=qe.red,this.data[Ve+1]=qe.green,this.data[Ve+2]=qe.blue,this.data[Ve+3]=255}else this.data[Ve]=255,this.data[Ve+1]=255,this.data[Ve+2]=255,this.data[Ve+3]=255}$e!==0&&(this.pos+=4-$e)}},Ar.prototype.bit15=function(){for(var $e=this.width%3,Se=parseInt("11111",2),Re=this.height-1;Re>=0;Re--){for(var je=this.bottom_up?Re:this.height-1-Re,Ye=0;Ye<this.width;Ye++){var Ve=this.datav.getUint16(this.pos,!0);this.pos+=2;var qe=(Ve&Se)/Se*255|0,xt=(Ve>>5&Se)/Se*255|0,ct=(Ve>>10&Se)/Se*255|0,Jt=Ve>>15?255:0,Rr=je*this.width*4+4*Ye;this.data[Rr]=ct,this.data[Rr+1]=xt,this.data[Rr+2]=qe,this.data[Rr+3]=Jt}this.pos+=$e}},Ar.prototype.bit16=function(){for(var $e=this.width%3,Se=parseInt("11111",2),Re=parseInt("111111",2),je=this.height-1;je>=0;je--){for(var Ye=this.bottom_up?je:this.height-1-je,Ve=0;Ve<this.width;Ve++){var qe=this.datav.getUint16(this.pos,!0);this.pos+=2;var xt=(qe&Se)/Se*255|0,ct=(qe>>5&Re)/Re*255|0,Jt=(qe>>11)/Se*255|0,Rr=Ye*this.width*4+4*Ve;this.data[Rr]=Jt,this.data[Rr+1]=ct,this.data[Rr+2]=xt,this.data[Rr+3]=255}this.pos+=$e}},Ar.prototype.bit24=function(){for(var $e=this.height-1;$e>=0;$e--){for(var Se=this.bottom_up?$e:this.height-1-$e,Re=0;Re<this.width;Re++){var je=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),Ve=this.datav.getUint8(this.pos++,!0),qe=Se*this.width*4+4*Re;this.data[qe]=Ve,this.data[qe+1]=Ye,this.data[qe+2]=je,this.data[qe+3]=255}this.pos+=this.width%4}},Ar.prototype.bit32=function(){for(var $e=this.height-1;$e>=0;$e--)for(var Se=this.bottom_up?$e:this.height-1-$e,Re=0;Re<this.width;Re++){var je=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),Ve=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0),xt=Se*this.width*4+4*Re;this.data[xt]=Ve,this.data[xt+1]=Ye,this.data[xt+2]=je,this.data[xt+3]=qe}},Ar.prototype.getData=function(){return this.data},function($e){$e.processBMP=function(Se,Re,je,Ye){var Ve=new Ar(Se,!1),qe=Ve.width,xt=Ve.height,ct={data:Ve.getData(),width:qe,height:xt},Jt=new Nt(100).encode(ct,100);return $e.processJPEG.call(this,Jt,Re,je,Ye)}}(j.API),Mr.prototype.getData=function(){return this.data},function($e){$e.processWEBP=function(Se,Re,je,Ye){var Ve=new Mr(Se,!1),qe=Ve.width,xt=Ve.height,ct={data:Ve.getData(),width:qe,height:xt},Jt=new Nt(100).encode(ct,100);return $e.processJPEG.call(this,Jt,Re,je,Ye)}}(j.API),j.API.processRGBA=function($e,Se,Re){for(var je=$e.data,Ye=je.length,Ve=new Uint8Array(Ye/4*3),qe=new Uint8Array(Ye/4),xt=0,ct=0,Jt=0;Jt<Ye;Jt+=4){var Rr=je[Jt],Ir=je[Jt+1],Xr=je[Jt+2],qt=je[Jt+3];Ve[xt++]=Rr,Ve[xt++]=Ir,Ve[xt++]=Xr,qe[ct++]=qt}var pn=this.__addimage__.arrayBufferToBinaryString(Ve);return{alpha:this.__addimage__.arrayBufferToBinaryString(qe),data:pn,index:Se,alias:Re,colorSpace:"DeviceRGB",bitsPerComponent:8,width:$e.width,height:$e.height}},j.API.setLanguage=function($e){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"}[$e]!==void 0&&(this.internal.languageSettings.languageCode=$e,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,St=jt.getCharWidthsArray=function($e,Se){var Re,je,Ye=(Se=Se||{}).font||this.internal.getFont(),Ve=Se.fontSize||this.internal.getFontSize(),qe=Se.charSpace||this.internal.getCharSpace(),xt=Se.widths?Se.widths:Ye.metadata.Unicode.widths,ct=xt.fof?xt.fof:1,Jt=Se.kerning?Se.kerning:Ye.metadata.Unicode.kerning,Rr=Jt.fof?Jt.fof:1,Ir=Se.doKerning!==!1,Xr=0,qt=$e.length,pn=0,fr=xt[0]||ct,mn=[];for(Re=0;Re<qt;Re++)je=$e.charCodeAt(Re),typeof Ye.metadata.widthOfString=="function"?mn.push((Ye.metadata.widthOfGlyph(Ye.metadata.characterToGlyph(je))+qe*(1e3/Ve)||0)/1e3):(Xr=Ir&&C()(Jt[je])==="object"&&!isNaN(parseInt(Jt[je][pn],10))?Jt[je][pn]/Rr:0,mn.push((xt[je]||fr)/ct+Xr)),pn=je;return mn},Ie=jt.getStringUnitWidth=function($e,Se){var Re=(Se=Se||{}).fontSize||this.internal.getFontSize(),je=Se.font||this.internal.getFont(),Ye=Se.charSpace||this.internal.getCharSpace();return jt.processArabic&&($e=jt.processArabic($e)),typeof je.metadata.widthOfString=="function"?je.metadata.widthOfString($e,Re,Ye)/Re:St.apply(this,arguments).reduce(function(Ve,qe){return Ve+qe},0)},_e=function(Se,Re,je,Ye){for(var Ve=[],qe=0,xt=Se.length,ct=0;qe!==xt&&ct+Re[qe]<je;)ct+=Re[qe],qe++;Ve.push(Se.slice(0,qe));var Jt=qe;for(ct=0;qe!==xt;)ct+Re[qe]>Ye&&(Ve.push(Se.slice(Jt,qe)),ct=0,Jt=qe),ct+=Re[qe],qe++;return Jt!==qe&&Ve.push(Se.slice(Jt,qe)),Ve},Le=function(Se,Re,je){je||(je={});var Ye,Ve,qe,xt,ct,Jt,Rr,Ir=[],Xr=[Ir],qt=je.textIndent||0,pn=0,fr=0,mn=Se.split(" "),en=St.apply(this,[" ",je])[0];if(Jt=je.lineIndent===-1?mn[0].length+2:je.lineIndent||0){var kr=Array(Jt).join(" "),Gn=[];mn.map(function(_i){(_i=_i.split(/\s*\n/)).length>1?Gn=Gn.concat(_i.map(function(Br,sn){return(sn&&Br.length?`
|
|
|
`:"")+Br})):Gn.push(_i[0])}),mn=Gn,Jt=Ie.apply(this,[kr,je])}for(qe=0,xt=mn.length;qe<xt;qe++){var di=0;if(Ye=mn[qe],Jt&&Ye[0]==`
|
|
|
`&&(Ye=Ye.substr(1),di=1),qt+pn+(fr=(Ve=St.apply(this,[Ye,je])).reduce(function(_i,Br){return _i+Br},0))>Re||di){if(fr>Re){for(ct=_e.apply(this,[Ye,Ve,Re-(qt+pn),Re]),Ir.push(ct.shift()),Ir=[ct.pop()];ct.length;)Xr.push([ct.shift()]);fr=Ve.slice(Ye.length-(Ir[0]?Ir[0].length:0)).reduce(function(_i,Br){return _i+Br},0)}else Ir=[Ye];Xr.push(Ir),qt=fr+Jt,pn=en}else Ir.push(Ye),qt+=pn+fr,pn=en}return Rr=Jt?function(_i,Br){return(Br?kr:"")+_i.join(" ")}:function(_i){return _i.join(" ")},Xr.map(Rr)},jt.splitTextToSize=function($e,Se,Re){var je,Ye=(Re=Re||{}).fontSize||this.internal.getFontSize(),Ve=function(Rr){if(Rr.widths&&Rr.kerning)return{widths:Rr.widths,kerning:Rr.kerning};var Ir=this.internal.getFont(Rr.fontName,Rr.fontStyle);return Ir.metadata.Unicode?{widths:Ir.metadata.Unicode.widths||{0:1},kerning:Ir.metadata.Unicode.kerning||{}}:{font:Ir.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Re);je=Array.isArray($e)?$e:String($e).split(/\r?\n/);var qe=1*this.internal.scaleFactor*Se/Ye;Ve.textIndent=Re.textIndent?1*Re.textIndent*this.internal.scaleFactor/Ye:0,Ve.lineIndent=Re.lineIndent;var xt,ct,Jt=[];for(xt=0,ct=je.length;xt<ct;xt++)Jt=Jt.concat(Le.apply(this,[je[xt],qe,Ve]));return Jt},function($e){$e.__fontmetrics__=$e.__fontmetrics__||{};for(var Se="klmnopqrstuvwxyz",Re={},je={},Ye=0;Ye<Se.length;Ye++)Re[Se[Ye]]="0123456789abcdef"[Ye],je["0123456789abcdef"[Ye]]=Se[Ye];var Ve=function(Xr){return"0x"+parseInt(Xr,10).toString(16)},qe=$e.__fontmetrics__.compress=function(Ir){var Xr,qt,pn,fr,mn=["{"];for(var en in Ir){if(Xr=Ir[en],isNaN(parseInt(en,10))?qt="'"+en+"'":(en=parseInt(en,10),qt=(qt=Ve(en).slice(2)).slice(0,-1)+je[qt.slice(-1)]),typeof Xr=="number")Xr<0?(pn=Ve(Xr).slice(3),fr="-"):(pn=Ve(Xr).slice(2),fr=""),pn=fr+pn.slice(0,-1)+je[pn.slice(-1)];else{if(C()(Xr)!=="object")throw new Error("Don't know what to do with value type "+C()(Xr)+".");pn=qe(Xr)}mn.push(qt+pn)}return mn.push("}"),mn.join("")},xt=$e.__fontmetrics__.uncompress=function(Ir){if(typeof Ir!="string")throw new Error("Invalid argument passed to uncompress.");for(var Xr,qt,pn,fr,mn={},en=1,kr=mn,Gn=[],di="",_i="",Br=Ir.length-1,sn=1;sn<Br;sn+=1)(fr=Ir[sn])=="'"?Xr?(pn=Xr.join(""),Xr=void 0):Xr=[]:Xr?Xr.push(fr):fr=="{"?(Gn.push([kr,pn]),kr={},pn=void 0):fr=="}"?((qt=Gn.pop())[0][qt[1]]=kr,pn=void 0,kr=qt[0]):fr=="-"?en=-1:pn===void 0?Re.hasOwnProperty(fr)?(di+=Re[fr],pn=parseInt(di,16)*en,en=1,di=""):di+=fr:Re.hasOwnProperty(fr)?(_i+=Re[fr],kr[pn]=parseInt(_i,16)*en,en=1,pn=void 0,_i=""):_i+=fr;return mn},ct={codePages:["WinAnsiEncoding"],WinAnsiEncoding:xt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Jt={Unicode:{Courier:ct,"Courier-Bold":ct,"Courier-BoldOblique":ct,"Courier-Oblique":ct,Helvetica:ct,"Helvetica-Bold":ct,"Helvetica-BoldOblique":ct,"Helvetica-Oblique":ct,"Times-Roman":ct,"Times-Bold":ct,"Times-BoldItalic":ct,"Times-Italic":ct}},Rr={Unicode:{"Courier-Oblique":xt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":xt("{'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":xt("{'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:xt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":xt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":xt("{'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:xt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:xt("{'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":xt("{'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:xt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":xt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":xt("{'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":xt("{'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":xt("{'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}}}")}};$e.events.push(["addFont",function(Ir){var Xr=Ir.font,qt=Rr.Unicode[Xr.postScriptName];qt&&(Xr.metadata.Unicode={},Xr.metadata.Unicode.widths=qt.widths,Xr.metadata.Unicode.kerning=qt.kerning);var pn=Jt.Unicode[Xr.postScriptName];pn&&(Xr.metadata.Unicode.encoding=pn,Xr.encoding=pn.codePages[0])}])}(j.API),function($e){var Se=function(je){for(var Ye=je.length,Ve=new Uint8Array(Ye),qe=0;qe<Ye;qe++)Ve[qe]=je.charCodeAt(qe);return Ve};$e.API.events.push(["addFont",function(Re){var je=void 0,Ye=Re.font,Ve=Re.instance;if(!Ye.isStandardFont){if(Ve===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ye.postScriptName+"').");if(typeof(je=Ve.existsFileInVFS(Ye.postScriptName)===!1?Ve.loadFile(Ye.postScriptName):Ve.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,xt){xt=/^\x00\x01\x00\x00/.test(xt)?Se(xt):Se(i(xt)),qe.metadata=$e.API.TTFFont.open(xt),qe.metadata.Unicode=qe.metadata.Unicode||{encoding:{},kerning:{},widths:[]},qe.metadata.glyIdsUsed=[0]}(Ye,je)}}])}(j),function($e){function Se(){return(w.canvg?Promise.resolve(w.canvg):Promise.all([d.e(0),d.e(237)]).then(d.bind(null,"DXPr"))).catch(function(Re){return Promise.reject(new Error("Could not load canvg: "+Re))}).then(function(Re){return Re.default?Re.default:Re})}j.API.addSvgAsImage=function(Re,je,Ye,Ve,qe,xt,ct,Jt){if(isNaN(je)||isNaN(Ye))throw f.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Ve)||isNaN(qe))throw f.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Rr=document.createElement("canvas");Rr.width=Ve,Rr.height=qe;var Ir=Rr.getContext("2d");Ir.fillStyle="#fff",Ir.fillRect(0,0,Rr.width,Rr.height);var Xr={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},qt=this;return Se().then(function(pn){return pn.fromString(Ir,Re,Xr)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(pn){return pn.render(Xr)}).then(function(){qt.addImage(Rr.toDataURL("image/jpeg",1),je,Ye,Ve,qe,ct,Jt)})}}(),j.API.putTotalPages=function($e){var Se,Re=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Se=new RegExp($e,"g"),Re=this.internal.getNumberOfPages()):(Se=new RegExp(this.pdfEscape16($e,this.internal.getFont()),"g"),Re=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var je=1;je<=this.internal.getNumberOfPages();je++)for(var Ye=0;Ye<this.internal.pages[je].length;Ye++)this.internal.pages[je][Ye]=this.internal.pages[je][Ye].replace(Se,Re);return this},j.API.viewerPreferences=function($e,Se){var Re;$e=$e||{},Se=Se||!1;var je,Ye,Ve,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}},xt=Object.keys(qe),ct=[],Jt=0,Rr=0,Ir=0;function Xr(pn,fr){var mn,en=!1;for(mn=0;mn<pn.length;mn+=1)pn[mn]===fr&&(en=!0);return en}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(qe)),this.internal.viewerpreferences.isSubscribed=!1),Re=this.internal.viewerpreferences.configuration,$e==="reset"||Se===!0){var qt=xt.length;for(Ir=0;Ir<qt;Ir+=1)Re[xt[Ir]].value=Re[xt[Ir]].defaultValue,Re[xt[Ir]].explicitSet=!1}if(C()($e)==="object"){for(Ye in $e)if(Ve=$e[Ye],Xr(xt,Ye)&&Ve!==void 0){if(Re[Ye].type==="boolean"&&typeof Ve=="boolean")Re[Ye].value=Ve;else if(Re[Ye].type==="name"&&Xr(Re[Ye].valueSet,Ve))Re[Ye].value=Ve;else if(Re[Ye].type==="integer"&&Number.isInteger(Ve))Re[Ye].value=Ve;else if(Re[Ye].type==="array"){for(Jt=0;Jt<Ve.length;Jt+=1)if(je=!0,Ve[Jt].length===1&&typeof Ve[Jt][0]=="number")ct.push(String(Ve[Jt]-1));else if(Ve[Jt].length>1){for(Rr=0;Rr<Ve[Jt].length;Rr+=1)typeof Ve[Jt][Rr]!="number"&&(je=!1);je===!0&&ct.push([Ve[Jt][0]-1,Ve[Jt][1]-1].join(" "))}Re[Ye].value="["+ct.join(" ")+"]"}else Re[Ye].value=Re[Ye].defaultValue;Re[Ye].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var pn,fr=[];for(pn in Re)Re[pn].explicitSet===!0&&(Re[pn].type==="name"?fr.push("/"+pn+" /"+Re[pn].value):fr.push("/"+pn+" "+Re[pn].value));fr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+fr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Re,this},function($e){var Se=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>',Ve=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),qe=unescape(encodeURIComponent(Ye)),xt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ct=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Jt=unescape(encodeURIComponent("</x:xmpmeta>")),Rr=qe.length+xt.length+ct.length+Ve.length+Jt.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Rr+" >>"),this.internal.write("stream"),this.internal.write(Ve+qe+xt+ct+Jt),this.internal.write("endstream"),this.internal.write("endobj")},Re=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};$e.addMetadata=function(je,Ye){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:je,namespaceuri:Ye||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Re),this.internal.events.subscribe("postPutResources",Se)),this}}(j.API),function($e){var Se=$e.API,Re=Se.pdfEscape16=function(Ve,qe){for(var xt,ct=qe.metadata.Unicode.widths,Jt=["","0","00","000","0000"],Rr=[""],Ir=0,Xr=Ve.length;Ir<Xr;++Ir){if(xt=qe.metadata.characterToGlyph(Ve.charCodeAt(Ir)),qe.metadata.glyIdsUsed.push(xt),qe.metadata.toUnicode[xt]=Ve.charCodeAt(Ir),ct.indexOf(xt)==-1&&(ct.push(xt),ct.push([parseInt(qe.metadata.widthOfGlyph(xt),10)])),xt=="0")return Rr.join("");xt=xt.toString(16),Rr.push(Jt[4-xt.length],xt)}return Rr.join("")},je=function(qe){var xt,ct,Jt,Rr,Ir,Xr,qt;for(Ir=`/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`,Jt=[],Xr=0,qt=(ct=Object.keys(qe).sort(function(pn,fr){return pn-fr})).length;Xr<qt;Xr++)xt=ct[Xr],Jt.length>=100&&(Ir+=`
|
|
|
`+Jt.length+` beginbfchar
|
|
|
`+Jt.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Jt=[]),qe[xt]!==void 0&&qe[xt]!==null&&typeof qe[xt].toString=="function"&&(Rr=("0000"+qe[xt].toString(16)).slice(-4),xt=("0000"+(+xt).toString(16)).slice(-4),Jt.push("<"+xt+"><"+Rr+">"));return Jt.length&&(Ir+=`
|
|
|
`+Jt.length+` beginbfchar
|
|
|
`+Jt.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),Ir+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};Se.events.push(["putFont",function(Ve){!function(qe){var xt=qe.font,ct=qe.out,Jt=qe.newObject,Rr=qe.putStream;if(xt.metadata instanceof $e.API.TTFFont&&xt.encoding==="Identity-H"){for(var Ir=xt.metadata.Unicode.widths,Xr=xt.metadata.subset.encode(xt.metadata.glyIdsUsed,1),qt="",pn=0;pn<Xr.length;pn++)qt+=String.fromCharCode(Xr[pn]);var fr=Jt();Rr({data:qt,addLength1:!0,objectId:fr}),ct("endobj");var mn=Jt();Rr({data:je(xt.metadata.toUnicode),addLength1:!0,objectId:mn}),ct("endobj");var en=Jt();ct("<<"),ct("/Type /FontDescriptor"),ct("/FontName /"+D(xt.fontName)),ct("/FontFile2 "+fr+" 0 R"),ct("/FontBBox "+$e.API.PDFObject.convert(xt.metadata.bbox)),ct("/Flags "+xt.metadata.flags),ct("/StemV "+xt.metadata.stemV),ct("/ItalicAngle "+xt.metadata.italicAngle),ct("/Ascent "+xt.metadata.ascender),ct("/Descent "+xt.metadata.decender),ct("/CapHeight "+xt.metadata.capHeight),ct(">>"),ct("endobj");var kr=Jt();ct("<<"),ct("/Type /Font"),ct("/BaseFont /"+D(xt.fontName)),ct("/FontDescriptor "+en+" 0 R"),ct("/W "+$e.API.PDFObject.convert(Ir)),ct("/CIDToGIDMap /Identity"),ct("/DW 1000"),ct("/Subtype /CIDFontType2"),ct("/CIDSystemInfo"),ct("<<"),ct("/Supplement 0"),ct("/Registry (Adobe)"),ct("/Ordering ("+xt.encoding+")"),ct(">>"),ct(">>"),ct("endobj"),xt.objectNumber=Jt(),ct("<<"),ct("/Type /Font"),ct("/Subtype /Type0"),ct("/ToUnicode "+mn+" 0 R"),ct("/BaseFont /"+D(xt.fontName)),ct("/Encoding /"+xt.encoding),ct("/DescendantFonts ["+kr+" 0 R]"),ct(">>"),ct("endobj"),xt.isAlreadyPutted=!0}}(Ve)}]),Se.events.push(["putFont",function(Ve){!function(qe){var xt=qe.font,ct=qe.out,Jt=qe.newObject,Rr=qe.putStream;if(xt.metadata instanceof $e.API.TTFFont&&xt.encoding==="WinAnsiEncoding"){for(var Ir=xt.metadata.rawData,Xr="",qt=0;qt<Ir.length;qt++)Xr+=String.fromCharCode(Ir[qt]);var pn=Jt();Rr({data:Xr,addLength1:!0,objectId:pn}),ct("endobj");var fr=Jt();Rr({data:je(xt.metadata.toUnicode),addLength1:!0,objectId:fr}),ct("endobj");var mn=Jt();ct("<<"),ct("/Descent "+xt.metadata.decender),ct("/CapHeight "+xt.metadata.capHeight),ct("/StemV "+xt.metadata.stemV),ct("/Type /FontDescriptor"),ct("/FontFile2 "+pn+" 0 R"),ct("/Flags 96"),ct("/FontBBox "+$e.API.PDFObject.convert(xt.metadata.bbox)),ct("/FontName /"+D(xt.fontName)),ct("/ItalicAngle "+xt.metadata.italicAngle),ct("/Ascent "+xt.metadata.ascender),ct(">>"),ct("endobj"),xt.objectNumber=Jt();for(var en=0;en<xt.metadata.hmtx.widths.length;en++)xt.metadata.hmtx.widths[en]=parseInt(xt.metadata.hmtx.widths[en]*(1e3/xt.metadata.head.unitsPerEm));ct("<</Subtype/TrueType/Type/Font/ToUnicode "+fr+" 0 R/BaseFont/"+D(xt.fontName)+"/FontDescriptor "+mn+" 0 R/Encoding/"+xt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+$e.API.PDFObject.convert(xt.metadata.hmtx.widths)+">>"),ct("endobj"),xt.isAlreadyPutted=!0}}(Ve)}]);var Ye=function(qe){var xt,ct=qe.text||"",Jt=qe.x,Rr=qe.y,Ir=qe.options||{},Xr=qe.mutex||{},qt=Xr.pdfEscape,pn=Xr.activeFontKey,fr=Xr.fonts,mn=pn,en="",kr=0,Gn="",di=fr[mn].encoding;if(fr[mn].encoding!=="Identity-H")return{text:ct,x:Jt,y:Rr,options:Ir,mutex:Xr};for(Gn=ct,mn=pn,Array.isArray(ct)&&(Gn=ct[0]),kr=0;kr<Gn.length;kr+=1)fr[mn].metadata.hasOwnProperty("cmap")&&(xt=fr[mn].metadata.cmap.unicode.codeMap[Gn[kr].charCodeAt(0)]),xt||Gn[kr].charCodeAt(0)<256&&fr[mn].metadata.hasOwnProperty("Unicode")?en+=Gn[kr]:en+="";var _i="";return parseInt(mn.slice(1))<14||di==="WinAnsiEncoding"?_i=qt(en,mn).split("").map(function(Br){return Br.charCodeAt(0).toString(16)}).join(""):di==="Identity-H"&&(_i=Re(en,fr[mn])),Xr.isHex=!0,{text:_i,x:Jt,y:Rr,options:Ir,mutex:Xr}};Se.events.push(["postProcessText",function(Ve){var qe=Ve.text||"",xt=[],ct={text:qe,x:Ve.x,y:Ve.y,options:Ve.options,mutex:Ve.mutex};if(Array.isArray(qe)){var Jt=0;for(Jt=0;Jt<qe.length;Jt+=1)Array.isArray(qe[Jt])&&qe[Jt].length===3?xt.push([Ye(Object.assign({},ct,{text:qe[Jt][0]})).text,qe[Jt][1],qe[Jt][2]]):xt.push(Ye(Object.assign({},ct,{text:qe[Jt]})).text);Ve.text=xt}else Ve.text=Ye(Object.assign({},ct,{text:qe})).text}])}(j),function($e){var Se=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};$e.existsFileInVFS=function(Re){return Se.call(this),this.internal.vFS[Re]!==void 0},$e.addFileToVFS=function(Re,je){return Se.call(this),this.internal.vFS[Re]=je,this},$e.getFileFromVFS=function(Re){return Se.call(this),this.internal.vFS[Re]!==void 0?this.internal.vFS[Re]:null}}(j.API),function($e){$e.__bidiEngine__=$e.prototype.__bidiEngine__=function(je){var Ye,Ve,qe,xt,ct,Jt,Rr,Ir=Se,Xr=[[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]],qt=[[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]],pn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},fr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},mn=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],en=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)$/),kr=!1,Gn=0;this.__bidiEngine__={};var di=function(Lt){var kt=Lt.charCodeAt(),yt=kt>>8,Qt=fr[yt];return Qt!==void 0?Ir[256*Qt+(255&kt)]:yt===252||yt===253?"AL":en.test(yt)?"L":yt===8?"R":"N"},_i=function(Lt){for(var kt,yt=0;yt<Lt.length;yt++){if((kt=di(Lt.charAt(yt)))==="L")return!1;if(kt==="R")return!0}return!1},Br=function(Lt,kt,yt,Qt){var tr,ir,yr,xn,vn=kt[Qt];switch(vn){case"L":case"R":kr=!1;break;case"N":case"AN":break;case"EN":kr&&(vn="AN");break;case"AL":kr=!0,vn="R";break;case"WS":vn="N";break;case"CS":Qt<1||Qt+1>=kt.length||(tr=yt[Qt-1])!=="EN"&&tr!=="AN"||(ir=kt[Qt+1])!=="EN"&&ir!=="AN"?vn="N":kr&&(ir="AN"),vn=ir===tr?ir:"N";break;case"ES":vn=(tr=Qt>0?yt[Qt-1]:"B")==="EN"&&Qt+1<kt.length&&kt[Qt+1]==="EN"?"EN":"N";break;case"ET":if(Qt>0&&yt[Qt-1]==="EN"){vn="EN";break}if(kr){vn="N";break}for(yr=Qt+1,xn=kt.length;yr<xn&&kt[yr]==="ET";)yr++;vn=yr<xn&&kt[yr]==="EN"?"EN":"N";break;case"NSM":if(qe&&!xt){for(xn=kt.length,yr=Qt+1;yr<xn&&kt[yr]==="NSM";)yr++;if(yr<xn){var Wn=Lt[Qt],Yr=Wn>=1425&&Wn<=2303||Wn===64286;if(tr=kt[yr],Yr&&(tr==="R"||tr==="AL")){vn="R";break}}}vn=Qt<1||(tr=kt[Qt-1])==="B"?"N":yt[Qt-1];break;case"B":kr=!1,Ye=!0,vn=Gn;break;case"S":Ve=!0,vn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":kr=!1;break;case"BN":vn="N"}return vn},sn=function(Lt,kt,yt){var Qt=Lt.split("");return yt&&Sn(Qt,yt,{hiLevel:Gn}),Qt.reverse(),kt&&kt.reverse(),Qt.join("")},Sn=function(Lt,kt,yt){var Qt,tr,ir,yr,xn,vn=-1,Wn=Lt.length,Yr=0,xr=[],ln=Gn?qt:Xr,On=[];for(kr=!1,Ye=!1,Ve=!1,tr=0;tr<Wn;tr++)On[tr]=di(Lt[tr]);for(ir=0;ir<Wn;ir++){if(xn=Yr,xr[ir]=Br(Lt,On,xr,ir),Qt=240&(Yr=ln[xn][pn[xr[ir]]]),Yr&=15,kt[ir]=yr=ln[Yr][5],Qt>0)if(Qt===16){for(tr=vn;tr<ir;tr++)kt[tr]=1;vn=-1}else vn=-1;if(ln[Yr][6])vn===-1&&(vn=ir);else if(vn>-1){for(tr=vn;tr<ir;tr++)kt[tr]=yr;vn=-1}On[ir]==="B"&&(kt[ir]=0),yt.hiLevel|=yr}Ve&&function(In,Un,ti){for(var ui=0;ui<ti;ui++)if(In[ui]==="S"){Un[ui]=Gn;for(var si=ui-1;si>=0&&In[si]==="WS";si--)Un[si]=Gn}}(On,kt,Wn)},Pt=function(Lt,kt,yt,Qt,tr){if(!(tr.hiLevel<Lt)){if(Lt===1&&Gn===1&&!Ye)return kt.reverse(),void(yt&&yt.reverse());for(var ir,yr,xn,vn,Wn=kt.length,Yr=0;Yr<Wn;){if(Qt[Yr]>=Lt){for(xn=Yr+1;xn<Wn&&Qt[xn]>=Lt;)xn++;for(vn=Yr,yr=xn-1;vn<yr;vn++,yr--)ir=kt[vn],kt[vn]=kt[yr],kt[yr]=ir,yt&&(ir=yt[vn],yt[vn]=yt[yr],yt[yr]=ir);Yr=xn}Yr++}}},gt=function(Lt,kt,yt){var Qt=Lt.split(""),tr={hiLevel:Gn};return yt||(yt=[]),Sn(Qt,yt,tr),function(ir,yr,xn){if(xn.hiLevel!==0&&Rr)for(var vn,Wn=0;Wn<ir.length;Wn++)yr[Wn]===1&&(vn=mn.indexOf(ir[Wn]))>=0&&(ir[Wn]=mn[vn+1])}(Qt,yt,tr),Pt(2,Qt,kt,yt,tr),Pt(1,Qt,kt,yt,tr),Qt.join("")};return this.__bidiEngine__.doBidiReorder=function(Et,Lt,kt){if(function(Qt,tr){if(tr)for(var ir=0;ir<Qt.length;ir++)tr[ir]=ir;xt===void 0&&(xt=_i(Qt)),Jt===void 0&&(Jt=_i(Qt))}(Et,Lt),qe||!ct||Jt)if(qe&&ct&&xt^Jt)Gn=xt?1:0,Et=sn(Et,Lt,kt);else if(!qe&&ct&&Jt)Gn=xt?1:0,Et=gt(Et,Lt,kt),Et=sn(Et,Lt);else if(!qe||xt||ct||Jt){if(qe&&!ct&&xt^Jt)Et=sn(Et,Lt),xt?(Gn=0,Et=gt(Et,Lt,kt)):(Gn=1,Et=gt(Et,Lt,kt),Et=sn(Et,Lt));else if(qe&&xt&&!ct&&Jt)Gn=1,Et=gt(Et,Lt,kt),Et=sn(Et,Lt);else if(!qe&&!ct&&xt^Jt){var yt=Rr;xt?(Gn=1,Et=gt(Et,Lt,kt),Gn=0,Rr=!1,Et=gt(Et,Lt,kt),Rr=yt):(Gn=0,Et=gt(Et,Lt,kt),Et=sn(Et,Lt),Gn=1,Rr=!1,Et=gt(Et,Lt,kt),Rr=yt,Et=sn(Et,Lt))}}else Gn=0,Et=gt(Et,Lt,kt);else Gn=xt?1:0,Et=gt(Et,Lt,kt);return Et},this.__bidiEngine__.setOptions=function(Et){Et&&(qe=Et.isInputVisual,ct=Et.isOutputVisual,xt=Et.isInputRtl,Jt=Et.isOutputRtl,Rr=Et.isSymmetricSwapping)},this.__bidiEngine__.setOptions(je),this.__bidiEngine__};var Se=["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"],Re=new $e.__bidiEngine__({isInputVisual:!0});$e.API.events.push(["postProcessText",function(je){var Ye=je.text,Ve=(je.x,je.y,je.options||{}),qe=(je.mutex,Ve.lang,[]);if(Ve.isInputVisual=typeof Ve.isInputVisual!="boolean"||Ve.isInputVisual,Re.setOptions(Ve),Object.prototype.toString.call(Ye)==="[object Array]"){var xt=0;for(qe=[],xt=0;xt<Ye.length;xt+=1)Object.prototype.toString.call(Ye[xt])==="[object Array]"?qe.push([Re.doBidiReorder(Ye[xt][0]),Ye[xt][1],Ye[xt][2]]):qe.push([Re.doBidiReorder(Ye[xt])]);je.text=qe}else je.text=Re.doBidiReorder(Ye);Re.setOptions({isInputVisual:!0})}])}(j),j.API.TTFFont=function(){function $e(Se){var Re;if(this.rawData=Se,Re=this.contents=new Mt(Se),this.contents.pos=4,Re.readString(4)==="ttcf")throw new Error("TTCF not supported.");Re.pos=0,this.parse(),this.subset=new Ii(this),this.registerTTF()}return $e.open=function(Se){return new $e(Se)},$e.prototype.parse=function(){return this.directory=new at(this.contents),this.head=new Bt(this),this.name=new gr(this),this.cmap=new Kt(this),this.toUnicode={},this.hhea=new wt(this),this.maxp=new Jr(this),this.hmtx=new $r(this),this.post=new Sr(this),this.os2=new Ut(this),this.loca=new Ai(this),this.glyf=new Dn(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},$e.prototype.registerTTF=function(){var Se,Re,je,Ye,Ve;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var qe,xt,ct,Jt;for(Jt=[],qe=0,xt=(ct=this.bbox).length;qe<xt;qe++)Se=ct[qe],Jt.push(Math.round(Se*this.scaleFactor));return Jt}.call(this),this.stemV=0,this.post.exists?(je=255&(Ye=this.post.italic_angle),(32768&(Re=Ye>>16))!=0&&(Re=-(1+(65535^Re))),this.italicAngle=+(Re+"."+je)):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=(Ve=this.familyClass)===1||Ve===2||Ve===3||Ve===4||Ve===5||Ve===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")},$e.prototype.characterToGlyph=function(Se){var Re;return((Re=this.cmap.unicode)!=null?Re.codeMap[Se]:void 0)||0},$e.prototype.widthOfGlyph=function(Se){var Re;return Re=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Se).advance*Re},$e.prototype.widthOfString=function(Se,Re,je){var Ye,Ve,qe,xt;for(qe=0,Ve=0,xt=(Se=""+Se).length;0<=xt?Ve<xt:Ve>xt;Ve=0<=xt?++Ve:--Ve)Ye=Se.charCodeAt(Ve),qe+=this.widthOfGlyph(this.characterToGlyph(Ye))+je*(1e3/Re)||0;return qe*(Re/1e3)},$e.prototype.lineHeight=function(Se,Re){var je;return Re==null&&(Re=!1),je=Re?this.lineGap:0,(this.ascender+je-this.decender)/1e3*Se},$e}();var un,Mt=function(){function $e(Se){this.data=Se!=null?Se:[],this.pos=0,this.length=this.data.length}return $e.prototype.readByte=function(){return this.data[this.pos++]},$e.prototype.writeByte=function(Se){return this.data[this.pos++]=Se},$e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},$e.prototype.writeUInt32=function(Se){return this.writeByte(Se>>>24&255),this.writeByte(Se>>16&255),this.writeByte(Se>>8&255),this.writeByte(255&Se)},$e.prototype.readInt32=function(){var Se;return(Se=this.readUInt32())>=2147483648?Se-4294967296:Se},$e.prototype.writeInt32=function(Se){return Se<0&&(Se+=4294967296),this.writeUInt32(Se)},$e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},$e.prototype.writeUInt16=function(Se){return this.writeByte(Se>>8&255),this.writeByte(255&Se)},$e.prototype.readInt16=function(){var Se;return(Se=this.readUInt16())>=32768?Se-65536:Se},$e.prototype.writeInt16=function(Se){return Se<0&&(Se+=65536),this.writeUInt16(Se)},$e.prototype.readString=function(Se){var Re,je;for(je=[],Re=0;0<=Se?Re<Se:Re>Se;Re=0<=Se?++Re:--Re)je[Re]=String.fromCharCode(this.readByte());return je.join("")},$e.prototype.writeString=function(Se){var Re,je,Ye;for(Ye=[],Re=0,je=Se.length;0<=je?Re<je:Re>je;Re=0<=je?++Re:--Re)Ye.push(this.writeByte(Se.charCodeAt(Re)));return Ye},$e.prototype.readShort=function(){return this.readInt16()},$e.prototype.writeShort=function(Se){return this.writeInt16(Se)},$e.prototype.readLongLong=function(){var Se,Re,je,Ye,Ve,qe,xt,ct;return Se=this.readByte(),Re=this.readByte(),je=this.readByte(),Ye=this.readByte(),Ve=this.readByte(),qe=this.readByte(),xt=this.readByte(),ct=this.readByte(),128&Se?-1*(72057594037927940*(255^Se)+281474976710656*(255^Re)+1099511627776*(255^je)+4294967296*(255^Ye)+16777216*(255^Ve)+65536*(255^qe)+256*(255^xt)+(255^ct)+1):72057594037927940*Se+281474976710656*Re+1099511627776*je+4294967296*Ye+16777216*Ve+65536*qe+256*xt+ct},$e.prototype.writeLongLong=function(Se){var Re,je;return Re=Math.floor(Se/4294967296),je=4294967295&Se,this.writeByte(Re>>24&255),this.writeByte(Re>>16&255),this.writeByte(Re>>8&255),this.writeByte(255&Re),this.writeByte(je>>24&255),this.writeByte(je>>16&255),this.writeByte(je>>8&255),this.writeByte(255&je)},$e.prototype.readInt=function(){return this.readInt32()},$e.prototype.writeInt=function(Se){return this.writeInt32(Se)},$e.prototype.read=function(Se){var Re,je;for(Re=[],je=0;0<=Se?je<Se:je>Se;je=0<=Se?++je:--je)Re.push(this.readByte());return Re},$e.prototype.write=function(Se){var Re,je,Ye,Ve;for(Ve=[],je=0,Ye=Se.length;je<Ye;je++)Re=Se[je],Ve.push(this.writeByte(Re));return Ve},$e}(),at=function(){var $e;function Se(Re){var je,Ye,Ve;for(this.scalarType=Re.readInt(),this.tableCount=Re.readShort(),this.searchRange=Re.readShort(),this.entrySelector=Re.readShort(),this.rangeShift=Re.readShort(),this.tables={},Ye=0,Ve=this.tableCount;0<=Ve?Ye<Ve:Ye>Ve;Ye=0<=Ve?++Ye:--Ye)je={tag:Re.readString(4),checksum:Re.readInt(),offset:Re.readInt(),length:Re.readInt()},this.tables[je.tag]=je}return Se.prototype.encode=function(Re){var je,Ye,Ve,qe,xt,ct,Jt,Rr,Ir,Xr,qt,pn,fr;for(fr in qt=Object.keys(Re).length,ct=Math.log(2),Ir=16*Math.floor(Math.log(qt)/ct),qe=Math.floor(Ir/ct),Rr=16*qt-Ir,(Ye=new Mt).writeInt(this.scalarType),Ye.writeShort(qt),Ye.writeShort(Ir),Ye.writeShort(qe),Ye.writeShort(Rr),Ve=16*qt,Jt=Ye.pos+Ve,xt=null,pn=[],Re)for(Xr=Re[fr],Ye.writeString(fr),Ye.writeInt($e(Xr)),Ye.writeInt(Jt),Ye.writeInt(Xr.length),pn=pn.concat(Xr),fr==="head"&&(xt=Jt),Jt+=Xr.length;Jt%4;)pn.push(0),Jt++;return Ye.write(pn),je=2981146554-$e(Ye.data),Ye.pos=xt+8,Ye.writeUInt32(je),Ye.data},$e=function(je){var Ye,Ve,qe,xt;for(je=Pn.call(je);je.length%4;)je.push(0);for(qe=new Mt(je),Ve=0,Ye=0,xt=je.length;Ye<xt;Ye=Ye+=4)Ve+=qe.readUInt32();return 4294967295&Ve},Se}(),lt={}.hasOwnProperty,rr=function(Se,Re){for(var je in Re)lt.call(Re,je)&&(Se[je]=Re[je]);function Ye(){this.constructor=Se}return Ye.prototype=Re.prototype,Se.prototype=new Ye,Se.__super__=Re.prototype,Se};un=function(){function $e(Se){var Re;this.file=Se,Re=this.file.directory.tables[this.tag],this.exists=!!Re,Re&&(this.offset=Re.offset,this.length=Re.length,this.parse(this.file.contents))}return $e.prototype.parse=function(){},$e.prototype.encode=function(){},$e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},$e}();var Bt=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="head",Se.prototype.parse=function(Re){return Re.pos=this.offset,this.version=Re.readInt(),this.revision=Re.readInt(),this.checkSumAdjustment=Re.readInt(),this.magicNumber=Re.readInt(),this.flags=Re.readShort(),this.unitsPerEm=Re.readShort(),this.created=Re.readLongLong(),this.modified=Re.readLongLong(),this.xMin=Re.readShort(),this.yMin=Re.readShort(),this.xMax=Re.readShort(),this.yMax=Re.readShort(),this.macStyle=Re.readShort(),this.lowestRecPPEM=Re.readShort(),this.fontDirectionHint=Re.readShort(),this.indexToLocFormat=Re.readShort(),this.glyphDataFormat=Re.readShort()},Se.prototype.encode=function(Re){var je;return(je=new Mt).writeInt(this.version),je.writeInt(this.revision),je.writeInt(this.checkSumAdjustment),je.writeInt(this.magicNumber),je.writeShort(this.flags),je.writeShort(this.unitsPerEm),je.writeLongLong(this.created),je.writeLongLong(this.modified),je.writeShort(this.xMin),je.writeShort(this.yMin),je.writeShort(this.xMax),je.writeShort(this.yMax),je.writeShort(this.macStyle),je.writeShort(this.lowestRecPPEM),je.writeShort(this.fontDirectionHint),je.writeShort(Re),je.writeShort(this.glyphDataFormat),je.data},Se}(),_t=function(){function $e(Se,Re){var je,Ye,Ve,qe,xt,ct,Jt,Rr,Ir,Xr,qt,pn,fr,mn,en,kr,Gn;switch(this.platformID=Se.readUInt16(),this.encodingID=Se.readShort(),this.offset=Re+Se.readInt(),Ir=Se.pos,Se.pos=this.offset,this.format=Se.readUInt16(),this.length=Se.readUInt16(),this.language=Se.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(ct=0;ct<256;++ct)this.codeMap[ct]=Se.readByte();break;case 4:for(qt=Se.readUInt16(),Xr=qt/2,Se.pos+=6,Ve=function(){var di,_i;for(_i=[],ct=di=0;0<=Xr?di<Xr:di>Xr;ct=0<=Xr?++di:--di)_i.push(Se.readUInt16());return _i}(),Se.pos+=2,fr=function(){var di,_i;for(_i=[],ct=di=0;0<=Xr?di<Xr:di>Xr;ct=0<=Xr?++di:--di)_i.push(Se.readUInt16());return _i}(),Jt=function(){var di,_i;for(_i=[],ct=di=0;0<=Xr?di<Xr:di>Xr;ct=0<=Xr?++di:--di)_i.push(Se.readUInt16());return _i}(),Rr=function(){var di,_i;for(_i=[],ct=di=0;0<=Xr?di<Xr:di>Xr;ct=0<=Xr?++di:--di)_i.push(Se.readUInt16());return _i}(),Ye=(this.length-Se.pos+this.offset)/2,xt=function(){var di,_i;for(_i=[],ct=di=0;0<=Ye?di<Ye:di>Ye;ct=0<=Ye?++di:--di)_i.push(Se.readUInt16());return _i}(),ct=en=0,Gn=Ve.length;en<Gn;ct=++en)for(mn=Ve[ct],je=kr=pn=fr[ct];pn<=mn?kr<=mn:kr>=mn;je=pn<=mn?++kr:--kr)Rr[ct]===0?qe=je+Jt[ct]:(qe=xt[Rr[ct]/2+(je-pn)-(Xr-ct)]||0)!==0&&(qe+=Jt[ct]),this.codeMap[je]=65535&qe}Se.pos=Ir}return $e.encode=function(Se,Re){var je,Ye,Ve,qe,xt,ct,Jt,Rr,Ir,Xr,qt,pn,fr,mn,en,kr,Gn,di,_i,Br,sn,Sn,Pt,gt,Et,Lt,kt,yt,Qt,tr,ir,yr,xn,vn,Wn,Yr,xr,ln,On,In,Un,ti,ui,si,Pi,zi;switch(yt=new Mt,qe=Object.keys(Se).sort(function(Ri,Yi){return Ri-Yi}),Re){case"macroman":for(fr=0,mn=function(){var Ri=[];for(pn=0;pn<256;++pn)Ri.push(0);return Ri}(),kr={0:0},Ve={},Qt=0,xn=qe.length;Qt<xn;Qt++)kr[ui=Se[Ye=qe[Qt]]]==null&&(kr[ui]=++fr),Ve[Ye]={old:Se[Ye],new:kr[Se[Ye]]},mn[Ye]=kr[Se[Ye]];return yt.writeUInt16(1),yt.writeUInt16(0),yt.writeUInt32(12),yt.writeUInt16(0),yt.writeUInt16(262),yt.writeUInt16(0),yt.write(mn),{charMap:Ve,subtable:yt.data,maxGlyphID:fr+1};case"unicode":for(Lt=[],Ir=[],Gn=0,kr={},je={},en=Jt=null,tr=0,vn=qe.length;tr<vn;tr++)kr[_i=Se[Ye=qe[tr]]]==null&&(kr[_i]=++Gn),je[Ye]={old:_i,new:kr[_i]},xt=kr[_i]-Ye,en!=null&&xt===Jt||(en&&Ir.push(en),Lt.push(Ye),Jt=xt),en=Ye;for(en&&Ir.push(en),Ir.push(65535),Lt.push(65535),gt=2*(Pt=Lt.length),Sn=2*Math.pow(Math.log(Pt)/Math.LN2,2),Xr=Math.log(Sn/2)/Math.LN2,sn=2*Pt-Sn,ct=[],Br=[],qt=[],pn=ir=0,Wn=Lt.length;ir<Wn;pn=++ir){if(Et=Lt[pn],Rr=Ir[pn],Et===65535){ct.push(0),Br.push(0);break}if(Et-(kt=je[Et].new)>=32768)for(ct.push(0),Br.push(2*(qt.length+Pt-pn)),Ye=yr=Et;Et<=Rr?yr<=Rr:yr>=Rr;Ye=Et<=Rr?++yr:--yr)qt.push(je[Ye].new);else ct.push(kt-Et),Br.push(0)}for(yt.writeUInt16(3),yt.writeUInt16(1),yt.writeUInt32(12),yt.writeUInt16(4),yt.writeUInt16(16+8*Pt+2*qt.length),yt.writeUInt16(0),yt.writeUInt16(gt),yt.writeUInt16(Sn),yt.writeUInt16(Xr),yt.writeUInt16(sn),Un=0,Yr=Ir.length;Un<Yr;Un++)Ye=Ir[Un],yt.writeUInt16(Ye);for(yt.writeUInt16(0),ti=0,xr=Lt.length;ti<xr;ti++)Ye=Lt[ti],yt.writeUInt16(Ye);for(si=0,ln=ct.length;si<ln;si++)xt=ct[si],yt.writeUInt16(xt);for(Pi=0,On=Br.length;Pi<On;Pi++)di=Br[Pi],yt.writeUInt16(di);for(zi=0,In=qt.length;zi<In;zi++)fr=qt[zi],yt.writeUInt16(fr);return{charMap:je,subtable:yt.data,maxGlyphID:Gn+1}}},$e}(),Kt=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="cmap",Se.prototype.parse=function(Re){var je,Ye,Ve;for(Re.pos=this.offset,this.version=Re.readUInt16(),Ve=Re.readUInt16(),this.tables=[],this.unicode=null,Ye=0;0<=Ve?Ye<Ve:Ye>Ve;Ye=0<=Ve?++Ye:--Ye)je=new _t(Re,this.offset),this.tables.push(je),je.isUnicode&&this.unicode==null&&(this.unicode=je);return!0},Se.encode=function(Re,je){var Ye,Ve;return je==null&&(je="macroman"),Ye=_t.encode(Re,je),(Ve=new Mt).writeUInt16(0),Ve.writeUInt16(1),Ye.table=Ve.data.concat(Ye.subtable),Ye},Se}(),wt=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="hhea",Se.prototype.parse=function(Re){return Re.pos=this.offset,this.version=Re.readInt(),this.ascender=Re.readShort(),this.decender=Re.readShort(),this.lineGap=Re.readShort(),this.advanceWidthMax=Re.readShort(),this.minLeftSideBearing=Re.readShort(),this.minRightSideBearing=Re.readShort(),this.xMaxExtent=Re.readShort(),this.caretSlopeRise=Re.readShort(),this.caretSlopeRun=Re.readShort(),this.caretOffset=Re.readShort(),Re.pos+=8,this.metricDataFormat=Re.readShort(),this.numberOfMetrics=Re.readUInt16()},Se}(),Ut=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="OS/2",Se.prototype.parse=function(Re){if(Re.pos=this.offset,this.version=Re.readUInt16(),this.averageCharWidth=Re.readShort(),this.weightClass=Re.readUInt16(),this.widthClass=Re.readUInt16(),this.type=Re.readShort(),this.ySubscriptXSize=Re.readShort(),this.ySubscriptYSize=Re.readShort(),this.ySubscriptXOffset=Re.readShort(),this.ySubscriptYOffset=Re.readShort(),this.ySuperscriptXSize=Re.readShort(),this.ySuperscriptYSize=Re.readShort(),this.ySuperscriptXOffset=Re.readShort(),this.ySuperscriptYOffset=Re.readShort(),this.yStrikeoutSize=Re.readShort(),this.yStrikeoutPosition=Re.readShort(),this.familyClass=Re.readShort(),this.panose=function(){var je,Ye;for(Ye=[],je=0;je<10;++je)Ye.push(Re.readByte());return Ye}(),this.charRange=function(){var je,Ye;for(Ye=[],je=0;je<4;++je)Ye.push(Re.readInt());return Ye}(),this.vendorID=Re.readString(4),this.selection=Re.readShort(),this.firstCharIndex=Re.readShort(),this.lastCharIndex=Re.readShort(),this.version>0&&(this.ascent=Re.readShort(),this.descent=Re.readShort(),this.lineGap=Re.readShort(),this.winAscent=Re.readShort(),this.winDescent=Re.readShort(),this.codePageRange=function(){var je,Ye;for(Ye=[],je=0;je<2;je=++je)Ye.push(Re.readInt());return Ye}(),this.version>1))return this.xHeight=Re.readShort(),this.capHeight=Re.readShort(),this.defaultChar=Re.readShort(),this.breakChar=Re.readShort(),this.maxContext=Re.readShort()},Se}(),Sr=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="post",Se.prototype.parse=function(Re){var je,Ye,Ve;switch(Re.pos=this.offset,this.format=Re.readInt(),this.italicAngle=Re.readInt(),this.underlinePosition=Re.readShort(),this.underlineThickness=Re.readShort(),this.isFixedPitch=Re.readInt(),this.minMemType42=Re.readInt(),this.maxMemType42=Re.readInt(),this.minMemType1=Re.readInt(),this.maxMemType1=Re.readInt(),this.format){case 65536:break;case 131072:var qe;for(Ye=Re.readUInt16(),this.glyphNameIndex=[],qe=0;0<=Ye?qe<Ye:qe>Ye;qe=0<=Ye?++qe:--qe)this.glyphNameIndex.push(Re.readUInt16());for(this.names=[],Ve=[];Re.pos<this.offset+this.length;)je=Re.readByte(),Ve.push(this.names.push(Re.readString(je)));return Ve;case 151552:return Ye=Re.readUInt16(),this.offsets=Re.read(Ye);case 196608:break;case 262144:return this.map=function(){var xt,ct,Jt;for(Jt=[],qe=xt=0,ct=this.file.maxp.numGlyphs;0<=ct?xt<ct:xt>ct;qe=0<=ct?++xt:--xt)Jt.push(Re.readUInt32());return Jt}.call(this)}},Se}(),hr=function(Se,Re){this.raw=Se,this.length=Se.length,this.platformID=Re.platformID,this.encodingID=Re.encodingID,this.languageID=Re.languageID},gr=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="name",Se.prototype.parse=function(Re){var je,Ye,Ve,qe,xt,ct,Jt,Rr,Ir,Xr,qt;for(Re.pos=this.offset,Re.readShort(),je=Re.readShort(),ct=Re.readShort(),Ye=[],qe=0;0<=je?qe<je:qe>je;qe=0<=je?++qe:--qe)Ye.push({platformID:Re.readShort(),encodingID:Re.readShort(),languageID:Re.readShort(),nameID:Re.readShort(),length:Re.readShort(),offset:this.offset+ct+Re.readShort()});for(Jt={},qe=Ir=0,Xr=Ye.length;Ir<Xr;qe=++Ir)Ve=Ye[qe],Re.pos=Ve.offset,Rr=Re.readString(Ve.length),xt=new hr(Rr,Ve),Jt[qt=Ve.nameID]==null&&(Jt[qt]=[]),Jt[Ve.nameID].push(xt);this.strings=Jt,this.copyright=Jt[0],this.fontFamily=Jt[1],this.fontSubfamily=Jt[2],this.uniqueSubfamily=Jt[3],this.fontName=Jt[4],this.version=Jt[5];try{this.postscriptName=Jt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(pn){this.postscriptName=Jt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Jt[7],this.manufacturer=Jt[8],this.designer=Jt[9],this.description=Jt[10],this.vendorUrl=Jt[11],this.designerUrl=Jt[12],this.license=Jt[13],this.licenseUrl=Jt[14],this.preferredFamily=Jt[15],this.preferredSubfamily=Jt[17],this.compatibleFull=Jt[18],this.sampleText=Jt[19]},Se}(),Jr=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="maxp",Se.prototype.parse=function(Re){return Re.pos=this.offset,this.version=Re.readInt(),this.numGlyphs=Re.readUInt16(),this.maxPoints=Re.readUInt16(),this.maxContours=Re.readUInt16(),this.maxCompositePoints=Re.readUInt16(),this.maxComponentContours=Re.readUInt16(),this.maxZones=Re.readUInt16(),this.maxTwilightPoints=Re.readUInt16(),this.maxStorage=Re.readUInt16(),this.maxFunctionDefs=Re.readUInt16(),this.maxInstructionDefs=Re.readUInt16(),this.maxStackElements=Re.readUInt16(),this.maxSizeOfInstructions=Re.readUInt16(),this.maxComponentElements=Re.readUInt16(),this.maxComponentDepth=Re.readUInt16()},Se}(),$r=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="hmtx",Se.prototype.parse=function(Re){var je,Ye,Ve,qe,xt,ct,Jt;for(Re.pos=this.offset,this.metrics=[],je=0,ct=this.file.hhea.numberOfMetrics;0<=ct?je<ct:je>ct;je=0<=ct?++je:--je)this.metrics.push({advance:Re.readUInt16(),lsb:Re.readInt16()});for(Ve=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Rr,Ir;for(Ir=[],je=Rr=0;0<=Ve?Rr<Ve:Rr>Ve;je=0<=Ve?++Rr:--Rr)Ir.push(Re.readInt16());return Ir}(),this.widths=function(){var Rr,Ir,Xr,qt;for(qt=[],Rr=0,Ir=(Xr=this.metrics).length;Rr<Ir;Rr++)qe=Xr[Rr],qt.push(qe.advance);return qt}.call(this),Ye=this.widths[this.widths.length-1],Jt=[],je=xt=0;0<=Ve?xt<Ve:xt>Ve;je=0<=Ve?++xt:--xt)Jt.push(this.widths.push(Ye));return Jt},Se.prototype.forGlyph=function(Re){return Re in this.metrics?this.metrics[Re]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Re-this.metrics.length]}},Se}(),Pn=[].slice,Dn=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="glyf",Se.prototype.parse=function(){return this.cache={}},Se.prototype.glyphFor=function(Re){var je,Ye,Ve,qe,xt,ct,Jt,Rr,Ir,Xr;return Re in this.cache?this.cache[Re]:(qe=this.file.loca,je=this.file.contents,Ye=qe.indexOf(Re),(Ve=qe.lengthOf(Re))===0?this.cache[Re]=null:(je.pos=this.offset+Ye,xt=(ct=new Mt(je.read(Ve))).readShort(),Rr=ct.readShort(),Xr=ct.readShort(),Jt=ct.readShort(),Ir=ct.readShort(),this.cache[Re]=xt===-1?new li(ct,Rr,Xr,Jt,Ir):new Zn(ct,xt,Rr,Xr,Jt,Ir),this.cache[Re]))},Se.prototype.encode=function(Re,je,Ye){var Ve,qe,xt,ct,Jt;for(xt=[],qe=[],ct=0,Jt=je.length;ct<Jt;ct++)Ve=Re[je[ct]],qe.push(xt.length),Ve&&(xt=xt.concat(Ve.encode(Ye)));return qe.push(xt.length),{table:xt,offsets:qe}},Se}(),Zn=function(){function $e(Se,Re,je,Ye,Ve,qe){this.raw=Se,this.numberOfContours=Re,this.xMin=je,this.yMin=Ye,this.xMax=Ve,this.yMax=qe,this.compound=!1}return $e.prototype.encode=function(){return this.raw.data},$e}(),li=function(){function $e(Se,Re,je,Ye,Ve){var qe,xt;for(this.raw=Se,this.xMin=Re,this.yMin=je,this.xMax=Ye,this.yMax=Ve,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],qe=this.raw;xt=qe.readShort(),this.glyphOffsets.push(qe.pos),this.glyphIDs.push(qe.readUInt16()),32&xt;)qe.pos+=1&xt?4:2,128&xt?qe.pos+=8:64&xt?qe.pos+=4:8&xt&&(qe.pos+=2)}return $e.prototype.encode=function(){var Se,Re,je;for(Re=new Mt(Pn.call(this.raw.data)),Se=0,je=this.glyphIDs.length;Se<je;++Se)Re.pos=this.glyphOffsets[Se];return Re.data},$e}(),Ai=function($e){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="loca",Se.prototype.parse=function(Re){var je,Ye;return Re.pos=this.offset,je=this.file.head.indexToLocFormat,this.offsets=je===0?function(){var Ve,qe;for(qe=[],Ye=0,Ve=this.length;Ye<Ve;Ye+=2)qe.push(2*Re.readUInt16());return qe}.call(this):function(){var Ve,qe;for(qe=[],Ye=0,Ve=this.length;Ye<Ve;Ye+=4)qe.push(Re.readUInt32());return qe}.call(this)},Se.prototype.indexOf=function(Re){return this.offsets[Re]},Se.prototype.lengthOf=function(Re){return this.offsets[Re+1]-this.offsets[Re]},Se.prototype.encode=function(Re,je){for(var Ye=new Uint32Array(this.offsets.length),Ve=0,qe=0,xt=0;xt<Ye.length;++xt)if(Ye[xt]=Ve,qe<je.length&&je[qe]==xt){++qe,Ye[xt]=Ve;var ct=this.offsets[xt],Jt=this.offsets[xt+1]-ct;Jt>0&&(Ve+=Jt)}for(var Rr=new Array(4*Ye.length),Ir=0;Ir<Ye.length;++Ir)Rr[4*Ir+3]=255&Ye[Ir],Rr[4*Ir+2]=(65280&Ye[Ir])>>8,Rr[4*Ir+1]=(16711680&Ye[Ir])>>16,Rr[4*Ir]=(4278190080&Ye[Ir])>>24;return Rr},Se}(),Ii=function(){function $e(Se){this.font=Se,this.subset={},this.unicodes={},this.next=33}return $e.prototype.generateCmap=function(){var Se,Re,je,Ye,Ve;for(Re in Ye=this.font.cmap.tables[0].codeMap,Se={},Ve=this.subset)je=Ve[Re],Se[Re]=Ye[je];return Se},$e.prototype.glyphsFor=function(Se){var Re,je,Ye,Ve,qe,xt,ct;for(Ye={},qe=0,xt=Se.length;qe<xt;qe++)Ye[Ve=Se[qe]]=this.font.glyf.glyphFor(Ve);for(Ve in Re=[],Ye)((je=Ye[Ve])!=null?je.compound:void 0)&&Re.push.apply(Re,je.glyphIDs);if(Re.length>0)for(Ve in ct=this.glyphsFor(Re))je=ct[Ve],Ye[Ve]=je;return Ye},$e.prototype.encode=function(Se,Re){var je,Ye,Ve,qe,xt,ct,Jt,Rr,Ir,Xr,qt,pn,fr,mn,en;for(Ye in je=Kt.encode(this.generateCmap(),"unicode"),qe=this.glyphsFor(Se),qt={0:0},en=je.charMap)qt[(ct=en[Ye]).old]=ct.new;for(pn in Xr=je.maxGlyphID,qe)pn in qt||(qt[pn]=Xr++);return Rr=function(kr){var Gn,di;for(Gn in di={},kr)di[kr[Gn]]=Gn;return di}(qt),Ir=Object.keys(Rr).sort(function(kr,Gn){return kr-Gn}),fr=function(){var kr,Gn,di;for(di=[],kr=0,Gn=Ir.length;kr<Gn;kr++)xt=Ir[kr],di.push(Rr[xt]);return di}(),Ve=this.font.glyf.encode(qe,fr,qt),Jt=this.font.loca.encode(Ve.offsets,fr),mn={cmap:this.font.cmap.raw(),glyf:Ve.table,loca:Jt,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(Re)},this.font.os2.exists&&(mn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(mn)},$e}();j.API.PDFObject=function(){var $e;function Se(){}return $e=function(je,Ye){return(Array(Ye+1).join("0")+je).slice(-Ye)},Se.convert=function(Re){var je,Ye,Ve,qe;if(Array.isArray(Re))return"["+function(){var xt,ct,Jt;for(Jt=[],xt=0,ct=Re.length;xt<ct;xt++)je=Re[xt],Jt.push(Se.convert(je));return Jt}().join(" ")+"]";if(typeof Re=="string")return"/"+Re;if(Re!=null?Re.isString:void 0)return"("+Re+")";if(Re instanceof Date)return"(D:"+$e(Re.getUTCFullYear(),4)+$e(Re.getUTCMonth(),2)+$e(Re.getUTCDate(),2)+$e(Re.getUTCHours(),2)+$e(Re.getUTCMinutes(),2)+$e(Re.getUTCSeconds(),2)+"Z)";if({}.toString.call(Re)==="[object Object]"){for(Ye in Ve=["<<"],Re)qe=Re[Ye],Ve.push("/"+Ye+" "+Se.convert(qe));return Ve.push(">>"),Ve.join(`
|
|
|
`)}return""+Re},Se}(),B.default=j}.call(this,d("yLpj"))},e5VY:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("YNAk"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},e7zE:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.Base,w=C.WordArray,m=E.algo,f=m.SHA1,c=m.HMAC,o=m.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,s=c.create(e.hasher,i),t=w.create(),a=w.create([1]),l=t.words,u=a.words,h=e.keySize,p=e.iterations;l.length<h;){var g=s.update(n).finalize(a);s.reset();for(var v=g.words,y=v.length,x=g,T=1;T<p;T++){x=s.finalize(x),s.reset();for(var S=x.words,b=0;b<y;b++)v[b]^=S[b]}t.concat(g),u[0]++}return t.sigBytes=h*4,t}});E.PBKDF2=function(r,i,n){return o.create(n).compute(r,i)}}(),O.PBKDF2})},eIcI:function(H,B,d){var O=d("bYtY"),E=d("hM6l");function C(w,m,f){E.call(this,w,m,f),this.type="value",this.angle=0,this.name="",this.model}O.inherits(C,E);var A=C;H.exports=A},eJH7:function(H,B,d){var O=d("bYtY");function E(C){var A=C.polar;if(A){O.isArray(A)||(A=[A]);var w=[];O.each(A,function(m,f){m.indicator?(m.type&&!m.shape&&(m.shape=m.type),C.radar=C.radar||[],O.isArray(C.radar)||(C.radar=[C.radar]),C.radar.push(m)):w.push(m)}),C.polar=w}O.each(C.series,function(m){m&&m.type==="radar"&&m.polarIndex&&(m.radarIndex=m.polarIndex)})}H.exports=E},eP3c:function(H,B,d){"use strict";function O(Be){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(Be)}Object.defineProperty(B,"__esModule",{value:!0}),B.inflateReset=le,B.inflateReset2=fe,B.inflateResetKeep=Ee,B.inflateInit=Qe,B.inflateInit2=xe,B.inflate=nt,B.inflateEnd=Ot,B.inflateGetHeader=Ct,B.inflateSetDictionary=Tt,B.inflateInfo=B.Z_DEFLATED=B.Z_BUF_ERROR=B.Z_MEM_ERROR=B.Z_DATA_ERROR=B.Z_STREAM_ERROR=B.Z_NEED_DICT=B.Z_STREAM_END=B.Z_OK=B.Z_TREES=B.Z_BLOCK=B.Z_FINISH=void 0;var E=o(d("6BzB")),C=f(d("xlC8")),A=f(d("QV2g")),w=f(d("sjKO")),m=f(d("JSwD"));function f(Be){return Be&&Be.__esModule?Be:{default:Be}}function c(){if(typeof WeakMap!="function")return null;var Be=new WeakMap;return c=function(){return Be},Be}function o(Be){if(Be&&Be.__esModule)return Be;if(Be===null||O(Be)!=="object"&&typeof Be!="function")return{default:Be};var ie=c();if(ie&&ie.has(Be))return ie.get(Be);var X={},Fe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ne in Be)if(Object.prototype.hasOwnProperty.call(Be,Ne)){var q=Fe?Object.getOwnPropertyDescriptor(Be,Ne):null;q&&(q.get||q.set)?Object.defineProperty(X,Ne,q):X[Ne]=Be[Ne]}return X.default=Be,ie&&ie.set(Be,X),X}var r=0,i=1,n=2,e=4;B.Z_FINISH=e;var s=5;B.Z_BLOCK=s;var t=6;B.Z_TREES=t;var a=0;B.Z_OK=a;var l=1;B.Z_STREAM_END=l;var u=2;B.Z_NEED_DICT=u;var h=-2;B.Z_STREAM_ERROR=h;var p=-3;B.Z_DATA_ERROR=p;var g=-4;B.Z_MEM_ERROR=g;var v=-5;B.Z_BUF_ERROR=v;var y=8;B.Z_DEFLATED=y;var x=1,T=2,S=3,b=4,_=5,I=6,L=7,N=8,D=9,R=10,P=11,M=12,U=13,F=14,j=15,W=16,V=17,z=18,Y=19,$=20,ue=21,ne=22,ge=23,Oe=24,De=25,He=26,pe=27,Ue=28,oe=29,ee=30,Xe=31,se=32,Q=852,G=592,J=15,ve=J;function de(Be){return(Be>>>24&255)+(Be>>>8&65280)+((Be&65280)<<8)+((Be&255)<<24)}function Ce(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new E.Buf16(320),this.work=new E.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ee(Be){var ie;return!Be||!Be.state?h:(ie=Be.state,Be.total_in=Be.total_out=ie.total=0,Be.msg="",ie.wrap&&(Be.adler=ie.wrap&1),ie.mode=x,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new E.Buf32(Q),ie.distcode=ie.distdyn=new E.Buf32(G),ie.sane=1,ie.back=-1,a)}function le(Be){var ie;return!Be||!Be.state?h:(ie=Be.state,ie.wsize=0,ie.whave=0,ie.wnext=0,Ee(Be))}function fe(Be,ie){var X,Fe;return!Be||!Be.state?h:(Fe=Be.state,ie<0?(X=0,ie=-ie):(X=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15)?h:(Fe.window!==null&&Fe.wbits!==ie&&(Fe.window=null),Fe.wrap=X,Fe.wbits=ie,le(Be)))}function xe(Be,ie){var X,Fe;return Be?(Fe=new Ce,Be.state=Fe,Fe.window=null,X=fe(Be,ie),X!==a&&(Be.state=null),X):h}function Qe(Be){return xe(Be,ve)}var ot=!0,Je,Te;function et(Be){if(ot){var ie;for(Je=new E.Buf32(512),Te=new E.Buf32(32),ie=0;ie<144;)Be.lens[ie++]=8;for(;ie<256;)Be.lens[ie++]=9;for(;ie<280;)Be.lens[ie++]=7;for(;ie<288;)Be.lens[ie++]=8;for((0,m.default)(i,Be.lens,0,288,Je,0,Be.work,{bits:9}),ie=0;ie<32;)Be.lens[ie++]=5;(0,m.default)(n,Be.lens,0,32,Te,0,Be.work,{bits:5}),ot=!1}Be.lencode=Je,Be.lenbits=9,Be.distcode=Te,Be.distbits=5}function ze(Be,ie,X,Fe){var Ne,q=Be.state;return q.window===null&&(q.wsize=1<<q.wbits,q.wnext=0,q.whave=0,q.window=new E.Buf8(q.wsize)),Fe>=q.wsize?(E.arraySet(q.window,ie,X-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(Ne=q.wsize-q.wnext,Ne>Fe&&(Ne=Fe),E.arraySet(q.window,ie,X-Fe,Ne,q.wnext),Fe-=Ne,Fe?(E.arraySet(q.window,ie,X-Fe,Fe,0),q.wnext=Fe,q.whave=q.wsize):(q.wnext+=Ne,q.wnext===q.wsize&&(q.wnext=0),q.whave<q.wsize&&(q.whave+=Ne))),0}function nt(Be,ie){var X,Fe,Ne,q,ht,Rt,ut,Xt,or,Zr,ar,dr,er,Ht,dt=0,Hr,dn,Nn,Vn,gi,bn,Mn,jt,St=new E.Buf8(4),Ie,_e,Le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Be||!Be.state||!Be.output||!Be.input&&Be.avail_in!==0)return h;X=Be.state,X.mode===M&&(X.mode=U),ht=Be.next_out,Ne=Be.output,ut=Be.avail_out,q=Be.next_in,Fe=Be.input,Rt=Be.avail_in,Xt=X.hold,or=X.bits,Zr=Rt,ar=ut,jt=a;e:for(;;)switch(X.mode){case x:if(X.wrap===0){X.mode=U;break}for(;or<16;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if(X.wrap&2&&Xt===35615){X.check=0,St[0]=Xt&255,St[1]=Xt>>>8&255,X.check=(0,A.default)(X.check,St,2,0),Xt=0,or=0,X.mode=T;break}if(X.flags=0,X.head&&(X.head.done=!1),!(X.wrap&1)||(((Xt&255)<<8)+(Xt>>8))%31){Be.msg="incorrect header check",X.mode=ee;break}if((Xt&15)!==y){Be.msg="unknown compression method",X.mode=ee;break}if(Xt>>>=4,or-=4,Mn=(Xt&15)+8,X.wbits===0)X.wbits=Mn;else if(Mn>X.wbits){Be.msg="invalid window size",X.mode=ee;break}X.dmax=1<<Mn,Be.adler=X.check=1,X.mode=Xt&512?R:M,Xt=0,or=0;break;case T:for(;or<16;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if(X.flags=Xt,(X.flags&255)!==y){Be.msg="unknown compression method",X.mode=ee;break}if(X.flags&57344){Be.msg="unknown header flags set",X.mode=ee;break}X.head&&(X.head.text=Xt>>8&1),X.flags&512&&(St[0]=Xt&255,St[1]=Xt>>>8&255,X.check=(0,A.default)(X.check,St,2,0)),Xt=0,or=0,X.mode=S;case S:for(;or<32;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}X.head&&(X.head.time=Xt),X.flags&512&&(St[0]=Xt&255,St[1]=Xt>>>8&255,St[2]=Xt>>>16&255,St[3]=Xt>>>24&255,X.check=(0,A.default)(X.check,St,4,0)),Xt=0,or=0,X.mode=b;case b:for(;or<16;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}X.head&&(X.head.xflags=Xt&255,X.head.os=Xt>>8),X.flags&512&&(St[0]=Xt&255,St[1]=Xt>>>8&255,X.check=(0,A.default)(X.check,St,2,0)),Xt=0,or=0,X.mode=_;case _:if(X.flags&1024){for(;or<16;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}X.length=Xt,X.head&&(X.head.extra_len=Xt),X.flags&512&&(St[0]=Xt&255,St[1]=Xt>>>8&255,X.check=(0,A.default)(X.check,St,2,0)),Xt=0,or=0}else X.head&&(X.head.extra=null);X.mode=I;case I:if(X.flags&1024&&(dr=X.length,dr>Rt&&(dr=Rt),dr&&(X.head&&(Mn=X.head.extra_len-X.length,X.head.extra||(X.head.extra=new Array(X.head.extra_len)),E.arraySet(X.head.extra,Fe,q,dr,Mn)),X.flags&512&&(X.check=(0,A.default)(X.check,Fe,dr,q)),Rt-=dr,q+=dr,X.length-=dr),X.length))break e;X.length=0,X.mode=L;case L:if(X.flags&2048){if(Rt===0)break e;dr=0;do Mn=Fe[q+dr++],X.head&&Mn&&X.length<65536&&(X.head.name+=String.fromCharCode(Mn));while(Mn&&dr<Rt);if(X.flags&512&&(X.check=(0,A.default)(X.check,Fe,dr,q)),Rt-=dr,q+=dr,Mn)break e}else X.head&&(X.head.name=null);X.length=0,X.mode=N;case N:if(X.flags&4096){if(Rt===0)break e;dr=0;do Mn=Fe[q+dr++],X.head&&Mn&&X.length<65536&&(X.head.comment+=String.fromCharCode(Mn));while(Mn&&dr<Rt);if(X.flags&512&&(X.check=(0,A.default)(X.check,Fe,dr,q)),Rt-=dr,q+=dr,Mn)break e}else X.head&&(X.head.comment=null);X.mode=D;case D:if(X.flags&512){for(;or<16;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if(Xt!==(X.check&65535)){Be.msg="header crc mismatch",X.mode=ee;break}Xt=0,or=0}X.head&&(X.head.hcrc=X.flags>>9&1,X.head.done=!0),Be.adler=X.check=0,X.mode=M;break;case R:for(;or<32;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}Be.adler=X.check=de(Xt),Xt=0,or=0,X.mode=P;case P:if(X.havedict===0)return Be.next_out=ht,Be.avail_out=ut,Be.next_in=q,Be.avail_in=Rt,X.hold=Xt,X.bits=or,u;Be.adler=X.check=1,X.mode=M;case M:if(ie===s||ie===t)break e;case U:if(X.last){Xt>>>=or&7,or-=or&7,X.mode=pe;break}for(;or<3;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}X.last=Xt&1,Xt>>>=1,or-=1;switch(Xt&3){case 0:X.mode=F;break;case 1:if(et(X),X.mode=$,ie===t){Xt>>>=2,or-=2;break e}break;case 2:X.mode=V;break;case 3:Be.msg="invalid block type",X.mode=ee}Xt>>>=2,or-=2;break;case F:for(Xt>>>=or&7,or-=or&7;or<32;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if((Xt&65535)!==(Xt>>>16^65535)){Be.msg="invalid stored block lengths",X.mode=ee;break}if(X.length=Xt&65535,Xt=0,or=0,X.mode=j,ie===t)break e;case j:X.mode=W;case W:if(dr=X.length,dr){if(dr>Rt&&(dr=Rt),dr>ut&&(dr=ut),dr===0)break e;E.arraySet(Ne,Fe,q,dr,ht),Rt-=dr,q+=dr,ut-=dr,ht+=dr,X.length-=dr;break}X.mode=M;break;case V:for(;or<14;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if(X.nlen=(Xt&31)+257,Xt>>>=5,or-=5,X.ndist=(Xt&31)+1,Xt>>>=5,or-=5,X.ncode=(Xt&15)+4,Xt>>>=4,or-=4,X.nlen>286||X.ndist>30){Be.msg="too many length or distance symbols",X.mode=ee;break}X.have=0,X.mode=z;case z:for(;X.have<X.ncode;){for(;or<3;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}X.lens[Le[X.have++]]=Xt&7,Xt>>>=3,or-=3}for(;X.have<19;)X.lens[Le[X.have++]]=0;if(X.lencode=X.lendyn,X.lenbits=7,Ie={bits:X.lenbits},jt=(0,m.default)(r,X.lens,0,19,X.lencode,0,X.work,Ie),X.lenbits=Ie.bits,jt){Be.msg="invalid code lengths set",X.mode=ee;break}X.have=0,X.mode=Y;case Y:for(;X.have<X.nlen+X.ndist;){for(;!(dt=X.lencode[Xt&(1<<X.lenbits)-1],Hr=dt>>>24,dn=dt>>>16&255,Nn=dt&65535,Hr<=or);){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if(Nn<16)Xt>>>=Hr,or-=Hr,X.lens[X.have++]=Nn;else{if(Nn===16){for(_e=Hr+2;or<_e;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if(Xt>>>=Hr,or-=Hr,X.have===0){Be.msg="invalid bit length repeat",X.mode=ee;break}Mn=X.lens[X.have-1],dr=3+(Xt&3),Xt>>>=2,or-=2}else if(Nn===17){for(_e=Hr+3;or<_e;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}Xt>>>=Hr,or-=Hr,Mn=0,dr=3+(Xt&7),Xt>>>=3,or-=3}else{for(_e=Hr+7;or<_e;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}Xt>>>=Hr,or-=Hr,Mn=0,dr=11+(Xt&127),Xt>>>=7,or-=7}if(X.have+dr>X.nlen+X.ndist){Be.msg="invalid bit length repeat",X.mode=ee;break}for(;dr--;)X.lens[X.have++]=Mn}}if(X.mode===ee)break;if(X.lens[256]===0){Be.msg="invalid code -- missing end-of-block",X.mode=ee;break}if(X.lenbits=9,Ie={bits:X.lenbits},jt=(0,m.default)(i,X.lens,0,X.nlen,X.lencode,0,X.work,Ie),X.lenbits=Ie.bits,jt){Be.msg="invalid literal/lengths set",X.mode=ee;break}if(X.distbits=6,X.distcode=X.distdyn,Ie={bits:X.distbits},jt=(0,m.default)(n,X.lens,X.nlen,X.ndist,X.distcode,0,X.work,Ie),X.distbits=Ie.bits,jt){Be.msg="invalid distances set",X.mode=ee;break}if(X.mode=$,ie===t)break e;case $:X.mode=ue;case ue:if(Rt>=6&&ut>=258){Be.next_out=ht,Be.avail_out=ut,Be.next_in=q,Be.avail_in=Rt,X.hold=Xt,X.bits=or,(0,w.default)(Be,ar),ht=Be.next_out,Ne=Be.output,ut=Be.avail_out,q=Be.next_in,Fe=Be.input,Rt=Be.avail_in,Xt=X.hold,or=X.bits,X.mode===M&&(X.back=-1);break}for(X.back=0;!(dt=X.lencode[Xt&(1<<X.lenbits)-1],Hr=dt>>>24,dn=dt>>>16&255,Nn=dt&65535,Hr<=or);){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if(dn&&(dn&240)===0){for(Vn=Hr,gi=dn,bn=Nn;!(dt=X.lencode[bn+((Xt&(1<<Vn+gi)-1)>>Vn)],Hr=dt>>>24,dn=dt>>>16&255,Nn=dt&65535,Vn+Hr<=or);){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}Xt>>>=Vn,or-=Vn,X.back+=Vn}if(Xt>>>=Hr,or-=Hr,X.back+=Hr,X.length=Nn,dn===0){X.mode=He;break}if(dn&32){X.back=-1,X.mode=M;break}if(dn&64){Be.msg="invalid literal/length code",X.mode=ee;break}X.extra=dn&15,X.mode=ne;case ne:if(X.extra){for(_e=X.extra;or<_e;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}X.length+=Xt&(1<<X.extra)-1,Xt>>>=X.extra,or-=X.extra,X.back+=X.extra}X.was=X.length,X.mode=ge;case ge:for(;!(dt=X.distcode[Xt&(1<<X.distbits)-1],Hr=dt>>>24,dn=dt>>>16&255,Nn=dt&65535,Hr<=or);){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if((dn&240)===0){for(Vn=Hr,gi=dn,bn=Nn;!(dt=X.distcode[bn+((Xt&(1<<Vn+gi)-1)>>Vn)],Hr=dt>>>24,dn=dt>>>16&255,Nn=dt&65535,Vn+Hr<=or);){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}Xt>>>=Vn,or-=Vn,X.back+=Vn}if(Xt>>>=Hr,or-=Hr,X.back+=Hr,dn&64){Be.msg="invalid distance code",X.mode=ee;break}X.offset=Nn,X.extra=dn&15,X.mode=Oe;case Oe:if(X.extra){for(_e=X.extra;or<_e;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}X.offset+=Xt&(1<<X.extra)-1,Xt>>>=X.extra,or-=X.extra,X.back+=X.extra}if(X.offset>X.dmax){Be.msg="invalid distance too far back",X.mode=ee;break}X.mode=De;case De:if(ut===0)break e;if(dr=ar-ut,X.offset>dr){if(dr=X.offset-dr,dr>X.whave&&X.sane){Be.msg="invalid distance too far back",X.mode=ee;break}dr>X.wnext?(dr-=X.wnext,er=X.wsize-dr):er=X.wnext-dr,dr>X.length&&(dr=X.length),Ht=X.window}else Ht=Ne,er=ht-X.offset,dr=X.length;dr>ut&&(dr=ut),ut-=dr,X.length-=dr;do Ne[ht++]=Ht[er++];while(--dr);X.length===0&&(X.mode=ue);break;case He:if(ut===0)break e;Ne[ht++]=X.length,ut--,X.mode=ue;break;case pe:if(X.wrap){for(;or<32;){if(Rt===0)break e;Rt--,Xt|=Fe[q++]<<or,or+=8}if(ar-=ut,Be.total_out+=ar,X.total+=ar,ar&&(Be.adler=X.check=X.flags?(0,A.default)(X.check,Ne,ar,ht-ar):(0,C.default)(X.check,Ne,ar,ht-ar)),ar=ut,(X.flags?Xt:de(Xt))!==X.check){Be.msg="incorrect data check",X.mode=ee;break}Xt=0,or=0}X.mode=Ue;case Ue:if(X.wrap&&X.flags){for(;or<32;){if(Rt===0)break e;Rt--,Xt+=Fe[q++]<<or,or+=8}if(Xt!==(X.total&4294967295)){Be.msg="incorrect length check",X.mode=ee;break}Xt=0,or=0}X.mode=oe;case oe:jt=l;break e;case ee:jt=p;break e;case Xe:return g;case se:default:return h}return Be.next_out=ht,Be.avail_out=ut,Be.next_in=q,Be.avail_in=Rt,X.hold=Xt,X.bits=or,(X.wsize||ar!==Be.avail_out&&X.mode<ee&&(X.mode<pe||ie!==e))&&ze(Be,Be.output,Be.next_out,ar-Be.avail_out)?(X.mode=Xe,g):(Zr-=Be.avail_in,ar-=Be.avail_out,Be.total_in+=Zr,Be.total_out+=ar,X.total+=ar,X.wrap&&ar&&(Be.adler=X.check=X.flags?(0,A.default)(X.check,Ne,ar,Be.next_out-ar):(0,C.default)(X.check,Ne,ar,Be.next_out-ar)),Be.data_type=X.bits+(X.last?64:0)+(X.mode===M?128:0)+(X.mode===$||X.mode===j?256:0),(Zr===0&&ar===0||ie===e)&&jt===a&&(jt=v),jt)}function Ot(Be){if(!Be||!Be.state)return h;var ie=Be.state;return ie.window&&(ie.window=null),Be.state=null,a}function Ct(Be,ie){var X;return!Be||!Be.state?h:(X=Be.state,(X.wrap&2)===0?h:(X.head=ie,ie.done=!1,a))}function Tt(Be,ie){var X=ie.length,Fe,Ne,q;return!Be||!Be.state?h:(Fe=Be.state,Fe.wrap!==0&&Fe.mode!==P?h:Fe.mode===P&&(Ne=1,Ne=(0,C.default)(Ne,ie,X,0),Ne!==Fe.check)?p:(q=ze(Be,ie,X,X),q?(Fe.mode=Xe,g):(Fe.havedict=1,a)))}var Dt="pako inflate (from Nodeca project)";B.inflateInfo=Dt},ePAk:function(H,B,d){var O=d("ProS");d("2fGM");var E=O.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(C){var A,w=this.ecModel;return w.eachComponent(C,function(m){m.getCoordSysModel()===this&&(A=m)},this),A},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});H.exports=E},eRkO:function(H,B,d){var O=d("+TT/"),E=O.getLayoutRect,C=O.box,A=O.positionElement,w=d("7aKB"),m=d("IwbS");function f(o,r,i){var n=r.getBoxLayoutParams(),e=r.get("padding"),s={width:i.getWidth(),height:i.getHeight()},t=E(n,s,e);C(r.get("orient"),o,r.get("itemGap"),t.width,t.height),A(o,n,s,e)}function c(o,r){var i=w.normalizeCssArray(r.get("padding")),n=r.getItemStyle(["color","opacity"]);n.fill=r.get("backgroundColor");var o=new m.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}B.layout=f,B.makeBackground=c},eS4l:function(H,B,d){d("HM/N"),d("FNN5")},eUgh:function(H,B){function d(O,E){for(var C=-1,A=O==null?0:O.length,w=Array(A);++C<A;)w[C]=E(O[C],C,O);return w}H.exports=d},ewwo:function(H,B,d){var O=d("bMXI"),E=d("+TT/"),C=E.getLayoutRect,A=d("4mN7");function w(f,c,o){var r=f.getBoxLayoutParams();return r.aspect=o,C(r,{width:c.getWidth(),height:c.getHeight()})}function m(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 x=n.getItemModel(y);return[+x.get("x"),+x.get("y")]}),s=[],t=[];A.fromPoints(e,s,t),t[0]-s[0]===0&&(t[0]+=1,s[0]-=1),t[1]-s[1]===0&&(t[1]+=1,s[1]-=1);var a=(t[0]-s[0])/(t[1]-s[1]),l=w(r,c,a);isNaN(a)&&(s=[l.x,l.y],t=[l.x+l.width,l.y+l.height]);var u=t[0]-s[0],h=t[1]-s[1],p=l.width,g=l.height,v=r.coordinateSystem=new O;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(s[0],s[1],u,h),v.setViewRect(l.x,l.y,p,g),v.setCenter(r.get("center")),v.setZoom(r.get("zoom")),o.push(v)}}),o}H.exports=m},f1nB:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("4NO4"),m=d("IwbS"),f=d("+TT/"),c=d("OELB"),o=c.parsePercent,r={path:null,compoundPath:null,group:m.Group,image:m.Image,text:m.Text};C.registerPreprocessor(function(p){var g=p.graphic;A.isArray(g)?!g[0]||!g[0].elements?p.graphic=[{elements:g}]:p.graphic=[p.graphic[0]]:g&&!g.elements&&(p.graphic=[{elements:[g]}])});var i=C.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(p){var g=this.option.elements;this.option.elements=null,i.superApply(this,"mergeOption",arguments),this.option.elements=g},optionUpdated:function(p,g){var v=this.option,y=(g?v:p).elements,x=v.elements=g?[]:v.elements,T=[];this._flatten(y,T);var S=w.mappingToExists(x,T);w.makeIdAndName(S);var b=this._elOptionsToUpdate=[];A.each(S,function(I,L){var N=I.option;if(!N)return;b.push(N),a(I,N),l(x,L,N),u(x[L],N)},this);for(var _=x.length-1;_>=0;_--)x[_]==null?x.splice(_,1):delete x[_].$action},_flatten:function(p,g,v){A.each(p,function(y){if(!y)return;v&&(y.parentOption=v),g.push(y);var x=y.children;y.type==="group"&&x&&this._flatten(x,g,y),delete y.children},this)},useElOptionsToUpdate:function(){var p=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,p}});C.extendComponentView({type:"graphic",init:function(p,g){this._elMap=A.createHashMap(),this._lastGraphicModel},render:function(p,g,v){p!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=p,this._updateElements(p),this._relocate(p,v)},_updateElements:function(p){var g=p.useElOptionsToUpdate();if(!g)return;var v=this._elMap,y=this.group;A.each(g,function(x){var T=x.$action,S=x.id,b=v.get(S),_=x.parentId,I=_!=null?v.get(_):y,L=x.style;x.type==="text"&&L&&(x.hv&&x.hv[1]&&(L.textVerticalAlign=L.textBaseline=null),!L.hasOwnProperty("textFill")&&L.fill&&(L.textFill=L.fill),!L.hasOwnProperty("textStroke")&&L.stroke&&(L.textStroke=L.stroke));var N=s(x);!T||T==="merge"?b?b.attr(N):n(S,I,N,v):T==="replace"?(e(b,v),n(S,I,N,v)):T==="remove"&&e(b,v);var D=v.get(S);D&&(D.__ecGraphicWidthOption=x.width,D.__ecGraphicHeightOption=x.height,h(D,p,x))})},_relocate:function(p,g){for(var v=p.option.elements,y=this.group,x=this._elMap,T=g.getWidth(),S=g.getHeight(),b=0;b<v.length;b++){var _=v[b],I=x.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?S:L.__ecGraphicHeight)||0}for(var b=v.length-1;b>=0;b--){var _=v[b],I=x.get(_.id);if(!I)continue;var L=I.parent,D=L===y?{width:T,height:S}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};f.positionElement(I,_,D,null,{hv:_.hv,boundingMode:_.bounding})}},_clear:function(){var p=this._elMap;p.each(function(g){e(g,p)}),this._elMap=A.createHashMap()},dispose:function(){this._clear()}});function n(p,g,v,y){var x=v.type,T=r.hasOwnProperty(x)?r[x]:m.getShapeClass(x),S=new T(v);g.add(S),y.set(p,S),S.__ecGraphicId=p}function e(p,g){var v=p&&p.parent;v&&(p.type==="group"&&p.traverse(function(y){e(y,g)}),g.removeKey(p.__ecGraphicId),v.remove(p))}function s(p){return p=A.extend({},p),A.each(["id","parentId","$action","hv","bounding"].concat(f.LOCATION_PARAMS),function(g){delete p[g]}),p}function t(p,g){var v;return A.each(g,function(y){p[y]!=null&&p[y]!=="auto"&&(v=!0)}),v}function a(p,g){var v=p.exist;if(g.id=p.keyInfo.id,!g.type&&v&&(g.type=v.type),g.parentId==null){var y=g.parentOption;y?g.parentId=y.id:v&&(g.parentId=v.parentId)}g.parentOption=null}function l(p,g,v){var y=A.extend({},v),x=p[g],T=v.$action||"merge";T==="merge"?x?(A.merge(x,y,!0),f.mergeLayoutParam(x,y,{ignoreSize:!0}),f.copyLayoutParams(v,x)):p[g]=y:T==="replace"?p[g]=y:T==="remove"&&(x&&(p[g]=null))}function u(p,g){if(!p)return;p.hv=g.hv=[t(g,["left","right"]),t(g,["top","bottom"])],p.type==="group"&&(p.width==null&&(p.width=g.width=0),p.height==null&&(p.height=g.height=0))}function h(p,g,v){var y=p.eventData;!p.silent&&!p.ignore&&!y&&(y=p.eventData={componentType:"graphic",componentIndex:g.componentIndex,name:p.name}),y&&(y.info=p.info)}},f3JH:function(H,B,d){d("aTJb"),d("OlYY"),d("fc+c"),d("oY9F"),d("MqEG"),d("LBfv"),d("noeP")},f5HG:function(H,B,d){var O=d("IwbS"),E=d("QBsz"),C=O.Line.prototype,A=O.BezierCurve.prototype;function w(f){return isNaN(+f.cpx1)||isNaN(+f.cpy1)}var m=O.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(f,c){this[w(c)?"_buildPathLine":"_buildPathCurve"](f,c)},_buildPathLine:C.buildPath,_buildPathCurve:A.buildPath,pointAt:function(f){return this[w(this.shape)?"_pointAtLine":"_pointAtCurve"](f)},_pointAtLine:C.pointAt,_pointAtCurve:A.pointAt,tangentAt:function(f){var c=this.shape,o=w(c)?[c.x2-c.x1,c.y2-c.y1]:this._tangentAtCurve(f);return E.normalize(o,o)},_tangentAtCurve:A.tangentAt});H.exports=m},f5Yq:function(H,B,d){var O=d("bYtY"),E=O.isFunction;function C(A,w,m){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"),s=f.get("symbolRotate"),t=E(i),a=E(n),l=E(s),u=t||a||l,h=!t&&i?i:w,p=a?null:n,g=l?null:g;if(r.setVisual({legendSymbol:m||h,symbol:h,symbolSize:p,symbolKeepAspect:e,symbolRotate:s}),c.isSeriesFiltered(f))return;function v(y,x){if(u){var T=f.getRawValue(x),S=f.getDataParams(x);t&&y.setItemVisual(x,"symbol",i(T,S)),a&&y.setItemVisual(x,"symbolSize",n(T,S)),l&&y.setItemVisual(x,"symbolRotate",s(T,S))}if(y.hasItemOption){var b=y.getItemModel(x),_=b.getShallow("symbol",!0),I=b.getShallow("symbolSize",!0),L=b.getShallow("symbolRotate",!0),N=b.getShallow("symbolKeepAspect",!0);_!=null&&y.setItemVisual(x,"symbol",_),I!=null&&y.setItemVisual(x,"symbolSize",I),L!=null&&y.setItemVisual(x,"symbolRotate",L),N!=null&&y.setItemVisual(x,"symbolKeepAspect",N)}}return{dataEach:r.hasItemOption||u?v:null}}}}H.exports=C},fE02:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("/IIm"),A=d("vZ6x"),w=d("b9oc"),m=d("72pK"),f=d("Kagy"),c=d("IUWy");d("3TkU");var o=f.toolbox.dataZoom,r=E.each,i="\0_ec_\0toolbox-dataZoom_";function n(h,p,g){(this._brushController=new C(g.getZr())).on("brush",E.bind(this._onBrush,this)).mount(),this._isZoomActive}n.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:E.clone(o.title)};var e=n.prototype;e.render=function(h,p,g,v){this.model=h,this.ecModel=p,this.api=g,l(h,p,this,v,g),a(h,p)},e.onclick=function(h,p,g){s[g].call(this)},e.remove=function(h,p){this._brushController.unmount()},e.dispose=function(h,p){this._brushController.dispose()};var s={zoom:function(){var h=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:h})},back:function(){this._dispatchZoomAction(w.pop(this.ecModel))}};e._onBrush=function(h,p){if(!p.isEnd||!h.length)return;var g={},v=this.ecModel;this._brushController.updateCovers([]);var y=new A(t(this.model.option),v,{include:["grid"]});y.matchOutputRanges(h,v,function(S,b,_){if(_.type!=="cartesian2d")return;var I=S.brushType;I==="rect"?(x("x",_,b[0]),x("y",_,b[1])):x({lineX:"x",lineY:"y"}[I],_,b)}),w.push(v,g),this._dispatchZoomAction(g);function x(S,b,_){var I=b.getAxis(S),L=I.model,N=T(S,L,v),D=N.findRepresentativeAxisProxy(L).getMinMaxSpan();(D.minValueSpan!=null||D.maxValueSpan!=null)&&(_=m(0,_.slice(),I.scale.getExtent(),0,D.minValueSpan,D.maxValueSpan)),N&&(g[N.id]={dataZoomId:N.id,startValue:_[0],endValue:_[1]})}function T(S,b,_){var I;return _.eachComponent({mainType:"dataZoom",subType:"select"},function(L){var N=L.getAxisModel(S,b.componentIndex);N&&(I=L)}),I}},e._dispatchZoomAction=function(h){var p=[];r(h,function(g,v){p.push(E.clone(g))}),p.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:p})};function t(h){var p={};return E.each(["xAxisIndex","yAxisIndex"],function(g){p[g]=h[g],p[g]==null&&(p[g]="all"),(p[g]===!1||p[g]==="none")&&(p[g]=[])}),p}function a(h,p){h.setIconStatus("back",w.count(p)>1?"emphasis":"normal")}function l(h,p,g,v,y){var x=g._isZoomActive;v&&v.type==="takeGlobalCursor"&&(x=v.key==="dataZoomSelect"?v.dataZoomSelectActive:!1),g._isZoomActive=x,h.setIconStatus("zoom",x?"emphasis":"normal");var T=new A(t(h.option),p,{include:["grid"]});g._brushController.setPanels(T.makePanelOpts(y,function(S){return S.xAxisDeclared&&!S.yAxisDeclared?"lineX":!S.xAxisDeclared&&S.yAxisDeclared?"lineY":"rect"})).enableBrush(x?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}c.register("dataZoom",n),O.registerPreprocessor(function(h){if(!h)return;var p=h.dataZoom||(h.dataZoom=[]);E.isArray(p)||(h.dataZoom=p=[p]);var g=h.toolbox;if(g&&(E.isArray(g)&&(g=g[0]),g&&g.feature)){var v=g.feature.dataZoom;y("xAxis",v),y("yAxis",v)}function y(T,S){if(!S)return;var b=T+"Index",_=S[b];_!=null&&_!=="all"&&!E.isArray(_)&&(_=_===!1||_==="none"?[]:[_]),x(T,function(I,L){if(_!=null&&_!=="all"&&E.indexOf(_,L)===-1)return;var N={type:"select",$fromToolbox:!0,filterMode:S.filterMode||"filter",id:i+T+L};N[b]=L,p.push(N)})}function x(T,S){var b=h[T];E.isArray(b)||(b=b?[b]:[]),r(b,S)}});var u=n;H.exports=u},fNCr:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("tSko"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},fUL4:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("r+aA"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},fW2E:function(H,B){var d={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(E,C,A){return d.hasOwnProperty(C)?A*=E.dpr:A}H.exports=O},"fc+c":function(H,B,d){var O=d("sS/r"),E=O.extend({type:"dataZoom",render:function(C,A,w,m){this.dataZoomModel=C,this.ecModel=A,this.api=w},getTargetCoordInfo:function(){var C=this.dataZoomModel,A=this.ecModel,w={};C.eachTargetAxis(function(f,c){var o=A.getComponent(f.axis,c);if(o){var r=o.getCoordSysModel();r&&m(r,o,w[r.mainType]||(w[r.mainType]=[]),r.componentIndex)}},this);function m(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 w}});H.exports=E},fjKi:function(H,B,d){var O=d("ProS");d("Q7if"),d("jndi"),O.registerPreprocessor(function(E){E.markArea=E.markArea||{}})},fls0:function(H,B,d){var O=d("bYtY"),E=d("QBsz"),C=d("oVpE"),A=d("f5HG"),w=d("IwbS"),m=d("OELB"),f=m.round,c=["fromSymbol","toSymbol"];function o(l){return"_"+l+"Type"}function r(l,u,h){var p=u.getItemVisual(h,"color"),g=u.getItemVisual(h,l),v=u.getItemVisual(h,l+"Size");if(!g||g==="none")return;O.isArray(v)||(v=[v,v]);var y=C.createSymbol(g,-v[0]/2,-v[1]/2,v[0],v[1],p);return y.name=l,y}function i(l){var u=new A({name:"line",subPixelOptimize:!0});return n(u.shape,l),u}function n(l,u){l.x1=u[0][0],l.y1=u[0][1],l.x2=u[1][0],l.y2=u[1][1],l.percent=1;var h=u[2];h?(l.cpx1=h[0],l.cpy1=h[1]):(l.cpx1=NaN,l.cpy1=NaN)}function e(){var l=this,u=l.childOfName("fromSymbol"),h=l.childOfName("toSymbol"),p=l.childOfName("label");if(!u&&!h&&p.ignore)return;for(var g=1,v=this.parent;v;)v.scale&&(g/=v.scale[0]),v=v.parent;var y=l.childOfName("line");if(!this.__dirty&&!y.__dirty)return;var x=y.shape.percent,T=y.pointAt(0),S=y.pointAt(x),b=E.sub([],S,T);if(E.normalize(b,b),u){u.attr("position",T);var _=y.tangentAt(0);u.attr("rotation",Math.PI/2-Math.atan2(_[1],_[0])),u.attr("scale",[g*x,g*x])}if(h){h.attr("position",S);var _=y.tangentAt(1);h.attr("rotation",-Math.PI/2-Math.atan2(_[1],_[0])),h.attr("scale",[g*x,g*x])}if(!p.ignore){p.attr("position",S);var I,L,N,D,R=p.__labelDistance,P=R[0]*g,M=R[1]*g,U=x/2,_=y.tangentAt(U),F=[_[1],-_[0]],j=y.pointAt(U);F[1]>0&&(F[0]=-F[0],F[1]=-F[1]);var W=_[0]<0?-1:1;if(p.__position!=="start"&&p.__position!=="end"){var V=-Math.atan2(_[1],_[0]);S[0]<T[0]&&(V=Math.PI+V),p.attr("rotation",V)}var z;switch(p.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":z=-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=[b[0]*P+S[0],b[1]*M+S[1]],L=b[0]>.8?"left":b[0]<-.8?"right":"center",N=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":I=[-b[0]*P+T[0],-b[1]*M+T[1]],L=b[0]>.8?"right":b[0]<-.8?"left":"center",N=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[P*W+T[0],T[1]+z],L=_[0]<0?"right":"left",D=[-P*W,-z];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[j[0],j[1]+z],L="center",D=[0,-z];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-P*W+S[0],S[1]+z],L=_[0]>=0?"right":"left",D=[P*W,-z];break}p.attr({style:{textVerticalAlign:p.__verticalAlign||N,textAlign:p.__textAlign||L},position:I,scale:[g,g],origin:D})}}function s(l,u,h){w.Group.call(this),this._createLine(l,u,h)}var t=s.prototype;t.beforeUpdate=e,t._createLine=function(l,u,h){var p=l.hostModel,g=l.getItemLayout(u),v=i(g);v.shape.percent=0,w.initProps(v,{shape:{percent:1}},p,u),this.add(v);var y=new w.Text({name:"label",lineLabelOriginalOpacity:1});this.add(y),O.each(c,function(x){var T=r(x,l,u);this.add(T),this[o(x)]=l.getItemVisual(u,x)},this),this._updateCommonStl(l,u,h)},t.updateData=function(l,u,h){var p=l.hostModel,g=this.childOfName("line"),v=l.getItemLayout(u),y={shape:{}};n(y.shape,v),w.updateProps(g,y,p,u),O.each(c,function(x){var T=l.getItemVisual(u,x),S=o(x);if(this[S]!==T){this.remove(this.childOfName(x));var b=r(x,l,u);this.add(b)}this[S]=T},this),this._updateCommonStl(l,u,h)},t._updateCommonStl=function(l,u,h){var p=l.hostModel,g=this.childOfName("line"),v=h&&h.lineStyle,y=h&&h.hoverLineStyle,x=h&&h.labelModel,T=h&&h.hoverLabelModel;if(!h||l.hasItemOption){var S=l.getItemModel(u);v=S.getModel("lineStyle").getLineStyle(),y=S.getModel("emphasis.lineStyle").getLineStyle(),x=S.getModel("label"),T=S.getModel("emphasis.label")}var b=l.getItemVisual(u,"color"),_=O.retrieve3(l.getItemVisual(u,"opacity"),v.opacity,1);g.useStyle(O.defaults({strokeNoScale:!0,fill:"none",stroke:b,opacity:_},v)),g.hoverStyle=y,O.each(c,function(W){var V=this.childOfName(W);V&&(V.setColor(b),V.setStyle({opacity:_}))},this);var I=x.getShallow("show"),L=T.getShallow("show"),N=this.childOfName("label"),D,R;if((I||L)&&(D=b||"#000",R=p.getFormattedLabel(u,"normal",l.dataType),R==null)){var P=p.getRawValue(u);R=P==null?l.getName(u):isFinite(P)?f(P):P}var M=I?R:null,U=L?O.retrieve2(p.getFormattedLabel(u,"emphasis",l.dataType),R):null,F=N.style;if(M!=null||U!=null){w.setTextStyle(N.style,x,{text:M},{autoColor:D}),N.__textAlign=F.textAlign,N.__verticalAlign=F.textVerticalAlign,N.__position=x.get("position")||"middle";var j=x.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,w.setHoverStyle(this)},t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.updateLayout=function(l,u){this.setLinePoints(l.getItemLayout(u))},t.setLinePoints=function(l){var u=this.childOfName("line");n(u.shape,l),u.dirty()},O.inherits(s,w.Group);var a=s;H.exports=a},fmMI:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=C.each,w=C.filter,m=C.map,f=C.isArray,c=C.indexOf,o=C.isObject,r=C.isString,i=C.createHashMap,n=C.assert,e=C.clone,s=C.merge,t=C.extend,a=C.mixin,l=d("4NO4"),u=d("Qxkt"),h=d("bLfw"),p=d("iXHM"),g=d("5Hur"),v=d("D5nY"),y=v.resetSourceDefaulter,x="\0_ec_inner",T=u.extend({init:function(M,U,F,j){F=F||{},this.option=null,this._theme=new u(F),this._optionManager=j},setOption:function(M,U){n(!(x in M),"please use chart.getOption()"),this._optionManager.setOption(M,U),this.resetOption(null)},resetOption:function(M){var U=!1,F=this._optionManager;if(!M||M==="recreate"){var j=F.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=F.getTimelineOption(this);W&&(this.mergeOption(W),U=!0)}if(!M||M==="recreate"||M==="media"){var V=F.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,F=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):s(U[z],V,!0)}),h.topologicalTravel(j,h.getAllClassMainTypes(),W,this);function W(V,z){var Y=l.normalizeToArray(M[V]),$=l.mappingToExists(F.get(V),Y);l.makeIdAndName($),A($,function(ne,ge){var Oe=ne.option;o(Oe)&&(ne.keyInfo.mainType=V,ne.keyInfo.subType=L(V,Oe,ne.exist))});var ue=I(F,z);U[V]=[],F.set(V,[]),A($,function(ne,ge){var Oe=ne.exist,De=ne.option;if(n(o(De)||Oe,"Empty component definition"),!De)Oe.mergeOption({},this),Oe.optionUpdated({},!1);else{var He=h.getClass(V,ne.keyInfo.subType,!0);if(Oe&&Oe.constructor===He)Oe.name=ne.keyInfo.name,Oe.mergeOption(De,this),Oe.optionUpdated(De,!1);else{var pe=t({dependentModels:ue,componentIndex:ge},ne.keyInfo);Oe=new He(De,this,this,pe),t(Oe,pe),Oe.init(De,this,this,pe),Oe.optionUpdated(null,!0)}}F.get(V)[ge]=Oe,U[V][ge]=Oe.option},this),V==="series"&&N(this,F.get("series"))}this._seriesIndicesMap=i(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var M=e(this.option);return A(M,function(U,F){if(h.hasClass(F)){for(var U=l.normalizeToArray(U),j=U.length-1;j>=0;j--)l.isIdInner(U[j])&&U.splice(j,1);M[F]=U}}),delete M[x],M},getTheme:function(){return this._theme},getComponent:function(M,U){var F=this._componentsMap.get(M);if(F)return F[U||0]},queryComponents:function(M){var U=M.mainType;if(!U)return[];var F=M.index,j=M.id,W=M.name,V=this._componentsMap.get(U);if(!V||!V.length)return[];var z;if(F!=null)f(F)||(F=[F]),z=w(m(F,function(ue){return V[ue]}),function(ue){return!!ue});else if(j!=null){var Y=f(j);z=w(V,function(ue){return Y&&c(j,ue.id)>=0||!Y&&ue.id===j})}else if(W!=null){var $=f(W);z=w(V,function(ue){return $&&c(W,ue.name)>=0||!$&&ue.name===W})}else z=V.slice();return D(z,M)},findComponents:function(M){var U=M.query,F=M.mainType,j=V(U),W=j?this.queryComponents(j):this._componentsMap.get(F);return z(D(W,M));function V(Y){var $=F+"Index",ue=F+"Id",ne=F+"Name";return Y&&(Y[$]!=null||Y[ue]!=null||Y[ne]!=null)?{mainType:F,index:Y[$],id:Y[ue],name:Y[ne]}:null}function z(Y){return M.filter?w(Y,M.filter):Y}},eachComponent:function(M,U,F){var j=this._componentsMap;if(typeof M=="function")F=U,U=M,j.each(function(V,z){A(V,function(Y,$){U.call(F,z,Y,$)})});else if(r(M))A(j.get(M),U,F);else if(o(M)){var W=this.findComponents(M);A(W,U,F)}},getSeriesByName:function(M){var U=this._componentsMap.get("series");return w(U,function(F){return F.name===M})},getSeriesByIndex:function(M){return this._componentsMap.get("series")[M]},getSeriesByType:function(M){var U=this._componentsMap.get("series");return w(U,function(F){return F.subType===M})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(M,U){R(this),A(this._seriesIndices,function(F){var j=this._componentsMap.get("series")[F];M.call(U,j,F)},this)},eachRawSeries:function(M,U){A(this._componentsMap.get("series"),M,U)},eachSeriesByType:function(M,U,F){R(this),A(this._seriesIndices,function(j){var W=this._componentsMap.get("series")[j];W.subType===M&&U.call(F,W,j)},this)},eachRawSeriesByType:function(M,U,F){return A(this.getSeriesByType(M),U,F)},isSeriesFiltered:function(M){return R(this),this._seriesIndicesMap.get(M.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(M,U){R(this);var F=w(this._componentsMap.get("series"),M,U);N(this,F)},restoreData:function(M){var U=this._componentsMap;N(this,U.get("series"));var F=[];U.each(function(j,W){F.push(W)}),h.topologicalTravel(F,h.getAllClassMainTypes(),function(j,W){A(U.get(j),function(V){(j!=="series"||!S(V,M))&&V.restoreData()})})}});function S(M,U){if(U){var F=U.seiresIndex,j=U.seriesId,W=U.seriesName;return F!=null&&M.componentIndex!==F||j!=null&&M.id!==j||W!=null&&M.name!==W}}function b(M,U){var F=M.color&&!M.colorLayer;A(U,function(j,W){if(W==="colorLayer"&&F)return;h.hasClass(W)||(typeof j=="object"?M[W]=M[W]?s(M[W],j,!1):e(j):M[W]==null&&(M[W]=j))})}function _(M){M=M,this.option={},this.option[x]=1,this._componentsMap=i({series:[]}),this._seriesIndices,this._seriesIndicesMap,b(M,this._theme.option),s(M,p,!1),this.mergeOption(M)}function I(M,U){f(U)||(U=U?[U]:[]);var F={};return A(U,function(j){F[j]=(M.get(j)||[]).slice()}),F}function L(M,U,F){var j=U.type?U.type:F?F.subType:h.determineSubType(M,U);return j}function N(M,U){M._seriesIndicesMap=i(M._seriesIndices=m(U,function(F){return F.componentIndex})||[])}function D(M,U){return U.hasOwnProperty("subType")?w(M,function(F){return F.subType===U.subType}):M}function R(M){}a(T,g);var P=T;H.exports=P},fyUT:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("q1tI"),m=d.n(w),f=d("TSYQ"),c=d.n(f),o=d("Ff2n"),r=d("rePB"),i=d("1OyB"),n=d("vuIU"),e=d("Ji7U"),s=d("md7G"),t=d("foSv"),a=d("4IlW");function l(z,Y){var $=Object.keys(z);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(z);Y&&(ue=ue.filter(function(ne){return Object.getOwnPropertyDescriptor(z,ne).enumerable})),$.push.apply($,ue)}return $}function u(z){for(var Y=1;Y<arguments.length;Y++){var $=arguments[Y]!=null?arguments[Y]:{};Y%2?l(Object($),!0).forEach(function(ue){Object(r.a)(z,ue,$[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors($)):l(Object($)).forEach(function(ue){Object.defineProperty(z,ue,Object.getOwnPropertyDescriptor($,ue))})}return z}function h(z){var Y=p();return function(){var ue=Object(t.a)(z),ne;if(Y){var ge=Object(t.a)(this).constructor;ne=Reflect.construct(ue,arguments,ge)}else ne=ue.apply(this,arguments);return Object(s.a)(this,ne)}}function p(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(z){return!1}}function g(){}function v(z){z.preventDefault()}var y=function(Y){return Y.replace(/[^\w.-]+/g,"")},x=200,T=600,S=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,b=function(Y){return Y!=null},_=function(Y,$){return $===Y||typeof $=="number"&&typeof Y=="number"&&isNaN($)&&isNaN(Y)},I=function(z){Object(e.a)($,z);var Y=h($);function $(ue){var ne;Object(i.a)(this,$),ne=Y.call(this,ue),ne.onKeyDown=function(De){var He=ne.props,pe=He.onKeyDown,Ue=He.onPressEnter;if(De.keyCode===a.a.UP){var oe=ne.getRatio(De);ne.up(De,oe,null),ne.stop()}else if(De.keyCode===a.a.DOWN){var ee=ne.getRatio(De);ne.down(De,ee,null),ne.stop()}else De.keyCode===a.a.ENTER&&Ue&&Ue(De);if(ne.recordCursorPosition(),ne.lastKeyCode=De.keyCode,pe){for(var Xe=arguments.length,se=new Array(Xe>1?Xe-1:0),Q=1;Q<Xe;Q++)se[Q-1]=arguments[Q];pe.apply(void 0,[De].concat(se))}},ne.onKeyUp=function(De){var He=ne.props.onKeyUp;if(ne.stop(),ne.recordCursorPosition(),He){for(var pe=arguments.length,Ue=new Array(pe>1?pe-1:0),oe=1;oe<pe;oe++)Ue[oe-1]=arguments[oe];He.apply(void 0,[De].concat(Ue))}},ne.onChange=function(De){var He=ne.props.onChange;ne.state.focused&&(ne.inputting=!0),ne.rawInput=ne.props.parser(ne.getValueFromEvent(De)),ne.setState({inputValue:ne.rawInput}),He(ne.toNumber(ne.rawInput))},ne.onMouseUp=function(){var De=ne.props.onMouseUp;ne.recordCursorPosition(),De&&De.apply(void 0,arguments)},ne.onFocus=function(){var De;ne.setState({focused:!0}),(De=ne.props).onFocus.apply(De,arguments)},ne.onBlur=function(){var De=ne.props.onBlur;ne.inputting=!1,ne.setState({focused:!1});var He=ne.getCurrentValidValue(ne.state.inputValue),pe=ne.setValue(He,g);if(De){var Ue=ne.input.value,oe=ne.getInputDisplayValue({focus:!1,value:pe});ne.input.value=oe&&Number(oe),De.apply(void 0,arguments),ne.input.value=Ue}},ne.getRatio=function(De){var He=1;return De.metaKey||De.ctrlKey?He=.1:De.shiftKey&&(He=10),He},ne.getFullNum=function(De){return isNaN(De)?De:/e/i.test(String(De))?Number(De).toFixed(18).replace(/\.?0+$/,""):De},ne.getPrecision=function(De){if(b(ne.props.precision))return ne.props.precision;var He=String(De);if(He.indexOf("e-")>=0)return parseInt(He.slice(He.indexOf("e-")+2),10);var pe=0;return He.indexOf(".")>=0&&(pe=He.length-He.indexOf(".")-1),pe},ne.getInputDisplayValue=function(De){var He=De||ne.state,pe=He.focused,Ue=He.inputValue,oe=He.value,ee;pe?ee=Ue:ee=ne.toPrecisionAsStep(oe),ee==null&&(ee="");var Xe=ne.formatWrapper(ee);return b(ne.props.decimalSeparator)&&(Xe=Xe.toString().replace(".",ne.props.decimalSeparator)),Xe},ne.recordCursorPosition=function(){try{ne.cursorStart=ne.input.selectionStart,ne.cursorEnd=ne.input.selectionEnd,ne.currentValue=ne.input.value,ne.cursorBefore=ne.input.value.substring(0,ne.cursorStart),ne.cursorAfter=ne.input.value.substring(ne.cursorEnd)}catch(De){}},ne.restoreByAfter=function(De){if(De===void 0)return!1;var He=ne.input.value,pe=He.lastIndexOf(De);if(pe===-1)return!1;var Ue=ne.cursorBefore.length;return ne.lastKeyCode===a.a.DELETE&&ne.cursorBefore.charAt(Ue-1)===De[0]?(ne.fixCaret(Ue,Ue),!0):pe+De.length===He.length?(ne.fixCaret(pe,pe),!0):!1},ne.partRestoreByAfter=function(De){return De===void 0?!1:Array.prototype.some.call(De,function(He,pe){var Ue=De.substring(pe);return ne.restoreByAfter(Ue)})},ne.isNotCompleteNumber=function(De){return isNaN(De)||De===""||De===null||De&&De.toString().indexOf(".")===De.toString().length-1},ne.stop=function(){ne.autoStepTimer&&clearTimeout(ne.autoStepTimer)},ne.down=function(De,He,pe){ne.pressingUpOrDown=!0,ne.step("down",De,He,pe)},ne.up=function(De,He,pe){ne.pressingUpOrDown=!0,ne.step("up",De,He,pe)},ne.saveInput=function(De){ne.input=De};var ge=ue.value;ge===void 0&&(ge=ue.defaultValue),ne.state={focused:ue.autoFocus};var Oe=ne.getValidValue(ne.toNumber(ge));return ne.state=u(u({},ne.state),{},{inputValue:ne.toPrecisionAsStep(Oe),value:Oe}),ne}return Object(n.a)($,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(ne){var ge=this.props,Oe=ge.value,De=ge.onChange,He=ge.max,pe=ge.min,Ue=this.state.focused;if(ne){if(!_(ne.value,Oe)||!_(ne.max,He)||!_(ne.min,pe)){var oe=Ue?Oe:this.getValidValue(Oe),ee;this.pressingUpOrDown?ee=oe:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(oe),this.setState({value:oe,inputValue:ee})}var Xe="value"in this.props?Oe:this.state.value;"max"in this.props&&ne.max!==He&&typeof Xe=="number"&&Xe>He&&De&&De(He),"min"in this.props&&ne.min!==pe&&typeof Xe=="number"&&Xe<pe&&De&&De(pe)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var se=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===a.a.BACKSPACE?se=this.cursorStart-1:this.lastKeyCode===a.a.DELETE&&(se=this.cursorStart):se=this.input.value.length,this.fixCaret(se,se)}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(Q){}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(ne){var ge=ne;return ge===""?ge="":this.isNotCompleteNumber(parseFloat(ge))?ge=this.state.value:ge=this.getValidValue(ge),this.toNumber(ge)}},{key:"getValueFromEvent",value:function(ne){var ge=ne.target.value.trim().replace(/。/g,".");return b(this.props.decimalSeparator)&&(ge=ge.replace(this.props.decimalSeparator,".")),ge}},{key:"getValidValue",value:function(ne){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,De=parseFloat(ne);return isNaN(De)?ne:(De<ge&&(De=ge),De>Oe&&(De=Oe),De)}},{key:"setValue",value:function(ne,ge){var Oe=this.props.precision,De=this.isNotCompleteNumber(parseFloat(ne))?null:parseFloat(ne),He=this.state.value,pe=He===void 0?null:He,Ue=this.state.inputValue,oe=Ue===void 0?null:Ue,ee=typeof De=="number"?De.toFixed(Oe):"".concat(De),Xe=De!==pe||ee!=="".concat(oe);return"value"in this.props?(oe=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:oe},ge)):this.setState({value:De,inputValue:this.toPrecisionAsStep(ne)},ge),Xe&&this.props.onChange(De),De}},{key:"getMaxPrecision",value:function(ne){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=this.props,De=Oe.precision,He=Oe.step;if(b(De))return De;var pe=this.getPrecision(ge),Ue=this.getPrecision(He),oe=this.getPrecision(ne);return ne?Math.max(oe,pe+Ue):pe+Ue}},{key:"getPrecisionFactor",value:function(ne){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=this.getMaxPrecision(ne,ge);return Math.pow(10,Oe)}},{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(ne){return this.props.formatter?this.props.formatter(ne):ne}},{key:"toPrecisionAsStep",value:function(ne){if(this.isNotCompleteNumber(ne)||ne==="")return ne;var ge=Math.abs(this.getMaxPrecision(ne));return isNaN(ge)?ne.toString():Number(ne).toFixed(ge)}},{key:"toNumber",value:function(ne){var ge=this.props.precision,Oe=this.state.focused,De=ne&&ne.length>16&&Oe;return this.isNotCompleteNumber(ne)||De?ne:b(ge)?Math.round(ne*Math.pow(10,ge))/Math.pow(10,ge):Number(ne)}},{key:"upStep",value:function(ne,ge){var Oe=this.props.step,De=this.getPrecisionFactor(ne,ge),He=Math.abs(this.getMaxPrecision(ne,ge)),pe=((De*ne+De*Oe*ge)/De).toFixed(He);return this.toNumber(pe)}},{key:"downStep",value:function(ne,ge){var Oe=this.props.step,De=this.getPrecisionFactor(ne,ge),He=Math.abs(this.getMaxPrecision(ne,ge)),pe=((De*ne-De*Oe*ge)/De).toFixed(He);return this.toNumber(pe)}},{key:"step",value:function(ne,ge){var Oe=this,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,He=arguments.length>3?arguments[3]:void 0;this.stop(),ge&&(ge.persist(),ge.preventDefault());var pe=this.props;if(pe.disabled)return;var Ue=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(Ue))return;var oe=this["".concat(ne,"Step")](Ue,De),ee=oe>pe.max||oe<pe.min;if(oe>pe.max?oe=pe.max:oe<pe.min&&(oe=pe.min),this.setValue(oe,null),this.setState({focused:!0},function(){Oe.pressingUpOrDown=!1}),ee)return;this.autoStepTimer=setTimeout(function(){Oe[ne](ge,De,!0)},He?x:T)}},{key:"fixCaret",value:function(ne,ge){if(ne===void 0||ge===void 0||!this.input||!this.input.value)return;try{var Oe=this.input.selectionStart,De=this.input.selectionEnd;(ne!==Oe||ge!==De)&&this.input.setSelectionRange(ne,ge)}catch(He){}}},{key:"render",value:function(){var ne,ge=this.props,Oe=ge.prefixCls,De=ge.disabled,He=ge.readOnly,pe=ge.useTouch,Ue=ge.autoComplete,oe=ge.upHandler,ee=ge.downHandler,Xe=ge.className,se=ge.max,Q=ge.min,G=ge.style,J=ge.title,ve=ge.onMouseEnter,de=ge.onMouseLeave,Ce=ge.onMouseOver,Ee=ge.onMouseOut,le=ge.required,fe=ge.onClick,xe=ge.tabIndex,Qe=ge.type,ot=ge.placeholder,Je=ge.id,Te=ge.inputMode,et=ge.pattern,ze=ge.step,nt=ge.maxLength,Ot=ge.autoFocus,Ct=ge.name,Tt=ge.onPaste,Dt=ge.onInput,Be=Object(o.a)(ge,["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,Fe=ie.focused,Ne=c()(Oe,(ne={},Object(r.a)(ne,Xe,!!Xe),Object(r.a)(ne,"".concat(Oe,"-disabled"),De),Object(r.a)(ne,"".concat(Oe,"-focused"),Fe),ne)),q={};Object.keys(Be).forEach(function(dt){(dt.substr(0,5)==="data-"||dt.substr(0,5)==="aria-"||dt==="role")&&(q[dt]=Be[dt])});var ht=!He&&!De,Rt=this.getInputDisplayValue(null),ut=(X||X===0)&&(isNaN(X)||Number(X)>=se),Xt=(X||X===0)&&(isNaN(X)||Number(X)<=Q),or=ut||De||He,Zr=Xt||De||He,ar=c()("".concat(Oe,"-handler"),"".concat(Oe,"-handler-up"),Object(r.a)({},"".concat(Oe,"-handler-up-disabled"),or)),dr=c()("".concat(Oe,"-handler"),"".concat(Oe,"-handler-down"),Object(r.a)({},"".concat(Oe,"-handler-down-disabled"),Zr)),er=pe?{onTouchStart:or?g:this.up,onTouchEnd:this.stop}:{onMouseDown:or?g:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ht=pe?{onTouchStart:Zr?g:this.down,onTouchEnd:this.stop}:{onMouseDown:Zr?g:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return m.a.createElement("div",{className:Ne,style:G,title:J,onMouseEnter:ve,onMouseLeave:de,onMouseOver:Ce,onMouseOut:Ee,onFocus:function(){return null},onBlur:function(){return null}},m.a.createElement("div",{className:"".concat(Oe,"-handler-wrap")},m.a.createElement("span",Object.assign({unselectable:"on"},er,{role:"button","aria-label":"Increase Value","aria-disabled":or,className:ar}),oe||m.a.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-up-inner"),onClick:v})),m.a.createElement("span",Object.assign({unselectable:"on"},Ht,{role:"button","aria-label":"Decrease Value","aria-disabled":Zr,className:dr}),ee||m.a.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-down-inner"),onClick:v}))),m.a.createElement("div",{className:"".concat(Oe,"-input-wrap")},m.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Q,"aria-valuemax":se,"aria-valuenow":X,required:le,type:Qe,placeholder:ot,onPaste:Tt,onClick:fe,onMouseUp:this.onMouseUp,className:"".concat(Oe,"-input"),tabIndex:xe,autoComplete:Ue,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ht?this.onKeyDown:g,onKeyUp:ht?this.onKeyUp:g,autoFocus:Ot,maxLength:nt,readOnly:He,disabled:De,max:se,min:Q,step:ze,name:Ct,title:J,id:Je,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Rt),pattern:et,inputMode:Te,onInput:Dt},q))))}}]),$}(m.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:S,min:-S,step:1,style:{},onChange:g,onKeyDown:g,onPressEnter:g,onFocus:g,onBlur:g,parser:y,required:!1,autoComplete:"off"};var L=I,N=L,D=d("FH2Y"),R=d.n(D),P=d("HQEm"),M=d.n(P),U=d("H84U"),F=d("3Nzz"),j=function(z,Y){var $={};for(var ue in z)Object.prototype.hasOwnProperty.call(z,ue)&&Y.indexOf(ue)<0&&($[ue]=z[ue]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,ue=Object.getOwnPropertySymbols(z);ne<ue.length;ne++)Y.indexOf(ue[ne])<0&&Object.prototype.propertyIsEnumerable.call(z,ue[ne])&&($[ue[ne]]=z[ue[ne]]);return $},W=w.forwardRef(function(z,Y){var $=function(ne){var ge=ne.getPrefixCls,Oe=ne.direction,De=z.className,He=z.size,pe=z.prefixCls,Ue=z.readOnly,oe=j(z,["className","size","prefixCls","readOnly"]),ee=ge("input-number",pe),Xe=w.createElement(R.a,{className:"".concat(ee,"-handler-up-inner")}),se=w.createElement(M.a,{className:"".concat(ee,"-handler-down-inner")});return w.createElement(F.b.Consumer,null,function(Q){var G,J=He||Q,ve=c()((G={},A()(G,"".concat(ee,"-lg"),J==="large"),A()(G,"".concat(ee,"-sm"),J==="small"),A()(G,"".concat(ee,"-rtl"),Oe==="rtl"),A()(G,"".concat(ee,"-readonly"),Ue),G),De);return w.createElement(N,E()({ref:Y,className:ve,upHandler:Xe,downHandler:se,prefixCls:ee,readOnly:Ue},oe))})};return w.createElement(U.a,null,$)});W.defaultProps={step:1};var V=B.a=W},g0SD:function(H,B,d){var O=d("bYtY"),E=d("9wZj"),C=d("OELB"),A=d("YXkt"),w=d("kj2x"),m=d("iPDy");function f(r,i,n){var e=i.coordinateSystem;r.each(function(s){var t=r.getItemModel(s),a,l=C.parsePercent(t.get("x"),n.getWidth()),u=C.parsePercent(t.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))a=[l,u];else if(i.getMarkerPosition)a=i.getMarkerPosition(r.getValues(r.dimensions,s));else if(e){var h=r.get(e.dimensions[0],s),p=r.get(e.dimensions[1],s);a=e.dataToPoint([h,p])}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u),r.setItemLayout(s,a)})}var c=m.extend({type:"markPoint",updateTransform:function(r,i,n){i.eachSeries(function(e){var s=e.markPointModel;s&&(f(s.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(s))},this)},renderSeries:function(r,i,n,e){var s=r.coordinateSystem,t=r.id,a=r.getData(),l=this.markerGroupMap,u=l.get(t)||l.set(t,new E),h=o(s,r,i);i.setData(h),f(i.getData(),r,e),h.each(function(p){var g=h.getItemModel(p),v=g.getShallow("symbol"),y=g.getShallow("symbolSize"),x=O.isFunction(v),T=O.isFunction(y);if(x||T){var S=i.getRawValue(p),b=i.getDataParams(p);x&&(v=v(S,b)),T&&(y=y(S,b))}h.setItemVisual(p,{symbol:v,symbolSize:y,color:g.get("itemStyle.color")||a.getVisual("color")})}),u.updateData(h),this.group.add(u.group),h.eachItemGraphicEl(function(p){p.traverse(function(g){g.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 l=i.getData().getDimensionInfo(i.getData().mapDimension(a))||{};return O.defaults({name:a},l)}):e=[{name:"value",type:"float"}];var s=new A(e,n),t=O.map(n.get("data"),O.curry(w.dataTransform,i));return r&&(t=O.filter(t,O.curry(w.dataFilter,r))),s.initData(t,null,r?w.dimValueGetter:function(a){return a.value}),s}H.exports=c},g7p0:function(H,B,d){var O=d("bYtY"),E=d("bLfw"),C=d("+TT/"),A=C.getLayoutParams,w=C.sizeCalculable,m=C.mergeLayoutParam,f=E.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(r,i,n,e){var s=A(r);f.superApply(this,"init",arguments),c(r,s)},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(s){return w(i,s)&&(n[s]="auto"),n[s]!=null&&n[s]!=="auto"});m(r,i,{type:"box",ignoreSize:e})}var o=f;H.exports=o},g9YV:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("pED+"),A=d.n(C),w=d("+L6B"),m=d("R9oj"),f=d("7Kak"),c=d("sRBo"),o=d("qVdP"),r=d("T2oS"),i=d("DjyN"),n=d("5Dmo")},gIYZ:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.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"};B.default=O},gKaM:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},gPAo:function(H,B){function d(A){return A}function O(A,w,m,f,c){this._old=A,this._new=w,this._oldKeyGetter=m||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,w=this._new,m={},f={},c=[],o=[],r;for(E(A,m,c,"_oldKeyGetter",this),E(w,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 s=0,e=n.length;s<e;s++)this._add&&this._add(n[s])}}}};function E(A,w,m,f,c){for(var o=0;o<A.length;o++){var r="_ec_"+c[f](A[o],o),i=w[r];i==null?(m.push(r),w[r]=o):(i.length||(w[r]=i=[i]),i.push(o))}}var C=O;H.exports=C},gRFJ:function(H,B,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(B){var d=meta[B];return typeof d=="string"?d:"\\u"+("0000"+B.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+H+'"'}function str(H,B){var d,O,E,C,A=gap,w,m=B[H];m&&typeof m=="object"&&typeof m.toJSON=="function"&&(m=m.toJSON(H)),typeof rep=="function"&&(m=rep.call(B,H,m));switch(typeof m){case"string":return quote(m);case"number":return isFinite(m)?String(m):"null";case"boolean":case"null":return String(m);case"object":if(!m)return"null";if(gap+=indent,w=[],Object.prototype.toString.apply(m)==="[object Array]"){for(C=m.length,d=0;d<C;d+=1)w[d]=str(d,m)||"null";return E=w.length===0?"[]":gap?`[
|
|
|
`+gap+w.join(`,
|
|
|
`+gap)+`
|
|
|
`+A+"]":"["+w.join(",")+"]",gap=A,E}if(rep&&typeof rep=="object")for(C=rep.length,d=0;d<C;d+=1)typeof rep[d]=="string"&&(O=rep[d],E=str(O,m),E&&w.push(quote(O)+(gap?": ":":")+E));else for(O in m)Object.prototype.hasOwnProperty.call(m,O)&&(E=str(O,m),E&&w.push(quote(O)+(gap?": ":":")+E));return E=w.length===0?"{}":gap?`{
|
|
|
`+gap+w.join(`,
|
|
|
`+gap)+`
|
|
|
`+A+"}":"{"+w.join(",")+"}",gap=A,E}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(H,B,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=B,B&&typeof B!="function"&&(typeof B!="object"||typeof B.length!="number"))throw new Error("JSON.stringify");return str("",{"":H})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(H,B){var d,O,E=H[B];if(E&&typeof E=="object")for(d in E)Object.prototype.hasOwnProperty.call(E,d)&&(O=walk(E,d),O!==void 0?E[d]=O:delete E[d]);return reviver.call(H,B,E)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(H){return"\\u"+("0000"+H.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},gawk:function(H,B,d){var O=d("+TT/"),E=d("bYtY"),C=d("4NO4"),A=C.groupData;function w(_,I,L){_.eachSeriesByType("sankey",function(N){var D=N.get("nodeWidth"),R=N.get("nodeGap"),P=m(N,I);N.layoutInfo=P;var M=P.width,U=P.height,F=N.getGraph(),j=F.nodes,W=F.edges;c(j);var V=E.filter(j,function(ue){return ue.getLayout().value===0}),z=V.length!==0?0:N.get("layoutIterations"),Y=N.get("orient"),$=N.get("nodeAlign");f(j,W,D,R,M,U,z,Y,$)})}function m(_,I){return O.getLayoutRect(_.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function f(_,I,L,N,D,R,P,M,U){o(_,I,L,D,R,M,U),s(_,I,R,D,N,P,M),b(_,M)}function c(_){E.each(_,function(I){var L=T(I.outEdges,x),N=T(I.inEdges,x),D=I.getValue()||0,R=Math.max(L,N,D);I.setLayout({value:R},!0)})}function o(_,I,L,N,D,R,P){for(var M=[],U=[],F=[],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&&F.push(_[z]);for(var Y=-1;F.length;){for(var $=0;$<F.length;$++){var ue=F[$],ne=ue.hostGraph.data.getRawDataItem(ue.dataIndex),ge=ne.depth!=null&&ne.depth>=0;ge&&ne.depth>Y&&(Y=ne.depth),ue.setLayout({depth:ge?ne.depth:W},!0),R==="vertical"?ue.setLayout({dy:L},!0):ue.setLayout({dx:L},!0);for(var Oe=0;Oe<ue.outEdges.length;Oe++){var De=ue.outEdges[Oe],He=I.indexOf(De);M[He]=0;var pe=De.node2,Ue=_.indexOf(pe);--U[Ue]===0&&j.indexOf(pe)<0&&j.push(pe)}}++W,F=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 oe=Y>W-1?Y:W-1;P&&P!=="left"&&i(_,P,R,oe);var V=R==="vertical"?(D-L)/oe:(N-L)/oe;e(_,V,R)}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 D=[],R=_,P=0;R.length;){for(var M=0;M<R.length;M++){var U=R[M];U.setLayout({skNodeHeight:P},!0);for(var F=0;F<U.inEdges.length;F++){var j=U.inEdges[F];D.indexOf(j.node1)<0&&D.push(j.node1)}}R=D,D=[],++P}E.each(_,function(W){r(W)||W.setLayout({depth:Math.max(0,N-W.getLayout().skNodeHeight)},!0)})}else I==="justify"&&n(_,N)}function n(_,I){E.each(_,function(L){!r(L)&&!L.outEdges.length&&L.setLayout({depth:I},!0)})}function e(_,I,L){E.each(_,function(N){var D=N.getLayout().depth*I;L==="vertical"?N.setLayout({y:D},!0):N.setLayout({x:D},!0)})}function s(_,I,L,N,D,R,P){var M=t(_,P);a(M,I,L,N,D,P),l(M,D,L,N,P);for(var U=1;R>0;R--)U*=.99,u(M,U,P),l(M,D,L,N,P),S(M,U,P),l(M,D,L,N,P)}function t(_,I){var L=[],N=I==="vertical"?"y":"x",D=A(_,function(R){return R.getLayout()[N]});return D.keys.sort(function(R,P){return R-P}),E.each(D.keys,function(R){L.push(D.buckets.get(R))}),L}function a(_,I,L,N,D,R){var P=Infinity;E.each(_,function(M){var U=M.length,F=0;E.each(M,function(W){F+=W.getLayout().value});var j=R==="vertical"?(N-(U-1)*D)/F:(L-(U-1)*D)/F;j<P&&(P=j)}),E.each(_,function(M){E.each(M,function(U,F){var j=U.getLayout().value*P;R==="vertical"?(U.setLayout({x:F},!0),U.setLayout({dx:j},!0)):(U.setLayout({y:F},!0),U.setLayout({dy:j},!0))})}),E.each(I,function(M){var U=+M.getValue()*P;M.setLayout({dy:U},!0)})}function l(_,I,L,N,D){var R=D==="vertical"?"x":"y";E.each(_,function(P){P.sort(function($,ue){return $.getLayout()[R]-ue.getLayout()[R]});for(var M,U,F,j=0,W=P.length,V=D==="vertical"?"dx":"dy",z=0;z<W;z++)U=P[z],F=j-U.getLayout()[R],F>0&&(M=U.getLayout()[R]+F,D==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0)),j=U.getLayout()[R]+U.getLayout()[V]+I;var Y=D==="vertical"?N:L;if(F=j-I-Y,F>0)for(M=U.getLayout()[R]-F,D==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0),j=M,z=W-2;z>=0;--z)U=P[z],F=U.getLayout()[R]+U.getLayout()[V]+I-j,F>0&&(M=U.getLayout()[R]-F,D==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0)),j=U.getLayout()[R]})}function u(_,I,L){E.each(_.slice().reverse(),function(N){E.each(N,function(D){if(D.outEdges.length){var R=T(D.outEdges,h,L)/T(D.outEdges,x,L);if(isNaN(R)){var P=D.outEdges.length;R=P?T(D.outEdges,p,L)/P:0}if(L==="vertical"){var M=D.getLayout().x+(R-y(D,L))*I;D.setLayout({x:M},!0)}else{var U=D.getLayout().y+(R-y(D,L))*I;D.setLayout({y:U},!0)}}})})}function h(_,I){return y(_.node2,I)*_.getValue()}function p(_,I){return y(_.node2,I)}function g(_,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 x(_){return _.getValue()}function T(_,I,L){for(var N=0,D=_.length,R=-1;++R<D;){var P=+I.call(_,_[R],L);isNaN(P)||(N+=P)}return N}function S(_,I,L){E.each(_,function(N){E.each(N,function(D){if(D.inEdges.length){var R=T(D.inEdges,g,L)/T(D.inEdges,x,L);if(isNaN(R)){var P=D.inEdges.length;R=P?T(D.inEdges,v,L)/P:0}if(L==="vertical"){var M=D.getLayout().x+(R-y(D,L))*I;D.setLayout({x:M},!0)}else{var U=D.getLayout().y+(R-y(D,L))*I;D.setLayout({y:U},!0)}}})})}function b(_,I){var L=I==="vertical"?"x":"y";E.each(_,function(N){N.outEdges.sort(function(D,R){return D.node2.getLayout()[L]-R.node2.getLayout()[L]}),N.inEdges.sort(function(D,R){return D.node1.getLayout()[L]-R.node1.getLayout()[L]})}),E.each(_,function(N){var D=0,R=0;E.each(N.outEdges,function(P){P.setLayout({sy:D},!0),D+=P.getLayout().dy}),E.each(N.inEdges,function(P){P.setLayout({ty:R},!0),R+=P.getLayout().dy})})}H.exports=w},"gb/T":function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.ECB=function(){var E=O.lib.BlockCipherMode.extend();return E.Encryptor=E.extend({processBlock:function(A,w){this._cipher.encryptBlock(A,w)}}),E.Decryptor=E.extend({processBlock:function(A,w){this._cipher.decryptBlock(A,w)}}),E}(),O.mode.ECB})},"giR+":function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("QbM5"),A=d.n(C)},gut8:function(H,B){var d={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;B.ContextCachedBy=d,B.WILL_BE_RESTORED=O},gvm7:function(H,B,d){var O=d("bYtY"),E=d("dqUG");function C(w){this._zr=w.getZr(),this._show=!1,this._hideTimeout}C.prototype={constructor:C,_enterable:!0,update:function(){},show:function(w){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(w,m,f){this.el&&this._zr.remove(this.el);for(var c={},o=w,r="{marker",i="|}",n=o.indexOf(r);n>=0;){var e=o.indexOf(i),s=o.substr(n+r.length,e-n-r.length);s.indexOf("sub")>-1?c["marker"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:m[s],textOffset:[3,0]}:c["marker"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:m[s]},o=o.substr(e+1),n=o.indexOf("{marker")}this.el=new E({style:{rich:c,text:w,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(w){this._enterable=w},getSize:function(){var w=this.el.getBoundingRect();return[w.width,w.height]},moveTo:function(w,m){this.el&&this.el.attr("position",[w,m])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(w){this._show&&!(this._inContent&&this._enterable)&&(w?(this._hideDelay=w,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),w)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var w=this.getSize();return{width:w[0],height:w[1]}}};var A=C;H.exports=A},gwTy:function(H,B,d){},h54F:function(H,B,d){var O=d("ProS"),E=d("YXkt"),C=d("bYtY"),A=d("4NO4"),w=A.defaultEmphasis,m=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 s=this;function t(){return s._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),w(e,["edgeLabel"],["show"])},getInitialData:function(e,s){var t=e.edges||e.links||[],a=e.data||e.nodes||[],l=this;if(a&&t)return o(a,t,this,!0,u).data;function u(h,p){h.wrapMethod("getItemModel",function(S){var b=l._categoriesModels,_=S.getShallow("category"),I=b[_];return I&&(I.parentModel=S.parentModel,S.parentModel=I),S});var g=l.getModel("edgeLabel"),v=new m({label:g.option},g.parentModel,s),y=l.getModel("emphasis.edgeLabel"),x=new m({emphasis:{label:y.option}},y.parentModel,s);p.wrapMethod("getItemModel",function(S){return S.customizeGetParent(T),S});function T(S){return S=this.parsePath(S),S&&S[0]==="label"?v:S&&S[0]==="emphasis"&&S[1]==="label"?x:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,s,t){if(t==="edge"){var a=this.getData(),l=this.getDataParams(e,t),u=a.graph.getEdgeByIndex(e),h=a.getName(u.node1.dataIndex),p=a.getName(u.node2.dataIndex),g=[];return h!=null&&g.push(h),p!=null&&g.push(p),g=c(g.join(" > ")),l.value&&(g+=" : "+c(l.value)),g}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)}),s=new E(["value"],this);s.initData(e),this._categoriesData=s,this._categoriesModels=s.mapArray(function(t){return s.getItemModel(t,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return 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,B,d){var O=d("y+Vt"),E=d("T6xi"),C=O.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(w,m){E.buildPath(w,m,!0)}});H.exports=C},h8O9:function(H,B,d){var O=d("bYtY"),E=O.map,C=d("zM3Q"),A=d("7hqr"),w=A.isDimensionStacked;function m(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=E(r.dimensions,function(l){return o.mapDimension(l)}).slice(0,2),s=e.length,t=o.getCalculationInfo("stackResultDimension");w(o,e[0])&&(e[0]=t),w(o,e[1])&&(e[1]=t);function a(l,u){for(var h=l.end-l.start,p=n&&new Float32Array(h*s),g=l.start,v=0,y=[],x=[];g<l.end;g++){var T;if(s===1){var S=u.get(e[0],g);T=!isNaN(S)&&r.dataToPoint(S,null,x)}else{var S=y[0]=u.get(e[0],g),b=y[1]=u.get(e[1],g);T=!isNaN(S)&&!isNaN(b)&&r.dataToPoint(y,null,x)}n?(p[v++]=T?T[0]:NaN,p[v++]=T?T[1]:NaN):u.setItemLayout(g,T&&T.slice()||[NaN,NaN])}n&&u.setLayout("symbolPoints",p)}return s&&{progress:a}}}}H.exports=m},hD7B:function(H,B,d){var O=d("bYtY"),E=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function C(w){O.each(E,function(m){this[m]=O.bind(w[m],w)},this)}var A=C;H.exports=A},hFmY:function(H,B,d){var O=d("ProS"),E={type:"axisAreaSelect",event:"axisAreaSelected"};O.registerAction(E,function(C,A){A.eachComponent({mainType:"parallelAxis",query:C},function(w){w.axis.model.setActiveIntervals(C.intervals)})}),O.registerAction("parallelAxisExpand",function(C,A){A.eachComponent({mainType:"parallel",query:C},function(w){w.setAxisExpand(C)})})},hJvP:function(H,B,d){var O=d("2dDv"),E=d("IDmD");function C(A,w){var m=[];return A.eachComponent("parallel",function(f,c){var o=new O(f,A,w);o.name="parallel_"+c,o.resize(f,w),f.coordinateSystem=o,o.model=f,m.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}}),m}E.register("parallel",{create:C})},hM6l:function(H,B,d){var O=d("bYtY"),E=O.each,C=O.map,A=d("OELB"),w=A.linearMap,m=A.getPixelPrecision,f=A.round,c=d("4HMb"),o=c.createAxisTicks,r=c.createAxisLabels,i=c.calculateCategoryInterval,n=[0,1],e=function(l,u,h){this.dim=l,this.scale=u,this._extent=h||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(l){var u=this._extent,h=Math.min(u[0],u[1]),p=Math.max(u[0],u[1]);return l>=h&&l<=p},containData:function(l){return this.scale.contain(l)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(l){return m(l||this.scale.getExtent(),this._extent)},setExtent:function(l,u){var h=this._extent;h[0]=l,h[1]=u},dataToCoord:function(l,u){var h=this._extent,p=this.scale;return l=p.normalize(l),this.onBand&&p.type==="ordinal"&&(h=h.slice(),s(h,p.count())),w(l,n,h,u)},coordToData:function(l,u){var h=this._extent,p=this.scale;this.onBand&&p.type==="ordinal"&&(h=h.slice(),s(h,p.count()));var g=w(l,h,n,u);return this.scale.scale(g)},pointToData:function(l,u){},getTicksCoords:function(l){l=l||{};var u=l.tickModel||this.getTickModel(),h=o(this,u),p=h.ticks,g=C(p,function(y){return{coord:this.dataToCoord(y),tickValue:y}},this),v=u.get("alignWithLabel");return t(this,g,v,l.clamp),g},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var l=this.model.getModel("minorTick"),u=l.get("splitNumber");u>0&&u<100||(u=5);var h=this.scale.getMinorTicks(u),p=C(h,function(g){return C(g,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 l=this._extent,u=this.scale.getExtent(),h=u[1]-u[0]+(this.onBand?1:0);h===0&&(h=1);var p=Math.abs(l[1]-l[0]);return Math.abs(p)/h},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return i(this)}};function s(l,u){var h=l[1]-l[0],p=u,g=h/p/2;l[0]+=g,l[1]-=g}function t(l,u,h,p){var g=u.length;if(!l.onBand||h||!g)return;var v=l.getExtent(),y,x;if(g===1)u[0].coord=v[0],y=u[1]={coord:v[0]};else{var T=u[g-1].tickValue-u[0].tickValue,S=(u[g-1].coord-u[0].coord)/T;E(u,function(L){L.coord-=S/2});var b=l.scale.getExtent();x=1+b[1]-u[g-1].tickValue,y={coord:u[g-1].coord+S*x},u.push(y)}var _=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,B,d){var O=d("ProS"),E=d("bYtY"),C=d("Qxkt"),A=d("4NO4"),w=A.isNameSpecified,m=d("Kagy"),f=m.legend.selector,c={all:{type:"all",title:E.clone(f.all)},inverse:{type:"inverse",title:E.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"]),E.isArray(n)&&E.each(n,function(e,s){E.isString(e)&&(e={type:e}),n[s]=E.merge(e,c[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var i=this._data;if(i[0]&&this.get("selectedMode")==="single"){for(var n=!1,e=0;e<i.length;e++){var s=i[e].get("name");if(this.isSelected(s)){this.select(s),n=!0;break}}!n&&this.select(i[0].get("name"))}},_updateData:function(i){var n=[],e=[];i.eachRawSeries(function(a){var l=a.name;e.push(l);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&&w(a)&&n.push(a.name)}),this._availableNames=e;var s=this.get("data")||n,t=E.map(s,function(a){return(typeof a=="string"||typeof a=="number")&&(a={name:a}),new C(a,this,this.ecModel)},this);this._data=t},getData:function(){return this._data},select:function(i){var n=this.option.selected,e=this.get("selectedMode");if(e==="single"){var s=this._data;E.each(s,function(t){n[t.get("name")]=!1})}n[i]=!0},unSelect:function(i){this.get("selectedMode")!=="single"&&(this.option.selected[i]=!1)},toggleSelected:function(i){var n=this.option.selected;n.hasOwnProperty(i)||(n[i]=!0),this[n[i]?"unSelect":"select"](i)},allSelect:function(){var i=this._data,n=this.option.selected;E.each(i,function(e){n[e.get("name",!0)]=!0})},inverseSelect:function(){var i=this._data,n=this.option.selected;E.each(i,function(e){var s=e.get("name",!0);n.hasOwnProperty(s)||(n[s]=!0),n[s]=!n[s]})},isSelected:function(i){var n=this.option.selected;return!(n.hasOwnProperty(i)&&!n[i])&&E.indexOf(this._availableNames,i)>=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),r=o;H.exports=r},hOwI:function(H,B){var d=Math.log(2);function O(C,A,w,m,f,c){var o=m+"-"+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[w][i]}for(var n=m|1<<w,e=w+1;m&1<<e;)e++;for(var s=0,t=0,a=0;t<r;t++){var l=1<<t;l&f||(s+=(a%2?-1:1)*C[w][t]*O(C,A-1,e,n,f|l,c),a++)}return c[o]=s,s}function E(C,A){var w=[[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]]],m={},f=O(w,8,0,0,0,m);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(w,7,o===0?1:0,1<<o,1<<r,m)/f*A[o];return function(i,n,e){var s=n*c[6]+e*c[7]+1;i[0]=(n*c[0]+e*c[1]+c[2])/s,i[1]=(n*c[3]+e*c[4]+c[5])/s}}B.buildTransformer=E},hX1E:function(H,B){var d=Math.PI*2;function O(E){return E%=d,E<0&&(E+=d),E}B.normalizeRadian=O},hXwI:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function E(w,m){for(var f=0;f<m.length;f++){var c=m[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(w,c.key,c)}}function C(w,m,f){return m&&E(w.prototype,m),f&&E(w,f),w}var A=function(){function w(){O(this,w)}return C(w,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){if(i.rQwait("COPYRECT",4))return!1;var s=i.rQshift16(),t=i.rQshift16();return n.copyImage(s,t,f,c,o,r),!0}}]),w}();B.default=A},hi0g:function(H,B,d){var O=d("bYtY"),E=O.createHashMap,C=O.each,A=O.isString,w=O.defaults,m=O.extend,f=O.isObject,c=O.clone,o=d("4NO4"),r=o.normalizeToArray,i=d("D5nY"),n=i.guessOrdinal,e=i.BE_ORDINAL,s=d("7G+c"),t=d("L0Ub"),a=t.OTHER_DIMENSIONS,l=d("Vi4m");function u(v,y,x){s.isInstance(y)||(y=s.seriesDataToSource(y)),x=x||{},v=(v||[]).slice();for(var T=(x.dimsDef||[]).slice(),S=E(),b=E(),_=[],I=h(y,v,T,x.dimCount),L=0;L<I;L++){var N=T[L]=m({},f(T[L])?T[L]:{name:T[L]}),D=N.name,R=_[L]=new l;D!=null&&S.get(D)==null&&(R.name=R.displayName=D,S.set(D,L)),N.type!=null&&(R.type=N.type),N.displayName!=null&&(R.displayName=N.displayName)}var P=x.encodeDef;!P&&x.encodeDefaulter&&(P=x.encodeDefaulter(y,I)),P=E(P),P.each(function($,ue){if($=r($).slice(),$.length===1&&!A($[0])&&$[0]<0){P.set(ue,!1);return}var ne=P.set(ue,[]);C($,function(ge,Oe){A(ge)&&(ge=S.get(ge)),ge!=null&&ge<I&&(ne[Oe]=ge,U(_[ge],ue,Oe))})});var M=0;C(v,function($,ue){var ne,$,ge,Oe;if(A($))ne=$,$={};else{ne=$.name;var De=$.ordinalMeta;$.ordinalMeta=null,$=c($),$.ordinalMeta=De,ge=$.dimsDef,Oe=$.otherDims,$.name=$.coordDim=$.coordDimIndex=$.dimsDef=$.otherDims=null}var He=P.get(ne);if(He===!1)return;var He=r(He);if(!He.length)for(var pe=0;pe<(ge&&ge.length||1);pe++){for(;M<_.length&&_[M].coordDim!=null;)M++;M<_.length&&He.push(M++)}C(He,function(Ue,oe){var ee=_[Ue];if(U(w(ee,$),ne,oe),ee.name==null&&ge){var Xe=ge[oe];!f(Xe)&&(Xe={name:Xe}),ee.name=ee.displayName=Xe.name,ee.defaultTooltip=Xe.defaultTooltip}Oe&&w(ee.otherDims,Oe)})});function U($,ue,ne){a.get(ue)!=null?$.otherDims[ue]=ne:($.coordDim=ue,$.coordDimIndex=ne,b.set(ue,!0))}var F=x.generateCoord,j=x.generateCoordCount,W=j!=null;j=F?j||1:0;for(var V=F||"value",z=0;z<I;z++){var R=_[z]=_[z]||new l,Y=R.coordDim;Y==null&&(R.coordDim=p(V,b,W),R.coordDimIndex=0,(!F||j<=0)&&(R.isExtraCoord=!0),j--),R.name==null&&(R.name=p(R.coordDim,S)),R.type==null&&(n(y,z,R.name)===e.Must||R.isExtraCoord&&(R.otherDims.itemName!=null||R.otherDims.seriesName!=null))&&(R.type="ordinal")}return _}function h(v,y,x,T){var S=Math.max(v.dimensionsDetectCount||1,y.length,x.length,T||0);return C(y,function(b){var _=b.dimsDef;_&&(S=Math.max(S,_.length))}),S}function p(v,y,x){if(x||y.get(v)!=null){for(var T=0;y.get(v+T)!=null;)T++;v+=T}return y.set(v,!0),v}var g=u;H.exports=g},hkKa:function(H,B,d){"use strict";d.d(B,"a",function(){return w});var O=d("J4zp"),E=d.n(O),C=d("q1tI"),A=d.n(C);function w(){var m=C.useReducer(function(o){return o+1},0),f=E()(m,2),c=f[1];return c}},hw6D:function(H,B,d){var O=d("bYtY");function E(w){w.eachSeriesByType("radar",function(m){var f=m.getData(),c=[],o=m.coordinateSystem;if(!o)return;var r=o.getIndicatorAxes();O.each(r,function(i,n){f.each(f.mapDimension(r[n].dim),function(e,s){c[s]=c[s]||[];var t=o.dataToPoint(e,n);c[s][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(w){return!isNaN(w[0])&&!isNaN(w[1])}function A(w){return[w.cx,w.cy]}H.exports=E},hwYd:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("Nu4q")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="PictureTwoTone";var c=A.forwardRef(f);B.default=c},hydK:function(H,B){var d="http://www.w3.org/2000/svg";function O(E){return document.createElementNS(d,E)}B.createElement=O},hyiK:function(H,B){function d(O,E,C,A,w,m){if(m>E&&m>A||m<E&&m<A)return 0;if(A===E)return 0;var f=A<E?1:-1,c=(m-E)/(A-E);(c===1||c===0)&&(f=A<E?.5:-.5);var o=c*(C-O)+O;return o===w?Infinity:o>w?f:0}H.exports=d},i38C:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=C.createHashMap,w=C.retrieve,m=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),s=o[n];if(s)return s(i,e,e.axisMap,e.categoryAxisMap),e}var o={cartesian2d:function(i,n,e,s){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)&&(s.set("x",t),n.firstCategoryDimIndex=0),r(a)&&(s.set("y",a),n.firstCategoryDimIndex==null&(n.firstCategoryDimIndex=1))},singleAxis:function(i,n,e,s){var t=i.getReferringComponents("singleAxis")[0];n.coordSysDims=["single"],e.set("single",t),r(t)&&(s.set("single",t),n.firstCategoryDimIndex=0)},polar:function(i,n,e,s){var t=i.getReferringComponents("polar")[0],a=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");n.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",l),r(a)&&(s.set("radius",a),n.firstCategoryDimIndex=0),r(l)&&(s.set("angle",l),n.firstCategoryDimIndex==null&&(n.firstCategoryDimIndex=1))},geo:function(i,n,e,s){n.coordSysDims=["lng","lat"]},parallel:function(i,n,e,s){var t=i.ecModel,a=t.getComponent("parallel",i.get("parallelIndex")),l=n.coordSysDims=a.dimensions.slice();m(a.parallelAxisIndex,function(u,h){var p=t.getComponent("parallelAxis",u),g=l[h];e.set(g,p),r(p)&&n.firstCategoryDimIndex==null&&(s.set(g,p),n.firstCategoryDimIndex=h)})}};function r(i){return i.get("type")==="category"}B.getCoordSysInfoBySeries=c},i6bk:function(H,B,d){"use strict";d.d(B,"b",function(){return O}),d.d(B,"a",function(){return E});function O(C){return C!=null&&C===C.window}function E(C,A){if(typeof window=="undefined")return 0;var w=A?"scrollTop":"scrollLeft",m=0;return O(C)?m=C[A?"pageYOffset":"pageXOffset"]:C instanceof Document?m=C.documentElement[w]:C&&(m=C[w]),C&&!O(C)&&typeof m!="number"&&(m=(C.ownerDocument||C).documentElement[w]),m}},i8CU:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("Fm1+"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},iLNv:function(H,B){var d="\0__throttleOriginMethod",O="\0__throttleRate",E="\0__throttleType";function C(m,f,c){var o,r=0,i=0,n=null,e,s,t,a;f=f||0;function l(){i=new Date().getTime(),n=null,m.apply(s,t||[])}var u=function(){o=new Date().getTime(),s=this,t=arguments;var h=a||f,p=a||c;a=null,e=o-(p?r:i)-h,clearTimeout(n),p?n=setTimeout(l,h):e>=0?l():n=setTimeout(l,-e),r=o};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.debounceNextCall=function(h){a=h},u}function A(m,f,c,o){var r=m[f];if(!r)return;var i=r[d]||r,n=r[E],e=r[O];if(e!==c||n!==o){if(c==null||!o)return m[f]=i;r=m[f]=C(i,c,o==="debounce"),r[d]=i,r[E]=o,r[O]=c}return r}function w(m,f){var c=m[f];c&&c[d]&&(m[f]=c[d])}B.throttle=C,B.createOrUpdate=A,B.clear=w},iPDy:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=O.extendComponentView({type:"marker",init:function(){this.markerGroupMap=E.createHashMap()},render:function(A,w,m){var f=this.markerGroupMap;f.each(function(o){o.__keep=!1});var c=this.type+"Model";w.eachSeries(function(o){var r=o[c];r&&this.renderSeries(o,r,w,m)},this),f.each(function(o){!o.__keep&&this.group.remove(o.group)},this)},renderSeries:function(){}});H.exports=C},iQDF:function(H,B,d){"use strict";var O=d("ZTW2"),E=d.n(O),C=d("+BJd"),A=d("+L6B")},iRjW:function(H,B,d){var O=d("bYtY"),E=d("Yl7c"),C=E.parseClassType,A=0;function w(c){return[c||"",A++,Math.random().toFixed(5)].join("_")}function m(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,s,t,a){if(!e.length)return;var l=r(s),u=l.graph,h=l.noEntryList,p={};for(O.each(e,function(S){p[S]=!0});h.length;){var g=h.pop(),v=u[g],y=!!p[g];y&&(t.call(a,g,v.originalDeps.slice()),delete p[g]),O.each(v.successor,y?T:x)}O.each(p,function(){throw new Error("Circle dependency may exists")});function x(S){u[S].entryCount--,u[S].entryCount===0&&h.push(S)}function T(S){p[S]=!0,x(S)}};function r(e){var s={},t=[];return O.each(e,function(a){var l=i(s,a),u=l.originalDeps=o(a),h=n(u,e);l.entryCount=h.length,l.entryCount===0&&t.push(a),O.each(h,function(p){O.indexOf(l.predecessor,p)<0&&l.predecessor.push(p);var g=i(s,p);O.indexOf(g.successor,p)<0&&g.successor.push(a)})}),{graph:s,noEntryList:t}}function i(e,s){return e[s]||(e[s]={predecessor:[],successor:[]}),e[s]}function n(e,s){var t=[];return O.each(e,function(a){O.indexOf(s,a)>=0&&t.push(a)}),t}}B.getUID=w,B.enableSubTypeDefaulter=m,B.enableTopologicalTravel=f},iUHT:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function O(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function E(v,y){for(var x=0;x<y.length;x++){var T=y[x];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}function C(v,y,x){return y&&E(v.prototype,y),x&&E(v,x),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],w=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],m=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,m|m,f|m,o|n,o|r,f|n,m|r,f|m,m|i,o|i,o|n,m|i,c|n,o|r,c|m,m|r,m|n,c|i,c|i,f|i,f|i,o|m,o|m,c|n,f|r,c|r,c|r,f|r,m|m,m|n,f|n,c|m,f|m,o|n,m|r,o|m,o|i,c|m,c|m,m|i,o|r,f|m,f|i,c|r,m|i,m|r,c|n,f|n,o|n,f|r,o|m,c|n,c|r,m|n,f|n,o|i,m|n,c|i,c|i,m|m,f|r,f|i,m|m,o|r];f=1<<20,c=1<<31,o=f|c,r=1<<5,i=1<<15,n=r|i;var s=[o|n,c|i,m|i,f|n,f|m,m|r,o|r,c|n,c|r,o|n,o|i,c|m,c|i,f|m,m|r,o|r,f|i,f|r,c|n,m|m,c|m,m|i,f|n,o|m,f|r,c|r,m|m,f|i,m|n,o|i,o|m,m|n,m|m,f|n,o|r,f|m,c|n,o|m,o|i,m|i,o|m,c|i,m|r,o|n,f|n,m|r,m|i,c|m,m|n,o|i,f|m,c|r,f|r,c|n,c|r,f|r,f|i,m|m,c|i,m|n,c|m,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=[m|n,o|i,m|m,o|r,c|i,m|m,f|n,c|i,f|r,c|r,c|r,f|m,o|n,f|r,o|m,m|n,c|m,m|r,o|i,m|i,f|i,o|m,o|r,f|n,c|n,f|i,f|m,c|n,m|r,o|n,m|i,c|m,o|i,c|m,f|r,m|n,f|m,o|i,c|i,m|m,m|i,f|r,o|n,c|i,c|r,m|i,m|m,o|r,c|n,f|m,c|m,o|n,m|r,f|n,f|i,c|r,o|m,c|n,m|n,o|m,f|n,m|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,m|i,o|i,c|n,c|r,f|r,m|m,o|m,o|m,o|n,m|n,m|m,c|i,c|r,m|r,f|m,c|m,o|r,m|i,c|m,f|r,f|i,c|n,m|r,f|i,c|i,f|m,o|i,o|n,m|n,c|i,c|r,o|m,o|n,m|n,m|m,m|m,o|m,f|i,c|i,c|n,m|r,o|r,f|n,f|n,m|i,o|n,m|n,m|r,f|m,c|r,f|r,o|i,c|n,f|r,f|i,c|m,o|r,m|i,c|m,f|m,o|i];f=1<<25,c=1<<30,o=f|c,r=1<<8,i=1<<19,n=r|i;var l=[m|r,f|n,f|i,o|r,m|i,m|r,c|m,f|i,c|n,m|i,f|r,c|n,o|r,o|i,m|n,c|m,f|m,c|i,c|i,m|m,c|r,o|n,o|n,f|r,o|i,c|r,m|m,o|m,f|n,f|m,o|m,m|n,m|i,o|r,m|r,f|m,c|m,f|i,o|r,c|n,f|r,c|m,o|i,f|n,c|n,m|r,f|m,o|i,o|n,m|n,o|m,o|n,f|i,m|m,c|i,o|m,m|n,f|r,c|r,m|i,m|m,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|m,m|i,o|n,o|m,m|r,o|n,f|m,c|i,f|n,f|m,c|r,f|r,c|i,c|m,m|n,m|m,f|r,c|n,m|i,f|i,c|n,m|r,o|r,o|r,m|m,f|n,o|i,m|n,f|i,o|i,c|m,c|i,m|r,o|r,f|i,o|n,f|m,m|n,c|r,f|m,c|i,c|m,m|n,c|r,o|n,f|i,o|m,f|n,o|i,m|m,o|r,m|r,m|i,o|m,f|n,m|i,f|r,c|n,m|m,o|i,c|m,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|m,o|r,c|n,m|m,m|i,c|n,f|n,o|i,o|n,f|m,m|m,c|r,m|r,c|m,o|r,m|n,c|i,f|n,f|r,c|i,c|r,o|m,o|i,f|r,o|m,m|i,m|n,o|n,f|i,m|r,c|m,f|i,c|m,f|i,f|m,c|n,c|n,o|r,o|r,m|r,f|r,c|m,c|i,f|m,o|i,m|n,f|n,o|i,m|n,c|r,o|n,o|m,f|i,m|m,m|r,o|n,m|m,f|n,o|m,m|i,c|r,c|i,m|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,m|i,f|m,o|n,c|m,c|n,m|r,c|m,f|r,o|m,o|n,f|i,o|i,f|n,m|i,m|r,o|m,c|r,c|i,m|n,f|i,f|r,o|r,o|i,m|n,m|m,m|m,o|r,c|r,c|i,f|n,f|m,f|n,f|m,o|i,m|i,m|r,o|r,m|i,f|n,c|i,m|r,c|r,o|m,o|r,c|m,f|m,c|n,m|m,o|n,f|r,c|r,o|m,c|i,c|n,m|m,o|n,f|i,f|i,m|n,m|n,f|r,c|m,o|i],g=function(){function v(y){O(this,v),this.keys=[];for(var x=[],T=[],S=[],b=0,_=56;b<56;++b,_-=8){_+=_<-5?65:_<-3?31:_<-1?63:_===27?35:0;var I=_&7;x[b]=(y[_>>>3]&1<<I)!==0?1:0}for(var L=0;L<16;++L){var N=L<<1,D=N+1;S[N]=S[D]=0;for(var R=28;R<59;R+=28)for(var P=R-28;P<R;++P){var M=P+w[L];T[P]=M<R?x[M]:x[M-28]}for(var U=0;U<24;++U)T[A[U]]!==0&&(S[N]|=1<<23-U),T[A[U+24]]!==0&&(S[D]|=1<<23-U)}for(var F=0,j=0,W=0;F<16;++F){var V=S[j++],z=S[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(x){var T=x.slice(),S=0,b,_,I;b=T[S++]<<24|T[S++]<<16|T[S++]<<8|T[S++],_=T[S++]<<24|T[S++]<<16|T[S++]<<8|T[S++],I=(b>>>4^_)&252645135,_^=I,b^=I<<4,I=(b>>>16^_)&65535,_^=I,b^=I<<16,I=(_>>>2^b)&858993459,b^=I,_^=I<<2,I=(_>>>8^b)&16711935,b^=I,_^=I<<8,_=_<<1|_>>>31&1,I=(b^_)&2863311530,b^=I,_^=I,b=b<<1|b>>>31&1;for(var L=0,N=0;L<8;++L){I=_<<28|_>>>4,I^=this.keys[N++];var D=h[I&63];D|=l[I>>>8&63],D|=t[I>>>16&63],D|=e[I>>>24&63],I=_^this.keys[N++],D|=p[I&63],D|=u[I>>>8&63],D|=a[I>>>16&63],D|=s[I>>>24&63],b^=D,I=b<<28|b>>>4,I^=this.keys[N++],D=h[I&63],D|=l[I>>>8&63],D|=t[I>>>16&63],D|=e[I>>>24&63],I=b^this.keys[N++],D|=p[I&63],D|=u[I>>>8&63],D|=a[I>>>16&63],D|=s[I>>>24&63],_^=D}for(_=_<<31|_>>>1,I=(b^_)&2863311530,b^=I,_^=I,b=b<<31|b>>>1,I=(b>>>8^_)&16711935,_^=I,b^=I<<8,I=(b>>>2^_)&858993459,_^=I,b^=I<<2,I=(_>>>16^b)&65535,b^=I,_^=I<<16,I=(_>>>4^b)&252645135,b^=I,_^=I<<4,I=[_,b],S=0;S<8;S++)T[S]=(I[S>>>2]>>>8*(3-S%4))%256,T[S]<0&&(T[S]+=256);return T}},{key:"encrypt",value:function(x){return this.enc8(x.slice(0,8)).concat(this.enc8(x.slice(8,16)))}}]),v}();B.default=g},iXHM:function(H,B){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,B,d){var O=d("ItGF"),E=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function C(A){return O.browser.ie&&O.browser.version>=11?function(){var w=this.__clipPaths,m=this.style,f;if(w)for(var c=0;c<w.length;c++){var o=w[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<E.length;n++)E[n][2]=m[E[n][0]],m[E[n][0]]=E[n][1];f=!0;break}}if(A.apply(this,arguments),f)for(var n=0;n<E.length;n++)m[E[n][0]]=E[n][2]}:A}H.exports=C},iYpf:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("ZLWo")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="FolderOpenOutlined";var c=A.forwardRef(f);B.default=c},ieMj:function(H,B,d){var O=d("OELB"),E=d("7aKB"),C=d("4NgU"),A=d("lE7J"),w=O.round,m=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]),m.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 s=1e4;r[0]<i[0]&&(c?e.push(w(i[0]-o,n)):e.push(r[0]));for(var t=i[0];t<=i[1]&&!(e.push(t),t=w(t+o,n),t===e[e.length-1]);)if(e.length>s)return[];var a=e.length?e[e.length-1]:i[1];return r[1]>a&&(c?e.push(w(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],s=o[n-1],t=0,a=[],l=e-s,u=l/c;t<c-1;){var h=O.round(s+(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=w(c,r,!0),E.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]=w(Math.floor(o[0]/n)*n)),c.fixMax||(o[1]=w(Math.ceil(o[1]/n)*n))}});m.create=function(){return new m};var f=m;H.exports=f},j5sG:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.createSensor=void 0;var O=E(d("NohK"));function E(A){return A&&A.__esModule?A:{default:A}}var C=function(w){var m=void 0,f=[],c=(0,O.default)(function(){f.forEach(function(e){e(w)})}),o=function(){var s=new ResizeObserver(c);return s.observe(w),c(),s},r=function(s){m||(m=o()),f.indexOf(s)===-1&&f.push(s)},i=function(){m.disconnect(),f=[],m=void 0},n=function(s){var t=f.indexOf(s);t!==-1&&f.splice(t,1),f.length===0&&m&&i()};return{element:w,bind:r,destroy:i,unbind:n}};B.createSensor=C},jCoz:function(H,B,d){var O=d("bYtY"),E=d("4NgU"),C=d("OELB"),A=d("ieMj"),w=E.prototype,m=A.prototype,f=C.getPrecisionSafe,c=C.round,o=Math.floor,r=Math.ceil,i=Math.pow,n=Math.log,e=E.extend({type:"log",base:10,$constructor:function(){E.apply(this,arguments),this._originalScale=new A},getTicks:function(a){var l=this._originalScale,u=this._extent,h=l.getExtent();return O.map(m.getTicks.call(this,a),function(p){var g=C.round(i(this.base,p));return g=p===u[0]&&l.__fixMin?s(g,h[0]):g,g=p===u[1]&&l.__fixMax?s(g,h[1]):g,g},this)},getMinorTicks:m.getMinorTicks,getLabel:m.getLabel,scale:function(a){return a=w.scale.call(this,a),i(this.base,a)},setExtent:function(a,l){var u=this.base;a=n(a)/n(u),l=n(l)/n(u),m.setExtent.call(this,a,l)},getExtent:function(){var a=this.base,l=w.getExtent.call(this);l[0]=i(a,l[0]),l[1]=i(a,l[1]);var u=this._originalScale,h=u.getExtent();return u.__fixMin&&(l[0]=s(l[0],h[0])),u.__fixMax&&(l[1]=s(l[1],h[1])),l},unionExtent:function(a){this._originalScale.unionExtent(a);var l=this.base;a[0]=n(a[0])/n(l),a[1]=n(a[1])/n(l),w.unionExtent.call(this,a)},unionExtentFromData:function(a,l){this.unionExtent(a.getApproximateExtent(l))},niceTicks:function(a){a=a||10;var l=this._extent,u=l[1]-l[0];if(u===Infinity||u<=0)return;var 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 g=[C.round(r(l[0]/h)*h),C.round(o(l[1]/h)*h)];this._interval=h,this._niceExtent=g},niceExtent:function(a){m.niceExtent.call(this,a);var l=this._originalScale;l.__fixMin=a.fixMin,l.__fixMax=a.fixMax}});O.each(["contain","normalize"],function(a){e.prototype[a]=function(l){return l=n(l)/n(this.base),w[a].call(this,l)}}),e.create=function(){return new e};function s(a,l){return c(a,f(l))}var t=e;H.exports=t},jN4g:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="CloseCircleFilled";var f=B.a=E.forwardRef(m)},jO45:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="CheckCircleFilled";var f=B.a=E.forwardRef(m)},jO9C:function(H,B,d){(function(O,E,C){H.exports=B=E(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,B,d){var O=d("y+Vt"),E=O.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(A,w){var m=w.cx,f=w.cy,c=Math.max(w.r,0),o=w.startAngle,r=w.endAngle,i=w.clockwise,n=Math.cos(o),e=Math.sin(o);A.moveTo(n*c+m,e*c+f),A.arc(m,f,c,o,r,!i)}});H.exports=E},je13:function(H,B,d){var O=d("5nXd"),E=d("gRFJ"),C=[d("uQRt")];H.exports=O.createStore(E,C)},jett:function(H,B,d){var O=d("ProS");d("VSLf"),d("oBaM"),d("FGaS");var E=d("mOdp"),C=d("f5Yq"),A=d("hw6D"),w=d("0/Rx"),m=d("eJH7");O.registerVisual(E("radar")),O.registerVisual(C("radar","circle")),O.registerLayout(A),O.registerProcessor(w("radar")),O.registerPreprocessor(m)},jhfD:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="ArrowLeftOutlined";var f=B.a=E.forwardRef(m)},jkPA:function(H,B,d){var O=d("bYtY"),E=O.createHashMap,C=O.isObject,A=O.map;function w(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this._map}w.createByAxisModel=function(r){var i=r.option,n=i.data,e=n&&A(n,c);return new w({categories:e,needCollect:!e,deduplication:i.dedplication!==!1})};var m=w.prototype;m.getOrdinal=function(r){return f(this).get(r)},m.parseAndCollect=function(r){var i,n=this._needCollect;if(typeof r!="string"&&!n)return r;if(n&&!this._deduplication)return i=this.categories.length,this.categories[i]=r,i;var 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=E(r.categories))}function c(r){return C(r)&&r.value!=null?r.value:r+""}var o=w;H.exports=o},jndi:function(H,B,d){var O=d("bYtY"),E=d("Qe9p"),C=d("YXkt"),A=d("OELB"),w=d("IwbS"),m=d("kj2x"),f=d("iPDy"),c=function(t,a,l,u){var h=m.dataTransform(t,u[0]),p=m.dataTransform(t,u[1]),g=O.retrieve,v=h.coord,y=p.coord;v[0]=g(v[0],-Infinity),v[1]=g(v[1],-Infinity),y[0]=g(y[0],Infinity),y[1]=g(y[1],Infinity);var x=O.mergeAll([{},h,p]);return x.coord=[h.coord,p.coord],x.x0=h.x,x.y0=h.y,x.x1=p.x,x.y1=p.y,x};function o(t){return!isNaN(t)&&!isFinite(t)}function r(t,a,l,u){var h=1-t;return o(a[h])&&o(l[h])}function i(t,a){var l=a.coord[0],u=a.coord[1];return t.type==="cartesian2d"&&(l&&u&&(r(1,l,u,t)||r(0,l,u,t)))?!0:m.dataFilter(t,{coord:l,x:a.x0,y:a.y0})||m.dataFilter(t,{coord:u,x:a.x1,y:a.y1})}function n(t,a,l,u,h){var p=u.coordinateSystem,g=t.getItemModel(a),v,y=A.parsePercent(g.get(l[0]),h.getWidth()),x=A.parsePercent(g.get(l[1]),h.getHeight());if(!isNaN(y)&&!isNaN(x))v=[y,x];else{if(u.getMarkerPosition)v=u.getMarkerPosition(t.getValues(l,a));else{var T=t.get(l[0],a),S=t.get(l[1],a),b=[T,S];p.clampData&&p.clampData(b,b),v=p.dataToPoint(b,!0)}if(p.type==="cartesian2d"){var _=p.getAxis("x"),I=p.getAxis("y"),T=t.get(l[0],a),S=t.get(l[1],a);o(T)?v[0]=_.toGlobalCoord(_.getExtent()[l[0]==="x0"?0:1]):o(S)&&(v[1]=I.toGlobalCoord(I.getExtent()[l[1]==="y0"?0:1]))}isNaN(y)||(v[0]=y),isNaN(x)||(v[1]=x)}return v}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];f.extend({type:"markArea",updateTransform:function(t,a,l){a.eachSeries(function(u){var h=u.markAreaModel;if(h){var p=h.getData();p.each(function(g){var v=O.map(e,function(x){return n(p,g,x,u,l)});p.setItemLayout(g,v);var y=p.getItemGraphicEl(g);y.setShape("points",v)})}},this)},renderSeries:function(t,a,l,u){var h=t.coordinateSystem,p=t.id,g=t.getData(),v=this.markerGroupMap,y=v.get(p)||v.set(p,{group:new w.Group});this.group.add(y.group),y.__keep=!0;var x=s(h,t,a);a.setData(x),x.each(function(T){x.setItemLayout(T,O.map(e,function(S){return n(x,T,S,t,u)})),x.setItemVisual(T,{color:g.getVisual("color")})}),x.diff(y.__data).add(function(T){var S=new w.Polygon({shape:{points:x.getItemLayout(T)}});x.setItemGraphicEl(T,S),y.group.add(S)}).update(function(T,S){var b=y.__data.getItemGraphicEl(S);w.updateProps(b,{shape:{points:x.getItemLayout(T)}},a,T),y.group.add(b),x.setItemGraphicEl(T,b)}).remove(function(T){var S=y.__data.getItemGraphicEl(T);y.group.remove(S)}).execute(),x.eachItemGraphicEl(function(T,S){var b=x.getItemModel(S),_=b.getModel("label"),I=b.getModel("emphasis.label"),L=x.getItemVisual(S,"color");T.useStyle(O.defaults(b.getModel("itemStyle").getItemStyle(),{fill:E.modifyAlpha(L,.4),stroke:L})),T.hoverStyle=b.getModel("emphasis.itemStyle").getItemStyle(),w.setLabelStyle(T.style,T.hoverStyle,_,I,{labelFetcher:a,labelDataIndex:S,defaultText:x.getName(S)||"",isRectText:!0,autoColor:L}),w.setHoverStyle(T,{}),T.dataModel=a}),y.__data=x,y.group.silent=a.get("silent")||t.get("silent")}});function s(t,a,l){var u,h,p=["x0","y0","x1","y1"];t?(u=O.map(t&&t.dimensions,function(y){var x=a.getData(),T=x.getDimensionInfo(x.mapDimension(y))||{};return O.defaults({name:y},T)}),h=new C(O.map(p,function(y,x){return{name:y,type:u[x%2].type}}),l)):(u=[{name:"value",type:"float"}],h=new C(u,l));var g=O.map(l.get("data"),O.curry(c,a,t,l));t&&(g=O.filter(g,O.curry(i,t)));var v=t?function(y,x,T,S){return y.coord[Math.floor(S/2)][S%2]}:function(y){return y.value};return h.initData(g,null,v),h.hasItemOption=!0,h}},"jsU+":function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("IUWy"),A=O.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){A.superApply(this,"optionUpdated",arguments),E.each(this.option.feature,function(m,f){var c=C.get(f);c&&E.merge(m,c.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),w=A;H.exports=w},jtI2:function(H,B,d){d("SMc4");var O=d("bLfw"),E=O.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});H.exports=E},juDX:function(H,B,d){d("P47w");var O=d("aX58"),E=O.registerPainter,C=d("3CBa");E("svg",C)},k5C7:function(H,B,d){d("0JAE"),d("g7p0"),d("7mYs")},k9D9:function(H,B){var d="original",O="arrayRows",E="objectRows",C="keyedColumns",A="unknown",w="typedArray",m="column",f="row";B.SOURCE_FORMAT_ORIGINAL=d,B.SOURCE_FORMAT_ARRAY_ROWS=O,B.SOURCE_FORMAT_OBJECT_ROWS=E,B.SOURCE_FORMAT_KEYED_COLUMNS=C,B.SOURCE_FORMAT_UNKNOWN=A,B.SOURCE_FORMAT_TYPED_ARRAY=w,B.SERIES_LAYOUT_BY_COLUMN=m,B.SERIES_LAYOUT_BY_ROW=f},kDyi:function(H,B){function d(O){var E=O.findComponents({mainType:"legend"});E&&E.length&&O.filterSeries(function(C){for(var A=0;A<E.length;A++)if(!E[A].isSelected(C.name))return!1;return!0})}H.exports=d},kGiB:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("ABKa"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},kMLO:function(H,B,d){var O=d("XxSj"),E=d("Qe9p"),C=d("bYtY"),A=C.isArray,w="itemStyle",m={seriesType:"treemap",reset:function(t,a,l,u){var h=t.getData().tree,p=h.root,g=t.getModel(w);if(p.isRemoved())return;var v=C.map(h.levelModels,function(y){return y?y.get(w):null});f(p,{},v,g,t.getViewRoot().getAncestors(),t)}};function f(t,a,l,u,h,p){var g=t.getModel(),v=t.getLayout();if(!v||v.invisible||!v.isInView)return;var y=t.getModel(w),x=l[t.depth],T=c(y,a,x,u),S=y.get("borderColor"),b=y.get("borderColorSaturation"),_;b!=null&&(_=o(T,t),S=r(b,_)),t.setVisual("borderColor",S);var I=t.viewChildren;if(!I||!I.length)_=o(T,t),t.setVisual("color",_);else{var L=n(t,g,v,y,T,I);C.each(I,function(N,D){if(N.depth>=h.length||N===h[N.depth]){var R=s(g,T,N,D,L,p);f(N,R,l,u,h,p)}})}}function c(t,a,l,u){var h=C.extend({},a);return C.each(["color","colorAlpha","colorSaturation"],function(p){var g=t.get(p,!0);g==null&&l&&(g=l[p]),g==null&&(g=a[p]),g==null&&(g=u.get(p)),g!=null&&(h[p]=g)}),h}function o(t){var a=i(t,"color");if(a){var l=i(t,"colorAlpha"),u=i(t,"colorSaturation");return u&&(a=E.modifyHSL(a,null,null,u)),l&&(a=E.modifyAlpha(a,l)),a}}function r(t,a){return a!=null?E.modifyHSL(a,null,null,t):null}function i(t,a){var l=t[a];if(l!=null&&l!=="none")return l}function n(t,a,l,u,h,p){if(!p||!p.length)return;var g=e(a,"color")||h.color!=null&&h.color!=="none"&&(e(a,"colorAlpha")||e(a,"colorSaturation"));if(!g)return;var v=a.get("visualMin"),y=a.get("visualMax"),x=l.dataExtent.slice();v!=null&&v<x[0]&&(x[0]=v),y!=null&&y>x[1]&&(x[1]=y);var T=a.get("colorMappingBy"),S={type:g.name,dataExtent:x,visual:g.range};S.type==="color"&&(T==="index"||T==="id")?(S.mappingMethod="category",S.loop=!0):S.mappingMethod="linear";var b=new O(S);return b.__drColorMappingBy=T,b}function e(t,a){var l=t.get(a);return A(l)&&l.length?{name:a,range:l}:null}function s(t,a,l,u,h,p){var g=C.extend({},a);if(h){var v=h.type,y=v==="color"&&h.__drColorMappingBy,x=y==="index"?u:y==="id"?p.mapIdToIndex(l.getId()):l.getValue(t.get("visualDimension"));g[v]=h.mapValueToVisual(x)}return g}H.exports=m},"kVK+":function(H,B){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */B.read=function(d,O,E,C,A){var w,m,f=A*8-C-1,c=(1<<f)-1,o=c>>1,r=-7,i=E?A-1:0,n=E?-1:1,e=d[O+i];for(i+=n,w=e&(1<<-r)-1,e>>=-r,r+=f;r>0;w=w*256+d[O+i],i+=n,r-=8);for(m=w&(1<<-r)-1,w>>=-r,r+=C;r>0;m=m*256+d[O+i],i+=n,r-=8);if(w===0)w=1-o;else{if(w===c)return m?NaN:(e?-1:1)*Infinity;m=m+Math.pow(2,C),w=w-o}return(e?-1:1)*m*Math.pow(2,w-C)},B.write=function(d,O,E,C,A,w){var m,f,c,o=w*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:w-1,s=C?1:-1,t=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(f=isNaN(O)?1:0,m=r):(m=Math.floor(Math.log(O)/Math.LN2),O*(c=Math.pow(2,-m))<1&&(m--,c*=2),m+i>=1?O+=n/c:O+=n*Math.pow(2,1-i),O*c>=2&&(m++,c/=2),m+i>=r?(f=0,m=r):m+i>=1?(f=(O*c-1)*Math.pow(2,A),m=m+i):(f=O*Math.pow(2,i-1)*Math.pow(2,A),m=0));A>=8;d[E+e]=f&255,e+=s,f/=256,A-=8);for(m=m<<A|f,o+=A;o>0;d[E+e]=m&255,e+=s,m/=256,o-=8);d[E+e-s]|=t*128}},kj2x:function(H,B,d){var O=d("bYtY"),E=d("OELB"),C=d("7hqr"),A=C.isDimensionStacked,w=O.indexOf;function m(l){return!(isNaN(parseFloat(l.x))&&isNaN(parseFloat(l.y)))}function f(l){return!isNaN(parseFloat(l.x))&&!isNaN(parseFloat(l.y))}function c(l,u,h,p,g,v){var y=[],x=A(u,p),T=x?u.getCalculationInfo("stackResultDimension"):p,S=a(u,T,l),b=u.indicesOfNearest(T,S)[0];y[g]=u.get(h,b),y[v]=u.get(T,b);var _=u.get(p,b),I=E.getPrecision(u.get(p,b));return I=Math.min(I,20),I>=0&&(y[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(l,u){var h=l.getData(),p=l.coordinateSystem;if(u&&!f(u)&&!O.isArray(u.coord)&&p){var g=p.dimensions,v=n(u,h,p,l);if(u=O.clone(u),u.type&&r[u.type]&&v.baseAxis&&v.valueAxis){var y=w(g,v.baseAxis.dim),x=w(g,v.valueAxis.dim),T=r[u.type](h,v.baseDataDim,v.valueDataDim,y,x);u.coord=T[0],u.value=T[1]}else{for(var S=[u.xAxis!=null?u.xAxis:u.radiusAxis,u.yAxis!=null?u.yAxis:u.angleAxis],b=0;b<2;b++)r[S[b]]&&(S[b]=a(h,h.mapDimension(g[b]),S[b]));u.coord=S}}return u}function n(l,u,h,p){var g={};return l.valueIndex!=null||l.valueDim!=null?(g.valueDataDim=l.valueIndex!=null?u.getDimension(l.valueIndex):l.valueDim,g.valueAxis=h.getAxis(e(p,g.valueDataDim)),g.baseAxis=h.getOtherAxis(g.valueAxis),g.baseDataDim=u.mapDimension(g.baseAxis.dim)):(g.baseAxis=p.getBaseAxis(),g.valueAxis=h.getOtherAxis(g.baseAxis),g.baseDataDim=u.mapDimension(g.baseAxis.dim),g.valueDataDim=u.mapDimension(g.valueAxis.dim)),g}function e(l,u){var h=l.getData(),p=h.dimensions;u=h.getDimension(u);for(var g=0;g<p.length;g++){var v=h.getDimensionInfo(p[g]);if(v.name===u)return v.coordDim}}function s(l,u){return l&&l.containData&&u.coord&&!m(u)?l.containData(u.coord):!0}function t(l,u,h,p){return p<2?l.coord&&l.coord[p]:l.value}function a(l,u,h){if(h==="average"){var p=0,g=0;return l.each(u,function(v,y){isNaN(v)||(p+=v,g++)}),p/g}else return h==="median"?l.getMedian(u):l.getDataExtent(u,!0)[h==="max"?1:0]}B.dataTransform=i,B.getAxisInfo=n,B.dataFilter=s,B.dimValueGetter=t,B.numCalculate=a},knOB:function(H,B,d){var O=d("bYtY"),E=d("hM6l");function C(w,m){E.call(this,"radius",w,m),this.type="category"}C.prototype={constructor:C,pointToData:function(w,m){return this.polar.pointToData(w,m)[this.dim==="radius"?0:1]},dataToRadius:E.prototype.dataToCoord,radiusToData:E.prototype.coordToData},O.inherits(C,E);var A=C;H.exports=A},ko1b:function(H,B,d){var O=d("bYtY"),E=d("T4UG"),C=d("Bsck"),A=d("Qxkt"),w=d("7aKB"),m=w.encodeHTML,f=w.addCommas,c=d("VaxA"),o=c.wrapTreePathInfo,r=E.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,s){var t={name:e.name,children:e.data};i(t);var a=e.levels||[];a=e.levels=n(a,s);var l=O.map(a||[],function(p){return new A(p,this,s)},this),u=C.createTree(t,this,null,h);function h(p){p.wrapMethod("getItemModel",function(g,v){var y=u.getNodeByDataIndex(v),x=l[y.depth];return x&&(g.parentModel=x),g})}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var s=this.getData(),t=this.getRawValue(e),a=O.isArray(t)?f(t[0]):f(t),l=s.getName(e);return m(l+": "+a)},getDataParams:function(e){var s=E.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(e);return s.treePathInfo=o(t,this),s},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},O.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var s=this._idIndexMap;s||(s=this._idIndexMap=O.createHashMap(),this._idIndexMapCount=0);var t=s.get(e);return t==null&&s.set(e,t=this._idIndexMapCount++),t},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var s=this.getRawData().tree.root;(!e||e!==s&&!s.contains(e))&&(this._viewRoot=s)}});function i(e){var s=0;O.each(e.children,function(a){i(a);var l=a.value;O.isArray(l)&&(l=l[0]),s+=l});var t=e.value;O.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=s),t<0&&(t=0),O.isArray(e.value)?e.value[0]=t:e.value=t}function n(e,s){var t=s.get("color");if(!t)return;e=e||[];var a;if(O.each(e,function(u){var h=new A(u),p=h.get("color");(h.get("itemStyle.color")||p&&p!=="none")&&(a=!0)}),!a){var l=e[0]||(e[0]={});l.color=t.slice()}return e}H.exports=r},kzFp:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var O=B.pick=function(C,A){var w={};return A.forEach(function(m){w[m]=C[m]}),w}},kzvK:function(H,B,d){var O=d("sS/r"),E=O.extend({type:"timeline"});H.exports=E},"l+S1":function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="SearchOutlined";var f=B.a=E.forwardRef(m)},lE7J:function(H,B,d){var O=d("OELB"),E=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 s=i.intervalPrecision=A(e),t=i.niceTickExtent=[E(Math.ceil(f[0]/e)*e,s),E(Math.floor(f[1]/e)*e,s)];return m(t,f),i}function A(f){return O.getPrecisionSafe(f)+2}function w(f,c,o){f[c]=Math.max(Math.min(f[c],o[1]),o[0])}function m(f,c){!isFinite(f[0])&&(f[0]=c[0]),!isFinite(f[1])&&(f[1]=c[1]),w(f,0,c),w(f,1,c),f[0]>f[1]&&(f[0]=f[1])}B.intervalScaleNiceTicks=C,B.getIntervalPrecision=A,B.fixExtent=m},lELe:function(H,B,d){var O=d("bYtY");function E(C){var A=[];O.each(C.series,function(w){w&&w.type==="map"&&(A.push(w),w.map=w.map||w.mapType,O.defaults(w,w.mapLocation))})}H.exports=E},lLGD:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("nVfU"),A=C.layout,w=C.largeLayout;d("Wqna"),d("F7hV"),d("Z8zF"),d("Ae16"),O.registerLayout(O.PRIORITY.VISUAL.LAYOUT,E.curry(A,"bar")),O.registerLayout(O.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,w),O.registerVisual({seriesType:"bar",reset:function(m){m.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(H,B,d){"use strict";function O(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Rt){return typeof Rt}:O=function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},O(q)}Object.defineProperty(B,"__esModule",{value:!0}),B.deflateInit=Be,B.deflateInit2=Dt,B.deflateReset=Ct,B.deflateResetKeep=Ot,B.deflateSetHeader=Tt,B.deflate=ie,B.deflateEnd=X,B.deflateSetDictionary=Fe,B.deflateInfo=B.Z_DEFLATED=B.Z_UNKNOWN=B.Z_DEFAULT_STRATEGY=B.Z_FIXED=B.Z_RLE=B.Z_HUFFMAN_ONLY=B.Z_FILTERED=B.Z_DEFAULT_COMPRESSION=B.Z_BUF_ERROR=B.Z_DATA_ERROR=B.Z_STREAM_ERROR=B.Z_STREAM_END=B.Z_OK=B.Z_BLOCK=B.Z_FINISH=B.Z_FULL_FLUSH=B.Z_PARTIAL_FLUSH=B.Z_NO_FLUSH=void 0;var E=o(d("6BzB")),C=o(d("c5fP")),A=f(d("xlC8")),w=f(d("QV2g")),m=f(d("xSIq"));function f(q){return q&&q.__esModule?q:{default:q}}function c(){if(typeof WeakMap!="function")return null;var q=new WeakMap;return c=function(){return q},q}function o(q){if(q&&q.__esModule)return q;if(q===null||O(q)!=="object"&&typeof q!="function")return{default:q};var ht=c();if(ht&&ht.has(q))return ht.get(q);var Rt={},ut=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Xt in q)if(Object.prototype.hasOwnProperty.call(q,Xt)){var or=ut?Object.getOwnPropertyDescriptor(q,Xt):null;or&&(or.get||or.set)?Object.defineProperty(Rt,Xt,or):Rt[Xt]=q[Xt]}return Rt.default=q,ht&&ht.set(q,Rt),Rt}var r=0;B.Z_NO_FLUSH=r;var i=1;B.Z_PARTIAL_FLUSH=i;var n=3;B.Z_FULL_FLUSH=n;var e=4;B.Z_FINISH=e;var s=5;B.Z_BLOCK=s;var t=0;B.Z_OK=t;var a=1;B.Z_STREAM_END=a;var l=-2;B.Z_STREAM_ERROR=l;var u=-3;B.Z_DATA_ERROR=u;var h=-5;B.Z_BUF_ERROR=h;var p=-1;B.Z_DEFAULT_COMPRESSION=p;var g=1;B.Z_FILTERED=g;var v=2;B.Z_HUFFMAN_ONLY=v;var y=3;B.Z_RLE=y;var x=4;B.Z_FIXED=x;var T=0;B.Z_DEFAULT_STRATEGY=T;var S=2;B.Z_UNKNOWN=S;var b=8;B.Z_DEFLATED=b;var _=9,I=15,L=8,N=29,D=256,R=D+1+N,P=30,M=19,U=2*R+1,F=15,j=3,W=258,V=W+j+1,z=32,Y=42,$=69,ue=73,ne=91,ge=103,Oe=113,De=666,He=1,pe=2,Ue=3,oe=4,ee=3;function Xe(q,ht){return q.msg=m.default[ht],ht}function se(q){return(q<<1)-(q>4?9:0)}function Q(q){for(var ht=q.length;--ht>=0;)q[ht]=0}function G(q){var ht=q.state,Rt=ht.pending;if(Rt>q.avail_out&&(Rt=q.avail_out),Rt===0)return;E.arraySet(q.output,ht.pending_buf,ht.pending_out,Rt,q.next_out),q.next_out+=Rt,ht.pending_out+=Rt,q.total_out+=Rt,q.avail_out-=Rt,ht.pending-=Rt,ht.pending===0&&(ht.pending_out=0)}function J(q,ht){C._tr_flush_block(q,q.block_start>=0?q.block_start:-1,q.strstart-q.block_start,ht),q.block_start=q.strstart,G(q.strm)}function ve(q,ht){q.pending_buf[q.pending++]=ht}function de(q,ht){q.pending_buf[q.pending++]=ht>>>8&255,q.pending_buf[q.pending++]=ht&255}function Ce(q,ht,Rt,ut){var Xt=q.avail_in;return Xt>ut&&(Xt=ut),Xt===0?0:(q.avail_in-=Xt,E.arraySet(ht,q.input,q.next_in,Xt,Rt),q.state.wrap===1?q.adler=(0,A.default)(q.adler,ht,Xt,Rt):q.state.wrap===2&&(q.adler=(0,w.default)(q.adler,ht,Xt,Rt)),q.next_in+=Xt,q.total_in+=Xt,Xt)}function Ee(q,ht){var Rt=q.max_chain_length,ut=q.strstart,Xt,or,Zr=q.prev_length,ar=q.nice_match,dr=q.strstart>q.w_size-V?q.strstart-(q.w_size-V):0,er=q.window,Ht=q.w_mask,dt=q.prev,Hr=q.strstart+W,dn=er[ut+Zr-1],Nn=er[ut+Zr];q.prev_length>=q.good_match&&(Rt>>=2),ar>q.lookahead&&(ar=q.lookahead);do{if(Xt=ht,er[Xt+Zr]!==Nn||er[Xt+Zr-1]!==dn||er[Xt]!==er[ut]||er[++Xt]!==er[ut+1])continue;ut+=2,Xt++;do;while(er[++ut]===er[++Xt]&&er[++ut]===er[++Xt]&&er[++ut]===er[++Xt]&&er[++ut]===er[++Xt]&&er[++ut]===er[++Xt]&&er[++ut]===er[++Xt]&&er[++ut]===er[++Xt]&&er[++ut]===er[++Xt]&&ut<Hr);if(or=W-(Hr-ut),ut=Hr-W,or>Zr){if(q.match_start=ht,Zr=or,or>=ar)break;dn=er[ut+Zr-1],Nn=er[ut+Zr]}}while((ht=dt[ht&Ht])>dr&&--Rt!==0);return Zr<=q.lookahead?Zr:q.lookahead}function le(q){var ht=q.w_size,Rt,ut,Xt,or,Zr;do{if(or=q.window_size-q.lookahead-q.strstart,q.strstart>=ht+(ht-V)){E.arraySet(q.window,q.window,ht,ht,0),q.match_start-=ht,q.strstart-=ht,q.block_start-=ht,ut=q.hash_size,Rt=ut;do Xt=q.head[--Rt],q.head[Rt]=Xt>=ht?Xt-ht:0;while(--ut);ut=ht,Rt=ut;do Xt=q.prev[--Rt],q.prev[Rt]=Xt>=ht?Xt-ht:0;while(--ut);or+=ht}if(q.strm.avail_in===0)break;if(ut=Ce(q.strm,q.window,q.strstart+q.lookahead,or),q.lookahead+=ut,q.lookahead+q.insert>=j)for(Zr=q.strstart-q.insert,q.ins_h=q.window[Zr],q.ins_h=(q.ins_h<<q.hash_shift^q.window[Zr+1])&q.hash_mask;q.insert&&!(q.ins_h=(q.ins_h<<q.hash_shift^q.window[Zr+j-1])&q.hash_mask,q.prev[Zr&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=Zr,Zr++,q.insert--,q.lookahead+q.insert<j););}while(q.lookahead<V&&q.strm.avail_in!==0)}function fe(q,ht){var Rt=65535;for(Rt>q.pending_buf_size-5&&(Rt=q.pending_buf_size-5);;){if(q.lookahead<=1){if(le(q),q.lookahead===0&&ht===r)return He;if(q.lookahead===0)break}q.strstart+=q.lookahead,q.lookahead=0;var ut=q.block_start+Rt;if((q.strstart===0||q.strstart>=ut)&&(q.lookahead=q.strstart-ut,q.strstart=ut,J(q,!1),q.strm.avail_out===0))return He;if(q.strstart-q.block_start>=q.w_size-V&&(J(q,!1),q.strm.avail_out===0))return He}return q.insert=0,ht===e?(J(q,!0),q.strm.avail_out===0?Ue:oe):(q.strstart>q.block_start&&(J(q,!1),q.strm.avail_out===0),He)}function xe(q,ht){for(var Rt,ut;;){if(q.lookahead<V){if(le(q),q.lookahead<V&&ht===r)return He;if(q.lookahead===0)break}if(Rt=0,q.lookahead>=j&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+j-1])&q.hash_mask,Rt=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart),Rt!==0&&q.strstart-Rt<=q.w_size-V&&(q.match_length=Ee(q,Rt)),q.match_length>=j)if(ut=C._tr_tally(q,q.strstart-q.match_start,q.match_length-j),q.lookahead-=q.match_length,q.match_length<=q.max_lazy_match&&q.lookahead>=j){q.match_length--;do q.strstart++,q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+j-1])&q.hash_mask,Rt=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart;while(--q.match_length!==0);q.strstart++}else q.strstart+=q.match_length,q.match_length=0,q.ins_h=q.window[q.strstart],q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+1])&q.hash_mask;else ut=C._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++;if(ut&&(J(q,!1),q.strm.avail_out===0))return He}return q.insert=q.strstart<j-1?q.strstart:j-1,ht===e?(J(q,!0),q.strm.avail_out===0?Ue:oe):q.last_lit&&(J(q,!1),q.strm.avail_out===0)?He:pe}function Qe(q,ht){for(var Rt,ut,Xt;;){if(q.lookahead<V){if(le(q),q.lookahead<V&&ht===r)return He;if(q.lookahead===0)break}if(Rt=0,q.lookahead>=j&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+j-1])&q.hash_mask,Rt=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart),q.prev_length=q.match_length,q.prev_match=q.match_start,q.match_length=j-1,Rt!==0&&q.prev_length<q.max_lazy_match&&q.strstart-Rt<=q.w_size-V&&(q.match_length=Ee(q,Rt),q.match_length<=5&&(q.strategy===g||q.match_length===j&&q.strstart-q.match_start>4096)&&(q.match_length=j-1)),q.prev_length>=j&&q.match_length<=q.prev_length){Xt=q.strstart+q.lookahead-j,ut=C._tr_tally(q,q.strstart-1-q.prev_match,q.prev_length-j),q.lookahead-=q.prev_length-1,q.prev_length-=2;do++q.strstart<=Xt&&(q.ins_h=(q.ins_h<<q.hash_shift^q.window[q.strstart+j-1])&q.hash_mask,Rt=q.prev[q.strstart&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=q.strstart);while(--q.prev_length!==0);if(q.match_available=0,q.match_length=j-1,q.strstart++,ut&&(J(q,!1),q.strm.avail_out===0))return He}else if(q.match_available){if(ut=C._tr_tally(q,0,q.window[q.strstart-1]),ut&&J(q,!1),q.strstart++,q.lookahead--,q.strm.avail_out===0)return He}else q.match_available=1,q.strstart++,q.lookahead--}return q.match_available&&(ut=C._tr_tally(q,0,q.window[q.strstart-1]),q.match_available=0),q.insert=q.strstart<j-1?q.strstart:j-1,ht===e?(J(q,!0),q.strm.avail_out===0?Ue:oe):q.last_lit&&(J(q,!1),q.strm.avail_out===0)?He:pe}function ot(q,ht){for(var Rt,ut,Xt,or,Zr=q.window;;){if(q.lookahead<=W){if(le(q),q.lookahead<=W&&ht===r)return He;if(q.lookahead===0)break}if(q.match_length=0,q.lookahead>=j&&q.strstart>0&&(Xt=q.strstart-1,ut=Zr[Xt],ut===Zr[++Xt]&&ut===Zr[++Xt]&&ut===Zr[++Xt])){or=q.strstart+W;do;while(ut===Zr[++Xt]&&ut===Zr[++Xt]&&ut===Zr[++Xt]&&ut===Zr[++Xt]&&ut===Zr[++Xt]&&ut===Zr[++Xt]&&ut===Zr[++Xt]&&ut===Zr[++Xt]&&Xt<or);q.match_length=W-(or-Xt),q.match_length>q.lookahead&&(q.match_length=q.lookahead)}if(q.match_length>=j?(Rt=C._tr_tally(q,1,q.match_length-j),q.lookahead-=q.match_length,q.strstart+=q.match_length,q.match_length=0):(Rt=C._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++),Rt&&(J(q,!1),q.strm.avail_out===0))return He}return q.insert=0,ht===e?(J(q,!0),q.strm.avail_out===0?Ue:oe):q.last_lit&&(J(q,!1),q.strm.avail_out===0)?He:pe}function Je(q,ht){for(var Rt;;){if(q.lookahead===0&&(le(q),q.lookahead===0)){if(ht===r)return He;break}if(q.match_length=0,Rt=C._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++,Rt&&(J(q,!1),q.strm.avail_out===0))return He}return q.insert=0,ht===e?(J(q,!0),q.strm.avail_out===0?Ue:oe):q.last_lit&&(J(q,!1),q.strm.avail_out===0)?He:pe}function Te(q,ht,Rt,ut,Xt){this.good_length=q,this.max_lazy=ht,this.nice_length=Rt,this.max_chain=ut,this.func=Xt}var et;et=[new Te(0,0,0,0,fe),new Te(4,4,8,4,xe),new Te(4,5,16,8,xe),new Te(4,6,32,32,xe),new Te(4,4,16,16,Qe),new Te(8,16,32,32,Qe),new Te(8,16,128,128,Qe),new Te(8,32,128,256,Qe),new Te(32,128,258,1024,Qe),new Te(32,258,258,4096,Qe)];function ze(q){q.window_size=2*q.w_size,Q(q.head),q.max_lazy_match=et[q.level].max_lazy,q.good_match=et[q.level].good_length,q.nice_match=et[q.level].nice_length,q.max_chain_length=et[q.level].max_chain,q.strstart=0,q.block_start=0,q.lookahead=0,q.insert=0,q.match_length=q.prev_length=j-1,q.match_available=0,q.ins_h=0}function nt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new E.Buf16(U*2),this.dyn_dtree=new E.Buf16((2*P+1)*2),this.bl_tree=new E.Buf16((2*M+1)*2),Q(this.dyn_ltree),Q(this.dyn_dtree),Q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new E.Buf16(F+1),this.heap=new E.Buf16(2*R+1),Q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new E.Buf16(2*R+1),Q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ot(q){var ht;return!q||!q.state?Xe(q,l):(q.total_in=q.total_out=0,q.data_type=S,ht=q.state,ht.pending=0,ht.pending_out=0,ht.wrap<0&&(ht.wrap=-ht.wrap),ht.status=ht.wrap?Y:Oe,q.adler=ht.wrap===2?0:1,ht.last_flush=r,C._tr_init(ht),t)}function Ct(q){var ht=Ot(q);return ht===t&&ze(q.state),ht}function Tt(q,ht){return!q||!q.state||q.state.wrap!==2?l:(q.state.gzhead=ht,t)}function Dt(q,ht,Rt,ut,Xt,or){if(!q)return l;var Zr=1;if(ht===p&&(ht=6),ut<0?(Zr=0,ut=-ut):ut>15&&(Zr=2,ut-=16),Xt<1||Xt>_||Rt!==b||ut<8||ut>15||ht<0||ht>9||or<0||or>x)return Xe(q,l);ut===8&&(ut=9);var ar=new nt;return q.state=ar,ar.strm=q,ar.wrap=Zr,ar.gzhead=null,ar.w_bits=ut,ar.w_size=1<<ar.w_bits,ar.w_mask=ar.w_size-1,ar.hash_bits=Xt+7,ar.hash_size=1<<ar.hash_bits,ar.hash_mask=ar.hash_size-1,ar.hash_shift=~~((ar.hash_bits+j-1)/j),ar.window=new E.Buf8(ar.w_size*2),ar.head=new E.Buf16(ar.hash_size),ar.prev=new E.Buf16(ar.w_size),ar.lit_bufsize=1<<Xt+6,ar.pending_buf_size=ar.lit_bufsize*4,ar.pending_buf=new E.Buf8(ar.pending_buf_size),ar.d_buf=1*ar.lit_bufsize,ar.l_buf=(1+2)*ar.lit_bufsize,ar.level=ht,ar.strategy=or,ar.method=Rt,Ct(q)}function Be(q,ht){return Dt(q,ht,b,I,L,T)}function ie(q,ht){var Rt,ut,Xt,or;if(!q||!q.state||ht>s||ht<0)return q?Xe(q,l):l;if(ut=q.state,!q.output||!q.input&&q.avail_in!==0||ut.status===De&&ht!==e)return Xe(q,q.avail_out===0?h:l);if(ut.strm=q,Rt=ut.last_flush,ut.last_flush=ht,ut.status===Y)if(ut.wrap===2)q.adler=0,ve(ut,31),ve(ut,139),ve(ut,8),ut.gzhead?(ve(ut,(ut.gzhead.text?1:0)+(ut.gzhead.hcrc?2:0)+(ut.gzhead.extra?4:0)+(ut.gzhead.name?8:0)+(ut.gzhead.comment?16:0)),ve(ut,ut.gzhead.time&255),ve(ut,ut.gzhead.time>>8&255),ve(ut,ut.gzhead.time>>16&255),ve(ut,ut.gzhead.time>>24&255),ve(ut,ut.level===9?2:ut.strategy>=v||ut.level<2?4:0),ve(ut,ut.gzhead.os&255),ut.gzhead.extra&&ut.gzhead.extra.length&&(ve(ut,ut.gzhead.extra.length&255),ve(ut,ut.gzhead.extra.length>>8&255)),ut.gzhead.hcrc&&(q.adler=(0,w.default)(q.adler,ut.pending_buf,ut.pending,0)),ut.gzindex=0,ut.status=$):(ve(ut,0),ve(ut,0),ve(ut,0),ve(ut,0),ve(ut,0),ve(ut,ut.level===9?2:ut.strategy>=v||ut.level<2?4:0),ve(ut,ee),ut.status=Oe);else{var Zr=b+(ut.w_bits-8<<4)<<8,ar=-1;ut.strategy>=v||ut.level<2?ar=0:ut.level<6?ar=1:ut.level===6?ar=2:ar=3,Zr|=ar<<6,ut.strstart!==0&&(Zr|=z),Zr+=31-Zr%31,ut.status=Oe,de(ut,Zr),ut.strstart!==0&&(de(ut,q.adler>>>16),de(ut,q.adler&65535)),q.adler=1}if(ut.status===$)if(ut.gzhead.extra){for(Xt=ut.pending;ut.gzindex<(ut.gzhead.extra.length&65535)&&!(ut.pending===ut.pending_buf_size&&(ut.gzhead.hcrc&&ut.pending>Xt&&(q.adler=(0,w.default)(q.adler,ut.pending_buf,ut.pending-Xt,Xt)),G(q),Xt=ut.pending,ut.pending===ut.pending_buf_size));)ve(ut,ut.gzhead.extra[ut.gzindex]&255),ut.gzindex++;ut.gzhead.hcrc&&ut.pending>Xt&&(q.adler=(0,w.default)(q.adler,ut.pending_buf,ut.pending-Xt,Xt)),ut.gzindex===ut.gzhead.extra.length&&(ut.gzindex=0,ut.status=ue)}else ut.status=ue;if(ut.status===ue)if(ut.gzhead.name){Xt=ut.pending;do{if(ut.pending===ut.pending_buf_size&&(ut.gzhead.hcrc&&ut.pending>Xt&&(q.adler=(0,w.default)(q.adler,ut.pending_buf,ut.pending-Xt,Xt)),G(q),Xt=ut.pending,ut.pending===ut.pending_buf_size)){or=1;break}ut.gzindex<ut.gzhead.name.length?or=ut.gzhead.name.charCodeAt(ut.gzindex++)&255:or=0,ve(ut,or)}while(or!==0);ut.gzhead.hcrc&&ut.pending>Xt&&(q.adler=(0,w.default)(q.adler,ut.pending_buf,ut.pending-Xt,Xt)),or===0&&(ut.gzindex=0,ut.status=ne)}else ut.status=ne;if(ut.status===ne)if(ut.gzhead.comment){Xt=ut.pending;do{if(ut.pending===ut.pending_buf_size&&(ut.gzhead.hcrc&&ut.pending>Xt&&(q.adler=(0,w.default)(q.adler,ut.pending_buf,ut.pending-Xt,Xt)),G(q),Xt=ut.pending,ut.pending===ut.pending_buf_size)){or=1;break}ut.gzindex<ut.gzhead.comment.length?or=ut.gzhead.comment.charCodeAt(ut.gzindex++)&255:or=0,ve(ut,or)}while(or!==0);ut.gzhead.hcrc&&ut.pending>Xt&&(q.adler=(0,w.default)(q.adler,ut.pending_buf,ut.pending-Xt,Xt)),or===0&&(ut.status=ge)}else ut.status=ge;if(ut.status===ge&&(ut.gzhead.hcrc?(ut.pending+2>ut.pending_buf_size&&G(q),ut.pending+2<=ut.pending_buf_size&&(ve(ut,q.adler&255),ve(ut,q.adler>>8&255),q.adler=0,ut.status=Oe)):ut.status=Oe),ut.pending!==0){if(G(q),q.avail_out===0)return ut.last_flush=-1,t}else if(q.avail_in===0&&se(ht)<=se(Rt)&&ht!==e)return Xe(q,h);if(ut.status===De&&q.avail_in!==0)return Xe(q,h);if(q.avail_in!==0||ut.lookahead!==0||ht!==r&&ut.status!==De){var dr=ut.strategy===v?Je(ut,ht):ut.strategy===y?ot(ut,ht):et[ut.level].func(ut,ht);if((dr===Ue||dr===oe)&&(ut.status=De),dr===He||dr===Ue)return q.avail_out===0&&(ut.last_flush=-1),t;if(dr===pe&&(ht===i?C._tr_align(ut):ht!==s&&(C._tr_stored_block(ut,0,0,!1),ht===n&&(Q(ut.head),ut.lookahead===0&&(ut.strstart=0,ut.block_start=0,ut.insert=0))),G(q),q.avail_out===0))return ut.last_flush=-1,t}return ht!==e?t:ut.wrap<=0?a:(ut.wrap===2?(ve(ut,q.adler&255),ve(ut,q.adler>>8&255),ve(ut,q.adler>>16&255),ve(ut,q.adler>>24&255),ve(ut,q.total_in&255),ve(ut,q.total_in>>8&255),ve(ut,q.total_in>>16&255),ve(ut,q.total_in>>24&255)):(de(ut,q.adler>>>16),de(ut,q.adler&65535)),G(q),ut.wrap>0&&(ut.wrap=-ut.wrap),ut.pending!==0?t:a)}function X(q){var ht;return!q||!q.state?l:(ht=q.state.status,ht!==Y&&ht!==$&&ht!==ue&&ht!==ne&&ht!==ge&&ht!==Oe&&ht!==De?Xe(q,l):(q.state=null,ht===Oe?Xe(q,u):t))}function Fe(q,ht){var Rt=ht.length,ut,Xt,or,Zr,ar,dr,er,Ht;if(!q||!q.state)return l;if(ut=q.state,Zr=ut.wrap,Zr===2||Zr===1&&ut.status!==Y||ut.lookahead)return l;for(Zr===1&&(q.adler=(0,A.default)(q.adler,ht,Rt,0)),ut.wrap=0,Rt>=ut.w_size&&(Zr===0&&(Q(ut.head),ut.strstart=0,ut.block_start=0,ut.insert=0),Ht=new E.Buf8(ut.w_size),E.arraySet(Ht,ht,Rt-ut.w_size,ut.w_size,0),ht=Ht,Rt=ut.w_size),ar=q.avail_in,dr=q.next_in,er=q.input,q.avail_in=Rt,q.next_in=0,q.input=ht,le(ut);ut.lookahead>=j;){Xt=ut.strstart,or=ut.lookahead-(j-1);do ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[Xt+j-1])&ut.hash_mask,ut.prev[Xt&ut.w_mask]=ut.head[ut.ins_h],ut.head[ut.ins_h]=Xt,Xt++;while(--or);ut.strstart=Xt,ut.lookahead=j-1,le(ut)}return ut.strstart+=ut.lookahead,ut.block_start=ut.strstart,ut.insert=ut.lookahead,ut.lookahead=0,ut.match_length=ut.prev_length=j-1,ut.match_available=0,q.next_in=dr,q.input=er,q.avail_in=ar,ut.wrap=Zr,t}var Ne="pako deflate (from Nodeca project)";B.deflateInfo=Ne},lOQZ:function(H,B,d){var O=d("QBsz"),E=d("U/Mo"),C=E.getSymbolSize,A=E.getNodeGlobalScale,w=Math.PI,m=[];function f(o,r){var i=o.coordinateSystem;if(i&&i.type!=="view")return;var n=i.getBoundingRect(),e=o.getData(),s=e.graph,t=n.width/2+n.x,a=n.height/2+n.y,l=Math.min(n.width,n.height)/2,u=e.count();if(e.setLayout({cx:t,cy:a}),!u)return;c[r](o,i,s,e,l,t,a,u),s.eachEdge(function(h){var p=h.getModel().get("lineStyle.curveness")||0,g=O.clone(h.node1.getLayout()),v=O.clone(h.node2.getLayout()),y,x=(g[0]+v[0])/2,T=(g[1]+v[1])/2;+p&&(p*=3,y=[t*p+x*(1-p),a*p+T*(1-p)]),h.setLayout([g,v,y])})}var c={value:function(o,r,i,n,e,s,t,a){var l=0,u=n.getSum("value"),h=Math.PI*2/(u||a);i.eachNode(function(p){var g=p.getValue("value"),v=h*(u?g:1)/2;l+=v,p.setLayout([e*Math.cos(l)+s,e*Math.sin(l)+t]),l+=v})},symbolSize:function(o,r,i,n,e,s,t,a){var l=0;m.length=a;var u=A(o);i.eachNode(function(g){var v=C(g);isNaN(v)&&(v=2),v<0&&(v=0),v*=u;var y=Math.asin(v/2/e);isNaN(y)&&(y=w/2),m[g.dataIndex]=y,l+=y*2});var h=(2*w-l)/a/2,p=0;i.eachNode(function(g){var v=h+m[g.dataIndex];p+=v,g.setLayout([e*Math.cos(p)+s,e*Math.sin(p)+t]),p+=v})}};B.circularLayout=f},lPiR:function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){return function(E){var C=O,A=C.lib,w=A.WordArray,m=A.Hasher,f=C.algo,c=[],o=[];(function(){function n(a){for(var l=E.sqrt(a),u=2;u<=l;u++)if(!(a%u))return!1;return!0}function e(a){return(a-(a|0))*4294967296|0}for(var s=2,t=0;t<64;)n(s)&&(t<8&&(c[t]=e(E.pow(s,1/2))),o[t]=e(E.pow(s,1/3)),t++),s++})();var r=[],i=f.SHA256=m.extend({_doReset:function(){this._hash=new w.init(c.slice(0))},_doProcessBlock:function(e,s){for(var t=this._hash.words,a=t[0],l=t[1],u=t[2],h=t[3],p=t[4],g=t[5],v=t[6],y=t[7],x=0;x<64;x++){if(x<16)r[x]=e[s+x]|0;else{var T=r[x-15],S=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=r[x-2],_=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;r[x]=S+r[x-7]+_+r[x-16]}var I=p&g^~p&v,L=a&l^a&u^l&u,N=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),D=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),R=y+D+I+o[x]+r[x],P=N+L;y=v,v=g,g=p,p=h+R|0,h=u,u=l,l=a,a=R+P|0}t[0]=t[0]+a|0,t[1]=t[1]+l|0,t[2]=t[2]+u|0,t[3]=t[3]+h|0,t[4]=t[4]+p|0,t[5]=t[5]+g|0,t[6]=t[6]+v|0,t[7]=t[7]+y|0},_doFinalize:function(){var e=this._data,s=e.words,t=this._nDataBytes*8,a=e.sigBytes*8;return s[a>>>5]|=128<<24-a%32,s[(a+64>>>9<<4)+14]=E.floor(t/4294967296),s[(a+64>>>9<<4)+15]=t,e.sigBytes=s.length*4,this._process(),this._hash},clone:function(){var e=m.clone.call(this);return e._hash=this._hash.clone(),e}});C.SHA256=m._createHelper(i),C.HmacSHA256=m._createHmacHelper(i)}(Math),O.SHA256})},lUTK:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("x54q"),A=d.n(C),w=d("5Dmo")},lZu9:function(H,B,d){(function(O){O(d("VrN/"),d("1eCo"),d("8EBN"))})(function(O){"use strict";O.defineMode("markdown",function(E,C){var A=O.getMode(E,"text/html"),w=A.name=="null";function m(F){if(O.findModeByName){var j=O.findModeByName(F);j&&(F=j.mime||j.mimes[0])}var W=O.getMode(E,F);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*$/,s=/^[^#!\[\]*_\\<>` "'(~:]+/,t=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,a=/^\s*\[[^\]]+?\]:.*$/,l=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,u=" ";function h(F,j,W){return j.f=j.inline=W,W(F,j)}function p(F,j,W){return j.f=j.block=W,W(F,j)}function g(F){return!F||!/\S/.test(F.string)}function v(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==x){var j=w;if(!j){var W=O.innerMode(A,F.htmlState);j=W.mode.name=="xml"&&W.state.tagStart===null&&!W.state.context&&W.state.tokenize.isInText}j&&(F.f=_,F.block=y,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function y(F,j){var W=F.column()===j.indentation,V=g(j.prevLine.stream),z=j.indentedCode,Y=j.prevLine.hr,$=j.list!==!1,ue=(j.listStack[j.listStack.length-1]||0)+3;j.indentedCode=!1;var ne=j.indentation;if(j.indentationDiff===null&&(j.indentationDiff=j.indentation,$)){for(j.list=null;ne<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=ne-j.listStack[j.listStack.length-1])}var ge=!V&&!Y&&!j.prevLine.header&&(!$||!z)&&!j.prevLine.fencedCodeEnd,Oe=(j.list===!1||Y||V)&&j.indentation<=ue&&F.match(o),De=null;if(j.indentationDiff>=4&&(z||j.prevLine.fencedCodeEnd||j.prevLine.header||V))return F.skipToEnd(),j.indentedCode=!0,f.code;if(F.eatSpace())return null;if(W&&j.indentation<=ue&&(De=F.match(n))&&De[1].length<=6)return j.quote=0,j.header=De[1].length,j.thisLine.header=!0,C.highlightFormatting&&(j.formatting="header"),j.f=j.inline,S(j);if(j.indentation<=ue&&F.eat(">"))return j.quote=W?1:j.quote+1,C.highlightFormatting&&(j.formatting="quote"),F.eatSpace(),S(j);if(!Oe&&!j.setext&&W&&j.indentation<=ue&&(De=F.match(r))){var He=De[1]?"ol":"ul";return j.indentation=ne+F.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&&F.match(i,!1)&&(j.taskList=!0),j.f=j.inline,C.highlightFormatting&&(j.formatting=["list","list-"+He]),S(j)}else{if(W&&j.indentation<=ue&&(De=F.match(t,!0)))return j.quote=0,j.fencedEndRE=new RegExp(De[1]+"+ *$"),j.localMode=C.fencedCodeBlockHighlighting&&m(De[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,S(j);if(j.setext||(!ge||!$)&&!j.quote&&j.list===!1&&!j.code&&!Oe&&!a.test(F.string)&&(De=F.lookAhead(1))&&(De=De.match(e)))return j.setext?(j.header=j.setext,j.setext=0,F.skipToEnd(),C.highlightFormatting&&(j.formatting="header")):(j.header=De[0].charAt(0)=="="?1:2,j.setext=j.header),j.thisLine.header=!0,j.f=j.inline,S(j);if(Oe)return F.skipToEnd(),j.hr=!0,j.thisLine.hr=!0,f.hr;if(F.peek()==="[")return h(F,j,R)}return h(F,j,j.inline)}function x(F,j){var W=A.token(F,j.htmlState);if(!w){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&&F.current().indexOf(">")>-1)&&(j.f=_,j.block=y,j.htmlState=null)}return W}function T(F,j){var W=j.listStack[j.listStack.length-1]||0,V=j.indentation<W,z=W+3;if(j.fencedEndRE&&j.indentation<=z&&(V||F.match(j.fencedEndRE))){C.highlightFormatting&&(j.formatting="code-block");var Y;return V||(Y=S(j)),j.localMode=j.localState=null,j.block=y,j.f=_,j.fencedEndRE=null,j.code=0,j.thisLine.fencedCodeEnd=!0,V?p(F,j,j.block):Y}else return j.localMode?j.localMode.token(F,j.localState):(F.skipToEnd(),f.code)}function S(F){var j=[];if(F.formatting){j.push(f.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var W=0;W<F.formatting.length;W++)j.push(f.formatting+"-"+F.formatting[W]),F.formatting[W]==="header"&&j.push(f.formatting+"-"+F.formatting[W]+"-"+F.header),F.formatting[W]==="quote"&&(!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=F.quote?j.push(f.formatting+"-"+F.formatting[W]+"-"+F.quote):j.push("error"))}if(F.taskOpen)return j.push("meta"),j.length?j.join(" "):null;if(F.taskClosed)return j.push("property"),j.length?j.join(" "):null;if(F.linkHref?j.push(f.linkHref,"url"):(F.strong&&j.push(f.strong),F.em&&j.push(f.em),F.strikethrough&&j.push(f.strikethrough),F.emoji&&j.push(f.emoji),F.linkText&&j.push(f.linkText),F.code&&j.push(f.code),F.image&&j.push(f.image),F.imageAltText&&j.push(f.imageAltText,"link"),F.imageMarker&&j.push(f.imageMarker)),F.header&&j.push(f.header,f.header+"-"+F.header),F.quote&&(j.push(f.quote),!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=F.quote?j.push(f.quote+"-"+F.quote):j.push(f.quote+"-"+C.maxBlockquoteDepth)),F.list!==!1){var V=(F.listStack.length-1)%3;V?V===1?j.push(f.list2):j.push(f.list3):j.push(f.list1)}return F.trailingSpaceNewLine?j.push("trailing-space-new-line"):F.trailingSpace&&j.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),j.length?j.join(" "):null}function b(F,j){return F.match(s,!0)?S(j):void 0}function _(F,j){var W=j.text(F,j);if(typeof W!="undefined")return W;if(j.list)return j.list=null,S(j);if(j.taskList){var V=F.match(i,!0)[1]===" ";return V?j.taskOpen=!0:j.taskClosed=!0,C.highlightFormatting&&(j.formatting="task"),j.taskList=!1,S(j)}if(j.taskOpen=!1,j.taskClosed=!1,j.header&&F.match(/^#+$/,!0))return C.highlightFormatting&&(j.formatting="header"),S(j);var z=F.next();if(j.linkTitle){j.linkTitle=!1;var Y=z;z==="("&&(Y=")"),Y=(Y+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $="^\\s*(?:[^"+Y+"\\\\]+|\\\\\\\\|\\\\.)"+Y;if(F.match(new RegExp($),!0))return f.linkHref}if(z==="`"){var ue=j.formatting;C.highlightFormatting&&(j.formatting="code"),F.eatWhile("`");var ne=F.current().length;if(j.code==0&&(!j.quote||ne==1))return j.code=ne,S(j);if(ne==j.code){var ge=S(j);return j.code=0,ge}else return j.formatting=ue,S(j)}else if(j.code)return S(j);if(z==="\\"&&(F.next(),C.highlightFormatting)){var Oe=S(j),De=f.formatting+"-escape";return Oe?Oe+" "+De:De}if(z==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return j.imageMarker=!0,j.image=!0,C.highlightFormatting&&(j.formatting="image"),S(j);if(z==="["&&j.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return j.imageMarker=!1,j.imageAltText=!0,C.highlightFormatting&&(j.formatting="image"),S(j);if(z==="]"&&j.imageAltText){C.highlightFormatting&&(j.formatting="image");var Oe=S(j);return j.imageAltText=!1,j.image=!1,j.inline=j.f=L,Oe}if(z==="["&&!j.image)return j.linkText&&F.match(/^.*?\]/)||(j.linkText=!0,C.highlightFormatting&&(j.formatting="link")),S(j);if(z==="]"&&j.linkText){C.highlightFormatting&&(j.formatting="link");var Oe=S(j);return j.linkText=!1,j.inline=j.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?L:_,Oe}if(z==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){j.f=j.inline=I,C.highlightFormatting&&(j.formatting="link");var Oe=S(j);return Oe?Oe+=" ":Oe="",Oe+f.linkInline}if(z==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){j.f=j.inline=I,C.highlightFormatting&&(j.formatting="link");var Oe=S(j);return Oe?Oe+=" ":Oe="",Oe+f.linkEmail}if(C.xml&&z==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var He=F.string.indexOf(">",F.pos);if(He!=-1){var pe=F.string.substring(F.start,He);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pe)&&(j.md_inside=!0)}return F.backUp(1),j.htmlState=O.startState(A),p(F,j,x)}if(C.xml&&z==="<"&&F.match(/^\/\w*?>/))return j.md_inside=!1,"tag";if(z==="*"||z==="_"){for(var Ue=1,oe=F.pos==1?" ":F.string.charAt(F.pos-2);Ue<3&&F.eat(z);)Ue++;var ee=F.peek()||" ",Xe=!/\s/.test(ee)&&(!l.test(ee)||/\s/.test(oe)||l.test(oe)),se=!/\s/.test(oe)&&(!l.test(oe)||/\s/.test(ee)||l.test(ee)),Q=null,G=null;if(Ue%2&&(!j.em&&Xe&&(z==="*"||!se||l.test(oe))?Q=!0:j.em==z&&se&&(z==="*"||!Xe||l.test(ee))&&(Q=!1)),Ue>1&&(!j.strong&&Xe&&(z==="*"||!se||l.test(oe))?G=!0:j.strong==z&&se&&(z==="*"||!Xe||l.test(ee))&&(G=!1)),G!=null||Q!=null){C.highlightFormatting&&(j.formatting=Q==null?"strong":G==null?"em":"strong em"),Q===!0&&(j.em=z),G===!0&&(j.strong=z);var ge=S(j);return Q===!1&&(j.em=!1),G===!1&&(j.strong=!1),ge}}else if(z===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return S(j);F.backUp(1)}if(C.strikethrough){if(z==="~"&&F.eatWhile(z)){if(j.strikethrough){C.highlightFormatting&&(j.formatting="strikethrough");var ge=S(j);return j.strikethrough=!1,ge}else if(F.match(/^[^\s]/,!1))return j.strikethrough=!0,C.highlightFormatting&&(j.formatting="strikethrough"),S(j)}else if(z===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return S(j);F.backUp(2)}}if(C.emoji&&z===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){j.emoji=!0,C.highlightFormatting&&(j.formatting="emoji");var J=S(j);return j.emoji=!1,J}return z===" "&&(F.match(/^ +$/,!1)?j.trailingSpace++:j.trailingSpace&&(j.trailingSpaceNewLine=!0)),S(j)}function I(F,j){var W=F.next();if(W===">"){j.f=j.inline=_,C.highlightFormatting&&(j.formatting="link");var V=S(j);return V?V+=" ":V="",V+f.linkInline}return F.match(/^[^>]+/,!0),f.linkInline}function L(F,j){if(F.eatSpace())return null;var W=F.next();return W==="("||W==="["?(j.f=j.inline=D(W==="("?")":"]"),C.highlightFormatting&&(j.formatting="link-string"),j.linkHref=!0,S(j)):"error"}var N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function D(F){return function(j,W){var V=j.next();if(V===F){W.f=W.inline=_,C.highlightFormatting&&(W.formatting="link-string");var z=S(W);return W.linkHref=!1,z}return j.match(N[F]),W.linkHref=!0,S(W)}}function R(F,j){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(j.f=P,F.next(),C.highlightFormatting&&(j.formatting="link"),j.linkText=!0,S(j)):h(F,j,_)}function P(F,j){if(F.match(/^\]:/,!0)){j.f=j.inline=M,C.highlightFormatting&&(j.formatting="link");var W=S(j);return j.linkText=!1,W}return F.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function M(F,j){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?j.linkTitle=!0:F.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:b,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(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!=x)){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==x?{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==x&&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:S,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return U},"xml"),O.defineMIME("text/markdown","markdown"),O.defineMIME("text/x-markdown","markdown")})},laiN:function(H,B,d){var O=d("ProS");d("GVMX"),d("MH26"),O.registerPreprocessor(function(E){E.markLine=E.markLine||{}})},lnY3:function(H,B,d){},loD1:function(H,B){function d(O,E,C,A,w,m,f){if(w===0)return!1;var c=w,o=0,r=O;if(f>E+c&&f>A+c||f<E-c&&f<A-c||m>O+c&&m>C+c||m<O-c&&m<C-c)return!1;if(O!==C)o=(E-A)/(O-C),r=(O*A-C*E)/(O-C);else return Math.abs(m-O)<=c/2;var i=o*m-f+r,n=i*i/(o*o+1);return n<=c/2*c/2}B.containStroke=d},lr6o:function(H,B,d){"use strict";var O=d("rePB"),E=d("Ff2n"),C=d("VTBJ"),A=d("1OyB"),w=d("vuIU"),m=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"),s=function(x){var T=x.prefixCls,S=x.level,b=x.isStart,_=x.isEnd;if(!S)return null;for(var I="".concat(T,"-indent-unit"),L=[],N=0;N<S;N+=1){var D;L.push(o.createElement("span",{key:N,className:i()(I,(D={},Object(O.a)(D,"".concat(I,"-start"),b[N+1]),Object(O.a)(D,"".concat(I,"-end"),_[N+1]),Object(O.a)(D,"".concat(I,"-end-first-level"),!N&&_[0]),D))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(T,"-indent")},L)},t=s,a=d("c3jg"),l="open",u="close",h="---",p=function(y){Object(f.a)(T,y);var x=Object(c.a)(T);function T(){var S;return Object(A.a)(this,T),S=x.apply(this,arguments),S.state={dragNodeHighlight:!1},S.onSelectorClick=function(b){var _=S.props.context.onNodeClick;_(b,Object(a.b)(S.props)),S.isSelectable()?S.onSelect(b):S.onCheck(b)},S.onSelectorDoubleClick=function(b){var _=S.props.context.onNodeDoubleClick;_(b,Object(a.b)(S.props))},S.onSelect=function(b){if(S.isDisabled())return;var _=S.props.context.onNodeSelect;b.preventDefault(),_(b,Object(a.b)(S.props))},S.onCheck=function(b){if(S.isDisabled())return;var _=S.props,I=_.disableCheckbox,L=_.checked,N=S.props.context.onNodeCheck;if(!S.isCheckable()||I)return;b.preventDefault();var D=!L;N(b,Object(a.b)(S.props),D)},S.onMouseEnter=function(b){var _=S.props.context.onNodeMouseEnter;_(b,Object(a.b)(S.props))},S.onMouseLeave=function(b){var _=S.props.context.onNodeMouseLeave;_(b,Object(a.b)(S.props))},S.onContextMenu=function(b){var _=S.props.context.onNodeContextMenu;_(b,Object(a.b)(S.props))},S.onDragStart=function(b){var _=S.props.context.onNodeDragStart;b.stopPropagation(),S.setState({dragNodeHighlight:!0}),_(b,Object(m.a)(S));try{b.dataTransfer.setData("text/plain","")}catch(I){}},S.onDragEnter=function(b){var _=S.props.context.onNodeDragEnter;b.preventDefault(),b.stopPropagation(),_(b,Object(m.a)(S))},S.onDragOver=function(b){var _=S.props.context.onNodeDragOver;b.preventDefault(),b.stopPropagation(),_(b,Object(m.a)(S))},S.onDragLeave=function(b){var _=S.props.context.onNodeDragLeave;b.stopPropagation(),_(b,Object(m.a)(S))},S.onDragEnd=function(b){var _=S.props.context.onNodeDragEnd;b.stopPropagation(),S.setState({dragNodeHighlight:!1}),_(b,Object(m.a)(S))},S.onDrop=function(b){var _=S.props.context.onNodeDrop;b.preventDefault(),b.stopPropagation(),S.setState({dragNodeHighlight:!1}),_(b,Object(m.a)(S))},S.onExpand=function(b){var _=S.props.context.onNodeExpand;_(b,Object(a.b)(S.props))},S.setSelectHandle=function(b){S.selectHandle=b},S.getNodeState=function(){var b=S.props.expanded;return S.isLeaf()?null:b?l:u},S.hasChildren=function(){var b=S.props.eventKey,_=S.props.context.keyEntities,I=_[b]||{},L=I.children;return!!(L||[]).length},S.isLeaf=function(){var b=S.props,_=b.isLeaf,I=b.loaded,L=S.props.context.loadData,N=S.hasChildren();return _===!1?!1:_||!L&&!N||L&&I&&!N},S.isDisabled=function(){var b=S.props.disabled,_=S.props.context.disabled;return!!(_||b)},S.isCheckable=function(){var b=S.props.checkable,_=S.props.context.checkable;return!_||b===!1?!1:_},S.syncLoadData=function(b){var _=b.expanded,I=b.loading,L=b.loaded,N=S.props.context,D=N.loadData,R=N.onNodeLoad;if(I)return;D&&_&&!S.isLeaf()&&(!S.hasChildren()&&!L&&R(Object(a.b)(S.props)))},S.renderSwitcher=function(){var b=S.props,_=b.expanded,I=b.switcherIcon,L=S.props.context,N=L.prefixCls,D=L.switcherIcon,R=I||D;if(S.isLeaf())return o.createElement("span",{className:i()("".concat(N,"-switcher"),"".concat(N,"-switcher-noop"))},typeof R=="function"?R(Object(C.a)(Object(C.a)({},S.props),{},{isLeaf:!0})):R);var P=i()("".concat(N,"-switcher"),"".concat(N,"-switcher_").concat(_?l:u));return o.createElement("span",{onClick:S.onExpand,className:P},typeof R=="function"?R(Object(C.a)(Object(C.a)({},S.props),{},{isLeaf:!1})):R)},S.renderCheckbox=function(){var b=S.props,_=b.checked,I=b.halfChecked,L=b.disableCheckbox,N=S.props.context.prefixCls,D=S.isDisabled(),R=S.isCheckable();if(!R)return null;var P=typeof R!="boolean"?R:null;return o.createElement("span",{className:i()("".concat(N,"-checkbox"),_&&"".concat(N,"-checkbox-checked"),!_&&I&&"".concat(N,"-checkbox-indeterminate"),(D||L)&&"".concat(N,"-checkbox-disabled")),onClick:S.onCheck},P)},S.renderIcon=function(){var b=S.props.loading,_=S.props.context.prefixCls;return o.createElement("span",{className:i()("".concat(_,"-iconEle"),"".concat(_,"-icon__").concat(S.getNodeState()||"docu"),b&&"".concat(_,"-icon_loading"))})},S.renderSelector=function(){var b=S.state.dragNodeHighlight,_=S.props,I=_.title,L=_.selected,N=_.icon,D=_.loading,R=_.data,P=S.props.context,M=P.prefixCls,U=P.showIcon,F=P.icon,j=P.draggable,W=P.loadData,V=P.titleRender,z=S.isDisabled(),Y="".concat(M,"-node-content-wrapper"),$;if(U){var ue=N||F;$=ue?o.createElement("span",{className:i()("".concat(M,"-iconEle"),"".concat(M,"-icon__customize"))},typeof ue=="function"?ue(S.props):ue):S.renderIcon()}else W&&D&&($=S.renderIcon());var ne;typeof I=="function"?ne=I(R):V?ne=V(R):ne=I;var ge=o.createElement("span",{className:"".concat(M,"-title")},ne);return o.createElement("span",{ref:S.setSelectHandle,title:typeof I=="string"?I:"",className:i()("".concat(Y),"".concat(Y,"-").concat(S.getNodeState()||"normal"),!z&&(L||b)&&"".concat(M,"-node-selected"),!z&&j&&"draggable"),draggable:!z&&j||void 0,"aria-grabbed":!z&&j||void 0,onMouseEnter:S.onMouseEnter,onMouseLeave:S.onMouseLeave,onContextMenu:S.onContextMenu,onClick:S.onSelectorClick,onDoubleClick:S.onSelectorDoubleClick,onDragStart:j?S.onDragStart:void 0},$,ge)},S}return Object(w.a)(T,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var b=this.props.selectable,_=this.props.context.selectable;return typeof b=="boolean"?b:_}},{key:"render",value:function(){var b,_=this.props,I=_.eventKey,L=_.className,N=_.style,D=_.dragOver,R=_.dragOverGapTop,P=_.dragOverGapBottom,M=_.isLeaf,U=_.isStart,F=_.isEnd,j=_.expanded,W=_.selected,V=_.checked,z=_.halfChecked,Y=_.loading,$=_.domRef,ue=_.active,ne=_.onMouseMove,ge=Object(E.a)(_,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Oe=this.props.context,De=Oe.prefixCls,He=Oe.filterTreeNode,pe=Oe.draggable,Ue=Oe.keyEntities,oe=this.isDisabled(),ee=Object(e.f)(ge),Xe=Ue[I]||{},se=Xe.level,Q=F[F.length-1];return o.createElement("div",Object.assign({ref:$,className:i()(L,"".concat(De,"-treenode"),(b={},Object(O.a)(b,"".concat(De,"-treenode-disabled"),oe),Object(O.a)(b,"".concat(De,"-treenode-switcher-").concat(j?"open":"close"),!M),Object(O.a)(b,"".concat(De,"-treenode-checkbox-checked"),V),Object(O.a)(b,"".concat(De,"-treenode-checkbox-indeterminate"),z),Object(O.a)(b,"".concat(De,"-treenode-selected"),W),Object(O.a)(b,"".concat(De,"-treenode-loading"),Y),Object(O.a)(b,"".concat(De,"-treenode-active"),ue),Object(O.a)(b,"".concat(De,"-treenode-leaf-last"),Q),Object(O.a)(b,"drag-over",!oe&&D),Object(O.a)(b,"drag-over-gap-top",!oe&&R),Object(O.a)(b,"drag-over-gap-bottom",!oe&&P),Object(O.a)(b,"filter-node",He&&He(Object(a.b)(this.props))),b)),style:N,onDragEnter:pe?this.onDragEnter:void 0,onDragOver:pe?this.onDragOver:void 0,onDragLeave:pe?this.onDragLeave:void 0,onDrop:pe?this.onDrop:void 0,onDragEnd:pe?this.onDragEnd:void 0,onMouseMove:ne},ee),o.createElement(t,{prefixCls:De,level:se,isStart:U,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),T}(o.Component),g=function(x){return o.createElement(n.a.Consumer,null,function(T){return o.createElement(p,Object.assign({},x,{context:T}))})};g.displayName="TreeNode",g.defaultProps={title:h},g.isTreeNode=1;var v=B.a=g},lrIw:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("cDf5"),A=d.n(C),w=d("J4zp"),m=d.n(w),f=d("q1tI"),c=d.n(f),o=d("Zm9Q"),r=d("TSYQ"),i=d.n(r),n=d("BGR+"),e=d("2fM7"),s=d("H84U"),t=d("uaoM"),a=d("0n0R"),l=e.a.Option,u=e.a;function h(v){return v&&v.type&&(v.type.isSelectOption||v.type.isSelectOptGroup)}var p=function(y,x){var T=y.prefixCls,S=y.className,b=y.children,_=y.dataSource,I=Object(o.a)(b),L=f.useRef();f.useImperativeHandle(x,function(){return L.current});var N;if(I.length===1&&Object(a.b)(I[0])&&!h(I[0])){var D=m()(I,1);N=D[0]}var R=function(){return N},P;return I.length&&h(I[0])?P=b:P=_?_.map(function(M){if(Object(a.b)(M))return M;switch(A()(M)){case"string":return f.createElement(l,{key:M,value:M},M);case"object":{var U=M.value;return f.createElement(l,{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(s.a,null,function(M){var U=M.getPrefixCls,F=U("select",T);return f.createElement(u,E()({ref:L},Object(n.default)(y,["dataSource"]),{prefixCls:F,className:i()(S,"".concat(F,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:R}),P)})},g=f.forwardRef(p);g.Option=l,B.a=g},lwQL:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("9wZj"),A=d("c8qY"),w=d("SgGq"),m=d("Ae+d"),f=d("xSat"),c=f.onIrrelevantElement,o=d("IwbS"),r=d("SA8n"),i=d("U/Mo"),n=i.getNodeGlobalScale,e="__focusNodeAdjacency",s="__unfocusNodeAdjacency",t=["itemStyle","opacity"],a=["lineStyle","opacity"];function l(g,v){var y=g.getVisual("opacity");return y!=null?y:g.getModel().get(v)}function u(g,v,y){var x=g.getGraphicEl(),T=l(g,v);y!=null&&(T==null&&(T=1),T*=y),x.downplay&&x.downplay(),x.traverse(function(S){if(!S.isGroup){var b=S.lineLabelOriginalOpacity;(b==null||y!=null)&&(b=T),S.setStyle("opacity",b)}})}function h(g,v){var y=l(g,v),x=g.getGraphicEl();x.traverse(function(T){!T.isGroup&&T.setStyle("opacity",y)}),x.highlight&&x.highlight()}var p=O.extendChartView({type:"graph",init:function(g,v){var y=new C,x=new A,T=this.group;this._controller=new w(v.getZr()),this._controllerHost={target:T},T.add(y.group),T.add(x.group),this._symbolDraw=y,this._lineDraw=x,this._firstRender=!0},render:function(g,v,y){var x=this,T=g.coordinateSystem;this._model=g;var S=this._symbolDraw,b=this._lineDraw,_=this.group;if(T.type==="view"){var I={position:T.position,scale:T.scale};this._firstRender?_.attr(I):o.updateProps(_,I,g)}r(g.getGraph(),n(g));var L=g.getData();S.updateData(L);var N=g.getEdgeData();b.updateData(N),this._updateNodeAndLinkScale(),this._updateController(g,v,y),clearTimeout(this._layoutTimeout);var D=g.forceLayout,R=g.get("force.layoutAnimation");D&&this._startForceLayoutIteration(D,R),L.eachItemGraphicEl(function(F,j){var W=L.getItemModel(j);F.off("drag").off("dragend");var V=W.get("draggable");V&&F.on("drag",function(){D&&(D.warmUp(),!this._layouting&&this._startForceLayoutIteration(D,R),D.setFixed(j),L.setItemLayout(j,F.position))},this).on("dragend",function(){D&&D.setUnfixed(j)},this),F.setDraggable(V&&D),F[e]&&F.off("mouseover",F[e]),F[s]&&F.off("mouseout",F[s]),W.get("focusNodeAdjacency")&&(F.on("mouseover",F[e]=function(){x._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:g.id,dataIndex:F.dataIndex})}),F.on("mouseout",F[s]=function(){x._dispatchUnfocus(y)}))},this),L.graph.eachEdge(function(F){var j=F.getGraphicEl();j[e]&&j.off("mouseover",j[e]),j[s]&&j.off("mouseout",j[s]),F.getModel().get("focusNodeAdjacency")&&(j.on("mouseover",j[e]=function(){x._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:g.id,edgeDataIndex:F.dataIndex})}),j.on("mouseout",j[s]=function(){x._dispatchUnfocus(y)}))});var P=g.get("layout")==="circular"&&g.get("circular.rotateLabel"),M=L.getLayout("cx"),U=L.getLayout("cy");L.eachItemGraphicEl(function(F,j){var W=L.getItemModel(j),V=W.get("label.rotate")||0,z=F.getSymbolPath();if(P){var Y=L.getItemLayout(j),$=Math.atan2(Y[1]-U,Y[0]-M);$<0&&($=Math.PI*2+$);var ue=Y[0]<M;ue&&($=$-Math.PI);var ne=ue?"left":"right";o.modifyLabelStyle(z,{textRotation:-$,textPosition:ne,textOrigin:"center"},{textPosition:ne})}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(g,v){var y=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){y._unfocusDelayTimer=null,g.dispatchAction({type:"unfocusNodeAdjacency",seriesId:y._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(g,v,y,x){var T=g.getData(),S=T.graph,b=x.dataIndex,_=x.edgeDataIndex,I=S.getNodeByIndex(b),L=S.getEdgeByIndex(_);if(!I&&!L)return;S.eachNode(function(N){u(N,t,.1)}),S.eachEdge(function(N){u(N,a,.1)}),I&&(h(I,t),E.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(g,v,y,x){var T=g.getData().graph;T.eachNode(function(S){u(S,t)}),T.eachEdge(function(S){u(S,a)})},_startForceLayoutIteration:function(g,v){var y=this;(function x(){g.step(function(T){y.updateLayout(y._model),(y._layouting=!T)&&(v?y._layoutTimeout=setTimeout(x,16):x())})})()},_updateController:function(g,v,y){var x=this._controller,T=this._controllerHost,S=this.group;if(x.setPointerChecker(function(b,_,I){var L=S.getBoundingRect();return L.applyTransform(S.transform),L.contain(_,I)&&!c(b,y,g)}),g.coordinateSystem.type!=="view"){x.disable();return}x.enable(g.get("roam")),T.zoomLimit=g.get("scaleLimit"),T.zoom=g.coordinateSystem.getZoom(),x.off("pan").off("zoom").on("pan",function(b){m.updateViewOnPan(T,b.dx,b.dy),y.dispatchAction({seriesId:g.id,type:"graphRoam",dx:b.dx,dy:b.dy})}).on("zoom",function(b){m.updateViewOnZoom(T,b.scale,b.originX,b.originY),y.dispatchAction({seriesId:g.id,type:"graphRoam",zoom:b.scale,originX:b.originX,originY:b.originY}),this._updateNodeAndLinkScale(),r(g.getGraph(),n(g)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var g=this._model,v=g.getData(),y=n(g),x=[y,y];v.eachItemGraphicEl(function(T,S){T.attr("scale",x)})},updateLayout:function(g){r(g.getGraph(),n(g)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(g,v){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});H.exports=p},m9t5:function(H,B,d){var O=d("KCsZ"),E=O([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),C={getAreaStyle:function(A,w){return E(this,A,w)}};H.exports=C},mFDi:function(H,B,d){var O=d("QBsz"),E=d("Fofx"),C=O.applyTransform,A=Math.min,w=Math.max;function m(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}m.prototype={constructor:m,union:function(o){var r=A(o.x,this.x),i=A(o.y,this.y);this.width=w(o.x+o.width,this.x+this.width)-r,this.height=w(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=w(c[0],o[0],r[0],i[0]),s=w(c[1],o[1],r[1],i[1]);this.width=e-this.x,this.height=s-this.y}}(),calculateTransform:function(o){var r=this,i=o.width/r.width,n=o.height/r.height,e=E.create();return E.translate(e,e,[-r.x,-r.y]),E.scale(e,e,[i,n]),E.translate(e,e,[o.x,o.y]),e},intersect:function(o){if(!o)return!1;o instanceof m||(o=m.create(o));var r=this,i=r.x,n=r.x+r.width,e=r.y,s=r.y+r.height,t=o.x,a=o.x+o.width,l=o.y,u=o.y+o.height;return!(n<t||a<i||s<l||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 m(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}}},m.create=function(c){return new m(c.x,c.y,c.width,c.height)};var f=m;H.exports=f},mHUz:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.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};B.default=O},mLcG:function(H,B){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,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("I9Y+"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},mOdp:function(H,B,d){var O=d("bYtY"),E=O.createHashMap;function C(A){return{getTargetSeries:function(w){var m={},f=E();return w.eachSeriesByType(A,function(c){c.__paletteScope=m,f.set(c.uid,c)}),f},reset:function(w,m){var f=w.getRawData(),c={},o=w.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),s;if((!n||!e)&&(s=f.getItemModel(r)),!n){var t=s.get("itemStyle.color")||w.getColorFromPalette(f.getName(r)||r+"",w.__paletteScope,f.count());i!=null&&o.setItemVisual(i,"color",t)}if(!e){var a=s.get("itemStyle.borderColor");i!=null&&o.setItemVisual(i,"borderColor",a)}})}}}H.exports=C},mTgk:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("mHUz"));function E(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 w(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 m(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]}w("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),w("Control",O.default.XK_Control_L,O.default.XK_Control_R),w("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),w("Shift",O.default.XK_Shift_L,O.default.XK_Shift_R),m("Enter",O.default.XK_Return,O.default.XK_KP_Enter),A("Tab",O.default.XK_Tab),m(" ",O.default.XK_space,O.default.XK_KP_Space),m("ArrowDown",O.default.XK_Down,O.default.XK_KP_Down),m("ArrowUp",O.default.XK_Up,O.default.XK_KP_Up),m("ArrowLeft",O.default.XK_Left,O.default.XK_KP_Left),m("ArrowRight",O.default.XK_Right,O.default.XK_KP_Right),m("End",O.default.XK_End,O.default.XK_KP_End),m("Home",O.default.XK_Home,O.default.XK_KP_Home),m("PageDown",O.default.XK_Next,O.default.XK_KP_Next),m("PageUp",O.default.XK_Prior,O.default.XK_KP_Prior),A("Backspace",O.default.XK_BackSpace),m("Clear",O.default.XK_Clear,O.default.XK_KP_Begin),A("Copy",O.default.XF86XK_Copy),A("Cut",O.default.XF86XK_Cut),m("Delete",O.default.XK_Delete,O.default.XK_KP_Delete),m("Insert",O.default.XK_Insert,O.default.XK_KP_Insert),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),m("=",O.default.XK_equal,O.default.XK_KP_Equal),m("+",O.default.XK_plus,O.default.XK_KP_Add),m("-",O.default.XK_minus,O.default.XK_KP_Subtract),m("*",O.default.XK_asterisk,O.default.XK_KP_Multiply),m("/",O.default.XK_slash,O.default.XK_KP_Divide),m(".",O.default.XK_period,O.default.XK_KP_Decimal),m(",",O.default.XK_comma,O.default.XK_KP_Separator),m("0",O.default.XK_0,O.default.XK_KP_0),m("1",O.default.XK_1,O.default.XK_KP_1),m("2",O.default.XK_2,O.default.XK_KP_2),m("3",O.default.XK_3,O.default.XK_KP_3),m("4",O.default.XK_4,O.default.XK_KP_4),m("5",O.default.XK_5,O.default.XK_KP_5),m("6",O.default.XK_6,O.default.XK_KP_6),m("7",O.default.XK_7,O.default.XK_KP_7),m("8",O.default.XK_8,O.default.XK_KP_8),m("9",O.default.XK_9,O.default.XK_KP_9);var f=C;B.default=f},mYwL:function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("6GrX"),A=Math.PI;function w(m,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 E.Group,o=new E.Rect({style:{fill:f.maskColor},zlevel:f.zlevel,z:1e4});c.add(o);var r=f.fontSize+" sans-serif",i=new E.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 E.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),s=f.showSpinner?f.spinnerRadius:0,t=(m.getWidth()-s*2-(f.showSpinner&&e?10:0)-e)/2-(f.showSpinner?0:e/2),a=m.getHeight()/2;f.showSpinner&&n.setShape({cx:t,cy:a}),i.setShape({x:t-s,y:a-s,width:s*2,height:s*2}),o.setShape({x:0,y:0,width:m.getWidth(),height:m.getHeight()})},c.resize(),c}H.exports=w},mdZa:function(H,B,d){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(E,C){"use strict";if(E==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(E),w=1;w<arguments.length;w++){var m=arguments[w];if(m!=null)for(var f in m)Object.prototype.hasOwnProperty.call(m,f)&&(A[f]=m[f])}return A},writable:!0,configurable:!0}),function(){function O(E,C){C=C||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(E,C.bubbles,C.cancelable,C.detail),A}O.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=O)}(),Number.isInteger=Number.isInteger||function(E){return typeof E=="number"&&isFinite(E)&&Math.floor(E)===E}},mr32:function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("J4zp"),m=d.n(w),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("BGR+"),i=d("V/uB"),n=d.n(i),e=d("H84U"),s=function(T,S){var b={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&S.indexOf(_)<0&&(b[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,_=Object.getOwnPropertySymbols(T);I<_.length;I++)S.indexOf(_[I])<0&&Object.prototype.propertyIsEnumerable.call(T,_[I])&&(b[_[I]]=T[_[I]]);return b},t=function(S){var b,_=f.useContext(e.b),I=_.getPrefixCls,L=function(j){var W=S.checked,V=S.onChange,z=S.onClick;V&&V(!W),z&&z(j)},N=S.prefixCls,D=S.className,R=S.checked,P=s(S,["prefixCls","className","checked"]),M=I("tag",N),U=o()(M,(b={},E()(b,"".concat(M,"-checkable"),!0),E()(b,"".concat(M,"-checkable-checked"),R),b),D);return delete P.onChange,f.createElement("span",A()({},P,{className:U,onClick:L}))},a=t,l=d("09Wf"),u=d("g0mS"),h=function(T,S){var b={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&S.indexOf(_)<0&&(b[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,_=Object.getOwnPropertySymbols(T);I<_.length;I++)S.indexOf(_[I])<0&&Object.prototype.propertyIsEnumerable.call(T,_[I])&&(b[_[I]]=T[_[I]]);return b},p=new RegExp("^(".concat(l.a.join("|"),")(-inverse)?$")),g=new RegExp("^(".concat(l.b.join("|"),")$")),v=function(S,b){var _,I=S.prefixCls,L=S.className,N=S.style,D=S.children,R=S.icon,P=S.color,M=S.onClose,U=S.closeIcon,F=S.closable,j=F===void 0?!1:F,W=h(S,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),V=f.useContext(e.b),z=V.getPrefixCls,Y=V.direction,$=f.useState(!0),ue=m()($,2),ne=ue[0],ge=ue[1];f.useEffect(function(){"visible"in W&&ge(W.visible)},[W.visible]);var Oe=function(){return P?p.test(P)||g.test(P):!1},De=A()({backgroundColor:P&&!Oe()?P:void 0},N),He=Oe(),pe=z("tag",I),Ue=o()(pe,(_={},E()(_,"".concat(pe,"-").concat(P),He),E()(_,"".concat(pe,"-has-color"),P&&!He),E()(_,"".concat(pe,"-hidden"),!ne),E()(_,"".concat(pe,"-rtl"),Y==="rtl"),_),L),oe=function(de){if(de.stopPropagation(),M&&M(de),de.defaultPrevented)return;"visible"in W||ge(!1)},ee=function(){return j?U?f.createElement("div",{className:"".concat(pe,"-close-icon"),onClick:oe},U):f.createElement(n.a,{className:"".concat(pe,"-close-icon"),onClick:oe}):null},Xe="onClick"in W||D&&D.type==="a",se=Object(r.default)(W,["visible"]),Q=R||null,G=Q?f.createElement(f.Fragment,null,Q,f.createElement("span",null,D)):D,J=f.createElement("span",A()({},se,{ref:b,className:Ue,style:De}),G,ee());return Xe?f.createElement(u.a,null,J):J},y=f.forwardRef(v);y.displayName="Tag",y.CheckableTag=a;var x=B.a=y},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(H){if(!0)module.exports=H();else var B})(function(){var define,module,exports;return function(){function H(B,d,O){function E(w,m){if(!d[w]){if(!B[w]){var f=typeof require=="function"&&require;if(!m&&f)return require(w,!0);if(C)return C(w,!0);var c=new Error("Cannot find module '"+w+"'");throw c.code="MODULE_NOT_FOUND",c}var o=d[w]={exports:{}};B[w][0].call(o.exports,function(r){var i=B[w][1][r];return E(i||r)},o,o.exports,H,B,d,O)}return d[w].exports}for(var C=typeof require=="function"&&require,A=0;A<O.length;A++)E(O[A]);return E}return H}()({1:[function(H,B,d){"use strict";var O=H("./browser/client");O.Buffer=H("buffer").Buffer,O.urllib=H("../shims/xhr"),O.version=H("./browser/version").version,B.exports=O},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(H,B,d){(function(O,E){"use strict";var C=H("babel-runtime/core-js/promise"),A=o(C),w=H("babel-runtime/regenerator"),m=o(w),f=H("babel-runtime/core-js/object/assign"),c=o(f);function o(R){return R&&R.__esModule?R:{default:R}}var r=H("debug")("ali-oss"),i=H("copy-to"),n=H("xml2js"),e=H("agentkeepalive"),s=H("merge-descriptors"),t=H("url"),a=H("is-type-of"),l=H("platform"),u=H("utility"),h=H("urllib"),p=H("./version"),g=H("bowser"),v=H("../common/signUtils"),y=H("../common/utils/isIP"),x=y.isIP,T=H("../common/client/initOptions"),S=H("../common/utils/createRequest"),b=S.createRequest,_=new e;function I(){var R=l.name,P=l.version;R&&R.toLowerCase&&R.toLowerCase()==="ie"&&P.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function L(){return location&&location.protocol==="https:"}function N(R,P){if(I(),!(this instanceof N))return new N(R,P);R&&R.inited?this.options=R:this.options=N.initOptions(R),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=h,this.agent=this.options.agent||_),this.ctx=P,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}B.exports=N,N.initOptions=function(P){P.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},P);return T(M)};var D=N.prototype;D.debug=r,s(D,H("./object")),s(D,H("../common/bucket/getBucketWebsite")),s(D,H("../common/bucket/putBucketWebsite")),s(D,H("../common/bucket/deleteBucketWebsite")),s(D,H("../common/bucket/getBucketLifecycle")),s(D,H("../common/bucket/putBucketLifecycle")),s(D,H("../common/bucket/deleteBucketLifecycle")),s(D,H("../common/bucket/putBucketVersioning")),s(D,H("../common/bucket/getBucketVersioning")),s(D,H("./managed-upload")),s(D,H("../common/multipart")),s(D,H("../common/parallel")),D.signature=function(P){return this.debug("authorization stringToSign: %s",P,"info"),v.computeSignature(this.options.accessKeySecret,P)},D.authorization=function(P,M,U,F){var j=v.buildCanonicalString(P.toUpperCase(),M,{headers:F,parameters:U});return v.authorization(this.options.accessKeyId,this.options.accessKeySecret,j)},D.request=function(P){var M,U,F,j,W,V;return m.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return M=b.call(this,P),this.options.useFetch||(M.params.mode="disable-fetch"),U=void 0,F=void 0,j=!!P.stream,Y.prev=5,Y.next=8,m.default.awrap(this.urllib.request(M.url,M.params));case 8:U=Y.sent,this.debug("response %s %s, got %s, headers: %j",P.method,M.url,U.status,U.headers,"info"),Y.next=15;break;case 12:Y.prev=12,Y.t0=Y.catch(5),F=Y.t0;case 15:if(W=void 0,!(U&&P.successStatuses&&P.successStatuses.indexOf(U.status)===-1)){Y.next=28;break}return Y.next=19,m.default.awrap(this.requestError(U));case 19:if(W=Y.sent,!(W.code==="RequestTimeTooSkewed"&&!j)){Y.next=25;break}return this.options.amendTimeSkewed=+new Date(W.serverTime)-new Date,Y.next=24,m.default.awrap(this.request(P));case 24:return Y.abrupt("return",Y.sent);case 25:W.params=P,Y.next=32;break;case 28:if(!F){Y.next=32;break}return Y.next=31,m.default.awrap(this.requestError(F));case 31:W=Y.sent;case 32:if(!W){Y.next=34;break}throw W;case 34:if(!P.xmlResponse){Y.next=39;break}return Y.next=37,m.default.awrap(this.parseXML(U.data));case 37:V=Y.sent,U.data=V;case 39:return Y.abrupt("return",U);case 40:case"end":return Y.stop()}},null,this,[[5,12]])},D._getResource=function(P){var M="/";return P.bucket&&(M+=P.bucket+"/"),P.object&&(M+=P.object),M},D._isIP=x,D._escape=function(P){return u.encodeURIComponent(P).replace(/%2F/g,"/")},D._getReqUrl=function(P){var M={};i(this.options.endpoint).to(M);var U=this._isIP(M.hostname),F=this.options.cname;P.bucket&&!F&&!U&&(M.host=P.bucket+"."+M.host);var j="/";P.bucket&&U&&(j+=P.bucket+"/"),P.object&&(j+=this._escape(P.object).replace(/\+/g,"%2B")),M.pathname=j;var W={};if(P.query&&s(W,P.query),P.subres){var V={};a.string(P.subres)?V[P.subres]="":a.array(P.subres)?P.subres.forEach(function(z){V[z]=""}):V=P.subres,s(W,V)}return M.query=W,t.format(M)},D._getUserAgent=function(){var P=E&&E.browser?"js":"nodejs",M="aliyun-sdk-"+P+"/"+p.version,U=l.description;return!U&&E&&(U="Node.js "+E.version.slice(1)+" on "+E.platform+" "+E.arch),this._checkUserAgent(M+" "+U)},D._checkUserAgent=function(P){var M=P.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return M},D.checkBrowserAndVersion=function(P,M){return g.name===P&&g.version.split(".")[0]===M},D.parseXML=function(P){return new A.default(function(M,U){O.isBuffer(P)&&(P=P.toString()),n.parseString(P,{explicitRoot:!1,explicitArray:!1},function(F,j){F?U(F):M(j)})})},D.requestError=function(P){var M,U,F,j;return m.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(M=null,!(!P.data||!P.data.length)){V.next=5;break}P.status===-1||P.status===-2?(M=new Error(P.message),M.name=P.name,M.status=P.status,M.code=P.name):(P.status===404?(M=new Error("Object not exists"),M.name="NoSuchKeyError",M.status=404,M.code="NoSuchKey"):P.status===412?(M=new Error("Pre condition failed"),M.name="PreconditionFailedError",M.status=412,M.code="PreconditionFailed"):(M=new Error("Unknow error, status: "+P.status),M.name="UnknowError",M.status=P.status),M.requestId=P.headers["x-oss-request-id"],M.host=""),V.next=33;break;case 5:return U=String(P.data),this.debug("request response error data: %s",U,"error"),F=void 0,V.prev=8,V.next=11,m.default.awrap(this.parseXML(U));case 11:if(V.t0=V.sent,V.t0){V.next=14;break}V.t0={};case 14:F=V.t0,V.next=24;break;case 17:return V.prev=17,V.t1=V.catch(8),this.debug(U,"error"),V.t1.message+=`
|
|
|
raw xml: `+U,V.t1.status=P.status,V.t1.requestId=P.headers["x-oss-request-id"],V.abrupt("return",V.t1);case 24:j=F.Message||"unknow request error, status: "+P.status,F.Condition&&(j+=" (condition: "+F.Condition+")"),M=new Error(j),M.name=F.Code?F.Code+"Error":"UnknowError",M.status=P.status,M.code=F.Code,M.requestId=F.RequestId,M.hostId=F.HostId,M.serverTime=F.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,B,d){(function(O){"use strict";var E=H("babel-runtime/core-js/array/from"),C=c(E),A=H("babel-runtime/core-js/promise"),w=c(A),m=H("babel-runtime/regenerator"),f=c(m);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"),s=H("../common/utils/isBlob"),t=s.isBlob,a=H("../common/utils/isFile"),l=a.isFile,u=d;u.multipartUpload=function(y,x,T){var S,b,_,I,L,N,D,R,P;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 S=100*1024,T.mime||(l(x)?T.mime=n.getType(i.extname(x.name)):t(x)?T.mime=x.type:T.mime=n.getType(i.extname(x))),T.headers=T.headers||{},this._convertMetaToHeaders(T.meta,T.headers),U.next=12,f.default.awrap(this._getFileSize(x));case 12:if(b=U.sent,!(b<S)){U.next=25;break}return _=this._createStream(x,0,b),T.contentLength=b,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<S)){U.next=29;break}throw new Error("partSize must not be smaller than "+S);case 29:return U.next=31,f.default.awrap(this.initMultipartUpload(y,T));case 31:if(N=U.sent,D=N.uploadId,R=this._getPartSize(b,T.partSize),P={file:x,name:y,fileSize:b,partSize:R,uploadId:D,doneParts:[]},!(T&&T.progress)){U.next=38;break}return U.next=38,f.default.awrap(T.progress(0,P,N.res));case 38:return U.next=40,f.default.awrap(this._resumeMultipart(P,T));case 40:return U.abrupt("return",U.sent);case 41:case"end":return U.stop()}},null,this)},u._resumeMultipart=function(y,x){var T,S,b,_,I,L,N,D,R,P,M,U,F,j,W,V,z,Y;return f.default.async(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(T=this,!this.isCancel()){ue.next=3;break}throw this._makeCancelEvent();case 3:return S=y.file,b=y.fileSize,_=y.partSize,I=y.uploadId,L=y.doneParts,N=y.name,D=[],L.length>0&&e(L).to(D),R=this._divideParts(b,_),P=R.length,M=!1,U=function(ge,Oe){var De=this;return new w.default(function(pe,Ue){var oe,ee,Xe,se;return f.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:if(G.prev=0,ge.isCancel()){G.next=18;break}return oe=R[Oe-1],ee={stream:ge._createStream(S,oe.start,oe.end),size:oe.end-oe.start},G.next=6,f.default.awrap(ge._uploadPart(N,I,Oe,ee));case 6:if(Xe=G.sent,!(!ge.isCancel()&&!M)){G.next=15;break}if(y.doneParts.push({number:Oe,etag:Xe.res.headers.etag}),!x.progress){G.next=12;break}return G.next=12,f.default.awrap(x.progress(L.length/P,y,Xe.res));case 12:pe({number:Oe,etag:Xe.res.headers.etag}),G.next=16;break;case 15:pe();case 16:G.next=19;break;case 18:pe();case 19:G.next=30;break;case 21:G.prev=21,G.t0=G.catch(0),se=new Error,se.name=G.t0.name,se.message=G.t0.message,se.stack=G.t0.stack,se.partNum=Oe,e(G.t0).to(se),Ue(se);case 30:case"end":return G.stop()}},null,De,[[0,21]])})},F=(0,C.default)(new Array(P),function(ne,ge){return ge+1}),j=D.map(function(ne){return ne.number}),W=F.filter(function(ne){return j.indexOf(ne)<0}),V=5,z=x.parallel||V,ue.next=17,f.default.awrap(this._parallel(W,z,function(ne){return new w.default(function(ge,Oe){U(T,ne).then(function(De){De&&D.push(De),ge()}).catch(function(De){Oe(De)})})}));case 17:if(Y=ue.sent,M=!0,!this.isCancel()){ue.next=22;break}throw U=null,this._makeCancelEvent();case 22:if(!(Y&&Y.length>0)){ue.next=25;break}throw Y[0].message="Failed to upload some parts with error: "+Y[0].toString()+" part_num: "+Y[0].partNum,Y[0];case 25:return ue.next=27,f.default.awrap(this.completeMultipartUpload(N,I,D,x));case 27:return ue.abrupt("return",ue.sent);case 28:case"end":return ue.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)||l(y))){T.next=6;break}return T.abrupt("return",y.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return T.stop()}},null,this)};var h=H("stream"),p=h.Readable;function g(v,y){if(!(this instanceof g))return new g(v,y);p.call(this,y),this.file=v,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}r.inherits(g,p),g.prototype.readFileAndPush=function(y){if(this.fileBuffer)for(var x=!0;x&&this.fileBuffer&&this.start<this.fileBuffer.length;){var T=this.start,S=T+y;S=S>this.fileBuffer.length?this.fileBuffer.length:S,this.start=S,x=this.push(this.fileBuffer.slice(T,S))}},g.prototype._read=function(y){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var x=16*1024;y=y||x;var T=this;this.reader.onload=function(b){T.fileBuffer=O.from(new Uint8Array(b.target.result)),T.file=null,T.readFileAndPush(y)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(y)},u._createStream=function(y,x,T){if(t(y)||l(y))return new g(y.slice(x,T));throw new Error("_createStream requires File/Blob.")},u._getPartSize=function(y,x){var T=10*1e3,S=1024*1024;return x?Math.max(Math.ceil(y/T),x):S},u._divideParts=function(y,x){for(var T=Math.ceil(y/x),S=[],b=0;b<T;b++){var _=x*b,I=Math.min(_+x,y);S.push({start:_,end:I})}return S}}).call(this,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,B,d){"use strict";var O=H("babel-runtime/core-js/promise"),E=o(O),C=H("babel-runtime/core-js/object/keys"),A=o(C),w=H("babel-runtime/core-js/object/assign"),m=o(w),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"),s=H("copy-to"),t=H("path"),a=H("mime"),l=H("../common/callback"),u=H("../common/signUtils"),h=H("merge-descriptors"),p=H("../common/utils/isBlob"),g=p.isBlob,v=H("../common/utils/isFile"),y=v.isFile,x=d;x.append=function(S,b,_){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(S,b,_));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)},x.put=function(S,b,_){var I,L,N,D,R,P,M;return c.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(I=void 0,_=_||{},S=this._objectName(S),!n.buffer(b)){F.next=7;break}I=b,F.next=33;break;case 7:if(!(g(b)||y(b))){F.next=32;break}return _.mime||(y(b)?_.mime=a.getType(t.extname(b.name)):_.mime=b.type),L=this._createStream(b,0,b.size),F.next=12,c.default.awrap(this._getFileSize(b));case 12:return _.contentLength=F.sent,F.prev=13,F.next=16,c.default.awrap(this.putStream(S,L,_));case 16:return N=F.sent,F.abrupt("return",N);case 20:if(F.prev=20,F.t0=F.catch(13),!(F.t0.code==="RequestTimeTooSkewed")){F.next=29;break}return this.options.amendTimeSkewed=+new Date(F.t0.serverTime)-new Date,F.next=26,c.default.awrap(this.put(S,b,_));case 26:return F.abrupt("return",F.sent);case 29:throw F.t0;case 30:F.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return _.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),D=_.method||"PUT",R=this._objectRequestParams(D,S,_),l.encodeCallback(R,_),R.mime=_.mime,R.content=I,R.successStatuses=[200],F.next=43,c.default.awrap(this.request(R));case 43:return P=F.sent,M={name:S,url:this._objectUrl(S),res:P.res},R.headers&&R.headers["x-oss-callback"]&&(M.data=JSON.parse(P.data.toString())),F.abrupt("return",M);case 47:case"end":return F.stop()}},null,this,[[13,20]])},x.putStream=function(S,b,_){var I,L,N,D;return c.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return _=_||{},_.headers=_.headers||{},S=this._objectName(S),_.contentLength?_.headers["Content-Length"]=_.contentLength:_.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_.meta,_.headers),I=_.method||"PUT",L=this._objectRequestParams(I,S,_),l.encodeCallback(L,_),L.mime=_.mime,L.stream=b,L.successStatuses=[200],P.next=13,c.default.awrap(this.request(L));case 13:return N=P.sent,D={name:S,url:this._objectUrl(S),res:N.res},L.headers&&L.headers["x-oss-callback"]&&(D.data=JSON.parse(N.data.toString())),P.abrupt("return",D);case 17:case"end":return P.stop()}},null,this)},h(x,H("../common/object/copyObject")),h(x,H("../common/object/getObjectTagging")),h(x,H("../common/object/putObjectTagging")),h(x,H("../common/object/deleteObjectTagging")),h(x,H("../common/image")),h(x,H("../common/object/getBucketVersions")),h(x,H("../common/object/getACL")),h(x,H("../common/object/putACL")),h(x,H("../common/object/head")),h(x,H("../common/object/delete")),h(x,H("../common/object/get")),h(x,H("../common/object/putSymlink")),h(x,H("../common/object/getSymlink")),h(x,H("../common/object/deleteMulti")),h(x,H("../common/object/getObjectMeta")),x.putMeta=function(S,b,_){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(S,S,{meta:b||{},timeout:_&&_.timeout,ctx:_&&_.ctx}));case 2:return I=N.sent,N.abrupt("return",I);case 4:case"end":return N.stop()}},null,this)},x.list=function(S,b){var _,I,L,N,D;return c.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return _=this._objectRequestParams("GET","",b),_.query=S,_.xmlResponse=!0,_.successStatuses=[200],P.next=6,c.default.awrap(this.request(_));case 6:return I=P.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}}})),D=I.data.CommonPrefixes||null,D&&(Array.isArray(D)||(D=[D]),D=D.map(function(M){return M.Prefix})),P.abrupt("return",{res:I.res,objects:L,prefixes:D,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return P.stop()}},null,this)},x.restore=function(S,b){var _,I;return c.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return b=b||{},b.subres=(0,m.default)({restore:""},b.subres),b.versionId&&(b.subres.versionId=b.versionId),_=this._objectRequestParams("POST",S,b),_.successStatuses=[202],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)},x.signatureUrl=function(S,b){b=b||{},S=this._objectName(S),b.method=b.method||"GET";var _=r.timestamp()+(b.expires||1800),I={bucket:this.options.bucket,object:S},L=this._getResource(I);this.options.stsToken&&(b["security-token"]=this.options.stsToken);var N=u._signatureForURL(this.options.accessKeySecret,b,L,_),D=e.parse(this._getReqUrl(I));return D.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:N.Signature},s(N.subResource).to(D.query),D.format()},x.getObjectUrl=function(S,b){return b?b[b.length-1]!=="/"&&(b+="/"):b=this.options.endpoint.format(),b+this._escape(this._objectName(S))},x._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},x.generateObjectUrl=function(T,S){if(S)S[S.length-1]!=="/"&&(S+="/");else{S=this.options.endpoint.format();var b=e.parse(S),_=this.options.bucket;b.hostname=_+"."+b.hostname,b.host=_+"."+b.host,S=b.format()}return S+this._escape(this._objectName(T))},x._objectRequestParams=function(S,b,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},b=this._objectName(b);var I={object:b,bucket:this.options.bucket,method:S,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(I.headers={},s(_.headers).to(I.headers)),I},x._objectName=function(S){return S.replace(/^\/+/,"")},x._convertMetaToHeaders=function(S,b){if(!S)return;(0,A.default)(S).forEach(function(_){b["x-oss-meta-"+_]=S[_]})},x._deleteFileSafe=function(S){var b=this;return new E.default(function(_){i.exists(S,function(I){I?i.unlink(S,function(L){L&&b.debug("unlink %j error: %s",S,L,"error"),_()}):_()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(H,B,d){"use strict";d.version="6.10.0"},{}],6:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=d;m.deleteBucketLifecycle=function(c,o){var r,i;return E.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return w(c),r=this._bucketRequestParams("DELETE",c,"lifecycle",o),r.successStatuses=[204],e.next=5,E.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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=d;m.deleteBucketWebsite=function(c,o){var r,i;return E.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return w(c),r=this._bucketRequestParams("DELETE",c,"website",o),r.successStatuses=[204],e.next=5,E.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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=H("../utils/isArray"),f=m.isArray,c=H("../utils/formatObjKey"),o=c.formatObjKey,r=d;r.getBucketLifecycle=function(n,e){var s,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return w(n),s=this._bucketRequestParams("GET",n,"lifecycle",e),s.successStatuses=[200],s.xmlResponse=!0,u.next=6,E.default.awrap(this.request(s));case 6:return t=u.sent,a=t.data.Rule||null,a&&(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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=d;m.getBucketVersioning=function(c,o){var r,i,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return w(c),r=this._bucketRequestParams("GET",c,"versioning",o),r.xmlResponse=!0,r.successStatuses=[200],s.next=6,E.default.awrap(this.request(r));case 6:return i=s.sent,n=i.data.Status,s.abrupt("return",{status:i.status,versionStatus:n,res:i.res});case 9:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=H("../utils/isObject"),f=m.isObject,c=d;c.getBucketWebsite=function(r,i){var n,e,s;return E.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return w(r),n=this._bucketRequestParams("GET",r,"website",i),n.successStatuses=[200],n.xmlResponse=!0,a.next=6,E.default.awrap(this.request(n));case 6:return e=a.sent,s=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(f(e.data.RoutingRules.RoutingRule)?s=[e.data.RoutingRules.RoutingRule]:s=e.data.RoutingRules.RoutingRule),a.abrupt("return",{index:e.data.IndexDocument&&e.data.IndexDocument.Suffix||"",supportSubDir:e.data.IndexDocument&&e.data.IndexDocument.SupportSubDir||"false",type:e.data.IndexDocument&&e.data.IndexDocument.Type,routingRules:s,error:e.data.ErrorDocument&&e.data.ErrorDocument.Key||null,res:e.res});case 10:case"end":return a.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(y){return y&&y.__esModule?y:{default:y}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=H("../utils/isArray"),f=m.isArray,c=H("../utils/deepCopy"),o=c.deepCopy,r=H("../utils/isObject"),i=r.isObject,n=H("../utils/obj2xml"),e=n.obj2xml,s=H("../utils/checkObjectTag"),t=s.checkObjectTag,a=H("../utils/getStrBytesCount"),l=a.getStrBytesCount,u=d;u.putBucketLifecycle=function(x,T,S){var b,_,I,L,N;return E.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(w(x),f(T)){R.next=3;break}throw new Error("rules must be Array");case 3:return b=this._bucketRequestParams("PUT",x,"lifecycle",S),_=[],I={LifecycleConfiguration:{Rule:_}},T.forEach(function(P){h(P),v(P),P.id&&(P.ID=P.id,delete P.id),_.push(P)}),L=e(I,{headers:!0,firstUpperCase:!0}),b.content=L,b.mime="xml",b.successStatuses=[200],R.next=13,E.default.awrap(this.request(b));case 13:return N=R.sent,R.abrupt("return",{res:N.res});case 15:case"end":return R.stop()}},null,this)};function h(y){y.days&&(y.expiration={days:y.days}),y.date&&(y.expiration={createdBeforeDate:y.date})}function p(y,x){var T=y.days,S=y.createdBeforeDate;if(!T&&!S)throw new Error(x+" must includes days or createdBeforeDate");if(T&&!/^[1-9][0-9]*$/.test(T))throw new Error("days must be a positive integer");if(S&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(S))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function g(y){if(!f(y)&&!i(y))throw new Error("tag must be Object or Array");y=i(y)?[y]:y;var x={},T=o(y);T.forEach(function(S){x[S.key]=S.value}),t(x)}function v(y){if(y.id&&l(y.id)>255)throw new Error("ID is composed of 255 bytes at most");if(y.prefix===""||y.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(y.status))throw new Error("Status must be Enabled or Disabled");if(y.transition){if(!["IA","Archive"].includes(y.transition.storageClass))throw new Error("StorageClass must be IA or Archive");p(y.transition,"Transition")}if(y.expiration){if(!y.expiration.expiredObjectDeleteMarker)p(y.expiration,"Expiration");else if(y.expiration.days||y.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(y.abortMultipartUpload&&p(y.abortMultipartUpload,"AbortMultipartUpload"),!y.expiration&&!y.abortMultipartUpload&&!y.transition&&!y.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(y.tag){if(y.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");g(y.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=H("../utils/obj2xml"),f=m.obj2xml,c=d;c.putBucketVersioning=function(r,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,s,t;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(w(r),["Enabled","Suspended"].includes(i)){l.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",r,"versioning",n),s={VersioningConfiguration:{Status:i}},e.mime="xml",e.content=f(s,{headers:!0}),l.next=9,E.default.awrap(this.request(e));case 9:return t=l.sent,l.abrupt("return",{res:t.res,status:t.status});case 11:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=H("../utils/obj2xml"),f=m.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]:{},s=arguments[2],t,a,l,u,h;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:if(w(n),t=this._bucketRequestParams("PUT",n,"website",s),a={Suffix:e.index||"index.html"},l={IndexDocument:a},u={WebsiteConfiguration:l},e.supportSubDir&&(a.SupportSubDir=e.supportSubDir),e.type&&(a.Type=e.type),e.error&&(l.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){g.next=12;break}if(o(e.routingRules)){g.next=11;break}throw new Error("RoutingRules must be Array");case 11:l.RoutingRules={RoutingRule:e.routingRules};case 12:return u=f(u),t.content=u,t.mime="xml",t.successStatuses=[200],g.next=18,E.default.awrap(this.request(t));case 18:return h=g.sent,g.abrupt("return",{res:h.res});case 20:case"end":return g.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(H,B,d){(function(O){"use strict";var E=H("babel-runtime/core-js/object/keys"),C=m(E),A=H("babel-runtime/core-js/json/stringify"),w=m(A);function m(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,w.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,w.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,B,d){"use strict";var O=H("babel-runtime/core-js/object/assign"),E=C(O);function C(r){return r&&r.__esModule?r:{default:r}}var A=H("humanize-ms"),w=H("url"),m=H("../utils/checkBucketName"),f=m.checkBucketName;function c(r,i){var n=w.parse(r);if(n.protocol||(n=w.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://",s=i?"-internal.aliyuncs.com":".aliyuncs.com",t="vpc100-oss-cn-";return r.substr(0,t.length)===t&&(s=".aliyuncs.com"),w.parse(e+r+s)}B.exports=function(r){if(!r||!r.accessKeyId||!r.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");r.bucket&&f(r.bucket);var i=(0,E.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},r);if(i.accessKeyId=i.accessKeyId.trim(),i.accessKeySecret=i.accessKeySecret.trim(),i.timeout&&(i.timeout=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,B,d){"use strict";var O=H("merge-descriptors"),E=d;O(E,H("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),w=A.checkBucketName,m=H("querystring"),f=H("js-base64"),c=f.Base64.encode,o=d;o.processObjectSave=function(n,e,s,t){var a,l,u,h;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return r(n,"sourceObject"),r(e,"targetObject"),r(s,"process"),e=this._objectName(e),t&&w(t),a=this._objectRequestParams("POST",n,{subres:"x-oss-process"}),l=t?",b_"+c(t):"",e=c(e),u={"x-oss-process":s+"|sys/saveas,o_"+e+l},a.content=m.stringify(u),g.next=12,E.default.awrap(this.request(a));case 12:return h=g.sent,g.abrupt("return",{res:h.res,status:h.res.status});case 14:case"end":return g.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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("copy-to"),w=H("./callback"),m=H("./utils/deepCopy"),f=m.deepCopy,c=d;c.listUploads=function(r,i){var n,e,s,t;return E.default.async(function(l){for(;;)switch(l.prev=l.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],l.next=10,E.default.awrap(this.request(e));case 10:return s=l.sent,t=s.data.Upload||[],Array.isArray(t)||(t=[t]),t=t.map(function(u){return{name:u.Key,uploadId:u.UploadId,initiated:u.Initiated}}),l.abrupt("return",{res:s.res,uploads:t,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:s.data.IsTruncated==="true"});case 15:case"end":return l.stop()}},null,this)},c.listParts=function(r,i,n,e){var s,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=e||{},s={},A(e).to(s),s.subres={uploadId:i},t=this._objectRequestParams("GET",r,s),t.query=n,t.xmlResponse=!0,t.successStatuses=[200],u.next=10,E.default.awrap(this.request(t));case 10:return a=u.sent,u.abrupt("return",{res:a.res,uploadId:a.data.UploadId,bucket:a.data.Bucket,name:a.data.Key,partNumberMarker:a.data.PartNumberMarker,nextPartNumberMarker:a.data.NextPartNumberMarker,maxParts:a.data.MaxParts,isTruncated:a.data.IsTruncated,parts:a.data.Part||[]});case 12:case"end":return u.stop()}},null,this)},c.abortMultipartUpload=function(r,i,n){var e,s,t;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return this._stop(),n=n||{},e={},A(n).to(e),e.subres={uploadId:i},s=this._objectRequestParams("DELETE",r,e),s.successStatuses=[204],l.next=9,E.default.awrap(this.request(s));case 9:return t=l.sent,l.abrupt("return",{res:t.res});case 11:case"end":return l.stop()}},null,this)},c.initMultipartUpload=function(r,i){var n,e,s;return E.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,E.default.awrap(this.request(e));case 12:return s=a.sent,a.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return a.stop()}},null,this)},c.uploadPart=function(r,i,n,e,s,t,a){var l;return E.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return l={stream:this._createStream(e,s,t),size:t-s},h.next=3,E.default.awrap(this._uploadPart(r,i,n,l,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 s,t,a,l,u,h,p,g;return E.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:for(s=n.concat().sort(function(x,T){return x.number-T.number}).filter(function(x,T,S){return!T||x.number!==S[T-1].number}),t=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,a=0;a<s.length;a++)l=s[a],t+=`<Part>
|
|
|
`,t+="<PartNumber>"+l.number+`</PartNumber>
|
|
|
`,t+="<ETag>"+l.etag+`</ETag>
|
|
|
`,t+=`</Part>
|
|
|
`;return t+="</CompleteMultipartUpload>",e=e||{},u={},u=f(e),u.headers&&delete u.headers["x-oss-server-side-encryption"],u.subres={uploadId:i},h=this._objectRequestParams("POST",r,u),w.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,E.default.awrap(this.request(h));case 17:return p=y.sent,g={res:p.res,bucket:h.bucket,name:r,etag:p.res.headers.etag},h.headers&&h.headers["x-oss-callback"]&&(g.data=JSON.parse(p.data.toString())),y.abrupt("return",g);case 21:case"end":return y.stop()}},null,this)},c._uploadPart=function(r,i,n,e,s){var t,a,l;return E.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return s=s||{},t={},A(s).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,E.default.awrap(this.request(a));case 11:if(l=h.sent,l.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:l.res.headers.etag,res:l.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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),w=H("babel-runtime/helpers/typeof"),m=f(w);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,s,t){var a,l,u;return E.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return(typeof s=="undefined"?"undefined":(0,m.default)(s))==="object"&&(t=s),t=t||{},t.headers=t.headers||{},(0,A.default)(t.headers).forEach(function(g){t.headers["x-oss-copy-source-"+g.toLowerCase()]=t.headers[g]}),t.meta&&(t.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(t.meta,t.headers),e=this._getSourceName(e,s),t.versionId&&(e=e+"?versionId="+t.versionId),t.headers["x-oss-copy-source"]=e,a=this._objectRequestParams("PUT",n,t),a.xmlResponse=!0,a.successStatuses=[200,304],p.next=14,E.default.awrap(this.request(a));case 14:return l=p.sent,u=l.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),p.abrupt("return",{data:u,res:l.res});case 18:case"end":return p.stop()}},null,this)},r._getSourceName=function(n,e){return typeof e=="string"?n=this._objectName(n):n[0]!=="/"?e=this.options.bucket:(e=n.replace(/\/(.+?)(\/.*)/,"$1"),n=n.replace(/(\/.+?\/)(.*)/,"$2")),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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(f){return f&&f.__esModule?f:{default:f}}var m=d;m.delete=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return E.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,E.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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(r){return r&&r.__esModule?r:{default:r}}var m=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,s,t,a,l,u,h,p,g,v,y,x;return E.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:if(e=[],!(!i||!i.length)){S.next=3;break}throw new Error("names is required");case 3:for(s=0;s<i.length;s++)t={},typeof i[s]=="string"?t.Key=m.escape(this._objectName(i[s])):(a=i[s],l=a.key,u=a.versionId,t.Key=m.escape(this._objectName(l)),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),g=this._objectRequestParams("POST","",n),g.mime="xml",g.content=p,g.xmlResponse=!0,g.successStatuses=[200],S.next=15,E.default.awrap(this.request(g));case 15:return v=S.sent,y=v.data,x=y&&y.Deleted||null,x&&(Array.isArray(x)||(x=[x])),S.abrupt("return",{res:v.res,deleted:x||[]});case 20:case"end":return S.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(f){return f&&f.__esModule?f:{default:f}}var m=d;m.deleteObjectTagging=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return E.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,E.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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(o){return o&&o.__esModule?o:{default:o}}var m=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,s,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=null,s=!1,f.writableStream(i)?e=i:f.string(i)?(e=m.createWriteStream(i),s=!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,E.default.awrap(this.request(a));case 14:t=u.sent,s&&e.destroy(),u.next=25;break;case 18:if(u.prev=18,u.t0=u.catch(8),!s){u.next=24;break}return e.destroy(),u.next=24,E.default.awrap(this._deleteFileSafe(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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(f){return f&&f.__esModule?f:{default:f}}var m=d;m.getACL=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return E.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,E.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,B,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),E=f(O),C=H("babel-runtime/regenerator"),A=f(C),w=H("babel-runtime/core-js/object/assign"),m=f(w);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]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,h,p,g,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 l.subres=(0,m.default)({versions:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),u=this._objectRequestParams("GET","",l),u.xmlResponse=!0,u.successStatuses=[200],u.query=t(a),T.next=10,A.default.awrap(this.request(u));case 10:return h=T.sent,p=h.data.Version||[],g=h.data.DeleteMarker||[],v=this,p&&(Array.isArray(p)||(p=[p]),p=p.map(function(S){return{name:S.Key,url:v._objectUrl(S.Key),lastModified:S.LastModified,isLatest:S.IsLatest==="true",versionId:S.VersionId,etag:S.ETag,type:S.Type,size:Number(S.Size),storageClass:S.StorageClass,owner:{id:S.Owner.ID,displayName:S.Owner.DisplayName}}})),g&&(n(g)||(g=[g]),g=g.map(function(S){return{name:S.Key,lastModified:S.LastModified,versionId:S.VersionId,owner:{id:S.Owner.ID,displayName:S.Owner.DisplayName}}})),y=h.data.CommonPrefixes||null,y&&(n(y)||(y=[y]),y=y.map(function(S){return S.Prefix})),T.abrupt("return",{res:h.res,objects:p,deleteMarker:g,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 s(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()}function t(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l={};return r(a)&&(0,E.default)(a).forEach(function(u){l[s(u)]=a[u]}),l}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(f){return f&&f.__esModule?f:{default:f}}var m=d;m.getObjectMeta=function(c,o){var r,i;return E.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,E.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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(o){return o&&o.__esModule?o:{default:o}}var m=d,f=H("../utils/isObject"),c=f.isObject;m.getObjectTagging=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,s,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return 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,E.default.awrap(this.request(n));case 7:return e=u.sent,u.next=10,E.default.awrap(this.parseXML(e.data));case 10:return s=u.sent,t=s.TagSet.Tag,t=t&&c(t)?[t]:t||[],a={},t.forEach(function(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,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(f){return f&&f.__esModule?f:{default:f}}var m=d;m.getSymlink=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return 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],s.next=7,E.default.awrap(this.request(r));case 7:return i=s.sent,n=i.res.headers["x-oss-symlink-target"],s.abrupt("return",{targetName:decodeURIComponent(n),res:i.res});case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),w=H("babel-runtime/core-js/object/assign"),m=f(w);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,s;return E.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return i.subres=(0,m.default)({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),n=this._objectRequestParams("HEAD",r,i),n.successStatuses=[200,304],a.next=6,E.default.awrap(this.request(n));case 6:return e=a.sent,s={meta:null,res:e.res,status:e.status},e.status===200&&(0,A.default)(e.headers).forEach(function(l){l.indexOf("x-oss-meta-")===0&&(s.meta||(s.meta={}),s.meta[l.substring(11)]=e.headers[l])}),a.abrupt("return",s);case 10:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(f){return f&&f.__esModule?f:{default:f}}var m=d;m.putACL=function(c,o,r){var i,n;return E.default.async(function(s){for(;;)switch(s.prev=s.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],s.next=10,E.default.awrap(this.request(i));case 10:return n=s.sent,s.abrupt("return",{res:n.res});case 12:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),w=H("babel-runtime/core-js/object/assign"),m=f(w);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(s,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,u,h;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return i(t),a.subres=(0,m.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),s=this._objectName(s),l=this._objectRequestParams("PUT",s,a),l.successStatuses=[200],t=(0,A.default)(t).map(function(v){return{Key:v,Value:t[v]}}),u={Tagging:{TagSet:{Tag:t}}},l.mime="xml",l.content=o(u),g.next=12,E.default.awrap(this.request(l));case 12:return h=g.sent,g.abrupt("return",{res:h.res,status:h.status});case 14:case"end":return g.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/object/assign"),A=w(C);function w(f){return f&&f.__esModule?f:{default:f}}var m=d;m.putSymlink=function(c,o,r){var i,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=r||{},r.headers=r.headers||{},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],s.next=13,E.default.awrap(this.request(i));case 13:return n=s.sent,s.abrupt("return",{res:n.res});case 15:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(H,B,d){"use strict";var O=H("babel-runtime/regenerator"),E=w(O),C=H("babel-runtime/core-js/promise"),A=w(C);function w(f){return f&&f.__esModule?f:{default:f}}var m=d;m._parallelNode=function(c,o,r,i){var n,e,s,t,a,l,u,h;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:n=this,e=[],s=[],t=c.length/o,a=c.length%o,l=a===0?t:(c.length-a)/o+1,u=1,h=0;case 8:if(!(h<c.length)){g.next=26;break}if(!n.isCancel()){g.next=11;break}return g.abrupt("break",26);case 11:if(i?s.push(r(n,c[h],i)):s.push(r(n,c[h])),!(s.length===o||u===l&&h===c.length-1)){g.next=23;break}return g.prev=13,u+=1,g.next=17,E.default.awrap(A.default.all(s));case 17:g.next=22;break;case 19:g.prev=19,g.t0=g.catch(13),e.push(g.t0);case 22:s=[];case 23:h++,g.next=8;break;case 26:return g.abrupt("return",e);case 27:case"end":return g.stop()}},null,this,[[13,19]])},m._parallel=function(c,o,r){var i=this;return new A.default(function(n){var e=[];if(o<=0||!c){n(e);return}function s(y){return function(){if(y===null)throw new Error("Callback was already called.");var x=y;y=null;for(var T=arguments.length,S=Array(T),b=0;b<T;b++)S[b]=arguments[b];x.apply(this,S)}}function t(y){var x=-1,T=y.length;return function(){return++x<T&&!i.isCancel()?{value:y[x],key:x}:null}}var a=t(c),l=!1,u=0,h=!1;function p(y,x){u-=1,y?(l=!0,e.push(y),n(e)):x==={}||l&&u<=0?(l=!0,n(e)):h||(i.isCancel()?n(e):v())}function g(y,x){r(y).then(function(T){x(null,T)}).catch(function(T){x(T)})}function v(){for(h=!0;u<o&&!l&&!i.isCancel();){var y=a();if(y===null||e.length>0){l=!0,u<=0&&n(e);return}u+=1,g(y.value,s(p))}h=!1}v()})},m.cancel=function(c){this.options.cancelFlag=!0,c&&this.abortMultipartUpload(c.name,c.uploadId,c.options)},m.isCancel=function(){return this.options.cancelFlag},m.resetCancelFlag=function(){this.options.cancelFlag=!1},m._stop=function(){this.options.cancelFlag=!0},m._makeCancelEvent=function(){var c={status:0,name:"cancel"};return c}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(H,B,d){(function(O){"use strict";var E=H("babel-runtime/core-js/json/stringify"),C=m(E),A=H("babel-runtime/core-js/object/keys"),w=m(A);function m(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 s=function(l,u){return l[0]>u[0]?1:l[0]<u[0]?-1:0},t=function(l){n+=e+l,i[l]&&(n+="="+i[l]),e="&"};(0,w.default)(i).sort(s).forEach(t)}return n},d.buildCanonicalString=function(r,i,n,e){n=n||{};var s=n.headers||{},t="x-oss-",a=[],l={},u=[r.toUpperCase(),s["Content-Md5"]||"",s["Content-Type"]||s["Content-Type".toLowerCase()],e||s["x-oss-date"]];return(0,w.default)(s).forEach(function(h){var p=h.toLowerCase();p.indexOf(t)===0&&(l[p]=String(s[h]).trim())}),(0,w.default)(l).sort().forEach(function(h){a.push(h+":"+l[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],s={},t=i.subResource,a=t===void 0?{}:t;if(i.process){var l="x-oss-process";a[l]=i.process}if(i.trafficLimit){var u="x-oss-traffic-limit";a[u]=i.trafficLimit}if(i.response&&(0,w.default)(i.response).forEach(function(v){var y="response-"+v.toLowerCase();a[y]=i.response[v]}),(0,w.default)(i).forEach(function(v){var y=v.toLowerCase(),x=i[v];y.indexOf("x-oss-")===0?s[y]=x:(y.indexOf("content-md5")===0||y.indexOf("content-type")===0)&&(s[v]=x)}),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,w.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 g=this.buildCanonicalString(i.method,n,{headers:s,parameters:a},e.toString());return{Signature:this.computeSignature(r,g),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,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkBucketName=void 0,d.checkBucketName=function(O,E){var C=E?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!C.test(O))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/entries"),E=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"),w=A.checkValid,m=H("./isObject"),f=m.isObject,c=[{validator:function(n){if(typeof n!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],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,E.default)(i);if(n.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];n.forEach(function(s){s.forEach(function(t,a){w(t,o[e[a]])})})}d.checkObjectTag=r},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(H,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkValid=void 0;function O(E,C){C.forEach(function(A){if(A.validator)A.validator(E);else if(A.pattern&&!A.pattern.test(E))throw new Error(A.msg)})}d.checkValid=O},{}],38:[function(H,B,d){(function(O){"use strict";var E=H("babel-runtime/core-js/object/assign"),C=A(E);function A(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(d,"__esModule",{value:!0}),d.createRequest=void 0;var w=H("./../../../shims/crypto/crypto.js"),m=H("debug")("ali-oss"),f=H("mime"),c=H("dateformat"),o=H("copy-to"),r=H("path");function i(s,t){return s[t]||s[t.toLowerCase()]}function n(s,t){delete s[t],delete s[t.toLowerCase()]}function e(s){var t=new Date;this.options.amendTimeSkewed&&(t=+new Date+this.options.amendTimeSkewed);var a={"x-oss-date":c(t,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(a["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,C.default)(a,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(a["x-oss-security-token"]=this.options.stsToken),o(s.headers).to(a),i(a,"Content-Type")||(s.mime&&s.mime.indexOf("/")>0?a["Content-Type"]=s.mime:a["Content-Type"]=f.getType(s.mime||r.extname(s.object||""))),i(a,"Content-Type")||n(a,"Content-Type"),s.content&&(a["Content-Md5"]=w.createHash("md5").update(O.from(s.content,"utf8")).digest("base64"),a["Content-Length"]||(a["Content-Length"]=s.content.length));var l=this._getResource(s);a.authorization=this.authorization(s.method,l,s.subres,a);var u=this._getReqUrl(s);m("request %s %s, with headers %j, !!stream: %s",s.method,u,a,!!s.stream);var h=s.timeout||this.options.timeout,p={method:s.method,content:s.content,stream:s.stream,headers:a,timeout:h,writeStream:s.writeStream,customResponse:s.customResponse,ctx:s.ctx||this.ctx};return this.agent&&(p.agent=this.agent),this.httpsAgent&&(p.httpsAgent=this.httpsAgent),{url:u,params:p}}d.createRequest=e}).call(this,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,B,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),E=w(O),C=H("babel-runtime/helpers/typeof"),A=w(C);function w(m){return m&&m.__esModule?m:{default:m}}Object.defineProperty(d,"__esModule",{value:!0}),d.deepCopy=void 0,d.deepCopy=function(m){if(m===null||(typeof m=="undefined"?"undefined":(0,A.default)(m))!=="object")return m;var f=Array.isArray(m)?[]:{};return(0,E.default)(m).forEach(function(c){f[c]=d.deepCopy(m[c])}),f}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),E=w(O),C=H("babel-runtime/helpers/typeof"),A=w(C);function w(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(d,"__esModule",{value:!0}),d.formatObjKey=void 0;function m(c,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(m(c[i],o))}else r={},(0,E.default)(c).forEach(function(n){r[f(n,o)]=m(c[n],o)});return r}d.formatObjKey=m;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,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getStrBytesCount=void 0;function O(E){for(var C=0,A=0;A<E.length;A++){var w=E.charAt(A);/^[\u00-\uff]$/.test(w)?C+=1:C+=2}return C}d.getStrBytesCount=O},{}],42:[function(H,B,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,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isBlob=void 0;function O(E){return typeof Blob!="undefined"&&E instanceof Blob}d.isBlob=O},{}],44:[function(H,B,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,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isIP=void 0,d.isIP=function(O){var E=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,C=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return E.test(O)||C.test(O)}},{}],46:[function(H,B,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,B,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),E=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 w(f){return Object.prototype.toString.call(f).replace(/(.*? |])/g,"").toLowerCase()}function m(f,c){var o="";return c&&c.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),c&&c.firstUpperCase&&(f=A.formatObjKey(f,"firstUpperCase")),w(f)==="object"?(0,E.default)(f).forEach(function(r){w(f[r])==="string"||w(f[r])==="number"?o+="<"+r+">"+f[r]+"</"+r+">":w(f[r])==="object"?o+="<"+r+">"+m(f[r])+"</"+r+">":w(f[r])==="array"?o+=f[r].map(function(i){return"<"+r+">"+m(i)+"</"+r+">"}).join(""):o+="<"+r+">"+f[r].toString()+"</"+r+">"}):o+=f.toString(),o}d.obj2xml=m},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(H,B,d){B.exports=O,B.exports.HttpsAgent=O;function O(){}},{}],49:[function(H,B,d){B.exports=H("./register")().Promise},{"./register":51}],50:[function(H,B,d){"use strict";var O="@@any-promise/REGISTRATION",E=null;B.exports=function(C,A){return function(m,f){m=m||null,f=f||{};var c=f.global!==!1;if(E===null&&c&&(E=C[O]||null),E!==null&&m!==null&&E.implementation!==m)throw new Error('any-promise already defined as "'+E.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return E===null&&(m!==null&&typeof f.Promise!="undefined"?E={Promise:f.Promise,implementation:m}:E=A(m),c&&(C[O]=E)),E}}},{}],51:[function(H,B,d){"use strict";B.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,B,d){B.exports={default:H("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(H,B,d){B.exports={default:H("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(H,B,d){B.exports={default:H("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(H,B,d){B.exports={default:H("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(H,B,d){B.exports={default:H("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(H,B,d){B.exports={default:H("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(H,B,d){B.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,B,d){B.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,B,d){B.exports={default:H("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(H,B,d){B.exports={default:H("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(H,B,d){B.exports={default:H("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(H,B,d){B.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,B,d){B.exports={default:H("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(H,B,d){B.exports={default:H("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(H,B,d){B.exports={default:H("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(H,B,d){"use strict";d.__esModule=!0;var O=H("../core-js/symbol/iterator"),E=m(O),C=H("../core-js/symbol"),A=m(C),w=typeof A.default=="function"&&typeof E.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 m(f){return f&&f.__esModule?f:{default:f}}d.default=typeof A.default=="function"&&w(E.default)==="symbol"?function(f){return typeof f=="undefined"?"undefined":w(f)}:function(f){return f&&typeof A.default=="function"&&f.constructor===A.default&&f!==A.default.prototype?"symbol":typeof f=="undefined"?"undefined":w(f)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(H,B,d){B.exports=H("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(H,B,d){"use strict";d.byteLength=c,d.toByteArray=r,d.fromByteArray=e;for(var O=[],E=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0,m=A.length;w<m;++w)O[w]=A[w],E[A.charCodeAt(w)]=w;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function f(s){var t=s.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=s.indexOf("=");a===-1&&(a=t);var l=a===t?0:4-a%4;return[a,l]}function c(s){var t=f(s),a=t[0],l=t[1];return(a+l)*3/4-l}function o(s,t,a){return(t+a)*3/4-a}function r(s){var t,a=f(s),l=a[0],u=a[1],h=new C(o(s,l,u)),p=0,g=u>0?l-4:l,v;for(v=0;v<g;v+=4)t=E[s.charCodeAt(v)]<<18|E[s.charCodeAt(v+1)]<<12|E[s.charCodeAt(v+2)]<<6|E[s.charCodeAt(v+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=E[s.charCodeAt(v)]<<2|E[s.charCodeAt(v+1)]>>4,h[p++]=t&255),u===1&&(t=E[s.charCodeAt(v)]<<10|E[s.charCodeAt(v+1)]<<4|E[s.charCodeAt(v+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function i(s){return O[s>>18&63]+O[s>>12&63]+O[s>>6&63]+O[s&63]}function n(s,t,a){for(var l,u=[],h=t;h<a;h+=3)l=(s[h]<<16&16711680)+(s[h+1]<<8&65280)+(s[h+2]&255),u.push(i(l));return u.join("")}function e(s){for(var t,a=s.length,l=a%3,u=[],h=16383,p=0,g=a-l;p<g;p+=h)u.push(n(s,p,p+h>g?g:p+h));return l===1?(t=s[a-1],u.push(O[t>>2]+O[t<<4&63]+"==")):l===2&&(t=(s[a-2]<<8)+s[a-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},{}],70:[function(H,B,d){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(O,E,C){typeof B!="undefined"&&B.exports?B.exports=C():typeof define=="function"&&define.amd?define(E,C):O[E]=C()}(this,"bowser",function(){var O=!0;function E(o){function r(U){var F=o.match(U);return F&&F.length>1&&F[1]||""}function i(U){var F=o.match(U);return F&&F.length>1&&F[2]||""}var n=r(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(o),s=!e&&/android/i.test(o),t=/nexus\s*[0-6]\s*/i.test(o),a=!t&&/nexus\s*[0-9]+/i.test(o),l=/CrOS/.test(o),u=/silk/i.test(o),h=/sailfish/i.test(o),p=/tizen/i.test(o),g=/(web|hpw)(o|0)s/i.test(o),v=/windows phone/i.test(o),y=/SamsungBrowser/i.test(o),x=!v&&/windows/i.test(o),T=!n&&!u&&/macintosh/i.test(o),S=!s&&!h&&!p&&!g&&/linux/i.test(o),b=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),D;/opera/i.test(o)?D={name:"Opera",opera:O,version:_||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?D={name:"Opera",opera:O,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(o)?D={name:"Samsung Internet for Android",samsungBrowser:O,version:_||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?D={name:"NAVER Whale browser",whale:O,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?D={name:"MZ Browser",mzbrowser:O,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?D={name:"Opera Coast",coast:O,version:_||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?D={name:"Focus",focus:O,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?D={name:"Yandex Browser",yandexbrowser:O,version:_||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?D={name:"UC Browser",ucbrowser:O,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?D={name:"Maxthon",maxthon:O,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?D={name:"Epiphany",epiphany:O,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?D={name:"Puffin",puffin:O,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?D={name:"Sleipnir",sleipnir:O,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?D={name:"K-Meleon",kMeleon:O,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:v?(D={name:"Windows Phone",osname:"Windows Phone",windowsphone:O},b?(D.msedge=O,D.version=b):(D.msie=O,D.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?D={name:"Internet Explorer",msie:O,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?D={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)?D={name:"Microsoft Edge",msedge:O,version:b}:/vivaldi/i.test(o)?D={name:"Vivaldi",vivaldi:O,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||_}:h?D={name:"Sailfish",osname:"Sailfish OS",sailfish:O,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?D={name:"SeaMonkey",seamonkey:O,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(D={name:"Firefox",firefox:O,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(D.firefoxos=O,D.osname="Firefox OS")):u?D={name:"Amazon Silk",silk:O,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?D={name:"PhantomJS",phantom:O,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?D={name:"SlimerJS",slimer:O,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?D={name:"BlackBerry",osname:"BlackBerry OS",blackberry:O,version:_||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(D={name:"WebOS",osname:"WebOS",webos:O,version:_||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(D.touchpad=O)):/bada/i.test(o)?D={name:"Bada",osname:"Bada",bada:O,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:p?D={name:"Tizen",osname:"Tizen",tizen:O,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(o)?D={name:"QupZilla",qupzilla:O,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(o)?D={name:"Chromium",chromium:O,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(o)?D={name:"Chrome",chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?D={name:"Android",version:_}:/safari|applewebkit/i.test(o)?(D={name:"Safari",safari:O},_&&(D.version=_)):n?(D={name:n=="iphone"?"iPhone":n=="ipad"?"iPad":"iPod"},_&&(D.version=_)):/googlebot/i.test(o)?D={name:"Googlebot",googlebot:O,version:r(/googlebot\/(\d+(\.\d+))/i)||_}:D={name:r(/^(.*)\/(.*) /),version:i(/^(.*)\/(.*) /)},!D.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(D.name=D.name||"Blink",D.blink=O):(D.name=D.name||"Webkit",D.webkit=O),!D.version&&_&&(D.version=_)):!D.opera&&/gecko\//i.test(o)&&(D.name=D.name||"Gecko",D.gecko=O,D.version=D.version||r(/gecko\/(\d+(\.\d+)?)/i)),!D.windowsphone&&(s||D.silk)?(D.android=O,D.osname="Android"):!D.windowsphone&&n?(D[n]=O,D.ios=O,D.osname="iOS"):T?(D.mac=O,D.osname="macOS"):N?(D.xbox=O,D.osname="Xbox"):x?(D.windows=O,D.osname="Windows"):S&&(D.linux=O,D.osname="Linux");function R(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 P="";D.windows?P=R(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):D.windowsphone?P=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):D.mac?(P=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),P=P.replace(/[_\s]/g,".")):n?(P=r(/os (\d+([_\s]\d+)*) like mac os x/i),P=P.replace(/[_\s]/g,".")):s?P=r(/android[ \/-](\d+(\.\d+)*)/i):D.webos?P=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):D.blackberry?P=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):D.bada?P=r(/bada\/(\d+(\.\d+)*)/i):D.tizen&&(P=r(/tizen[\/\s](\d+(\.\d+)*)/i)),P&&(D.osversion=P);var M=!D.windows&&P.split(".")[0];return I||a||n=="ipad"||s&&(M==3||M>=4&&!L)||D.silk?D.tablet=O:(L||n=="iphone"||n=="ipod"||s||t||D.blackberry||D.webos||D.bada)&&(D.mobile=O),D.msedge||D.msie&&D.version>=10||D.yandexbrowser&&D.version>=15||D.vivaldi&&D.version>=1||D.chrome&&D.version>=20||D.samsungBrowser&&D.version>=4||D.whale&&m([D.version,"1.0"])===1||D.mzbrowser&&m([D.version,"6.0"])===1||D.focus&&m([D.version,"1.0"])===1||D.firefox&&D.version>=20||D.safari&&D.version>=6||D.opera&&D.version>=10||D.ios&&D.osversion&&D.osversion.split(".")[0]>=6||D.blackberry&&D.version>=10.1||D.chromium&&D.version>=20?D.a=O:D.msie&&D.version<10||D.chrome&&D.version<20||D.firefox&&D.version<20||D.safari&&D.version<6||D.opera&&D.version<10||D.ios&&D.osversion&&D.osversion.split(".")[0]<6||D.chromium&&D.version<20?D.c=O:D.x=O,D}var C=E(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 w(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 m(o){for(var r=Math.max(A(o[0]),A(o[1])),i=w(o,function(n){var e=r-A(n);return n=n+new Array(e+1).join(".0"),w(n.split("."),function(s){return new Array(20-s.length).join("0")+s}).reverse()});--r>=0;){if(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=E(i));var e=""+n.version;for(var s in o)if(o.hasOwnProperty(s)&&n[s]){if(typeof o[s]!="string")throw new Error("Browser version in the minVersion map should be a string: "+s+": "+String(o));return m([e,o[s]])<0}return r}function c(o,r,i){return!f(o,r,i)}return C.isUnsupportedBrowser=f,C.compareVersions=m,C.check=c,C._detect=E,C.detect=E,C})},{}],71:[function(H,B,d){},{}],72:[function(H,B,d){var O=H("buffer").Buffer,E=O.isEncoding||function(c){switch(c&&c.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function C(c){if(c&&!E(c))throw new Error("Unknown encoding: "+c)}var 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=m;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=f;break;default:this.write=w;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 w(c){return c.toString(this.encoding)}function m(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,B,d){(function(O,E){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var C=H("base64-js"),A=H("ieee754"),w=H("isarray");d.Buffer=E,d.SlowBuffer=u,d.INSPECT_MAX_BYTES=50,E.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:m(),d.kMaxLength=f();function m(){try{var se=new Uint8Array(1);return se.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},se.foo()===42&&typeof se.subarray=="function"&&se.subarray(1,1).byteLength===0}catch(Q){return!1}}function f(){return E.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(se,Q){if(f()<Q)throw new RangeError("Invalid typed array length");return E.TYPED_ARRAY_SUPPORT?(se=new Uint8Array(Q),se.__proto__=E.prototype):(se===null&&(se=new E(Q)),se.length=Q),se}function E(se,Q,G){if(!E.TYPED_ARRAY_SUPPORT&&!(this instanceof E))return new E(se,Q,G);if(typeof se=="number"){if(typeof Q=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,se)}return o(this,se,Q,G)}E.poolSize=8192,E._augment=function(se){return se.__proto__=E.prototype,se};function o(se,Q,G,J){if(typeof Q=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Q instanceof ArrayBuffer?t(se,Q,G,J):typeof Q=="string"?e(se,Q,G):a(se,Q)}E.from=function(se,Q,G){return o(null,se,Q,G)},E.TYPED_ARRAY_SUPPORT&&(E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0}));function r(se){if(typeof se!="number")throw new TypeError('"size" argument must be a number');if(se<0)throw new RangeError('"size" argument must not be negative')}function i(se,Q,G,J){return r(Q),Q<=0?c(se,Q):G!==void 0?typeof J=="string"?c(se,Q).fill(G,J):c(se,Q).fill(G):c(se,Q)}E.alloc=function(se,Q,G){return i(null,se,Q,G)};function n(se,Q){if(r(Q),se=c(se,Q<0?0:l(Q)|0),!E.TYPED_ARRAY_SUPPORT)for(var G=0;G<Q;++G)se[G]=0;return se}E.allocUnsafe=function(se){return n(null,se)},E.allocUnsafeSlow=function(se){return n(null,se)};function e(se,Q,G){if((typeof G!="string"||G==="")&&(G="utf8"),!E.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var J=h(Q,G)|0;se=c(se,J);var ve=se.write(Q,G);return ve!==J&&(se=se.slice(0,ve)),se}function s(se,Q){var G=Q.length<0?0:l(Q.length)|0;se=c(se,G);for(var J=0;J<G;J+=1)se[J]=Q[J]&255;return se}function t(se,Q,G,J){if(Q.byteLength,G<0||Q.byteLength<G)throw new RangeError("'offset' is out of bounds");if(Q.byteLength<G+(J||0))throw new RangeError("'length' is out of bounds");return G===void 0&&J===void 0?Q=new Uint8Array(Q):J===void 0?Q=new Uint8Array(Q,G):Q=new Uint8Array(Q,G,J),E.TYPED_ARRAY_SUPPORT?(se=Q,se.__proto__=E.prototype):se=s(se,Q),se}function a(se,Q){if(E.isBuffer(Q)){var G=l(Q.length)|0;return se=c(se,G),se.length===0||Q.copy(se,0,0,G),se}if(Q){if(typeof ArrayBuffer!="undefined"&&Q.buffer instanceof ArrayBuffer||"length"in Q)return typeof Q.length!="number"||Xe(Q.length)?c(se,0):s(se,Q);if(Q.type==="Buffer"&&w(Q.data))return s(se,Q.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(se){if(se>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return se|0}function u(se){return+se!=se&&(se=0),E.alloc(+se)}E.isBuffer=function(Q){return!!(Q!=null&&Q._isBuffer)},E.compare=function(Q,G){if(!E.isBuffer(Q)||!E.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(Q===G)return 0;for(var J=Q.length,ve=G.length,de=0,Ce=Math.min(J,ve);de<Ce;++de)if(Q[de]!==G[de]){J=Q[de],ve=G[de];break}return J<ve?-1:ve<J?1:0},E.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},E.concat=function(Q,G){if(!w(Q))throw new TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return E.alloc(0);var J;if(G===void 0)for(G=0,J=0;J<Q.length;++J)G+=Q[J].length;var ve=E.allocUnsafe(G),de=0;for(J=0;J<Q.length;++J){var Ce=Q[J];if(!E.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(ve,de),de+=Ce.length}return ve};function h(se,Q){if(E.isBuffer(se))return se.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(se)||se instanceof ArrayBuffer))return se.byteLength;typeof se!="string"&&(se=""+se);var G=se.length;if(G===0)return 0;for(var J=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return He(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return oe(se).length;default:if(J)return He(se).length;Q=(""+Q).toLowerCase(),J=!0}}E.byteLength=h;function p(se,Q,G){var J=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,Q>>>=0,G<=Q)return"";for(se||(se="utf8");;)switch(se){case"hex":return U(this,Q,G);case"utf8":case"utf-8":return N(this,Q,G);case"ascii":return P(this,Q,G);case"latin1":case"binary":return M(this,Q,G);case"base64":return L(this,Q,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Q,G);default:if(J)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),J=!0}}E.prototype._isBuffer=!0;function g(se,Q,G){var J=se[Q];se[Q]=se[G],se[G]=J}E.prototype.swap16=function(){var Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<Q;G+=2)g(this,G,G+1);return this},E.prototype.swap32=function(){var Q=this.length;if(Q%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<Q;G+=4)g(this,G,G+3),g(this,G+1,G+2);return this},E.prototype.swap64=function(){var Q=this.length;if(Q%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<Q;G+=8)g(this,G,G+7),g(this,G+1,G+6),g(this,G+2,G+5),g(this,G+3,G+4);return this},E.prototype.toString=function(){var Q=this.length|0;return Q===0?"":arguments.length===0?N(this,0,Q):p.apply(this,arguments)},E.prototype.equals=function(Q){if(!E.isBuffer(Q))throw new TypeError("Argument must be a Buffer");return this===Q?!0:E.compare(this,Q)===0},E.prototype.inspect=function(){var Q="",G=d.INSPECT_MAX_BYTES;return this.length>0&&(Q=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(Q+=" ... ")),"<Buffer "+Q+">"},E.prototype.compare=function(Q,G,J,ve,de){if(!E.isBuffer(Q))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),J===void 0&&(J=Q?Q.length:0),ve===void 0&&(ve=0),de===void 0&&(de=this.length),G<0||J>Q.length||ve<0||de>this.length)throw new RangeError("out of range index");if(ve>=de&&G>=J)return 0;if(ve>=de)return-1;if(G>=J)return 1;if(G>>>=0,J>>>=0,ve>>>=0,de>>>=0,this===Q)return 0;for(var Ce=de-ve,Ee=J-G,le=Math.min(Ce,Ee),fe=this.slice(ve,de),xe=Q.slice(G,J),Qe=0;Qe<le;++Qe)if(fe[Qe]!==xe[Qe]){Ce=fe[Qe],Ee=xe[Qe];break}return Ce<Ee?-1:Ee<Ce?1:0};function v(se,Q,G,J,ve){if(se.length===0)return-1;if(typeof G=="string"?(J=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=ve?0:se.length-1),G<0&&(G=se.length+G),G>=se.length){if(ve)return-1;G=se.length-1}else if(G<0)if(ve)G=0;else return-1;if(typeof Q=="string"&&(Q=E.from(Q,J)),E.isBuffer(Q))return Q.length===0?-1:y(se,Q,G,J,ve);if(typeof Q=="number")return Q=Q&255,E.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(se,Q,G):Uint8Array.prototype.lastIndexOf.call(se,Q,G):y(se,[Q],G,J,ve);throw new TypeError("val must be string, number or Buffer")}function y(se,Q,G,J,ve){var de=1,Ce=se.length,Ee=Q.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(se.length<2||Q.length<2)return-1;de=2,Ce/=2,Ee/=2,G/=2}function le(Je,Te){return de===1?Je[Te]:Je.readUInt16BE(Te*de)}var fe;if(ve){var xe=-1;for(fe=G;fe<Ce;fe++)if(le(se,fe)===le(Q,xe===-1?0:fe-xe)){if(xe===-1&&(xe=fe),fe-xe+1===Ee)return xe*de}else xe!==-1&&(fe-=fe-xe),xe=-1}else for(G+Ee>Ce&&(G=Ce-Ee),fe=G;fe>=0;fe--){for(var Qe=!0,ot=0;ot<Ee;ot++)if(le(se,fe+ot)!==le(Q,ot)){Qe=!1;break}if(Qe)return fe}return-1}E.prototype.includes=function(Q,G,J){return this.indexOf(Q,G,J)!==-1},E.prototype.indexOf=function(Q,G,J){return v(this,Q,G,J,!0)},E.prototype.lastIndexOf=function(Q,G,J){return v(this,Q,G,J,!1)};function x(se,Q,G,J){G=Number(G)||0;var ve=se.length-G;J?(J=Number(J),J>ve&&(J=ve)):J=ve;var de=Q.length;if(de%2!==0)throw new TypeError("Invalid hex string");J>de/2&&(J=de/2);for(var Ce=0;Ce<J;++Ce){var Ee=parseInt(Q.substr(Ce*2,2),16);if(isNaN(Ee))return Ce;se[G+Ce]=Ee}return Ce}function T(se,Q,G,J){return ee(He(Q,se.length-G),se,G,J)}function S(se,Q,G,J){return ee(pe(Q),se,G,J)}function b(se,Q,G,J){return S(se,Q,G,J)}function _(se,Q,G,J){return ee(oe(Q),se,G,J)}function I(se,Q,G,J){return ee(Ue(Q,se.length-G),se,G,J)}E.prototype.write=function(Q,G,J,ve){if(G===void 0)ve="utf8",J=this.length,G=0;else if(J===void 0&&typeof G=="string")ve=G,J=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(J)?(J=J|0,ve===void 0&&(ve="utf8")):(ve=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var de=this.length-G;if((J===void 0||J>de)&&(J=de),Q.length>0&&(J<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Ce=!1;;)switch(ve){case"hex":return x(this,Q,G,J);case"utf8":case"utf-8":return T(this,Q,G,J);case"ascii":return S(this,Q,G,J);case"latin1":case"binary":return b(this,Q,G,J);case"base64":return _(this,Q,G,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,Q,G,J);default:if(Ce)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ce=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(se,Q,G){return Q===0&&G===se.length?C.fromByteArray(se):C.fromByteArray(se.slice(Q,G))}function N(se,Q,G){G=Math.min(se.length,G);for(var J=[],ve=Q;ve<G;){var de=se[ve],Ce=null,Ee=de>239?4:de>223?3:de>191?2:1;if(ve+Ee<=G){var le,fe,xe,Qe;switch(Ee){case 1:de<128&&(Ce=de);break;case 2:le=se[ve+1],(le&192)===128&&(Qe=(de&31)<<6|le&63,Qe>127&&(Ce=Qe));break;case 3:le=se[ve+1],fe=se[ve+2],(le&192)===128&&(fe&192)===128&&(Qe=(de&15)<<12|(le&63)<<6|fe&63,Qe>2047&&(Qe<55296||Qe>57343)&&(Ce=Qe));break;case 4:le=se[ve+1],fe=se[ve+2],xe=se[ve+3],(le&192)===128&&(fe&192)===128&&(xe&192)===128&&(Qe=(de&15)<<18|(le&63)<<12|(fe&63)<<6|xe&63,Qe>65535&&Qe<1114112&&(Ce=Qe))}}Ce===null?(Ce=65533,Ee=1):Ce>65535&&(Ce-=65536,J.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),J.push(Ce),ve+=Ee}return R(J)}var D=4096;function R(se){var Q=se.length;if(Q<=D)return String.fromCharCode.apply(String,se);for(var G="",J=0;J<Q;)G+=String.fromCharCode.apply(String,se.slice(J,J+=D));return G}function P(se,Q,G){var J="";G=Math.min(se.length,G);for(var ve=Q;ve<G;++ve)J+=String.fromCharCode(se[ve]&127);return J}function M(se,Q,G){var J="";G=Math.min(se.length,G);for(var ve=Q;ve<G;++ve)J+=String.fromCharCode(se[ve]);return J}function U(se,Q,G){var J=se.length;(!Q||Q<0)&&(Q=0),(!G||G<0||G>J)&&(G=J);for(var ve="",de=Q;de<G;++de)ve+=De(se[de]);return ve}function F(se,Q,G){for(var J=se.slice(Q,G),ve="",de=0;de<J.length;de+=2)ve+=String.fromCharCode(J[de]+J[de+1]*256);return ve}E.prototype.slice=function(Q,G){var J=this.length;Q=~~Q,G=G===void 0?J:~~G,Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),G<0?(G+=J,G<0&&(G=0)):G>J&&(G=J),G<Q&&(G=Q);var ve;if(E.TYPED_ARRAY_SUPPORT)ve=this.subarray(Q,G),ve.__proto__=E.prototype;else{var de=G-Q;ve=new E(de,void 0);for(var Ce=0;Ce<de;++Ce)ve[Ce]=this[Ce+Q]}return ve};function j(se,Q,G){if(se%1!==0||se<0)throw new RangeError("offset is not uint");if(se+Q>G)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(Q,G,J){Q=Q|0,G=G|0,J||j(Q,G,this.length);for(var ve=this[Q],de=1,Ce=0;++Ce<G&&(de*=256);)ve+=this[Q+Ce]*de;return ve},E.prototype.readUIntBE=function(Q,G,J){Q=Q|0,G=G|0,J||j(Q,G,this.length);for(var ve=this[Q+--G],de=1;G>0&&(de*=256);)ve+=this[Q+--G]*de;return ve},E.prototype.readUInt8=function(Q,G){return G||j(Q,1,this.length),this[Q]},E.prototype.readUInt16LE=function(Q,G){return G||j(Q,2,this.length),this[Q]|this[Q+1]<<8},E.prototype.readUInt16BE=function(Q,G){return G||j(Q,2,this.length),this[Q]<<8|this[Q+1]},E.prototype.readUInt32LE=function(Q,G){return G||j(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},E.prototype.readUInt32BE=function(Q,G){return G||j(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},E.prototype.readIntLE=function(Q,G,J){Q=Q|0,G=G|0,J||j(Q,G,this.length);for(var ve=this[Q],de=1,Ce=0;++Ce<G&&(de*=256);)ve+=this[Q+Ce]*de;return de*=128,ve>=de&&(ve-=Math.pow(2,8*G)),ve},E.prototype.readIntBE=function(Q,G,J){Q=Q|0,G=G|0,J||j(Q,G,this.length);for(var ve=G,de=1,Ce=this[Q+--ve];ve>0&&(de*=256);)Ce+=this[Q+--ve]*de;return de*=128,Ce>=de&&(Ce-=Math.pow(2,8*G)),Ce},E.prototype.readInt8=function(Q,G){return G||j(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},E.prototype.readInt16LE=function(Q,G){G||j(Q,2,this.length);var J=this[Q]|this[Q+1]<<8;return J&32768?J|4294901760:J},E.prototype.readInt16BE=function(Q,G){G||j(Q,2,this.length);var J=this[Q+1]|this[Q]<<8;return J&32768?J|4294901760:J},E.prototype.readInt32LE=function(Q,G){return G||j(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},E.prototype.readInt32BE=function(Q,G){return G||j(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},E.prototype.readFloatLE=function(Q,G){return G||j(Q,4,this.length),A.read(this,Q,!0,23,4)},E.prototype.readFloatBE=function(Q,G){return G||j(Q,4,this.length),A.read(this,Q,!1,23,4)},E.prototype.readDoubleLE=function(Q,G){return G||j(Q,8,this.length),A.read(this,Q,!0,52,8)},E.prototype.readDoubleBE=function(Q,G){return G||j(Q,8,this.length),A.read(this,Q,!1,52,8)};function W(se,Q,G,J,ve,de){if(!E.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>ve||Q<de)throw new RangeError('"value" argument is out of bounds');if(G+J>se.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(Q,G,J,ve){if(Q=+Q,G=G|0,J=J|0,!ve){var de=Math.pow(2,8*J)-1;W(this,Q,G,J,de,0)}var Ce=1,Ee=0;for(this[G]=Q&255;++Ee<J&&(Ce*=256);)this[G+Ee]=Q/Ce&255;return G+J},E.prototype.writeUIntBE=function(Q,G,J,ve){if(Q=+Q,G=G|0,J=J|0,!ve){var de=Math.pow(2,8*J)-1;W(this,Q,G,J,de,0)}var Ce=J-1,Ee=1;for(this[G+Ce]=Q&255;--Ce>=0&&(Ee*=256);)this[G+Ce]=Q/Ee&255;return G+J},E.prototype.writeUInt8=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,1,255,0),E.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),this[G]=Q&255,G+1};function V(se,Q,G,J){Q<0&&(Q=65535+Q+1);for(var ve=0,de=Math.min(se.length-G,2);ve<de;++ve)se[G+ve]=(Q&255<<8*(J?ve:1-ve))>>>(J?ve:1-ve)*8}E.prototype.writeUInt16LE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8):V(this,Q,G,!0),G+2},E.prototype.writeUInt16BE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>8,this[G+1]=Q&255):V(this,Q,G,!1),G+2};function z(se,Q,G,J){Q<0&&(Q=4294967295+Q+1);for(var ve=0,de=Math.min(se.length-G,4);ve<de;++ve)se[G+ve]=Q>>>(J?ve:3-ve)*8&255}E.prototype.writeUInt32LE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[G+3]=Q>>>24,this[G+2]=Q>>>16,this[G+1]=Q>>>8,this[G]=Q&255):z(this,Q,G,!0),G+4},E.prototype.writeUInt32BE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>24,this[G+1]=Q>>>16,this[G+2]=Q>>>8,this[G+3]=Q&255):z(this,Q,G,!1),G+4},E.prototype.writeIntLE=function(Q,G,J,ve){if(Q=+Q,G=G|0,!ve){var de=Math.pow(2,8*J-1);W(this,Q,G,J,de-1,-de)}var Ce=0,Ee=1,le=0;for(this[G]=Q&255;++Ce<J&&(Ee*=256);)Q<0&&le===0&&this[G+Ce-1]!==0&&(le=1),this[G+Ce]=(Q/Ee>>0)-le&255;return G+J},E.prototype.writeIntBE=function(Q,G,J,ve){if(Q=+Q,G=G|0,!ve){var de=Math.pow(2,8*J-1);W(this,Q,G,J,de-1,-de)}var Ce=J-1,Ee=1,le=0;for(this[G+Ce]=Q&255;--Ce>=0&&(Ee*=256);)Q<0&&le===0&&this[G+Ce+1]!==0&&(le=1),this[G+Ce]=(Q/Ee>>0)-le&255;return G+J},E.prototype.writeInt8=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,1,127,-128),E.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),Q<0&&(Q=255+Q+1),this[G]=Q&255,G+1},E.prototype.writeInt16LE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8):V(this,Q,G,!0),G+2},E.prototype.writeInt16BE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>8,this[G+1]=Q&255):V(this,Q,G,!1),G+2},E.prototype.writeInt32LE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,4,2147483647,-2147483648),E.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8,this[G+2]=Q>>>16,this[G+3]=Q>>>24):z(this,Q,G,!0),G+4},E.prototype.writeInt32BE=function(Q,G,J){return Q=+Q,G=G|0,J||W(this,Q,G,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),E.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>24,this[G+1]=Q>>>16,this[G+2]=Q>>>8,this[G+3]=Q&255):z(this,Q,G,!1),G+4};function Y(se,Q,G,J,ve,de){if(G+J>se.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function $(se,Q,G,J,ve){return ve||Y(se,Q,G,4,34028234663852886e22,-34028234663852886e22),A.write(se,Q,G,J,23,4),G+4}E.prototype.writeFloatLE=function(Q,G,J){return $(this,Q,G,!0,J)},E.prototype.writeFloatBE=function(Q,G,J){return $(this,Q,G,!1,J)};function ue(se,Q,G,J,ve){return ve||Y(se,Q,G,8,17976931348623157e292,-17976931348623157e292),A.write(se,Q,G,J,52,8),G+8}E.prototype.writeDoubleLE=function(Q,G,J){return ue(this,Q,G,!0,J)},E.prototype.writeDoubleBE=function(Q,G,J){return ue(this,Q,G,!1,J)},E.prototype.copy=function(Q,G,J,ve){if(J||(J=0),!ve&&ve!==0&&(ve=this.length),G>=Q.length&&(G=Q.length),G||(G=0),ve>0&&ve<J&&(ve=J),ve===J)return 0;if(Q.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),Q.length-G<ve-J&&(ve=Q.length-G+J);var de=ve-J,Ce;if(this===Q&&J<G&&G<ve)for(Ce=de-1;Ce>=0;--Ce)Q[Ce+G]=this[Ce+J];else if(de<1e3||!E.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<de;++Ce)Q[Ce+G]=this[Ce+J];else Uint8Array.prototype.set.call(Q,this.subarray(J,J+de),G);return de},E.prototype.fill=function(Q,G,J,ve){if(typeof Q=="string"){if(typeof G=="string"?(ve=G,G=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),Q.length===1){var de=Q.charCodeAt(0);de<256&&(Q=de)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!E.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof Q=="number"&&(Q=Q&255);if(G<0||this.length<G||this.length<J)throw new RangeError("Out of range index");if(J<=G)return this;G=G>>>0,J=J===void 0?this.length:J>>>0,Q||(Q=0);var Ce;if(typeof Q=="number")for(Ce=G;Ce<J;++Ce)this[Ce]=Q;else{var Ee=E.isBuffer(Q)?Q:He(new E(Q,ve).toString()),le=Ee.length;for(Ce=0;Ce<J-G;++Ce)this[Ce+G]=Ee[Ce%le]}return this};var ne=/[^+\/0-9A-Za-z-_]/g;function ge(se){if(se=Oe(se).replace(ne,""),se.length<2)return"";for(;se.length%4!==0;)se=se+"=";return se}function Oe(se){return se.trim?se.trim():se.replace(/^\s+|\s+$/g,"")}function De(se){return se<16?"0"+se.toString(16):se.toString(16)}function He(se,Q){Q=Q||Infinity;for(var G,J=se.length,ve=null,de=[],Ce=0;Ce<J;++Ce){if(G=se.charCodeAt(Ce),G>55295&&G<57344){if(!ve){if(G>56319){(Q-=3)>-1&&de.push(239,191,189);continue}else if(Ce+1===J){(Q-=3)>-1&&de.push(239,191,189);continue}ve=G;continue}if(G<56320){(Q-=3)>-1&&de.push(239,191,189),ve=G;continue}G=(ve-55296<<10|G-56320)+65536}else ve&&((Q-=3)>-1&&de.push(239,191,189));if(ve=null,G<128){if((Q-=1)<0)break;de.push(G)}else if(G<2048){if((Q-=2)<0)break;de.push(G>>6|192,G&63|128)}else if(G<65536){if((Q-=3)<0)break;de.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((Q-=4)<0)break;de.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return de}function pe(se){for(var Q=[],G=0;G<se.length;++G)Q.push(se.charCodeAt(G)&255);return Q}function Ue(se,Q){for(var G,J,ve,de=[],Ce=0;Ce<se.length&&!((Q-=2)<0);++Ce)G=se.charCodeAt(Ce),J=G>>8,ve=G%256,de.push(ve),de.push(J);return de}function oe(se){return C.toByteArray(ge(se))}function ee(se,Q,G,J){for(var ve=0;ve<J&&!(ve+G>=Q.length||ve>=se.length);++ve)Q[ve+G]=se[ve];return ve}function Xe(se){return se!==se}}).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,B,d){B.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,B,d){B.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,B,d){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var O=Array.prototype.slice;B.exports=E;function E(A,w){if(!(this instanceof E))return new E(A,w);this.src=A,this._withAccess=w}E.prototype.withAccess=function(A){return this._withAccess=A!==!1,this},E.prototype.pick=function(A){return Array.isArray(A)||(A=O.call(arguments)),A.length&&(this.keys=A),this},E.prototype.to=function(A){if(A=A||{},!this.src)return A;var w=this.keys||Object.keys(this.src);if(!this._withAccess){for(var m=0;m<w.length;m++){if(f=w[m],A[f]!==void 0)continue;A[f]=this.src[f]}return A}for(var m=0;m<w.length;m++){var f=w[m];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},E.prototype.toCover=function(A){for(var w=this.keys||Object.keys(this.src),m=0;m<w.length;m++){var f=w[m];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])}},E.prototype.override=E.prototype.toCover,E.prototype.and=function(A){var w={};return this.to(w),this.src=A,this.to(w),this.src=w,this};function C(A,w){return A[w]===void 0&&A.__lookupGetter__(w)===void 0&&A.__lookupSetter__(w)===void 0}},{}],77:[function(H,B,d){H("../../modules/es6.string.iterator"),H("../../modules/es6.array.from"),B.exports=H("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(H,B,d){var O=H("../../modules/_core"),E=O.JSON||(O.JSON={stringify:JSON.stringify});B.exports=function(A){return E.stringify.apply(E,arguments)}},{"../../modules/_core":99}],79:[function(H,B,d){H("../../modules/es6.object.assign"),B.exports=H("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(H,B,d){H("../../modules/es6.object.create");var O=H("../../modules/_core").Object;B.exports=function(C,A){return O.create(C,A)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(H,B,d){H("../../modules/es6.object.define-property");var O=H("../../modules/_core").Object;B.exports=function(C,A,w){return O.defineProperty(C,A,w)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(H,B,d){H("../../modules/es7.object.entries"),B.exports=H("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(H,B,d){H("../../modules/es6.object.get-own-property-names");var O=H("../../modules/_core").Object;B.exports=function(C){return O.getOwnPropertyNames(C)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(H,B,d){H("../../modules/es6.object.get-prototype-of"),B.exports=H("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(H,B,d){H("../../modules/es6.object.keys"),B.exports=H("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(H,B,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"),B.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,B,d){H("../modules/web.immediate"),B.exports=H("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(H,B,d){H("../../modules/es6.string.from-code-point"),B.exports=H("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(H,B,d){H("../../modules/es6.function.has-instance"),B.exports=H("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(H,B,d){H("../../modules/es6.symbol"),H("../../modules/es6.object.to-string"),H("../../modules/es7.symbol.async-iterator"),H("../../modules/es7.symbol.observable"),B.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,B,d){H("../../modules/es6.string.iterator"),H("../../modules/web.dom.iterable"),B.exports=H("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(H,B,d){B.exports=function(O){if(typeof O!="function")throw TypeError(O+" is not a function!");return O}},{}],93:[function(H,B,d){B.exports=function(){}},{}],94:[function(H,B,d){B.exports=function(O,E,C,A){if(!(O instanceof E)||A!==void 0&&A in O)throw TypeError(C+": incorrect invocation!");return O}},{}],95:[function(H,B,d){var O=H("./_is-object");B.exports=function(E){if(!O(E))throw TypeError(E+" is not an object!");return E}},{"./_is-object":119}],96:[function(H,B,d){var O=H("./_to-iobject"),E=H("./_to-length"),C=H("./_to-absolute-index");B.exports=function(A){return function(w,m,f){var c=O(w),o=E(c.length),r=C(f,o),i;if(A&&m!=m){for(;o>r;)if(i=c[r++],i!=i)return!0}else for(;o>r;r++)if((A||r in c)&&c[r]===m)return A||r||0;return!A&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(H,B,d){var O=H("./_cof"),E=H("./_wks")("toStringTag"),C=O(function(){return arguments}())=="Arguments",A=function(m,f){try{return m[f]}catch(c){}};B.exports=function(w){var m,f,c;return w===void 0?"Undefined":w===null?"Null":typeof(f=A(m=Object(w),E))=="string"?f:C?O(m):(c=O(m))=="Object"&&typeof m.callee=="function"?"Arguments":c}},{"./_cof":98,"./_wks":166}],98:[function(H,B,d){var O={}.toString;B.exports=function(E){return O.call(E).slice(8,-1)}},{}],99:[function(H,B,d){var O=B.exports={version:"2.6.11"};typeof __e=="number"&&(__e=O)},{}],100:[function(H,B,d){"use strict";var O=H("./_object-dp"),E=H("./_property-desc");B.exports=function(C,A,w){A in C?O.f(C,A,E(0,w)):C[A]=w}},{"./_object-dp":132,"./_property-desc":146}],101:[function(H,B,d){var O=H("./_a-function");B.exports=function(E,C,A){if(O(E),C===void 0)return E;switch(A){case 1:return function(w){return E.call(C,w)};case 2:return function(w,m){return E.call(C,w,m)};case 3:return function(w,m,f){return E.call(C,w,m,f)}}return function(){return E.apply(C,arguments)}}},{"./_a-function":92}],102:[function(H,B,d){B.exports=function(O){if(O==null)throw TypeError("Can't call method on "+O);return O}},{}],103:[function(H,B,d){B.exports=!H("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(H,B,d){var O=H("./_is-object"),E=H("./_global").document,C=O(E)&&O(E.createElement);B.exports=function(A){return C?E.createElement(A):{}}},{"./_global":110,"./_is-object":119}],105:[function(H,B,d){B.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(H,B,d){var O=H("./_object-keys"),E=H("./_object-gops"),C=H("./_object-pie");B.exports=function(A){var w=O(A),m=E.f;if(m)for(var f=m(A),c=C.f,o=0,r;f.length>o;)c.call(A,r=f[o++])&&w.push(r);return w}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(H,B,d){var O=H("./_global"),E=H("./_core"),C=H("./_ctx"),A=H("./_hide"),w=H("./_has"),m="prototype",f=function c(o,r,i){var n=o&c.F,e=o&c.G,s=o&c.S,t=o&c.P,a=o&c.B,l=o&c.W,u=e?E:E[r]||(E[r]={}),h=u[m],p=e?O:s?O[r]:(O[r]||{})[m],g,v,y;e&&(i=r);for(g in i){if(v=!n&&p&&p[g]!==void 0,v&&w(u,g))continue;y=v?p[g]:i[g],u[g]=e&&typeof p[g]!="function"?i[g]:a&&v?C(y,O):l&&p[g]==y?function(x){var T=function(b,_,I){if(this instanceof x){switch(arguments.length){case 0:return new x;case 1:return new x(b);case 2:return new x(b,_)}return new x(b,_,I)}return x.apply(this,arguments)};return T[m]=x[m],T}(y):t&&typeof y=="function"?C(Function.call,y):y,t&&((u.virtual||(u.virtual={}))[g]=y,o&c.R&&h&&!h[g]&&A(h,g,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,B.exports=f},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(H,B,d){B.exports=function(O){try{return!!O()}catch(E){return!0}}},{}],109:[function(H,B,d){var O=H("./_ctx"),E=H("./_iter-call"),C=H("./_is-array-iter"),A=H("./_an-object"),w=H("./_to-length"),m=H("./core.get-iterator-method"),f={},c={},d=B.exports=function(o,r,i,n,e){var s=e?function(){return o}:m(o),t=O(i,n,r?2:1),a=0,l,u,h,p;if(typeof s!="function")throw TypeError(o+" is not iterable!");if(C(s)){for(l=w(o.length);l>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=s.call(o);!(u=h.next()).done;)if(p=E(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,B,d){var O=B.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,B,d){var O={}.hasOwnProperty;B.exports=function(E,C){return O.call(E,C)}},{}],112:[function(H,B,d){var O=H("./_object-dp"),E=H("./_property-desc");B.exports=H("./_descriptors")?function(C,A,w){return O.f(C,A,E(1,w))}:function(C,A,w){return C[A]=w,C}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(H,B,d){var O=H("./_global").document;B.exports=O&&O.documentElement},{"./_global":110}],114:[function(H,B,d){B.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,B,d){B.exports=function(O,E,C){var A=C===void 0;switch(E.length){case 0:return A?O():O.call(C);case 1:return A?O(E[0]):O.call(C,E[0]);case 2:return A?O(E[0],E[1]):O.call(C,E[0],E[1]);case 3:return A?O(E[0],E[1],E[2]):O.call(C,E[0],E[1],E[2]);case 4:return A?O(E[0],E[1],E[2],E[3]):O.call(C,E[0],E[1],E[2],E[3])}return O.apply(C,E)}},{}],116:[function(H,B,d){var O=H("./_cof");B.exports=Object("z").propertyIsEnumerable(0)?Object:function(E){return O(E)=="String"?E.split(""):Object(E)}},{"./_cof":98}],117:[function(H,B,d){var O=H("./_iterators"),E=H("./_wks")("iterator"),C=Array.prototype;B.exports=function(A){return A!==void 0&&(O.Array===A||C[E]===A)}},{"./_iterators":125,"./_wks":166}],118:[function(H,B,d){var O=H("./_cof");B.exports=Array.isArray||function(C){return O(C)=="Array"}},{"./_cof":98}],119:[function(H,B,d){B.exports=function(O){return typeof O=="object"?O!==null:typeof O=="function"}},{}],120:[function(H,B,d){var O=H("./_an-object");B.exports=function(E,C,A,w){try{return w?C(O(A)[0],A[1]):C(A)}catch(f){var m=E.return;throw m!==void 0&&O(m.call(E)),f}}},{"./_an-object":95}],121:[function(H,B,d){"use strict";var O=H("./_object-create"),E=H("./_property-desc"),C=H("./_set-to-string-tag"),A={};H("./_hide")(A,H("./_wks")("iterator"),function(){return this}),B.exports=function(w,m,f){w.prototype=O(A,{next:E(1,f)}),C(w,m+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(H,B,d){"use strict";var O=H("./_library"),E=H("./_export"),C=H("./_redefine"),A=H("./_hide"),w=H("./_iterators"),m=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",s=function(){return this};B.exports=function(t,a,l,u,h,p,g){m(l,a,u);var v=function(M){if(!r&&M in S)return S[M];switch(M){case n:return function(){return new l(this,M)};case e:return function(){return new l(this,M)}}return function(){return new l(this,M)}},y=a+" Iterator",x=h==e,T=!1,S=t.prototype,b=S[o]||S[i]||h&&S[h],_=b||v(h),I=h?x?v("entries"):_:void 0,L=a=="Array"&&S.entries||b,N,D,R;if(L&&(R=c(L.call(new t)),R!==Object.prototype&&R.next&&(f(R,y,!0),!O&&typeof R[o]!="function"&&A(R,o,s))),x&&b&&b.name!==e&&(T=!0,_=function(){return b.call(this)}),(!O||g)&&(r||T||!S[o])&&A(S,o,_),w[a]=_,w[y]=s,h)if(N={values:x?_:v(e),keys:p?_:v(n),entries:I},g)for(D in N)D in S||C(S,D,N[D]);else E(E.P+E.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,B,d){var O=H("./_wks")("iterator"),E=!1;try{var C=[7][O]();C.return=function(){E=!0},Array.from(C,function(){throw 2})}catch(A){}B.exports=function(A,w){if(!w&&!E)return!1;var m=!1;try{var f=[7],c=f[O]();c.next=function(){return{done:m=!0}},f[O]=function(){return c},A(f)}catch(o){}return m}},{"./_wks":166}],124:[function(H,B,d){B.exports=function(O,E){return{value:E,done:!!O}}},{}],125:[function(H,B,d){B.exports={}},{}],126:[function(H,B,d){B.exports=!0},{}],127:[function(H,B,d){var O=H("./_uid")("meta"),E=H("./_is-object"),C=H("./_has"),A=H("./_object-dp").f,w=0,m=Object.isExtensible||function(){return!0},f=!H("./_fails")(function(){return m(Object.preventExtensions({}))}),c=function(s){A(s,O,{value:{i:"O"+ ++w,w:{}}})},o=function(s,t){if(!E(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!C(s,O)){if(!m(s))return"F";if(!t)return"E";c(s)}return s[O].i},r=function(s,t){if(!C(s,O)){if(!m(s))return!0;if(!t)return!1;c(s)}return s[O].w},i=function(s){return f&&n.NEED&&m(s)&&!C(s,O)&&c(s),s},n=B.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,B,d){var O=H("./_global"),E=H("./_task").set,C=O.MutationObserver||O.WebKitMutationObserver,A=O.process,w=O.Promise,m=H("./_cof")(A)=="process";B.exports=function(){var f,c,o,r=function(){var t,a;for(m&&(t=A.domain)&&t.exit();f;){a=f.fn,f=f.next;try{a()}catch(l){throw f?o():c=void 0,l}}c=void 0,t&&t.enter()};if(m)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(w&&w.resolve){var e=w.resolve(void 0);o=function(){e.then(r)}}else o=function(){E.call(O,r)};return function(s){var t={fn:s,next:void 0};c&&(c.next=t),f||(f=t,o()),c=t}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(H,B,d){"use strict";var O=H("./_a-function");function E(C){var A,w;this.promise=new C(function(m,f){if(A!==void 0||w!==void 0)throw TypeError("Bad Promise constructor");A=m,w=f}),this.resolve=O(A),this.reject=O(w)}B.exports.f=function(C){return new E(C)}},{"./_a-function":92}],130:[function(H,B,d){"use strict";var O=H("./_descriptors"),E=H("./_object-keys"),C=H("./_object-gops"),A=H("./_object-pie"),w=H("./_to-object"),m=H("./_iobject"),f=Object.assign;B.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=w(o),n=arguments.length,e=1,s=C.f,t=A.f;n>e;)for(var a=m(arguments[e++]),l=s?E(a).concat(s(a)):E(a),u=l.length,h=0,p;u>h;)p=l[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,B,d){var O=H("./_an-object"),E=H("./_object-dps"),C=H("./_enum-bug-keys"),A=H("./_shared-key")("IE_PROTO"),w=function(){},m="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[m][C[r]];return f()};B.exports=Object.create||function(o,r){var i;return o!==null?(w[m]=O(o),i=new w,w[m]=null,i[A]=o):i=f(),r===void 0?i:E(i,r)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(H,B,d){var O=H("./_an-object"),E=H("./_ie8-dom-define"),C=H("./_to-primitive"),A=Object.defineProperty;d.f=H("./_descriptors")?Object.defineProperty:function(m,f,c){if(O(m),f=C(f,!0),O(c),E)try{return A(m,f,c)}catch(o){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(m[f]=c.value),m}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(H,B,d){var O=H("./_object-dp"),E=H("./_an-object"),C=H("./_object-keys");B.exports=H("./_descriptors")?Object.defineProperties:function(w,m){E(w);for(var f=C(m),c=f.length,o=0,r;c>o;)O.f(w,r=f[o++],m[r]);return w}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(H,B,d){var O=H("./_object-pie"),E=H("./_property-desc"),C=H("./_to-iobject"),A=H("./_to-primitive"),w=H("./_has"),m=H("./_ie8-dom-define"),f=Object.getOwnPropertyDescriptor;d.f=H("./_descriptors")?f:function(o,r){if(o=C(o),r=A(r,!0),m)try{return f(o,r)}catch(i){}if(w(o,r))return E(!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,B,d){var O=H("./_to-iobject"),E=H("./_object-gopn").f,C={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],w=function(f){try{return E(f)}catch(c){return A.slice()}};B.exports.f=function(f){return A&&C.call(f)=="[object Window]"?w(f):E(O(f))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(H,B,d){var O=H("./_object-keys-internal"),E=H("./_enum-bug-keys").concat("length","prototype");d.f=Object.getOwnPropertyNames||function(A){return O(A,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(H,B,d){d.f=Object.getOwnPropertySymbols},{}],138:[function(H,B,d){var O=H("./_has"),E=H("./_to-object"),C=H("./_shared-key")("IE_PROTO"),A=Object.prototype;B.exports=Object.getPrototypeOf||function(w){return w=E(w),O(w,C)?w[C]:typeof w.constructor=="function"&&w instanceof w.constructor?w.constructor.prototype:w instanceof Object?A:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(H,B,d){var O=H("./_has"),E=H("./_to-iobject"),C=H("./_array-includes")(!1),A=H("./_shared-key")("IE_PROTO");B.exports=function(w,m){var f=E(w),c=0,o=[],r;for(r in f)r!=A&&(O(f,r)&&o.push(r));for(;m.length>c;)O(f,r=m[c++])&&(~C(o,r)||o.push(r));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(H,B,d){var O=H("./_object-keys-internal"),E=H("./_enum-bug-keys");B.exports=Object.keys||function(A){return O(A,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(H,B,d){d.f={}.propertyIsEnumerable},{}],142:[function(H,B,d){var O=H("./_export"),E=H("./_core"),C=H("./_fails");B.exports=function(A,w){var m=(E.Object||{})[A]||Object[A],f={};f[A]=w(m),O(O.S+O.F*C(function(){m(1)}),"Object",f)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(H,B,d){var O=H("./_descriptors"),E=H("./_object-keys"),C=H("./_to-iobject"),A=H("./_object-pie").f;B.exports=function(w){return function(m){for(var f=C(m),c=E(f),o=c.length,r=0,i=[],n;o>r;)n=c[r++],(!O||A.call(f,n))&&i.push(w?[n,f[n]]:f[n]);return i}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(H,B,d){B.exports=function(O){try{return{e:!1,v:O()}}catch(E){return{e:!0,v:E}}}},{}],145:[function(H,B,d){var O=H("./_an-object"),E=H("./_is-object"),C=H("./_new-promise-capability");B.exports=function(A,w){if(O(A),E(w)&&w.constructor===A)return w;var m=C.f(A),f=m.resolve;return f(w),m.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(H,B,d){B.exports=function(O,E){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:E}}},{}],147:[function(H,B,d){var O=H("./_hide");B.exports=function(E,C,A){for(var w in C)A&&E[w]?E[w]=C[w]:O(E,w,C[w]);return E}},{"./_hide":112}],148:[function(H,B,d){B.exports=H("./_hide")},{"./_hide":112}],149:[function(H,B,d){"use strict";var O=H("./_global"),E=H("./_core"),C=H("./_object-dp"),A=H("./_descriptors"),w=H("./_wks")("species");B.exports=function(m){var f=typeof E[m]=="function"?E[m]:O[m];A&&f&&!f[w]&&C.f(f,w,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(H,B,d){var O=H("./_object-dp").f,E=H("./_has"),C=H("./_wks")("toStringTag");B.exports=function(A,w,m){A&&!E(A=m?A:A.prototype,C)&&O(A,C,{configurable:!0,value:w})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(H,B,d){var O=H("./_shared")("keys"),E=H("./_uid");B.exports=function(C){return O[C]||(O[C]=E(C))}},{"./_shared":152,"./_uid":162}],152:[function(H,B,d){var O=H("./_core"),E=H("./_global"),C="__core-js_shared__",A=E[C]||(E[C]={});(B.exports=function(w,m){return A[w]||(A[w]=m!==void 0?m:{})})("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,B,d){var O=H("./_an-object"),E=H("./_a-function"),C=H("./_wks")("species");B.exports=function(A,w){var m=O(A).constructor,f;return m===void 0||(f=O(m)[C])==null?w:E(f)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(H,B,d){var O=H("./_to-integer"),E=H("./_defined");B.exports=function(C){return function(A,w){var m=String(E(A)),f=O(w),c=m.length,o,r;return f<0||f>=c?C?"":void 0:(o=m.charCodeAt(f),o<55296||o>56319||f+1===c||(r=m.charCodeAt(f+1))<56320||r>57343?C?m.charAt(f):o:C?m.slice(f,f+2):(o-55296<<10)+(r-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(H,B,d){var O=H("./_ctx"),E=H("./_invoke"),C=H("./_html"),A=H("./_dom-create"),w=H("./_global"),m=w.process,f=w.setImmediate,c=w.clearImmediate,o=w.MessageChannel,r=w.Dispatch,i=0,n={},e="onreadystatechange",s,t,a,l=function(){var p=+this;if(n.hasOwnProperty(p)){var g=n[p];delete n[p],g()}},u=function(p){l.call(p.data)};(!f||!c)&&(f=function(p){for(var g=[],v=1;arguments.length>v;)g.push(arguments[v++]);return n[++i]=function(){E(typeof p=="function"?p:Function(p),g)},s(i),i},c=function(p){delete n[p]},H("./_cof")(m)=="process"?s=function(p){m.nextTick(O(l,p,1))}:r&&r.now?s=function(p){r.now(O(l,p,1))}:o?(t=new o,a=t.port2,t.port1.onmessage=u,s=O(a.postMessage,a,1)):w.addEventListener&&typeof postMessage=="function"&&!w.importScripts?(s=function(p){w.postMessage(p+"","*")},w.addEventListener("message",u,!1)):e in A("script")?s=function(p){C.appendChild(A("script"))[e]=function(){C.removeChild(this),l.call(p)}}:s=function(p){setTimeout(O(l,p,1),0)}),B.exports={set:f,clear:c}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(H,B,d){var O=H("./_to-integer"),E=Math.max,C=Math.min;B.exports=function(A,w){return A=O(A),A<0?E(A+w,0):C(A,w)}},{"./_to-integer":157}],157:[function(H,B,d){var O=Math.ceil,E=Math.floor;B.exports=function(C){return isNaN(C=+C)?0:(C>0?E:O)(C)}},{}],158:[function(H,B,d){var O=H("./_iobject"),E=H("./_defined");B.exports=function(C){return O(E(C))}},{"./_defined":102,"./_iobject":116}],159:[function(H,B,d){var O=H("./_to-integer"),E=Math.min;B.exports=function(C){return C>0?E(O(C),9007199254740991):0}},{"./_to-integer":157}],160:[function(H,B,d){var O=H("./_defined");B.exports=function(E){return Object(O(E))}},{"./_defined":102}],161:[function(H,B,d){var O=H("./_is-object");B.exports=function(E,C){if(!O(E))return E;var A,w;if(C&&typeof(A=E.toString)=="function"&&!O(w=A.call(E)))return w;if(typeof(A=E.valueOf)=="function"&&!O(w=A.call(E)))return w;if(!C&&typeof(A=E.toString)=="function"&&!O(w=A.call(E)))return w;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(H,B,d){var O=0,E=Math.random();B.exports=function(C){return"Symbol(".concat(C===void 0?"":C,")_",(++O+E).toString(36))}},{}],163:[function(H,B,d){var O=H("./_global"),E=O.navigator;B.exports=E&&E.userAgent||""},{"./_global":110}],164:[function(H,B,d){var O=H("./_global"),E=H("./_core"),C=H("./_library"),A=H("./_wks-ext"),w=H("./_object-dp").f;B.exports=function(m){var f=E.Symbol||(E.Symbol=C?{}:O.Symbol||{});m.charAt(0)!="_"&&!(m in f)&&w(f,m,{value:A.f(m)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(H,B,d){d.f=H("./_wks")},{"./_wks":166}],166:[function(H,B,d){var O=H("./_shared")("wks"),E=H("./_uid"),C=H("./_global").Symbol,A=typeof C=="function",w=B.exports=function(m){return O[m]||(O[m]=A&&C[m]||(A?C:E)("Symbol."+m))};w.store=O},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(H,B,d){var O=H("./_classof"),E=H("./_wks")("iterator"),C=H("./_iterators");B.exports=H("./_core").getIteratorMethod=function(A){if(A!=null)return A[E]||A["@@iterator"]||C[O(A)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(H,B,d){"use strict";var O=H("./_ctx"),E=H("./_export"),C=H("./_to-object"),A=H("./_iter-call"),w=H("./_is-array-iter"),m=H("./_to-length"),f=H("./_create-property"),c=H("./core.get-iterator-method");E(E.S+E.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,s=e>1?arguments[1]:void 0,t=s!==void 0,a=0,l=c(i),u,h,p,g;if(t&&(s=O(s,e>2?arguments[2]:void 0,2)),l!=null&&!(n==Array&&w(l)))for(g=l.call(i),h=new n;!(p=g.next()).done;a++)f(h,a,t?A(g,s,[p.value,a],!0):p.value);else for(u=m(i.length),h=new n(u);u>a;a++)f(h,a,t?s(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,B,d){"use strict";var O=H("./_add-to-unscopables"),E=H("./_iter-step"),C=H("./_iterators"),A=H("./_to-iobject");B.exports=H("./_iter-define")(Array,"Array",function(w,m){this._t=A(w),this._i=0,this._k=m},function(){var w=this._t,m=this._k,f=this._i++;return!w||f>=w.length?(this._t=void 0,E(1)):m=="keys"?E(0,f):m=="values"?E(0,w[f]):E(0,[f,w[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,B,d){"use strict";var O=H("./_is-object"),E=H("./_object-gpo"),C=H("./_wks")("hasInstance"),A=Function.prototype;C in A||H("./_object-dp").f(A,C,{value:function(m){if(typeof this!="function"||!O(m))return!1;if(!O(this.prototype))return m instanceof this;for(;m=E(m);)if(this.prototype===m)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(H,B,d){var O=H("./_export");O(O.S+O.F,"Object",{assign:H("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(H,B,d){var O=H("./_export");O(O.S,"Object",{create:H("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(H,B,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,B,d){H("./_object-sap")("getOwnPropertyNames",function(){return H("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(H,B,d){var O=H("./_to-object"),E=H("./_object-gpo");H("./_object-sap")("getPrototypeOf",function(){return function(A){return E(O(A))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(H,B,d){var O=H("./_to-object"),E=H("./_object-keys");H("./_object-sap")("keys",function(){return function(A){return E(O(A))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(H,B,d){arguments[4][71][0].apply(d,arguments)},{dup:71}],178:[function(H,B,d){"use strict";var O=H("./_library"),E=H("./_global"),C=H("./_ctx"),A=H("./_classof"),w=H("./_export"),m=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"),s=H("./_perform"),t=H("./_user-agent"),a=H("./_promise-resolve"),l="Promise",u=E.TypeError,h=E.process,p=h&&h.versions,g=p&&p.v8||"",v=E[l],y=A(h)=="process",x=function(){},T,S,b,_,I=S=e.f,L=!!function(){try{var j=v.resolve(1),W=(j.constructor={})[H("./_wks")("species")]=function(V){V(x,x)};return(y||typeof PromiseRejectionEvent=="function")&&j.then(x)instanceof W&&g.indexOf("6.6")!==0&&t.indexOf("Chrome/66")===-1}catch(V){}}(),N=function(W){var V;return m(W)&&typeof(V=W.then)=="function"?V:!1},D=function(W,V){if(W._n)return;W._n=!0;var z=W._c;n(function(){for(var Y=W._v,$=W._s==1,ue=0,ne=function(Oe){var De=$?Oe.ok:Oe.fail,He=Oe.resolve,pe=Oe.reject,Ue=Oe.domain,oe,ee,Xe;try{De?($||(W._h==2&&M(W),W._h=1),De===!0?oe=Y:(Ue&&Ue.enter(),oe=De(Y),Ue&&(Ue.exit(),Xe=!0)),oe===Oe.promise?pe(u("Promise-chain cycle")):(ee=N(oe))?ee.call(oe,He,pe):He(oe)):pe(Y)}catch(se){Ue&&!Xe&&Ue.exit(),pe(se)}};z.length>ue;)ne(z[ue++]);W._c=[],W._n=!1,V&&!W._h&&R(W)})},R=function(W){i.call(E,function(){var V=W._v,z=P(W),Y,$,ue;if(z&&(Y=s(function(){y?h.emit("unhandledRejection",V,W):($=E.onunhandledrejection)?$({promise:W,reason:V}):(ue=E.console)&&ue.error&&ue.error("Unhandled promise rejection",V)}),W._h=y||P(W)?2:1),W._a=void 0,z&&Y.e)throw Y.v})},P=function(W){return W._h!==1&&(W._a||W._c).length===0},M=function(W){i.call(E,function(){var V;y?h.emit("rejectionHandled",W):(V=E.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()),D(V,!0)},F=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 Y={_w:V,_d:!1};try{z.call(W,C(j,Y,1),C(U,Y,1))}catch($){U.call(Y,$)}}):(V._v=W,V._s=1,D(V,!1))}catch(Y){U.call({_w:V,_d:!1},Y)}};L||(v=function(W){c(this,v,l,"_h"),f(W),T.call(this);try{W(C(F,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&&D(this,!1),z.promise},catch:function(W){return this.then(void 0,W)}}),b=function(){var W=new T;this.promise=W,this.resolve=C(F,W,1),this.reject=C(U,W,1)},e.f=I=function(W){return W===v||W===_?new b(W):S(W)}),w(w.G+w.W+w.F*!L,{Promise:v}),H("./_set-to-string-tag")(v,l),H("./_set-species")(l),_=H("./_core")[l],w(w.S+w.F*!L,l,{reject:function(W){var V=I(this),z=V.reject;return z(W),V.promise}}),w(w.S+w.F*(O||!L),l,{resolve:function(W){return a(O&&this===_?v:this,W)}}),w(w.S+w.F*!(L&&H("./_iter-detect")(function(j){v.all(j).catch(x)})),l,{all:function(W){var V=this,z=I(V),Y=z.resolve,$=z.reject,ue=s(function(){var ne=[],ge=0,Oe=1;o(W,!1,function(De){var He=ge++,pe=!1;ne.push(void 0),Oe++,V.resolve(De).then(function(Ue){if(pe)return;pe=!0,ne[He]=Ue,--Oe||Y(ne)},$)}),--Oe||Y(ne)});return ue.e&&$(ue.v),z.promise},race:function(W){var V=this,z=I(V),Y=z.reject,$=s(function(){o(W,!1,function(ue){V.resolve(ue).then(z.resolve,Y)})});return $.e&&Y($.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,B,d){var O=H("./_export"),E=H("./_to-absolute-index"),C=String.fromCharCode,A=String.fromCodePoint;O(O.S+O.F*(!!A&&A.length!=1),"String",{fromCodePoint:function(m){for(var f=[],c=arguments.length,o=0,r;c>o;){if(r=+arguments[o++],E(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,B,d){"use strict";var O=H("./_string-at")(!0);H("./_iter-define")(String,"String",function(E){this._t=String(E),this._i=0},function(){var E=this._t,C=this._i,A;return C>=E.length?{value:void 0,done:!0}:(A=O(E,C),this._i+=A.length,{value:A,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(H,B,d){"use strict";var O=H("./_global"),E=H("./_has"),C=H("./_descriptors"),A=H("./_export"),w=H("./_redefine"),m=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"),s=H("./_enum-keys"),t=H("./_is-array"),a=H("./_an-object"),l=H("./_is-object"),u=H("./_to-object"),h=H("./_to-iobject"),p=H("./_to-primitive"),g=H("./_property-desc"),v=H("./_object-create"),y=H("./_object-gopn-ext"),x=H("./_object-gopd"),T=H("./_object-gops"),S=H("./_object-dp"),b=H("./_object-keys"),_=x.f,I=S.f,L=y.f,N=O.Symbol,D=O.JSON,R=D&&D.stringify,P="prototype",M=i("_hidden"),U=i("toPrimitive"),F={}.propertyIsEnumerable,j=c("symbol-registry"),W=c("symbols"),V=c("op-symbols"),z=Object[P],Y=typeof N=="function"&&!!T.f,$=O.QObject,ue=!$||!$[P]||!$[P].findChild,ne=C&&f(function(){return v(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(de,Ce,Ee){var le=_(z,Ce);le&&delete z[Ce],I(de,Ce,Ee),le&&de!==z&&I(z,Ce,le)}:I,ge=function(Ce){var Ee=W[Ce]=v(N[P]);return Ee._k=Ce,Ee},Oe=Y&&typeof N.iterator=="symbol"?function(de){return typeof de=="symbol"}:function(de){return de instanceof N},De=function(Ce,Ee,le){return Ce===z&&De(V,Ee,le),a(Ce),Ee=p(Ee,!0),a(le),E(W,Ee)?(le.enumerable?(E(Ce,M)&&Ce[M][Ee]&&(Ce[M][Ee]=!1),le=v(le,{enumerable:g(0,!1)})):(E(Ce,M)||I(Ce,M,g(1,{})),Ce[M][Ee]=!0),ne(Ce,Ee,le)):I(Ce,Ee,le)},He=function(Ce,Ee){a(Ce);for(var le=s(Ee=h(Ee)),fe=0,xe=le.length,Qe;xe>fe;)De(Ce,Qe=le[fe++],Ee[Qe]);return Ce},pe=function(Ce,Ee){return Ee===void 0?v(Ce):He(v(Ce),Ee)},Ue=function(Ce){var Ee=F.call(this,Ce=p(Ce,!0));return this===z&&E(W,Ce)&&!E(V,Ce)?!1:Ee||!E(this,Ce)||!E(W,Ce)||E(this,M)&&this[M][Ce]?Ee:!0},oe=function(Ce,Ee){if(Ce=h(Ce),Ee=p(Ee,!0),Ce===z&&E(W,Ee)&&!E(V,Ee))return;var le=_(Ce,Ee);return le&&E(W,Ee)&&!(E(Ce,M)&&Ce[M][Ee])&&(le.enumerable=!0),le},ee=function(Ce){for(var Ee=L(h(Ce)),le=[],fe=0,xe;Ee.length>fe;)!E(W,xe=Ee[fe++])&&xe!=M&&xe!=m&&le.push(xe);return le},Xe=function(Ce){for(var Ee=Ce===z,le=L(Ee?V:h(Ce)),fe=[],xe=0,Qe;le.length>xe;)E(W,Qe=le[xe++])&&(Ee?E(z,Qe):!0)&&fe.push(W[Qe]);return fe};Y||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var Ce=r(arguments.length>0?arguments[0]:void 0),Ee=function le(fe){this===z&&le.call(V,fe),E(this,M)&&E(this[M],Ce)&&(this[M][Ce]=!1),ne(this,Ce,g(1,fe))};return C&&ue&&ne(z,Ce,{configurable:!0,set:Ee}),ge(Ce)},w(N[P],"toString",function(){return this._k}),x.f=oe,S.f=De,H("./_object-gopn").f=y.f=ee,H("./_object-pie").f=Ue,T.f=Xe,C&&!H("./_library")&&w(z,"propertyIsEnumerable",Ue,!0),n.f=function(de){return ge(i(de))}),A(A.G+A.W+A.F*!Y,{Symbol:N});for(var se="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Q=0;se.length>Q;)i(se[Q++]);for(var G=b(i.store),J=0;G.length>J;)e(G[J++]);A(A.S+A.F*!Y,"Symbol",{for:function(Ce){return E(j,Ce+="")?j[Ce]:j[Ce]=N(Ce)},keyFor:function(Ce){if(!Oe(Ce))throw TypeError(Ce+" is not a symbol!");for(var Ee in j)if(j[Ee]===Ce)return Ee},useSetter:function(){ue=!0},useSimple:function(){ue=!1}}),A(A.S+A.F*!Y,"Object",{create:pe,defineProperty:De,defineProperties:He,getOwnPropertyDescriptor:oe,getOwnPropertyNames:ee,getOwnPropertySymbols:Xe});var ve=f(function(){T.f(1)});A(A.S+A.F*ve,"Object",{getOwnPropertySymbols:function(Ce){return T.f(u(Ce))}}),D&&A(A.S+A.F*(!Y||f(function(){var de=N();return R([de])!="[null]"||R({a:de})!="{}"||R(Object(de))!="{}"})),"JSON",{stringify:function(Ce){for(var Ee=[Ce],le=1,fe,xe;arguments.length>le;)Ee.push(arguments[le++]);return xe=fe=Ee[1],!l(fe)&&Ce===void 0||Oe(Ce)?void 0:(t(fe)||(fe=function(ot,Je){if(typeof xe=="function"&&(Je=xe.call(this,ot,Je)),!Oe(Je))return Je}),Ee[1]=fe,R.apply(D,Ee))}}),N[P][U]||H("./_hide")(N[P],U,N[P].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,B,d){var O=H("./_export"),E=H("./_object-to-array")(!0);O(O.S,"Object",{entries:function(A){return E(A)}})},{"./_export":107,"./_object-to-array":143}],183:[function(H,B,d){"use strict";var O=H("./_export"),E=H("./_core"),C=H("./_global"),A=H("./_species-constructor"),w=H("./_promise-resolve");O(O.P+O.R,"Promise",{finally:function(f){var c=A(this,E.Promise||C.Promise),o=typeof f=="function";return this.then(o?function(r){return w(c,f()).then(function(){return r})}:f,o?function(r){return w(c,f()).then(function(){throw r})}:f)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(H,B,d){"use strict";var O=H("./_export"),E=H("./_new-promise-capability"),C=H("./_perform");O(O.S,"Promise",{try:function(w){var m=E.f(this),f=C(w);return(f.e?m.reject:m.resolve)(f.v),m.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(H,B,d){H("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(H,B,d){H("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(H,B,d){H("./es6.array.iterator");for(var O=H("./_global"),E=H("./_hide"),C=H("./_iterators"),A=H("./_wks")("toStringTag"),w="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),m=0;m<w.length;m++){var f=w[m],c=O[f],o=c&&c.prototype;o&&!o[A]&&E(o,A,f),C[f]=C.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(H,B,d){var O=H("./_export"),E=H("./_task");O(O.G+O.B,{setImmediate:E.set,clearImmediate:E.clear})},{"./_export":107,"./_task":155}],189:[function(H,B,d){(function(O){"use strict";var E=H("babel-runtime/helpers/typeof"),C=A(E);function A(p){return p&&p.__esModule?p:{default:p}}function w(p){return Array.isArray?Array.isArray(p):h(p)==="[object Array]"}d.isArray=w;function m(p){return typeof p=="boolean"}d.isBoolean=m;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 s(p){return(typeof p=="undefined"?"undefined":(0,C.default)(p))==="object"&&p!==null}d.isObject=s;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 l(p){return typeof p=="function"}d.isFunction=l;function u(p){return p===null||typeof p=="boolean"||typeof p=="number"||typeof p=="string"||(typeof p=="undefined"?"undefined":(0,C.default)(p))==="symbol"||typeof p=="undefined"}d.isPrimitive=u,d.isBuffer=O.isBuffer;function 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,B,d){"use strict";var O=H("babel-runtime/helpers/typeof"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(A){"use strict";var w=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,s,t,a){if(arguments.length===1&&o(e)==="string"&&!/\d/.test(e)&&(s=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");s=String(w.masks[s]||s||w.masks.default);var l=s.slice(0,4);(l==="UTC:"||l==="GMT:")&&(s=s.slice(4),t=!0,l==="GMT:"&&(a=!0));var u=t?"getUTC":"get",h=e[u+"Date"](),p=e[u+"Day"](),g=e[u+"Month"](),v=e[u+"FullYear"](),y=e[u+"Hours"](),x=e[u+"Minutes"](),T=e[u+"Seconds"](),S=e[u+"Milliseconds"](),b=t?0:e.getTimezoneOffset(),_=f(e),I=c(e),L={d:h,dd:m(h),ddd:w.i18n.dayNames[p],dddd:w.i18n.dayNames[p+7],m:g+1,mm:m(g+1),mmm:w.i18n.monthNames[g],mmmm:w.i18n.monthNames[g+12],yy:String(v).slice(2),yyyy:v,h:y%12||12,hh:m(y%12||12),H:y,HH:m(y),M:x,MM:m(x),s:T,ss:m(T),l:m(S,3),L:m(Math.round(S/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:a?"GMT":t?"UTC":(String(e).match(i)||[""]).pop().replace(n,""),o:(b>0?"-":"+")+m(Math.floor(Math.abs(b)/60)*100+Math.abs(b)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:_,N:I};return s.replace(r,function(N){return N in L?L[N]:N.slice(1,N.length-1)})}}();w.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},w.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function m(r,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 s=(i-n)/(864e5*7);return 1+Math.floor(s)}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,E.default)(r))!=="object"?typeof r=="undefined"?"undefined":(0,E.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return w}):(typeof d=="undefined"?"undefined":(0,E.default)(d))==="object"?B.exports=w:A.dateFormat=w})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(H,B,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=/["'&<>]/;B.exports=E;function E(C){var A=""+C,w=O.exec(A);if(!w)return A;var m,f="",c=0,o=0;for(c=w.index;c<A.length;c++){switch(A.charCodeAt(c)){case 34:m=""";break;case 38:m="&";break;case 39:m="'";break;case 60:m="<";break;case 62:m=">";break;default:continue}o!==c&&(f+=A.substring(o,c)),o=c+1,f+=m}return o!==c?f+A.substring(o,c):f}},{}],192:[function(H,B,d){function O(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}B.exports=O,O.EventEmitter=O,O.prototype._events=void 0,O.prototype._maxListeners=void 0,O.defaultMaxListeners=10,O.prototype.setMaxListeners=function(m){if(!C(m)||m<0||isNaN(m))throw TypeError("n must be a positive number");return this._maxListeners=m,this},O.prototype.emit=function(m){var f,c,o,r,i,n;if(this._events||(this._events={}),m==="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[m],w(c))return!1;if(E(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),c.apply(this,r)}else if(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(m,f){var c;if(!E(f))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",m,E(f.listener)?f.listener:f),this._events[m]?A(this._events[m])?this._events[m].push(f):this._events[m]=[this._events[m],f]:this._events[m]=f,A(this._events[m])&&!this._events[m].warned&&(w(this._maxListeners)?c=O.defaultMaxListeners:c=this._maxListeners,c&&c>0&&this._events[m].length>c&&(this._events[m].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[m].length),typeof console.trace=="function"&&console.trace())),this},O.prototype.on=O.prototype.addListener,O.prototype.once=function(m,f){if(!E(f))throw TypeError("listener must be a function");var c=!1;function o(){this.removeListener(m,o),c||(c=!0,f.apply(this,arguments))}return o.listener=f,this.on(m,o),this},O.prototype.removeListener=function(m,f){var c,o,r,i;if(!E(f))throw TypeError("listener must be a function");if(!this._events||!this._events[m])return this;if(c=this._events[m],r=c.length,o=-1,c===f||E(c.listener)&&c.listener===f)delete this._events[m],this._events.removeListener&&this.emit("removeListener",m,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[m]):c.splice(o,1),this._events.removeListener&&this.emit("removeListener",m,f)}return this},O.prototype.removeAllListeners=function(m){var f,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[m]&&delete this._events[m],this;if(arguments.length===0){for(f in this._events){if(f==="removeListener")continue;this.removeAllListeners(f)}return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[m],E(c))this.removeListener(m,c);else if(c)for(;c.length;)this.removeListener(m,c[c.length-1]);return delete this._events[m],this},O.prototype.listeners=function(m){var f;return!this._events||!this._events[m]?f=[]:E(this._events[m])?f=[this._events[m]]:f=this._events[m].slice(),f},O.prototype.listenerCount=function(m){if(this._events){var f=this._events[m];if(E(f))return 1;if(f)return f.length}return 0},O.listenerCount=function(m,f){return m.listenerCount(f)};function E(m){return typeof m=="function"}function C(m){return typeof m=="number"}function A(m){return typeof m=="object"&&m!==null}function w(m){return m===void 0}},{}],193:[function(H,B,d){var O=H("http"),E=B.exports;for(var C in O)O.hasOwnProperty(C)&&(E[C]=O[C]);E.request=function(A,w){return A||(A={}),A.scheme="https",A.protocol="https:",O.request.call(this,A,w)}},{http:231}],194:[function(H,B,d){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var O=H("util"),E=H("ms");B.exports=function(C){if(typeof C=="number")return C;var A=E(C);if(A===void 0){var w=new Error(O.format("humanize-ms(%j) result undefined",C));console.warn(w.stack)}return A}},{ms:204,util:243}],195:[function(H,B,d){d.read=function(O,E,C,A,w){var m,f,c=w*8-A-1,o=(1<<c)-1,r=o>>1,i=-7,n=C?w-1:0,e=C?-1:1,s=O[E+n];for(n+=e,m=s&(1<<-i)-1,s>>=-i,i+=c;i>0;m=m*256+O[E+n],n+=e,i-=8);for(f=m&(1<<-i)-1,m>>=-i,i+=A;i>0;f=f*256+O[E+n],n+=e,i-=8);if(m===0)m=1-r;else{if(m===o)return f?NaN:(s?-1:1)*Infinity;f=f+Math.pow(2,A),m=m-r}return(s?-1:1)*f*Math.pow(2,m-A)},d.write=function(O,E,C,A,w,m){var f,c,o,r=m*8-w-1,i=(1<<r)-1,n=i>>1,e=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=A?0:m-1,t=A?1:-1,a=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===Infinity?(c=isNaN(E)?1:0,f=i):(f=Math.floor(Math.log(E)/Math.LN2),E*(o=Math.pow(2,-f))<1&&(f--,o*=2),f+n>=1?E+=e/o:E+=e*Math.pow(2,1-n),E*o>=2&&(f++,o/=2),f+n>=i?(c=0,f=i):f+n>=1?(c=(E*o-1)*Math.pow(2,w),f=f+n):(c=E*Math.pow(2,n-1)*Math.pow(2,w),f=0));w>=8;O[C+s]=c&255,s+=t,c/=256,w-=8);for(f=f<<w|c,r+=w;r>0;O[C+s]=f&255,s+=t,f/=256,r-=8);O[C+s-t]|=a*128}},{}],196:[function(H,B,d){typeof Object.create=="function"?B.exports=function(E,C){C&&(E.super_=C,E.prototype=Object.create(C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:B.exports=function(E,C){if(C){E.super_=C;var A=function(){};A.prototype=C.prototype,E.prototype=new A,E.prototype.constructor=E}}},{}],197:[function(H,B,d){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/B.exports=function(C){return C!=null&&(O(C)||E(C)||!!C._isBuffer)};function O(C){return!!C.constructor&&typeof C.constructor.isBuffer=="function"&&C.constructor.isBuffer(C)}function E(C){return typeof C.readFloatLE=="function"&&typeof C.slice=="function"&&O(C.slice(0,0))}},{}],198:[function(H,B,d){var O={}.toString;B.exports=Array.isArray||function(E){return O.call(E)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(H,B){typeof exports=="object"&&typeof module!="undefined"?module.exports=B(H):typeof define=="function"&&define.amd?define(B):B(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 B={},d=0,O=H.length;d<O;d++)B[H.charAt(d)]=d;return B}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(B){if(B.length<2){var d=B.charCodeAt(0);return d<128?B: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+(B.charCodeAt(0)-55296)*1024+(B.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(B){return B.replace(re_utob,cb_utob)},cb_encode=function(B){var d=[0,2,1][B.length%3],O=B.charCodeAt(0)<<16|(B.length>1?B.charCodeAt(1):0)<<8|(B.length>2?B.charCodeAt(2):0),E=[b64chars.charAt(O>>>18),b64chars.charAt(O>>>12&63),d>=2?"=":b64chars.charAt(O>>>6&63),d>=1?"=":b64chars.charAt(O&63)];return E.join("")},btoa=global.btoa?function(H){return global.btoa(H)}:function(H){return H.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(B){var d=Object.prototype.toString.call(B)==="[object Uint8Array]";return d?B.toString("base64"):btoa(utob(String(B)))},encode=function(B,d){return d?_encode(String(B)).replace(/[+\/]/g,function(O){return O=="+"?"-":"_"}).replace(/=/g,""):_encode(B)},encodeURI=function(B){return encode(B,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(B){switch(B.length){case 4:var d=(7&B.charCodeAt(0))<<18|(63&B.charCodeAt(1))<<12|(63&B.charCodeAt(2))<<6|63&B.charCodeAt(3),O=d-65536;return fromCharCode((O>>>10)+55296)+fromCharCode((O&1023)+56320);case 3:return fromCharCode((15&B.charCodeAt(0))<<12|(63&B.charCodeAt(1))<<6|63&B.charCodeAt(2));default:return fromCharCode((31&B.charCodeAt(0))<<6|63&B.charCodeAt(1))}},btou=function(B){return B.replace(re_btou,cb_btou)},cb_decode=function(B){var d=B.length,O=d%4,E=(d>0?b64tab[B.charAt(0)]<<18:0)|(d>1?b64tab[B.charAt(1)]<<12:0)|(d>2?b64tab[B.charAt(2)]<<6:0)|(d>3?b64tab[B.charAt(3)]:0),C=[fromCharCode(E>>>16),fromCharCode(E>>>8&255),fromCharCode(E&255)];return C.length-=[0,0,2,1][O],C.join("")},_atob=global.atob?function(H){return global.atob(H)}:function(H){return H.replace(/\S{1,4}/g,cb_decode)},atob=function(B){return _atob(String(B).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(B){return _decode(String(B).replace(/[-_]/g,function(d){return d=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var B=global.Base64;return global.Base64=_Base64,B};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(B){return{value:B,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,B,d){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";B.exports=E;var O=Object.prototype.hasOwnProperty;function E(C,A,w){if(!C)throw new TypeError("argument dest is required");if(!A)throw new TypeError("argument src is required");return w===void 0&&(w=!0),Object.getOwnPropertyNames(A).forEach(function(f){if(!w&&O.call(C,f))return;var c=Object.getOwnPropertyDescriptor(A,f);Object.defineProperty(C,f,c)}),C}},{}],201:[function(H,B,d){"use strict";function O(){this._types=Object.create(null),this._extensions=Object.create(null);for(var E=0;E<arguments.length;E++)this.define(arguments[E]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}O.prototype.define=function(E,C){for(var A in E){var w=E[A].map(function(c){return c.toLowerCase()});A=A.toLowerCase();for(var m=0;m<w.length;m++){var f=w[m];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=w[0];this._extensions[A]=f[0]!="*"?f:f.substr(1)}}},O.prototype.getType=function(E){E=String(E);var C=E.replace(/^.*[/\\]/,"").toLowerCase(),A=C.replace(/^.*\./,"").toLowerCase(),w=C.length<E.length,m=A.length<C.length-1;return(m||!w)&&this._types[A]||null},O.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},B.exports=O},{}],202:[function(H,B,d){"use strict";var O=H("./Mime");B.exports=new O(H("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(H,B,d){B.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,B,d){var O=1e3,E=O*60,C=E*60,A=C*24,w=A*7,m=A*365.25;B.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]),s=(n[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return e*m;case"weeks":case"week":case"w":return e*w;case"days":case"day":case"d":return e*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*E;case"seconds":case"second":case"secs":case"sec":case"s":return e*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}function c(i){var n=Math.abs(i);return n>=A?Math.round(i/A)+"d":n>=C?Math.round(i/C)+"h":n>=E?Math.round(i/E)+"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>=E?r(i,n,E,"minute"):n>=O?r(i,n,O,"second"):i+" ms"}function r(i,n,e,s){var t=n>=e*1.5;return Math.round(i/e)+" "+s+(t?"s":"")}},{}],205:[function(H,B,d){(function(O){function E(m,f){for(var c=0,o=m.length-1;o>=0;o--){var r=m[o];r==="."?m.splice(o,1):r===".."?(m.splice(o,1),c++):c&&(m.splice(o,1),c--)}if(f)for(;c--;c)m.unshift("..");return m}d.resolve=function(){for(var m="",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;m=o+"/"+m,f=o.charAt(0)==="/"}return m=E(A(m.split("/"),function(r){return!!r}),!f).join("/"),(f?"/":"")+m||"."},d.normalize=function(m){var f=d.isAbsolute(m),c=w(m,-1)==="/";return m=E(A(m.split("/"),function(o){return!!o}),!f).join("/"),!m&&!f&&(m="."),m&&c&&(m+="/"),(f?"/":"")+m},d.isAbsolute=function(m){return m.charAt(0)==="/"},d.join=function(){var m=Array.prototype.slice.call(arguments,0);return d.normalize(A(m,function(f,c){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},d.relative=function(m,f){m=d.resolve(m).substr(1),f=d.resolve(f).substr(1);function c(t){for(var a=0;a<t.length&&!(t[a]!=="");a++);for(var l=t.length-1;l>=0&&!(t[l]!=="");l--);return a>l?[]:t.slice(a,l-a+1)}for(var o=c(m.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 s=[],e=n;e<o.length;e++)s.push("..");return s=s.concat(r.slice(n)),s.join("/")},d.sep="/",d.delimiter=":",d.dirname=function(m){if(typeof m!="string"&&(m=m+""),m.length===0)return".";for(var f=m.charCodeAt(0),c=f===47,o=-1,r=!0,i=m.length-1;i>=1;--i)if(f=m.charCodeAt(i),f===47){if(!r){o=i;break}}else r=!1;return o===-1?c?"/":".":c&&o===1?"/":m.slice(0,o)};function C(m){typeof m!="string"&&(m=m+"");var f=0,c=-1,o=!0,r;for(r=m.length-1;r>=0;--r)if(m.charCodeAt(r)===47){if(!o){f=r+1;break}}else c===-1&&(o=!1,c=r+1);return c===-1?"":m.slice(f,c)}d.basename=function(m,f){var c=C(m);return f&&c.substr(-1*f.length)===f&&(c=c.substr(0,c.length-f.length)),c},d.extname=function(m){typeof m!="string"&&(m=m+"");for(var f=-1,c=0,o=-1,r=!0,i=0,n=m.length-1;n>=0;--n){var e=m.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?"":m.slice(f,o)};function A(m,f){if(m.filter)return m.filter(f);for(var c=[],o=0;o<m.length;o++)f(m[o],o,m)&&c.push(m[o]);return c}var w="ab".substr(-1)==="b"?function(m,f,c){return m.substr(f,c)}:function(m,f,c){return f<0&&(f=m.length+f),m.substr(f,c)}}).call(this,H("_process"))},{_process:208}],206:[function(H,B,d){(function(O){/*!
|
|
|
* Platform.js <https://mths.be/platform>
|
|
|
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
|
|
|
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
|
|
* Available under MIT license <https://mths.be/mit>
|
|
|
*/(function(){"use strict";var E={function:!0,object:!0},C=E[typeof window]&&window||this,A=C,w=E[typeof d]&&d,m=E[typeof B]&&B&&!B.nodeType&&B,f=w&&m&&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 s(S){return S=String(S),S.charAt(0).toUpperCase()+S.slice(1)}function t(S,b,_){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return b&&_&&/^Win/i.test(S)&&!/^Windows Phone /i.test(S)&&(I=I[/[\d.]+$/.exec(S)])&&(S="Windows "+I),S=String(S),b&&_&&(S=S.replace(RegExp(b,"i"),_)),S=l(S.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),S}function a(S,b){var _=-1,I=S?S.length:0;if(typeof I=="number"&&I>-1&&I<=c)for(;++_<I;)b(S[_],_,S);else u(S,b)}function l(S){return S=y(S),/^(?:webOS|i(?:OS|P))/.test(S)?S:s(S)}function u(S,b){for(var _ in S)n.call(S,_)&&b(S[_],_,S)}function h(S){return S==null?s(S):e.call(S).slice(8,-1)}function p(S,b){var _=S!=null?typeof S[b]:"number";return!/^(?:boolean|number|string|undefined)$/.test(_)&&(_=="object"?!!S[b]:!0)}function g(S){return String(S).replace(/([ -])(?!$)/g,"$1?")}function v(S,b){var _=null;return a(S,function(I,L){_=b(_,I,L,S)}),_}function y(S){return String(S).replace(/^ +| +$/g,"")}function x(S){var b=C,_=S&&typeof S=="object"&&h(S)!="String";_&&(b=S,S=null);var I=b.navigator||{},L=I.userAgent||"";S||(S=L);var N=_||r==A,D=_?!!I.likeChrome:/\bChrome\b/.test(S)&&!/internal|\n/i.test(e.toString()),R="Object",P=_?R:"ScriptBridgingProxyObject",M=_?R:"Environment",U=_&&b.java?"JavaPackage":h(b.java),F=_?R:"RuntimeObject",j=/\bJava/.test(U)&&b.java,W=j&&h(b.environment)==M,V=j?"a":"\u03B1",z=j?"b":"\u03B2",Y=b.document||{},$=b.operamini||b.opera,ue=o.test(ue=_&&$?$["[[Class]]"]:h($))?ue:$=null,ne,ge=S,Oe=[],De=null,He=S==L,pe=He&&$&&typeof $.version=="function"&&$.version(),Ue,oe=G([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ee=ve(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Xe=Ce([{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"]),se=J({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}}),Q=de(["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(xe){return v(xe,function(Qe,ot){return Qe||RegExp("\\b"+(ot.pattern||g(ot))+"\\b","i").exec(S)&&(ot.label||ot)})}function J(xe){return v(xe,function(Qe,ot,Je){return Qe||(ot[Xe]||ot[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Xe)]||RegExp("\\b"+g(Je)+"(?:\\b|\\w*\\d)","i").exec(S))&&Je})}function ve(xe){return v(xe,function(Qe,ot){return Qe||RegExp("\\b"+(ot.pattern||g(ot))+"\\b","i").exec(S)&&(ot.label||ot)})}function de(xe){return v(xe,function(Qe,ot){var Je=ot.pattern||g(ot);return!Qe&&(Qe=RegExp("\\b"+Je+"(?:/[\\d.]+|[ \\w.]*)","i").exec(S))&&(Qe=t(Qe,Je,ot.label||ot)),Qe})}function Ce(xe){return v(xe,function(Qe,ot){var Je=ot.pattern||g(ot);return!Qe&&(Qe=RegExp("\\b"+Je+" *\\d+[.\\w_]*","i").exec(S)||RegExp("\\b"+Je+" *\\w+-[\\w]*","i").exec(S)||RegExp("\\b"+Je+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(S))&&((Qe=String(ot.label&&!RegExp(Je,"i").test(ot.label)?ot.label:Qe).split("/"))[1]&&!/[\d.]+/.test(Qe[0])&&(Qe[0]+=" "+Qe[1]),ot=ot.label||ot,Qe=l(Qe[0].replace(RegExp(Je,"i"),ot).replace(RegExp("; *(?:"+ot+"[_-])?","i")," ").replace(RegExp("("+ot+")[-_.]?(\\w)","i"),"$1 $2"))),Qe})}function Ee(xe){return v(xe,function(Qe,ot){return Qe||(RegExp(ot+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(S)||0)[1]||null})}function le(){return this.description||""}if(oe&&(oe=[oe]),se&&!Xe&&(Xe=Ce([se])),(ne=/\bGoogle TV\b/.exec(Xe))&&(Xe=ne[0]),/\bSimulator\b/i.test(S)&&(Xe=(Xe?Xe+" ":"")+"Simulator"),ee=="Opera Mini"&&/\bOPiOS\b/.test(S)&&Oe.push("running in Turbo/Uncompressed mode"),ee=="IE"&&/\blike iPhone OS\b/.test(S)?(ne=x(S.replace(/like iPhone OS/,"")),se=ne.manufacturer,Xe=ne.product):/^iP/.test(Xe)?(ee||(ee="Safari"),Q="iOS"+((ne=/ OS ([\d_]+)/i.exec(S))?" "+ne[1].replace(/_/g,"."):"")):ee=="Konqueror"&&!/buntu/i.test(Q)?Q="Kubuntu":se&&se!="Google"&&(/Chrome/.test(ee)&&!/\bMobile Safari\b/i.test(S)||/\bVita\b/.test(Xe))||/\bAndroid\b/.test(Q)&&/^Chrome/.test(ee)&&/\bVersion\//i.test(S)?(ee="Android Browser",Q=/\bAndroid\b/.test(Q)?Q:"Android"):ee=="Silk"?(/\bMobi/i.test(S)||(Q="Android",Oe.unshift("desktop mode")),/Accelerated *= *true/i.test(S)&&Oe.unshift("accelerated")):ee=="PaleMoon"&&(ne=/\bFirefox\/([\d.]+)\b/.exec(S))?Oe.push("identifying as Firefox "+ne[1]):ee=="Firefox"&&(ne=/\b(Mobile|Tablet|TV)\b/i.exec(S))?(Q||(Q="Firefox OS"),Xe||(Xe=ne[1])):!ee||(ne=!/\bMinefield\b/i.test(S)&&/\b(?:Firefox|Safari)\b/.exec(ee))?(ee&&!Xe&&/[\/,]|^[^(]+?\)/.test(S.slice(S.indexOf(ne+"/")+8))&&(ee=null),(ne=Xe||se||Q)&&(Xe||se||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Q))&&(ee=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Q)?Q:ne)+" Browser")):ee=="Electron"&&(ne=(/\bChrome\/([\d.]+)\b/.exec(S)||0)[1])&&Oe.push("Chromium "+ne),pe||(pe=Ee(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(ee),"(?:Firefox|Minefield|NetFront)"])),(ne=oe=="iCab"&&parseFloat(pe)>3&&"WebKit"||/\bOpera\b/.test(ee)&&(/\bOPR\b/.test(S)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(S)&&!/^(?:Trident|EdgeHTML)$/.test(oe)&&"WebKit"||!oe&&/\bMSIE\b/i.test(S)&&(Q=="Mac OS"?"Tasman":"Trident")||oe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ee)&&"NetFront")&&(oe=[ne]),ee=="IE"&&(ne=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S)||0)[1])?(ee+=" Mobile",Q="Windows Phone "+(/\+$/.test(ne)?ne:ne+".x"),Oe.unshift("desktop mode")):/\bWPDesktop\b/i.test(S)?(ee="IE Mobile",Q="Windows Phone 8.x",Oe.unshift("desktop mode"),pe||(pe=(/\brv:([\d.]+)/.exec(S)||0)[1])):ee!="IE"&&oe=="Trident"&&(ne=/\brv:([\d.]+)/.exec(S))&&(ee&&Oe.push("identifying as "+ee+(pe?" "+pe:"")),ee="IE",pe=ne[1]),He){if(p(b,"global"))if(j&&(ne=j.lang.System,ge=ne.getProperty("os.arch"),Q=Q||ne.getProperty("os.name")+" "+ne.getProperty("os.version")),W){try{pe=b.require("ringo/engine").version.join("."),ee="RingoJS"}catch(xe){(ne=b.system)&&ne.global.system==b.system&&(ee="Narwhal",Q||(Q=ne[0].os||null))}ee||(ee="Rhino")}else typeof b.process=="object"&&!b.process.browser&&(ne=b.process)&&(typeof ne.versions=="object"&&(typeof ne.versions.electron=="string"?(Oe.push("Node "+ne.versions.node),ee="Electron",pe=ne.versions.electron):typeof ne.versions.nw=="string"&&(Oe.push("Chromium "+pe,"Node "+ne.versions.node),ee="NW.js",pe=ne.versions.nw)),ee||(ee="Node.js",ge=ne.arch,Q=ne.platform,pe=/[\d.]+/.exec(ne.version),pe=pe?pe[0]:null));else h(ne=b.runtime)==P?(ee="Adobe AIR",Q=ne.flash.system.Capabilities.os):h(ne=b.phantom)==F?(ee="PhantomJS",pe=(ne=ne.version||null)&&ne.major+"."+ne.minor+"."+ne.patch):typeof Y.documentMode=="number"&&(ne=/\bTrident\/(\d+)/i.exec(S))?(pe=[pe,Y.documentMode],(ne=+ne[1]+4)!=pe[1]&&(Oe.push("IE "+pe[1]+" mode"),oe&&(oe[1]=""),pe[1]=ne),pe=ee=="IE"?String(pe[1].toFixed(1)):pe[0]):typeof Y.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ee)&&(Oe.push("masking as "+ee+" "+pe),ee="IE",pe="11.0",oe=["Trident"],Q="Windows");Q=Q&&l(Q)}if(pe&&(ne=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(pe)||/(?:alpha|beta)(?: ?\d)?/i.exec(S+";"+(He&&I.appMinorVersion))||/\bMinefield\b/i.test(S)&&"a")&&(De=/b/i.test(ne)?"beta":"alpha",pe=pe.replace(RegExp(ne+"\\+?$"),"")+(De=="beta"?z:V)+(/\d+\+?/.exec(ne)||"")),ee=="Fennec"||ee=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Q))ee="Firefox Mobile";else if(ee=="Maxthon"&&pe)pe=pe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Xe))Xe=="Xbox 360"&&(Q=null),Xe=="Xbox 360"&&/\bIEMobile\b/.test(S)&&Oe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ee)||ee&&!Xe&&!/Browser|Mobi/.test(ee))&&(Q=="Windows CE"||/Mobi/i.test(S)))ee+=" Mobile";else if(ee=="IE"&&He)try{b.external===null&&Oe.unshift("platform preview")}catch(xe){Oe.unshift("embedded")}else(/\bBlackBerry\b/.test(Xe)||/\bBB10\b/.test(S))&&(ne=(RegExp(Xe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(S)||0)[1]||pe)?(ne=[ne,/BB10/.test(S)],Q=(ne[1]?(Xe=null,se="BlackBerry"):"Device Software")+" "+ne[0],pe=null):this!=u&&Xe!="Wii"&&(He&&$||/Opera/.test(ee)&&/\b(?:MSIE|Firefox)\b/i.test(S)||ee=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Q)||ee=="IE"&&(Q&&!/^Win/.test(Q)&&pe>5.5||/\bWindows XP\b/.test(Q)&&pe>8||pe==8&&!/\bTrident\b/.test(S)))&&!o.test(ne=x.call(u,S.replace(o,"")+";"))&&ne.name&&(ne="ing as "+ne.name+((ne=ne.version)?" "+ne:""),o.test(ee)?(/\bIE\b/.test(ne)&&Q=="Mac OS"&&(Q=null),ne="identify"+ne):(ne="mask"+ne,ue?ee=l(ue.replace(/([a-z])([A-Z])/g,"$1 $2")):ee="Opera",/\bIE\b/.test(ne)&&(Q=null),He||(pe=null)),oe=["Presto"],Oe.push(ne));(ne=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(S)||0)[1])&&(ne=[parseFloat(ne.replace(/\.(\d)$/,".0$1")),ne],ee=="Safari"&&ne[1].slice(-1)=="+"?(ee="WebKit Nightly",De="alpha",pe=ne[1].slice(0,-1)):(pe==ne[1]||pe==(ne[2]=(/\bSafari\/([\d.]+\+?)/i.exec(S)||0)[1]))&&(pe=null),ne[1]=(/\bChrome\/([\d.]+)/i.exec(S)||0)[1],ne[0]==537.36&&ne[2]==537.36&&parseFloat(ne[1])>=28&&oe=="WebKit"&&(oe=["Blink"]),!He||!D&&!ne[1]?(oe&&(oe[1]="like Safari"),ne=(ne=ne[0],ne<400?1:ne<500?2:ne<526?3:ne<533?4:ne<534?"4+":ne<535?5:ne<537?6:ne<538?7:ne<601?8:"8")):(oe&&(oe[1]="like Chrome"),ne=ne[1]||(ne=ne[0],ne<530?1:ne<532?2:ne<532.05?3:ne<533?4:ne<534.03?5:ne<534.07?6:ne<534.1?7:ne<534.13?8:ne<534.16?9:ne<534.24?10:ne<534.3?11:ne<535.01?12:ne<535.02?"13+":ne<535.07?15:ne<535.11?16:ne<535.19?17:ne<536.05?18:ne<536.1?19:ne<537.01?20:ne<537.11?"21+":ne<537.13?23:ne<537.18?24:ne<537.24?25:ne<537.36?26:oe!="Blink"?"27":"28")),oe&&(oe[1]+=" "+(ne+=typeof ne=="number"?".x":/[.+]/.test(ne)?"":"+")),ee=="Safari"&&(!pe||parseInt(pe)>45)&&(pe=ne)),ee=="Opera"&&(ne=/\bzbov|zvav$/.exec(Q))?(ee+=" ",Oe.unshift("desktop mode"),ne=="zvav"?(ee+="Mini",pe=null):ee+="Mobile",Q=Q.replace(RegExp(" *"+ne+"$"),"")):ee=="Safari"&&/\bChrome\b/.exec(oe&&oe[1])&&(Oe.unshift("desktop mode"),ee="Chrome Mobile",pe=null,/\bOS X\b/.test(Q)?(se="Apple",Q="iOS 4.3+"):Q=null),pe&&pe.indexOf(ne=/[\d.]+$/.exec(Q))==0&&S.indexOf("/"+ne+"-")>-1&&(Q=y(Q.replace(ne,""))),oe&&!/\b(?:Avant|Nook)\b/.test(ee)&&(/Browser|Lunascape|Maxthon/.test(ee)||ee!="Safari"&&/^iOS/.test(Q)&&/\bSafari\b/.test(oe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ee)&&oe[1])&&((ne=oe[oe.length-1])&&Oe.push(ne)),Oe.length&&(Oe=["("+Oe.join("; ")+")"]),se&&Xe&&Xe.indexOf(se)<0&&Oe.push("on "+se),Xe&&Oe.push((/^on /.test(Oe[Oe.length-1])?"":"on ")+Xe),Q&&(ne=/ ([\d.+]+)$/.exec(Q),Ue=ne&&Q.charAt(Q.length-ne[0].length-1)=="/",Q={architecture:32,family:ne&&!Ue?Q.replace(ne[0],""):Q,version:ne?ne[1]:null,toString:function(){var Qe=this.version;return this.family+(Qe&&!Ue?" "+Qe:"")+(this.architecture==64?" 64-bit":"")}}),(ne=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ge))&&!/\bi686\b/i.test(ge)?(Q&&(Q.architecture=64,Q.family=Q.family.replace(RegExp(" *"+ne),"")),ee&&(/\bWOW64\b/i.test(S)||He&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(S))&&Oe.unshift("32-bit")):Q&&/^OS X/.test(Q.family)&&ee=="Chrome"&&parseFloat(pe)>=39&&(Q.architecture=64),S||(S=null);var fe={};return fe.description=S,fe.layout=oe&&oe[0],fe.manufacturer=se,fe.name=ee,fe.prerelease=De,fe.product=Xe,fe.ua=S,fe.version=ee&&pe,fe.os=Q||{architecture:null,family:null,version:null,toString:function(){return"null"}},fe.parse=x,fe.toString=le,fe.version&&Oe.unshift(pe),fe.name&&Oe.unshift(ee),Q&&ee&&!(Q==String(Q).split(" ")[0]&&(Q==ee.split(" ")[0]||Xe))&&Oe.push(Xe?"("+Q+")":"on "+Q),Oe.length&&(fe.description=Oe.join(" ")),fe}var T=x();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(C.platform=T,define(function(){return T})):w&&m?u(T,function(S,b){w[b]=S}):C.platform=T}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(H,B,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?B.exports={nextTick:E}:B.exports=O;function E(C,A,w,m){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,w)});case 4:return O.nextTick(function(){C.call(null,A,w,m)});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,B,d){var O=B.exports={},E,C;function A(){throw new Error("setTimeout has not been defined")}function w(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=A}catch(a){E=A}try{typeof clearTimeout=="function"?C=clearTimeout:C=w}catch(a){C=w}})();function m(a){if(E===setTimeout)return setTimeout(a,0);if((E===A||!E)&&setTimeout)return E=setTimeout,setTimeout(a,0);try{return E(a,0)}catch(l){try{return E.call(null,a,0)}catch(u){return E.call(this,a,0)}}}function f(a){if(C===clearTimeout)return clearTimeout(a);if((C===w||!C)&&clearTimeout)return C=clearTimeout,clearTimeout(a);try{return C(a)}catch(l){try{return C.call(null,a)}catch(u){return C.call(this,a)}}}var c=[],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=m(n);o=!0;for(var l=c.length;l;){for(r=c,c=[];++i<l;)r&&r[i].run();i=-1,l=c.length}r=null,o=!1,f(a)}O.nextTick=function(a){var l=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)l[u-1]=arguments[u];c.push(new s(a,l)),c.length===1&&!o&&m(e)};function s(a,l){this.fun=a,this.array=l}s.prototype.run=function(){this.fun.apply(null,this.array)},O.title="browser",O.browser=!0,O.env={},O.argv=[],O.version="",O.versions={};function t(){}O.on=t,O.addListener=t,O.once=t,O.off=t,O.removeListener=t,O.removeAllListeners=t,O.emit=t,O.prependListener=t,O.prependOnceListener=t,O.listeners=function(a){return[]},O.binding=function(a){throw new Error("process.binding is not supported")},O.cwd=function(){return"/"},O.chdir=function(a){throw new Error("process.chdir is not supported")},O.umask=function(){return 0}},{}],209:[function(H,B,d){(function(O){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(E){var C=typeof d=="object"&&d&&!d.nodeType&&d,A=typeof B=="object"&&B&&!B.nodeType&&B,w=typeof O=="object"&&O;(w.global===w||w.window===w||w.self===w)&&(E=w);var m,f=2147483647,c=36,o=1,r=26,i=38,n=700,e=72,s=128,t="-",a=/^xn--/,l=/[^\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,g=Math.floor,v=String.fromCharCode,y;function x(U){throw new RangeError(h[U])}function T(U,F){for(var j=U.length,W=[];j--;)W[j]=F(U[j]);return W}function S(U,F){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,F).join(".");return W+z}function b(U){for(var F=[],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?F.push(((V&1023)<<10)+(z&1023)+65536):(F.push(V),j--)):F.push(V);return F}function _(U){return T(U,function(F){var j="";return F>65535&&(F-=65536,j+=v(F>>>10&1023|55296),F=56320|F&1023),j+=v(F),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,F){return U+22+75*(U<26)-((F!=0)<<5)}function N(U,F,j){var W=0;for(U=j?g(U/n):U>>1,U+=g(U/F);U>p*r>>1;W+=c)U=g(U/p);return g(W+(p+1)*U/(U+i))}function D(U){var F=[],j=U.length,W,V=0,z=s,Y=e,$,ue,ne,ge,Oe,De,He,pe,Ue;for($=U.lastIndexOf(t),$<0&&($=0),ue=0;ue<$;++ue)U.charCodeAt(ue)>=128&&x("not-basic"),F.push(U.charCodeAt(ue));for(ne=$>0?$+1:0;ne<j;){for(ge=V,Oe=1,De=c;!(ne>=j&&x("invalid-input"),He=I(U.charCodeAt(ne++)),(He>=c||He>g((f-V)/Oe))&&x("overflow"),V+=He*Oe,pe=De<=Y?o:De>=Y+r?r:De-Y,He<pe);De+=c)Ue=c-pe,Oe>g(f/Ue)&&x("overflow"),Oe*=Ue;W=F.length+1,Y=N(V-ge,W,ge==0),g(V/W)>f-z&&x("overflow"),z+=g(V/W),V%=W,F.splice(V++,0,z)}return _(F)}function R(U){var F,j,W,V,z,Y,$,ue,ne,ge,Oe,De=[],He,pe,Ue,oe;for(U=b(U),He=U.length,F=s,j=0,z=e,Y=0;Y<He;++Y)Oe=U[Y],Oe<128&&De.push(v(Oe));for(W=V=De.length,V&&De.push(t);W<He;){for($=f,Y=0;Y<He;++Y)Oe=U[Y],Oe>=F&&Oe<$&&($=Oe);for(pe=W+1,$-F>g((f-j)/pe)&&x("overflow"),j+=($-F)*pe,F=$,Y=0;Y<He;++Y)if(Oe=U[Y],Oe<F&&++j>f&&x("overflow"),Oe==F){for(ue=j,ne=c;!(ge=ne<=z?o:ne>=z+r?r:ne-z,ue<ge);ne+=c)oe=ue-ge,Ue=c-ge,De.push(v(L(ge+oe%Ue,0))),ue=g(oe/Ue);De.push(v(L(ue,0))),z=N(j,pe,W==V),j=0,++W}++j,++F}return De.join("")}function P(U){return S(U,function(F){return a.test(F)?D(F.slice(4).toLowerCase()):F})}function M(U){return S(U,function(F){return l.test(F)?"xn--"+R(F):F})}if(m={version:"1.4.1",ucs2:{decode:b,encode:_},decode:D,encode:R,toASCII:M,toUnicode:P},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return m});else if(C&&A)if(B.exports==C)A.exports=m;else for(y in m)m.hasOwnProperty(y)&&(C[y]=m[y]);else E.punycode=m})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(H,B,d){"use strict";function O(C,A){return Object.prototype.hasOwnProperty.call(C,A)}B.exports=function(C,A,w,m){A=A||"&",w=w||"=";var f={};if(typeof C!="string"||C.length===0)return f;var c=/\+/g;C=C.split(A);var o=1e3;m&&typeof m.maxKeys=="number"&&(o=m.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(w),s,t,a,l;e>=0?(s=n.substr(0,e),t=n.substr(e+1)):(s=n,t=""),a=decodeURIComponent(s),l=decodeURIComponent(t),O(f,a)?E(f[a])?f[a].push(l):f[a]=[f[a],l]:f[a]=l}return f};var E=Array.isArray||function(C){return Object.prototype.toString.call(C)==="[object Array]"}},{}],211:[function(H,B,d){"use strict";var O=function(m){switch(typeof m){case"string":return m;case"boolean":return m?"true":"false";case"number":return isFinite(m)?m:"";default:return""}};B.exports=function(w,m,f,c){return m=m||"&",f=f||"=",w===null&&(w=void 0),typeof w=="object"?C(A(w),function(o){var r=encodeURIComponent(O(o))+f;return E(w[o])?C(w[o],function(i){return r+encodeURIComponent(O(i))}).join(m):r+encodeURIComponent(O(w[o]))}).join(m):c?encodeURIComponent(O(c))+f+encodeURIComponent(O(w)):""};var E=Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"};function C(w,m){if(w.map)return w.map(m);for(var f=[],c=0;c<w.length;c++)f.push(m(w[c],c));return f}var A=Object.keys||function(w){var m=[];for(var f in w)Object.prototype.hasOwnProperty.call(w,f)&&m.push(f);return m}},{}],212:[function(H,B,d){"use strict";d.decode=d.parse=H("./decode"),d.encode=d.stringify=H("./encode")},{"./decode":210,"./encode":211}],213:[function(H,B,d){B.exports=H("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=w(O),C=H("babel-runtime/core-js/object/keys"),A=w(C);function w(l){return l&&l.__esModule?l:{default:l}}var m=H("process-nextick-args"),f=A.default||function(l){var u=[];for(var h in l)u.push(h);return u};B.exports=s;var c=(0,E.default)(H("core-util-is"));c.inherits=H("inherits");var o=H("./_stream_readable"),r=H("./_stream_writable");c.inherits(s,o);for(var i=f(r.prototype),n=0;n<i.length;n++){var e=i[n];s.prototype[e]||(s.prototype[e]=r.prototype[e])}function s(l){if(!(this instanceof s))return new s(l);o.call(this,l),r.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",t)}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t(){if(this.allowHalfOpen||this._writableState.ended)return;m.nextTick(a,this)}function a(l){l.end()}Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=u,this._writableState.destroyed=u}}),s.prototype._destroy=function(l,u){this.push(null),this.end(),m.nextTick(u,l)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(f){return f&&f.__esModule?f:{default:f}}B.exports=m;var A=H("./_stream_transform"),w=(0,E.default)(H("core-util-is"));w.inherits=H("inherits"),w.inherits(m,A);function m(f){if(!(this instanceof m))return new m(f);A.call(this,f)}m.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,B,d){(function(O,E){"use strict";var C=H("babel-runtime/core-js/object/get-prototype-of"),A=f(C),w=H("babel-runtime/core-js/object/create"),m=f(w);function f(oe){return oe&&oe.__esModule?oe:{default:oe}}var c=H("process-nextick-args");B.exports=b;var o=H("isarray"),r;b.ReadableState=S;var i=H("events").EventEmitter,n=function(ee,Xe){return ee.listeners(Xe).length},e=H("./internal/streams/stream"),s=H("safe-buffer").Buffer,t=E.Uint8Array||function(){};function a(oe){return s.from(oe)}function l(oe){return s.isBuffer(oe)||oe instanceof t}var u=(0,m.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 g=H("./internal/streams/BufferList"),v=H("./internal/streams/destroy"),y;u.inherits(b,e);var x=["error","close","destroy","pause","resume"];function T(oe,ee,Xe){if(typeof oe.prependListener=="function")return oe.prependListener(ee,Xe);!oe._events||!oe._events[ee]?oe.on(ee,Xe):o(oe._events[ee])?oe._events[ee].unshift(Xe):oe._events[ee]=[Xe,oe._events[ee]]}function S(oe,ee){r=r||H("./_stream_duplex"),oe=oe||{};var Xe=ee instanceof r;this.objectMode=!!oe.objectMode,Xe&&(this.objectMode=this.objectMode||!!oe.readableObjectMode);var se=oe.highWaterMark,Q=oe.readableHighWaterMark,G=this.objectMode?16:16*1024;se||se===0?this.highWaterMark=se:Xe&&(Q||Q===0)?this.highWaterMark=Q:this.highWaterMark=G,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(y||(y=H("string_decoder/").StringDecoder),this.decoder=new y(oe.encoding),this.encoding=oe.encoding)}function b(oe){if(r=r||H("./_stream_duplex"),!(this instanceof b))return new b(oe);this._readableState=new S(oe,this),this.readable=!0,oe&&(typeof oe.read=="function"&&(this._read=oe.read),typeof oe.destroy=="function"&&(this._destroy=oe.destroy)),e.call(this)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ee){if(!this._readableState)return;this._readableState.destroyed=ee}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(oe,ee){this.push(null),ee(oe)},b.prototype.push=function(oe,ee){var Xe=this._readableState,se;return Xe.objectMode?se=!0:typeof oe=="string"&&(ee=ee||Xe.defaultEncoding,ee!==Xe.encoding&&(oe=s.from(oe,ee),ee=""),se=!0),_(this,oe,ee,!1,se)},b.prototype.unshift=function(oe){return _(this,oe,null,!0,!1)};function _(oe,ee,Xe,se,Q){var G=oe._readableState;if(ee===null)G.reading=!1,M(oe,G);else{var J;Q||(J=L(G,ee)),J?oe.emit("error",J):G.objectMode||ee&&ee.length>0?(typeof ee!="string"&&!G.objectMode&&(0,A.default)(ee)!==s.prototype&&(ee=a(ee)),se?G.endEmitted?oe.emit("error",new Error("stream.unshift() after end event")):I(oe,G,ee,!0):G.ended?oe.emit("error",new Error("stream.push() after EOF")):(G.reading=!1,G.decoder&&!Xe?(ee=G.decoder.write(ee),G.objectMode||ee.length!==0?I(oe,G,ee,!1):j(oe,G)):I(oe,G,ee,!1))):se||(G.reading=!1)}return N(G)}function I(oe,ee,Xe,se){ee.flowing&&ee.length===0&&!ee.sync?(oe.emit("data",Xe),oe.read(0)):(ee.length+=ee.objectMode?1:Xe.length,se?ee.buffer.unshift(Xe):ee.buffer.push(Xe),ee.needReadable&&U(oe)),j(oe,ee)}function L(oe,ee){var Xe;return!l(ee)&&typeof ee!="string"&&ee!==void 0&&!oe.objectMode&&(Xe=new TypeError("Invalid non-string/buffer chunk")),Xe}function N(oe){return!oe.ended&&(oe.needReadable||oe.length<oe.highWaterMark||oe.length===0)}b.prototype.isPaused=function(){return this._readableState.flowing===!1},b.prototype.setEncoding=function(oe){return y||(y=H("string_decoder/").StringDecoder),this._readableState.decoder=new y(oe),this._readableState.encoding=oe,this};var D=8388608;function R(oe){return oe>=D?oe=D:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}function P(oe,ee){return oe<=0||ee.length===0&&ee.ended?0:ee.objectMode?1:oe!==oe?ee.flowing&&ee.length?ee.buffer.head.data.length:ee.length:(oe>ee.highWaterMark&&(ee.highWaterMark=R(oe)),oe<=ee.length?oe:ee.ended?ee.length:(ee.needReadable=!0,0))}b.prototype.read=function(oe){p("read",oe),oe=parseInt(oe,10);var ee=this._readableState,Xe=oe;if(oe!==0&&(ee.emittedReadable=!1),oe===0&&ee.needReadable&&(ee.length>=ee.highWaterMark||ee.ended))return p("read: emitReadable",ee.length,ee.ended),ee.length===0&&ee.ended?He(this):U(this),null;if(oe=P(oe,ee),oe===0&&ee.ended)return ee.length===0&&He(this),null;var se=ee.needReadable;p("need readable",se),(ee.length===0||ee.length-oe<ee.highWaterMark)&&(se=!0,p("length less than watermark",se)),ee.ended||ee.reading?(se=!1,p("reading or ended",se)):se&&(p("do read"),ee.reading=!0,ee.sync=!0,ee.length===0&&(ee.needReadable=!0),this._read(ee.highWaterMark),ee.sync=!1,ee.reading||(oe=P(Xe,ee)));var Q;return oe>0?Q=ne(oe,ee):Q=null,Q===null?(ee.needReadable=!0,oe=0):ee.length-=oe,ee.length===0&&(ee.ended||(ee.needReadable=!0),Xe!==oe&&ee.ended&&He(this)),Q!==null&&this.emit("data",Q),Q};function M(oe,ee){if(ee.ended)return;if(ee.decoder){var Xe=ee.decoder.end();Xe&&Xe.length&&(ee.buffer.push(Xe),ee.length+=ee.objectMode?1:Xe.length)}ee.ended=!0,U(oe)}function U(oe){var ee=oe._readableState;ee.needReadable=!1,ee.emittedReadable||(p("emitReadable",ee.flowing),ee.emittedReadable=!0,ee.sync?c.nextTick(F,oe):F(oe))}function F(oe){p("emit readable"),oe.emit("readable"),ue(oe)}function j(oe,ee){ee.readingMore||(ee.readingMore=!0,c.nextTick(W,oe,ee))}function W(oe,ee){for(var Xe=ee.length;!ee.reading&&!ee.flowing&&!ee.ended&&ee.length<ee.highWaterMark&&!(p("maybeReadMore read 0"),oe.read(0),Xe===ee.length);)Xe=ee.length;ee.readingMore=!1}b.prototype._read=function(oe){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(oe,ee){var Xe=this,se=this._readableState;switch(se.pipesCount){case 0:se.pipes=oe;break;case 1:se.pipes=[se.pipes,oe];break;default:se.pipes.push(oe);break}se.pipesCount+=1,p("pipe count=%d opts=%j",se.pipesCount,ee);var Q=(!ee||ee.end!==!1)&&oe!==O.stdout&&oe!==O.stderr,G=Q?ve:Je;se.endEmitted?c.nextTick(G):Xe.once("end",G),oe.on("unpipe",J);function J(Te,et){p("onunpipe"),Te===Xe&&(et&&et.hasUnpiped===!1&&(et.hasUnpiped=!0,Ee()))}function ve(){p("onend"),oe.end()}var de=V(Xe);oe.on("drain",de);var Ce=!1;function Ee(){p("cleanup"),oe.removeListener("close",Qe),oe.removeListener("finish",ot),oe.removeListener("drain",de),oe.removeListener("error",xe),oe.removeListener("unpipe",J),Xe.removeListener("end",ve),Xe.removeListener("end",Je),Xe.removeListener("data",fe),Ce=!0,se.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&de()}var le=!1;Xe.on("data",fe);function fe(Te){p("ondata"),le=!1;var et=oe.write(Te);et===!1&&!le&&((se.pipesCount===1&&se.pipes===oe||se.pipesCount>1&&Ue(se.pipes,oe)!==-1)&&!Ce&&(p("false write response, pause",Xe._readableState.awaitDrain),Xe._readableState.awaitDrain++,le=!0),Xe.pause())}function xe(Te){p("onerror",Te),Je(),oe.removeListener("error",xe),n(oe,"error")===0&&oe.emit("error",Te)}T(oe,"error",xe);function Qe(){oe.removeListener("finish",ot),Je()}oe.once("close",Qe);function ot(){p("onfinish"),oe.removeListener("close",Qe),Je()}oe.once("finish",ot);function Je(){p("unpipe"),Xe.unpipe(oe)}return oe.emit("pipe",Xe),se.flowing||(p("pipe resume"),Xe.resume()),oe};function V(oe){return function(){var ee=oe._readableState;p("pipeOnDrain",ee.awaitDrain),ee.awaitDrain&&ee.awaitDrain--,ee.awaitDrain===0&&n(oe,"data")&&(ee.flowing=!0,ue(oe))}}b.prototype.unpipe=function(oe){var ee=this._readableState,Xe={hasUnpiped:!1};if(ee.pipesCount===0)return this;if(ee.pipesCount===1)return oe&&oe!==ee.pipes?this:(oe||(oe=ee.pipes),ee.pipes=null,ee.pipesCount=0,ee.flowing=!1,oe&&oe.emit("unpipe",this,Xe),this);if(!oe){var se=ee.pipes,Q=ee.pipesCount;ee.pipes=null,ee.pipesCount=0,ee.flowing=!1;for(var G=0;G<Q;G++)se[G].emit("unpipe",this,Xe);return this}var J=Ue(ee.pipes,oe);return J===-1?this:(ee.pipes.splice(J,1),ee.pipesCount-=1,ee.pipesCount===1&&(ee.pipes=ee.pipes[0]),oe.emit("unpipe",this,Xe),this)},b.prototype.on=function(oe,ee){var Xe=e.prototype.on.call(this,oe,ee);if(oe==="data")this._readableState.flowing!==!1&&this.resume();else if(oe==="readable"){var se=this._readableState;!se.endEmitted&&!se.readableListening&&(se.readableListening=se.needReadable=!0,se.emittedReadable=!1,se.reading?se.length&&U(this):c.nextTick(z,this))}return Xe},b.prototype.addListener=b.prototype.on;function z(oe){p("readable nexttick read 0"),oe.read(0)}b.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(p("resume"),oe.flowing=!0,Y(this,oe)),this};function Y(oe,ee){ee.resumeScheduled||(ee.resumeScheduled=!0,c.nextTick($,oe,ee))}function $(oe,ee){ee.reading||(p("resume read 0"),oe.read(0)),ee.resumeScheduled=!1,ee.awaitDrain=0,oe.emit("resume"),ue(oe),ee.flowing&&!ee.reading&&oe.read(0)}b.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ue(oe){var ee=oe._readableState;for(p("flow",ee.flowing);ee.flowing&&oe.read()!==null;);}b.prototype.wrap=function(oe){var ee=this,Xe=this._readableState,se=!1;oe.on("end",function(){if(p("wrapped end"),Xe.decoder&&!Xe.ended){var J=Xe.decoder.end();J&&J.length&&ee.push(J)}ee.push(null)}),oe.on("data",function(J){if(p("wrapped data"),Xe.decoder&&(J=Xe.decoder.write(J)),Xe.objectMode&&J==null)return;if(!Xe.objectMode&&(!J||!J.length))return;var ve=ee.push(J);ve||(se=!0,oe.pause())});for(var Q in oe)this[Q]===void 0&&typeof oe[Q]=="function"&&(this[Q]=function(J){return function(){return oe[J].apply(oe,arguments)}}(Q));for(var G=0;G<x.length;G++)oe.on(x[G],this.emit.bind(this,x[G]));return this._read=function(J){p("wrapped _read",J),se&&(se=!1,oe.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=ne;function ne(oe,ee){if(ee.length===0)return null;var Xe;return ee.objectMode?Xe=ee.buffer.shift():!oe||oe>=ee.length?(ee.decoder?Xe=ee.buffer.join(""):ee.buffer.length===1?Xe=ee.buffer.head.data:Xe=ee.buffer.concat(ee.length),ee.buffer.clear()):Xe=ge(oe,ee.buffer,ee.decoder),Xe}function ge(oe,ee,Xe){var se;return oe<ee.head.data.length?(se=ee.head.data.slice(0,oe),ee.head.data=ee.head.data.slice(oe)):oe===ee.head.data.length?se=ee.shift():se=Xe?Oe(oe,ee):De(oe,ee),se}function Oe(oe,ee){var Xe=ee.head,se=1,Q=Xe.data;for(oe-=Q.length;Xe=Xe.next;){var G=Xe.data,J=oe>G.length?G.length:oe;if(J===G.length?Q+=G:Q+=G.slice(0,oe),oe-=J,oe===0){J===G.length?(++se,Xe.next?ee.head=Xe.next:ee.head=ee.tail=null):(ee.head=Xe,Xe.data=G.slice(J));break}++se}return ee.length-=se,Q}function De(oe,ee){var Xe=s.allocUnsafe(oe),se=ee.head,Q=1;for(se.data.copy(Xe),oe-=se.data.length;se=se.next;){var G=se.data,J=oe>G.length?G.length:oe;if(G.copy(Xe,Xe.length-oe,0,J),oe-=J,oe===0){J===G.length?(++Q,se.next?ee.head=se.next:ee.head=ee.tail=null):(ee.head=se,se.data=G.slice(J));break}++Q}return ee.length-=Q,Xe}function He(oe){var ee=oe._readableState;if(ee.length>0)throw new Error('"endReadable()" called on non-empty stream');ee.endEmitted||(ee.ended=!0,c.nextTick(pe,ee,oe))}function pe(oe,ee){!oe.endEmitted&&oe.length===0&&(oe.endEmitted=!0,ee.readable=!1,ee.emit("end"))}function Ue(oe,ee){for(var Xe=0,se=oe.length;Xe<se;Xe++)if(oe[Xe]===ee)return Xe;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,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(r){return r&&r.__esModule?r:{default:r}}B.exports=f;var A=H("./_stream_duplex"),w=(0,E.default)(H("core-util-is"));w.inherits=H("inherits"),w.inherits(f,A);function m(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 s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function f(r){if(!(this instanceof f))return new f(r);A.call(this,r),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",c)}function c(){var r=this;typeof this._flush=="function"?this._flush(function(i,n){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 s=this._readableState;(e.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.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,B,d){(function(O,E){"use strict";var C=H("babel-runtime/core-js/object/define-property"),A=e(C),w=H("babel-runtime/core-js/symbol/has-instance"),m=e(w),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(De){return De&&De.__esModule?De:{default:De}}var s=H("process-nextick-args");B.exports=L;function t(De,He,pe){this.chunk=De,this.encoding=He,this.callback=pe,this.next=null}function a(De){var He=this;this.next=null,this.entry=null,this.finish=function(){Oe(He,De)}}var l=!O.browser&&["v0.10","v0.9."].indexOf(O.version.slice(0,5))>-1?n.default:s.nextTick,u;L.WritableState=_;var h=(0,r.default)(H("core-util-is"));h.inherits=H("inherits");var p={deprecate:H("util-deprecate")},g=H("./internal/streams/stream"),v=H("safe-buffer").Buffer,y=E.Uint8Array||function(){};function x(De){return v.from(De)}function T(De){return v.isBuffer(De)||De instanceof y}var S=H("./internal/streams/destroy");h.inherits(L,g);function b(){}function _(De,He){u=u||H("./_stream_duplex"),De=De||{};var pe=He instanceof u;this.objectMode=!!De.objectMode,pe&&(this.objectMode=this.objectMode||!!De.writableObjectMode);var Ue=De.highWaterMark,oe=De.writableHighWaterMark,ee=this.objectMode?16:16*1024;Ue||Ue===0?this.highWaterMark=Ue:pe&&(oe||oe===0)?this.highWaterMark=oe:this.highWaterMark=ee,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 Xe=De.decodeStrings===!1;this.decodeStrings=!Xe,this.defaultEncoding=De.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){j(He,se)},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,pe=[];He;)pe.push(He),He=He.next;return pe},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(De){}}();var I;typeof c.default=="function"&&m.default&&typeof Function.prototype[m.default]=="function"?(I=Function.prototype[m.default],(0,A.default)(L,m.default,{value:function(He){return I.call(this,He)?!0:this!==L?!1:He&&He._writableState instanceof _}})):I=function(He){return He instanceof this};function L(De){if(u=u||H("./_stream_duplex"),!I.call(L,this)&&!(this instanceof u))return new L(De);this._writableState=new _(De,this),this.writable=!0,De&&(typeof De.write=="function"&&(this._write=De.write),typeof De.writev=="function"&&(this._writev=De.writev),typeof De.destroy=="function"&&(this._destroy=De.destroy),typeof De.final=="function"&&(this._final=De.final)),g.call(this)}L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function N(De,He){var pe=new Error("write after end");De.emit("error",pe),s.nextTick(He,pe)}function D(De,He,pe,Ue){var oe=!0,ee=!1;return pe===null?ee=new TypeError("May not write null values to stream"):typeof pe!="string"&&pe!==void 0&&!He.objectMode&&(ee=new TypeError("Invalid non-string/buffer chunk")),ee&&(De.emit("error",ee),s.nextTick(Ue,ee),oe=!1),oe}L.prototype.write=function(De,He,pe){var Ue=this._writableState,oe=!1,ee=!Ue.objectMode&&T(De);return ee&&!v.isBuffer(De)&&(De=x(De)),typeof He=="function"&&(pe=He,He=null),ee?He="buffer":He||(He=Ue.defaultEncoding),typeof pe!="function"&&(pe=b),Ue.ended?N(this,pe):(ee||D(this,Ue,De,pe))&&(Ue.pendingcb++,oe=P(this,Ue,ee,De,He,pe)),oe},L.prototype.cork=function(){var De=this._writableState;De.corked++},L.prototype.uncork=function(){var De=this._writableState;De.corked&&(De.corked--,!De.writing&&!De.corked&&!De.finished&&!De.bufferProcessing&&De.bufferedRequest&&z(this,De))},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 R(De,He,pe){return!De.objectMode&&De.decodeStrings!==!1&&typeof He=="string"&&(He=v.from(He,pe)),He}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P(De,He,pe,Ue,oe,ee){if(!pe){var Xe=R(He,Ue,oe);Ue!==Xe&&(pe=!0,oe="buffer",Ue=Xe)}var se=He.objectMode?1:Ue.length;He.length+=se;var Q=He.length<He.highWaterMark;if(Q||(He.needDrain=!0),He.writing||He.corked){var G=He.lastBufferedRequest;He.lastBufferedRequest={chunk:Ue,encoding:oe,isBuf:pe,callback:ee,next:null},G?G.next=He.lastBufferedRequest:He.bufferedRequest=He.lastBufferedRequest,He.bufferedRequestCount+=1}else M(De,He,!1,se,Ue,oe,ee);return Q}function M(De,He,pe,Ue,oe,ee,Xe){He.writelen=Ue,He.writecb=Xe,He.writing=!0,He.sync=!0,pe?De._writev(oe,He.onwrite):De._write(oe,ee,He.onwrite),He.sync=!1}function U(De,He,pe,Ue,oe){--He.pendingcb,pe?(s.nextTick(oe,Ue),s.nextTick(ne,De,He),De._writableState.errorEmitted=!0,De.emit("error",Ue)):(oe(Ue),De._writableState.errorEmitted=!0,De.emit("error",Ue),ne(De,He))}function F(De){De.writing=!1,De.writecb=null,De.length-=De.writelen,De.writelen=0}function j(De,He){var pe=De._writableState,Ue=pe.sync,oe=pe.writecb;if(F(pe),He)U(De,pe,Ue,He,oe);else{var ee=Y(pe);!ee&&!pe.corked&&!pe.bufferProcessing&&pe.bufferedRequest&&z(De,pe),Ue?l(W,De,pe,ee,oe):W(De,pe,ee,oe)}}function W(De,He,pe,Ue){pe||V(De,He),He.pendingcb--,Ue(),ne(De,He)}function V(De,He){He.length===0&&He.needDrain&&(He.needDrain=!1,De.emit("drain"))}function z(De,He){He.bufferProcessing=!0;var pe=He.bufferedRequest;if(De._writev&&pe&&pe.next){var Ue=He.bufferedRequestCount,oe=new Array(Ue),ee=He.corkedRequestsFree;ee.entry=pe;for(var Xe=0,se=!0;pe;)oe[Xe]=pe,pe.isBuf||(se=!1),pe=pe.next,Xe+=1;oe.allBuffers=se,M(De,He,!0,He.length,oe,"",ee.finish),He.pendingcb++,He.lastBufferedRequest=null,ee.next?(He.corkedRequestsFree=ee.next,ee.next=null):He.corkedRequestsFree=new a(He),He.bufferedRequestCount=0}else{for(;pe;){var Q=pe.chunk,G=pe.encoding,J=pe.callback,ve=He.objectMode?1:Q.length;if(M(De,He,!1,ve,Q,G,J),pe=pe.next,He.bufferedRequestCount--,He.writing)break}pe===null&&(He.lastBufferedRequest=null)}He.bufferedRequest=pe,He.bufferProcessing=!1}L.prototype._write=function(De,He,pe){pe(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(De,He,pe){var Ue=this._writableState;typeof De=="function"?(pe=De,De=null,He=null):typeof He=="function"&&(pe=He,He=null),De!=null&&this.write(De,He),Ue.corked&&(Ue.corked=1,this.uncork()),!Ue.ending&&!Ue.finished&&ge(this,Ue,pe)};function Y(De){return De.ending&&De.length===0&&De.bufferedRequest===null&&!De.finished&&!De.writing}function $(De,He){De._final(function(pe){He.pendingcb--,pe&&De.emit("error",pe),He.prefinished=!0,De.emit("prefinish"),ne(De,He)})}function ue(De,He){!He.prefinished&&!He.finalCalled&&(typeof De._final=="function"?(He.pendingcb++,He.finalCalled=!0,s.nextTick($,De,He)):(He.prefinished=!0,De.emit("prefinish")))}function ne(De,He){var pe=Y(He);return pe&&(ue(De,He),He.pendingcb===0&&(He.finished=!0,De.emit("finish"))),pe}function ge(De,He,pe){He.ending=!0,ne(De,He),pe&&(He.finished?s.nextTick(pe):De.once("finish",pe)),He.ended=!0,De.writable=!1}function Oe(De,He,pe){var Ue=De.entry;for(De.entry=null;Ue;){var oe=Ue.callback;He.pendingcb--,oe(pe),Ue=Ue.next}He.corkedRequestsFree?He.corkedRequestsFree.next=De:He.corkedRequestsFree=De}Object.defineProperty(L.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(He){if(!this._writableState)return;this._writableState.destroyed=He}}),L.prototype.destroy=S.destroy,L.prototype._undestroy=S.undestroy,L.prototype._destroy=function(De,He){this.end(),He(De)}}).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,B,d){"use strict";function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}var E=H("safe-buffer").Buffer,C=H("util");function A(w,m,f){w.copy(m,f)}B.exports=function(){function w(){O(this,w),this.head=null,this.tail=null,this.length=0}return w.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},w.prototype.unshift=function(f){var c={data:f,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},w.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},w.prototype.clear=function(){this.head=this.tail=null,this.length=0},w.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},w.prototype.concat=function(f){if(this.length===0)return E.alloc(0);if(this.length===1)return this.head.data;for(var c=E.allocUnsafe(f>>>0),o=this.head,r=0;o;)A(o.data,c,r),r+=o.data.length,o=o.next;return c},w}(),C&&C.inspect&&C.inspect.custom&&(B.exports.prototype[C.inspect.custom]=function(){var w=C.inspect({length:this.length});return this.constructor.name+" "+w})},{"safe-buffer":228,util:71}],220:[function(H,B,d){"use strict";var O=H("process-nextick-args");function E(w,m){var f=this,c=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return c||o?(m?m(w):w&&(!this._writableState||!this._writableState.errorEmitted)&&O.nextTick(A,this,w),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(w||null,function(r){!m&&r?(O.nextTick(A,f,r),f._writableState&&(f._writableState.errorEmitted=!0)):m&&m(r)}),this)}function C(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function A(w,m){w.emit("error",m)}B.exports={destroy:E,undestroy:C}},{"process-nextick-args":207}],221:[function(H,B,d){"use strict";B.exports=H("events").EventEmitter},{events:192}],222:[function(H,B,d){B.exports=H("./readable").PassThrough},{"./readable":223}],223:[function(H,B,d){d=B.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,B,d){B.exports=H("./readable").Transform},{"./readable":223}],225:[function(H,B,d){B.exports=H("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(H,B,d){var O=function(){return this}()||Function("return this")(),E=O.regeneratorRuntime&&Object.getOwnPropertyNames(O).indexOf("regeneratorRuntime")>=0,C=E&&O.regeneratorRuntime;if(O.regeneratorRuntime=void 0,B.exports=H("./runtime"),E)O.regeneratorRuntime=C;else try{delete O.regeneratorRuntime}catch(A){O.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(H,B,d){!function(O){"use strict";var E=Object.prototype,C=E.hasOwnProperty,A,w=typeof Symbol=="function"?Symbol:{},m=w.iterator||"@@iterator",f=w.asyncIterator||"@@asyncIterator",c=w.toStringTag||"@@toStringTag",o=typeof B=="object",r=O.regeneratorRuntime;if(r){o&&(B.exports=r);return}r=O.regeneratorRuntime=o?B.exports:{};function i(P,M,U,F){var j=M&&M.prototype instanceof u?M:u,W=Object.create(j.prototype),V=new N(F||[]);return W._invoke=b(P,U,V),W}r.wrap=i;function n(P,M,U){try{return{type:"normal",arg:P.call(M,U)}}catch(F){return{type:"throw",arg:F}}}var e="suspendedStart",s="suspendedYield",t="executing",a="completed",l={};function u(){}function h(){}function p(){}var g={};g[m]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(D([])));y&&y!==E&&C.call(y,m)&&(g=y);var x=p.prototype=u.prototype=Object.create(g);h.prototype=x.constructor=p,p.constructor=h,p[c]=h.displayName="GeneratorFunction";function T(P){["next","throw","return"].forEach(function(M){P[M]=function(U){return this._invoke(M,U)}})}r.isGeneratorFunction=function(P){var M=typeof P=="function"&&P.constructor;return M?M===h||(M.displayName||M.name)==="GeneratorFunction":!1},r.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,p):(P.__proto__=p,c in P||(P[c]="GeneratorFunction")),P.prototype=Object.create(x),P},r.awrap=function(P){return{__await:P}};function S(P){function M(j,W,V,z){var Y=n(P[j],P,W);if(Y.type==="throw")z(Y.arg);else{var $=Y.arg,ue=$.value;return ue&&typeof ue=="object"&&C.call(ue,"__await")?Promise.resolve(ue.__await).then(function(ne){M("next",ne,V,z)},function(ne){M("throw",ne,V,z)}):Promise.resolve(ue).then(function(ne){$.value=ne,V($)},z)}}var U;function F(j,W){function V(){return new Promise(function(z,Y){M(j,W,z,Y)})}return U=U?U.then(V,V):V()}this._invoke=F}T(S.prototype),S.prototype[f]=function(){return this},r.AsyncIterator=S,r.async=function(P,M,U,F){var j=new S(i(P,M,U,F));return r.isGeneratorFunction(M)?j:j.next().then(function(W){return W.done?W.value:j.next()})};function b(P,M,U){var F=e;return function(W,V){if(F===t)throw new Error("Generator is already running");if(F===a){if(W==="throw")throw V;return R()}for(U.method=W,U.arg=V;;){var z=U.delegate;if(z){var Y=_(z,U);if(Y){if(Y===l)continue;return Y}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(F===e)throw F=a,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);F=t;var $=n(P,M,U);if($.type==="normal"){if(F=U.done?a:s,$.arg===l)continue;return{value:$.arg,done:U.done}}else $.type==="throw"&&(F=a,U.method="throw",U.arg=$.arg)}}}function _(P,M){var U=P.iterator[M.method];if(U===A){if(M.delegate=null,M.method==="throw"){if(P.iterator.return&&(M.method="return",M.arg=A,_(P,M),M.method==="throw"))return l;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var F=n(U,P.iterator,M.arg);if(F.type==="throw")return M.method="throw",M.arg=F.arg,M.delegate=null,l;var j=F.arg;if(!j)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,l;if(j.done)M[P.resultName]=j.value,M.next=P.nextLoc,M.method!=="return"&&(M.method="next",M.arg=A);else return j;return M.delegate=null,l}T(x),x[c]="Generator",x[m]=function(){return this},x.toString=function(){return"[object Generator]"};function I(P){var M={tryLoc:P[0]};1 in P&&(M.catchLoc=P[1]),2 in P&&(M.finallyLoc=P[2],M.afterLoc=P[3]),this.tryEntries.push(M)}function L(P){var M=P.completion||{};M.type="normal",delete M.arg,P.completion=M}function N(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(I,this),this.reset(!0)}r.keys=function(P){var M=[];for(var U in P)M.push(U);return M.reverse(),function F(){for(;M.length;){var j=M.pop();if(j in P)return F.value=j,F.done=!1,F}return F.done=!0,F}};function D(P){if(P){var M=P[m];if(M)return M.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var U=-1,F=function j(){for(;++U<P.length;)if(C.call(P,U))return j.value=P[U],j.done=!1,j;return j.value=A,j.done=!0,j};return F.next=F}}return{next:R}}r.values=D;function R(){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 F($,ue){return V.type="throw",V.arg=M,U.next=$,ue&&(U.method="next",U.arg=A),!!ue}for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j],V=W.completion;if(W.tryLoc==="root")return F("end");if(W.tryLoc<=this.prev){var z=C.call(W,"catchLoc"),Y=C.call(W,"finallyLoc");if(z&&Y){if(this.prev<W.catchLoc)return F(W.catchLoc,!0);if(this.prev<W.finallyLoc)return F(W.finallyLoc)}else if(z){if(this.prev<W.catchLoc)return F(W.catchLoc,!0)}else if(Y){if(this.prev<W.finallyLoc)return F(W.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(M,U){for(var F=this.tryEntries.length-1;F>=0;--F){var j=this.tryEntries[F];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,l):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),l},finish:function(M){for(var U=this.tryEntries.length-1;U>=0;--U){var F=this.tryEntries[U];if(F.finallyLoc===M)return this.complete(F.completion,F.afterLoc),L(F),l}},catch:function(M){for(var U=this.tryEntries.length-1;U>=0;--U){var F=this.tryEntries[U];if(F.tryLoc===M){var j=F.completion;if(j.type==="throw"){var W=j.arg;L(F)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(M,U,F){return this.delegate={iterator:D(M),resultName:U,nextLoc:F},this.method==="next"&&(this.arg=A),l}}}(function(){return this}()||Function("return this")())},{}],228:[function(H,B,d){var O=H("buffer"),E=O.Buffer;function C(w,m){for(var f in w)m[f]=w[f]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?B.exports=O:(C(O,d),d.Buffer=A);function A(w,m,f){return E(w,m,f)}C(E,A),A.from=function(w,m,f){if(typeof w=="number")throw new TypeError("Argument must not be a number");return E(w,m,f)},A.alloc=function(w,m,f){if(typeof w!="number")throw new TypeError("Argument must be a number");var c=E(w);return m!==void 0?typeof f=="string"?c.fill(m,f):c.fill(m):c.fill(0),c},A.allocUnsafe=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return E(w)},A.allocUnsafeSlow=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return O.SlowBuffer(w)}},{buffer:73}],229:[function(H,B,d){(function(O){"use strict";var E=H("babel-runtime/core-js/string/from-code-point"),C=s(E),A=H("babel-runtime/core-js/json/stringify"),w=s(A),m=H("babel-runtime/helpers/typeof"),f=s(m),c=H("babel-runtime/core-js/object/define-property"),o=s(c),r=H("babel-runtime/core-js/object/keys"),i=s(r),n=H("babel-runtime/core-js/object/create"),e=s(n);function s(t){return t&&t.__esModule?t:{default:t}}(function(t){t.parser=function(G,J){return new l(G,J)},t.SAXParser=l,t.SAXStream=x,t.createStream=y,t.MAX_BUFFER_LENGTH=64*1024;var a=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function l(G,J){if(!(this instanceof l))return new l(G,J);var ve=this;h(ve),ve.q=ve.c="",ve.bufferCheckPosition=t.MAX_BUFFER_LENGTH,ve.opt=J||{},ve.opt.lowercase=ve.opt.lowercase||ve.opt.lowercasetags,ve.looseCase=ve.opt.lowercase?"toLowerCase":"toUpperCase",ve.tags=[],ve.closed=ve.closedRoot=ve.sawRoot=!1,ve.tag=ve.error=null,ve.strict=!!G,ve.noscript=!!(G||ve.opt.noscript),ve.state=W.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,e.default)(t.XML_ENTITIES):(0,e.default)(t.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,e.default)(I)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),z(ve,"onready")}e.default||(Object.create=function(G){function J(){}J.prototype=G;var ve=new J;return ve}),i.default||(Object.keys=function(G){var J=[];for(var ve in G)G.hasOwnProperty(ve)&&J.push(ve);return J});function u(G){for(var J=Math.max(t.MAX_BUFFER_LENGTH,10),ve=0,de=0,Ce=a.length;de<Ce;de++){var Ee=G[a[de]].length;if(Ee>J)switch(a[de]){case"textNode":$(G);break;case"cdata":Y(G,"oncdata",G.cdata),G.cdata="";break;case"script":Y(G,"onscript",G.script),G.script="";break;default:ne(G,"Max buffer length exceeded: "+a[de])}ve=Math.max(ve,Ee)}var le=t.MAX_BUFFER_LENGTH-ve;G.bufferCheckPosition=le+G.position}function h(G){for(var J=0,ve=a.length;J<ve;J++)G[a[J]]=""}function p(G){$(G),G.cdata!==""&&(Y(G,"oncdata",G.cdata),G.cdata=""),G.script!==""&&(Y(G,"onscript",G.script),G.script="")}l.prototype={end:function(){ge(this)},write:Q,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var g;try{g=H("stream").Stream}catch(G){g=function(){}}var v=t.EVENTS.filter(function(G){return G!=="error"&&G!=="end"});function y(G,J){return new x(G,J)}function x(G,J){if(!(this instanceof x))return new x(G,J);g.apply(this),this._parser=new l(G,J),this.writable=!0,this.readable=!0;var ve=this;this._parser.onend=function(){ve.emit("end")},this._parser.onerror=function(de){ve.emit("error",de),ve._parser.error=null},this._decoder=null,v.forEach(function(de){(0,o.default)(ve,"on"+de,{get:function(){return ve._parser["on"+de]},set:function(Ee){if(!Ee)return ve.removeAllListeners(de),ve._parser["on"+de]=Ee,Ee;ve.on(de,Ee)},enumerable:!0,configurable:!1})})}x.prototype=(0,e.default)(g.prototype,{constructor:{value:x}}),x.prototype.write=function(G){if(typeof O=="function"&&typeof O.isBuffer=="function"&&O.isBuffer(G)){if(!this._decoder){var J=H("string_decoder").StringDecoder;this._decoder=new J("utf8")}G=this._decoder.write(G)}return this._parser.write(G.toString()),this.emit("data",G),!0},x.prototype.end=function(G){return G&&G.length&&this.write(G),this._parser.end(),!0},x.prototype.on=function(G,J){var ve=this;return!ve._parser["on"+G]&&v.indexOf(G)!==-1&&(ve._parser["on"+G]=function(){var de=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);de.splice(0,0,G),ve.emit.apply(ve,de)}),g.prototype.on.call(ve,G,J)};var T="[CDATA[",S="DOCTYPE",b="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",I={xml:b,xmlns:_},L=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,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-]/,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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function P(G){return G===" "||G===`
|
|
|
`||G==="\r"||G===" "}function M(G){return G==='"'||G==="'"}function U(G){return G===">"||P(G)}function F(G,J){return G.test(J)}function j(G,J){return!F(G,J)}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 J=t.ENTITIES[G],ve=typeof J=="number"?String.fromCharCode(J):J;t.ENTITIES[G]=ve});for(var V in t.STATE)t.STATE[t.STATE[V]]=V;W=t.STATE;function z(G,J,ve){G[J]&&G[J](ve)}function Y(G,J,ve){G.textNode&&$(G),z(G,J,ve)}function $(G){G.textNode=ue(G.opt,G.textNode),G.textNode&&z(G,"ontext",G.textNode),G.textNode=""}function ue(G,J){return G.trim&&(J=J.trim()),G.normalize&&(J=J.replace(/\s+/g," ")),J}function ne(G,J){return $(G),G.trackPosition&&(J+=`
|
|
|
Line: `+G.line+`
|
|
|
Column: `+G.column+`
|
|
|
Char: `+G.c),J=new Error(J),G.error=J,z(G,"onerror",J),G}function ge(G){return G.sawRoot&&!G.closedRoot&&Oe(G,"Unclosed root tag"),G.state!==W.BEGIN&&G.state!==W.BEGIN_WHITESPACE&&G.state!==W.TEXT&&ne(G,"Unexpected end"),$(G),G.c="",G.closed=!0,z(G,"onend"),l.call(G,G.strict,G.opt),G}function Oe(G,J){if((typeof G=="undefined"?"undefined":(0,f.default)(G))!=="object"||!(G instanceof l))throw new Error("bad call to strictFail");G.strict&&ne(G,J)}function De(G){G.strict||(G.tagName=G.tagName[G.looseCase]());var J=G.tags[G.tags.length-1]||G,ve=G.tag={name:G.tagName,attributes:{}};G.opt.xmlns&&(ve.ns=J.ns),G.attribList.length=0,Y(G,"onopentagstart",ve)}function He(G,J){var ve=G.indexOf(":"),de=ve<0?["",G]:G.split(":"),Ce=de[0],Ee=de[1];return J&&G==="xmlns"&&(Ce="xmlns",Ee=""),{prefix:Ce,local:Ee}}function pe(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 J=He(G.attribName,!0),ve=J.prefix,de=J.local;if(ve==="xmlns")if(de==="xml"&&G.attribValue!==b)Oe(G,"xml: prefix must be bound to "+b+`
|
|
|
Actual: `+G.attribValue);else if(de==="xmlns"&&G.attribValue!==_)Oe(G,"xmlns: prefix must be bound to "+_+`
|
|
|
Actual: `+G.attribValue);else{var Ce=G.tag,Ee=G.tags[G.tags.length-1]||G;Ce.ns===Ee.ns&&(Ce.ns=(0,e.default)(Ee.ns)),Ce.ns[de]=G.attribValue}G.attribList.push([G.attribName,G.attribValue])}else G.tag.attributes[G.attribName]=G.attribValue,Y(G,"onattribute",{name:G.attribName,value:G.attribValue});G.attribName=G.attribValue=""}function Ue(G,J){if(G.opt.xmlns){var ve=G.tag,de=He(G.tagName);ve.prefix=de.prefix,ve.local=de.local,ve.uri=ve.ns[de.prefix]||"",ve.prefix&&!ve.uri&&(Oe(G,"Unbound namespace prefix: "+(0,w.default)(G.tagName)),ve.uri=de.prefix);var Ce=G.tags[G.tags.length-1]||G;ve.ns&&Ce.ns!==ve.ns&&(0,i.default)(ve.ns).forEach(function(nt){Y(G,"onopennamespace",{prefix:nt,uri:ve.ns[nt]})});for(var Ee=0,le=G.attribList.length;Ee<le;Ee++){var fe=G.attribList[Ee],xe=fe[0],Qe=fe[1],ot=He(xe,!0),Je=ot.prefix,Te=ot.local,et=Je===""?"":ve.ns[Je]||"",ze={name:xe,value:Qe,prefix:Je,local:Te,uri:et};Je&&Je!=="xmlns"&&!et&&(Oe(G,"Unbound namespace prefix: "+(0,w.default)(Je)),ze.uri=Je),G.tag.attributes[xe]=ze,Y(G,"onattribute",ze)}G.attribList.length=0}G.tag.isSelfClosing=!!J,G.sawRoot=!0,G.tags.push(G.tag),Y(G,"onopentag",G.tag),J||(!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 oe(G){if(!G.tagName){Oe(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}Y(G,"onscript",G.script),G.script=""}var J=G.tags.length,ve=G.tagName;G.strict||(ve=ve[G.looseCase]());for(var de=ve;J--;){var Ce=G.tags[J];if(Ce.name!==de)Oe(G,"Unexpected close tag");else break}if(J<0){Oe(G,"Unmatched closing tag: "+G.tagName),G.textNode+="</"+G.tagName+">",G.state=W.TEXT;return}G.tagName=ve;for(var Ee=G.tags.length;Ee-- >J;){var le=G.tag=G.tags.pop();G.tagName=G.tag.name,Y(G,"onclosetag",G.tagName);var fe={};for(var xe in le.ns)fe[xe]=le.ns[xe];var Qe=G.tags[G.tags.length-1]||G;G.opt.xmlns&&le.ns!==Qe.ns&&(0,i.default)(le.ns).forEach(function(ot){var Je=le.ns[ot];Y(G,"onclosenamespace",{prefix:ot,uri:Je})})}J===0&&(G.closedRoot=!0),G.tagName=G.attribValue=G.attribName="",G.attribList.length=0,G.state=W.TEXT}function ee(G){var J=G.entity,ve=J.toLowerCase(),de,Ce="";return G.ENTITIES[J]?G.ENTITIES[J]:G.ENTITIES[ve]?G.ENTITIES[ve]:(J=ve,J.charAt(0)==="#"&&(J.charAt(1)==="x"?(J=J.slice(2),de=parseInt(J,16),Ce=de.toString(16)):(J=J.slice(1),de=parseInt(J,10),Ce=de.toString(10))),J=J.replace(/^0+/,""),isNaN(de)||Ce.toLowerCase()!==J?(Oe(G,"Invalid character entity"),"&"+G.entity+";"):(0,C.default)(de))}function Xe(G,J){J==="<"?(G.state=W.OPEN_WAKA,G.startTagPosition=G.position):P(J)||(Oe(G,"Non-whitespace before first tag."),G.textNode=J,G.state=W.TEXT)}function se(G,J){var ve="";return J<G.length&&(ve=G.charAt(J)),ve}function Q(G){var J=this;if(this.error)throw this.error;if(J.closed)return ne(J,"Cannot write after close. Assign an onready handler.");if(G===null)return ge(J);(typeof G=="undefined"?"undefined":(0,f.default)(G))==="object"&&(G=G.toString());for(var ve=0,de="";!(de=se(G,ve++),J.c=de,!de);){J.trackPosition&&(J.position++,de===`
|
|
|
`?(J.line++,J.column=0):J.column++);switch(J.state){case W.BEGIN:if(J.state=W.BEGIN_WHITESPACE,de==="\uFEFF")continue;Xe(J,de);continue;case W.BEGIN_WHITESPACE:Xe(J,de);continue;case W.TEXT:if(J.sawRoot&&!J.closedRoot){for(var Ce=ve-1;de&&de!=="<"&&de!=="&";)de=se(G,ve++),de&&J.trackPosition&&(J.position++,de===`
|
|
|
`?(J.line++,J.column=0):J.column++);J.textNode+=G.substring(Ce,ve-1)}de==="<"&&!(J.sawRoot&&J.closedRoot&&!J.strict)?(J.state=W.OPEN_WAKA,J.startTagPosition=J.position):(!P(de)&&(!J.sawRoot||J.closedRoot)&&Oe(J,"Text data outside of root node."),de==="&"?J.state=W.TEXT_ENTITY:J.textNode+=de);continue;case W.SCRIPT:de==="<"?J.state=W.SCRIPT_ENDING:J.script+=de;continue;case W.SCRIPT_ENDING:de==="/"?J.state=W.CLOSE_TAG:(J.script+="<"+de,J.state=W.SCRIPT);continue;case W.OPEN_WAKA:if(de==="!")J.state=W.SGML_DECL,J.sgmlDecl="";else if(!P(de))if(F(L,de))J.state=W.OPEN_TAG,J.tagName=de;else if(de==="/")J.state=W.CLOSE_TAG,J.tagName="";else if(de==="?")J.state=W.PROC_INST,J.procInstName=J.procInstBody="";else{if(Oe(J,"Unencoded <"),J.startTagPosition+1<J.position){var Ee=J.position-J.startTagPosition;de=new Array(Ee).join(" ")+de}J.textNode+="<"+de,J.state=W.TEXT}continue;case W.SGML_DECL:(J.sgmlDecl+de).toUpperCase()===T?(Y(J,"onopencdata"),J.state=W.CDATA,J.sgmlDecl="",J.cdata=""):J.sgmlDecl+de==="--"?(J.state=W.COMMENT,J.comment="",J.sgmlDecl=""):(J.sgmlDecl+de).toUpperCase()===S?(J.state=W.DOCTYPE,(J.doctype||J.sawRoot)&&Oe(J,"Inappropriately located doctype declaration"),J.doctype="",J.sgmlDecl=""):de===">"?(Y(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=W.TEXT):(M(de)&&(J.state=W.SGML_DECL_QUOTED),J.sgmlDecl+=de);continue;case W.SGML_DECL_QUOTED:de===J.q&&(J.state=W.SGML_DECL,J.q=""),J.sgmlDecl+=de;continue;case W.DOCTYPE:de===">"?(J.state=W.TEXT,Y(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=de,de==="["?J.state=W.DOCTYPE_DTD:M(de)&&(J.state=W.DOCTYPE_QUOTED,J.q=de));continue;case W.DOCTYPE_QUOTED:J.doctype+=de,de===J.q&&(J.q="",J.state=W.DOCTYPE);continue;case W.DOCTYPE_DTD:J.doctype+=de,de==="]"?J.state=W.DOCTYPE:M(de)&&(J.state=W.DOCTYPE_DTD_QUOTED,J.q=de);continue;case W.DOCTYPE_DTD_QUOTED:J.doctype+=de,de===J.q&&(J.state=W.DOCTYPE_DTD,J.q="");continue;case W.COMMENT:de==="-"?J.state=W.COMMENT_ENDING:J.comment+=de;continue;case W.COMMENT_ENDING:de==="-"?(J.state=W.COMMENT_ENDED,J.comment=ue(J.opt,J.comment),J.comment&&Y(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+de,J.state=W.COMMENT);continue;case W.COMMENT_ENDED:de!==">"?(Oe(J,"Malformed comment"),J.comment+="--"+de,J.state=W.COMMENT):J.state=W.TEXT;continue;case W.CDATA:de==="]"?J.state=W.CDATA_ENDING:J.cdata+=de;continue;case W.CDATA_ENDING:de==="]"?J.state=W.CDATA_ENDING_2:(J.cdata+="]"+de,J.state=W.CDATA);continue;case W.CDATA_ENDING_2:de===">"?(J.cdata&&Y(J,"oncdata",J.cdata),Y(J,"onclosecdata"),J.cdata="",J.state=W.TEXT):de==="]"?J.cdata+="]":(J.cdata+="]]"+de,J.state=W.CDATA);continue;case W.PROC_INST:de==="?"?J.state=W.PROC_INST_ENDING:P(de)?J.state=W.PROC_INST_BODY:J.procInstName+=de;continue;case W.PROC_INST_BODY:if(!J.procInstBody&&P(de))continue;de==="?"?J.state=W.PROC_INST_ENDING:J.procInstBody+=de;continue;case W.PROC_INST_ENDING:de===">"?(Y(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=W.TEXT):(J.procInstBody+="?"+de,J.state=W.PROC_INST_BODY);continue;case W.OPEN_TAG:F(N,de)?J.tagName+=de:(De(J),de===">"?Ue(J):de==="/"?J.state=W.OPEN_TAG_SLASH:(P(de)||Oe(J,"Invalid character in tag name"),J.state=W.ATTRIB));continue;case W.OPEN_TAG_SLASH:de===">"?(Ue(J,!0),oe(J)):(Oe(J,"Forward-slash in opening tag not followed by >"),J.state=W.ATTRIB);continue;case W.ATTRIB:if(P(de))continue;de===">"?Ue(J):de==="/"?J.state=W.OPEN_TAG_SLASH:F(L,de)?(J.attribName=de,J.attribValue="",J.state=W.ATTRIB_NAME):Oe(J,"Invalid attribute name");continue;case W.ATTRIB_NAME:de==="="?J.state=W.ATTRIB_VALUE:de===">"?(Oe(J,"Attribute without value"),J.attribValue=J.attribName,pe(J),Ue(J)):P(de)?J.state=W.ATTRIB_NAME_SAW_WHITE:F(N,de)?J.attribName+=de:Oe(J,"Invalid attribute name");continue;case W.ATTRIB_NAME_SAW_WHITE:if(de==="=")J.state=W.ATTRIB_VALUE;else{if(P(de))continue;Oe(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",Y(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",de===">"?Ue(J):F(L,de)?(J.attribName=de,J.state=W.ATTRIB_NAME):(Oe(J,"Invalid attribute name"),J.state=W.ATTRIB)}continue;case W.ATTRIB_VALUE:if(P(de))continue;M(de)?(J.q=de,J.state=W.ATTRIB_VALUE_QUOTED):(Oe(J,"Unquoted attribute value"),J.state=W.ATTRIB_VALUE_UNQUOTED,J.attribValue=de);continue;case W.ATTRIB_VALUE_QUOTED:if(de!==J.q){de==="&"?J.state=W.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=de;continue}pe(J),J.q="",J.state=W.ATTRIB_VALUE_CLOSED;continue;case W.ATTRIB_VALUE_CLOSED:P(de)?J.state=W.ATTRIB:de===">"?Ue(J):de==="/"?J.state=W.OPEN_TAG_SLASH:F(L,de)?(Oe(J,"No whitespace between attributes"),J.attribName=de,J.attribValue="",J.state=W.ATTRIB_NAME):Oe(J,"Invalid attribute name");continue;case W.ATTRIB_VALUE_UNQUOTED:if(!U(de)){de==="&"?J.state=W.ATTRIB_VALUE_ENTITY_U:J.attribValue+=de;continue}pe(J),de===">"?Ue(J):J.state=W.ATTRIB;continue;case W.CLOSE_TAG:if(J.tagName)de===">"?oe(J):F(N,de)?J.tagName+=de:J.script?(J.script+="</"+J.tagName,J.tagName="",J.state=W.SCRIPT):(P(de)||Oe(J,"Invalid tagname in closing tag"),J.state=W.CLOSE_TAG_SAW_WHITE);else{if(P(de))continue;j(L,de)?J.script?(J.script+="</"+de,J.state=W.SCRIPT):Oe(J,"Invalid tagname in closing tag."):J.tagName=de}continue;case W.CLOSE_TAG_SAW_WHITE:if(P(de))continue;de===">"?oe(J):Oe(J,"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(J.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}de===";"?(J[fe]+=ee(J),J.entity="",J.state=le):F(J.entity.length?R:D,de)?J.entity+=de:(Oe(J,"Invalid character in entity name"),J[fe]+="&"+J.entity+de,J.entity="",J.state=le);continue;default:throw new Error(J,"Unknown state: "+J.state)}}return J.position>=J.bufferCheckPosition&&u(J),J}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */C.default||function(){var G=String.fromCharCode,J=Math.floor,ve=function(){var Ce=16384,Ee=[],le,fe,xe=-1,Qe=arguments.length;if(!Qe)return"";for(var ot="";++xe<Qe;){var Je=Number(arguments[xe]);if(!isFinite(Je)||Je<0||Je>1114111||J(Je)!==Je)throw RangeError("Invalid code point: "+Je);Je<=65535?Ee.push(Je):(Je-=65536,le=(Je>>10)+55296,fe=Je%1024+56320,Ee.push(le,fe)),(xe+1===Qe||Ee.length>Ce)&&(ot+=G.apply(null,Ee),Ee.length=0)}return ot};o.default?Object.defineProperty(String,"fromCodePoint",{value:ve,configurable:!0,writable:!0}):String.fromCodePoint=ve}()})(typeof d=="undefined"?(void 0).sax={}:d)}).call(this,H("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(H,B,d){B.exports=C;var O=H("events").EventEmitter,E=H("inherits");E(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,w){var m=this;function f(s){A.writable&&(A.write(s)===!1&&m.pause&&m.pause())}m.on("data",f);function c(){m.readable&&m.resume&&m.resume()}A.on("drain",c),!A._isStdio&&(!w||w.end!==!1)&&(m.on("end",r),m.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(s){if(e(),O.listenerCount(this,"error")===0)throw s}m.on("error",n),A.on("error",n);function e(){m.removeListener("data",f),A.removeListener("drain",c),m.removeListener("end",r),m.removeListener("close",i),m.removeListener("error",n),A.removeListener("error",n),m.removeListener("end",e),m.removeListener("close",e),A.removeListener("close",e)}return m.on("end",e),m.on("close",e),A.on("close",e),A.emit("pipe",m),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,B,d){(function(O){var E=H("./lib/request"),C=H("./lib/response"),A=H("xtend"),w=H("builtin-status-codes"),m=H("url"),f=d;f.request=function(c,o){typeof c=="string"?c=m.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,s=c.path||"/";n&&n.indexOf(":")!==-1&&(n="["+n+"]"),c.url=(n?i+"//"+n:"")+(e?":"+e:"")+s,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var t=new E(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=E,f.IncomingMessage=C.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=w,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,B,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 E;function C(){if(E!==void 0)return E;if(O.XMLHttpRequest){E=new O.XMLHttpRequest;try{E.open("GET",O.XDomainRequest?"/":"https://example.com")}catch(c){E=null}}else E=null;return E}function A(c){var o=C();if(!o)return!1;try{return o.responseType=c,o.responseType===c}catch(r){}return!1}var w=typeof O.ArrayBuffer!="undefined",m=w&&f(O.ArrayBuffer.prototype.slice);d.arraybuffer=d.fetch||w&&A("arraybuffer"),d.msstream=!d.fetch&&m&&A("ms-stream"),d.mozchunkedarraybuffer=!d.fetch&&w&&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"}E=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(H,B,d){(function(O,E,C){"use strict";var A=H("babel-runtime/core-js/object/keys"),w=m(A);function m(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 s(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=B.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,w.default)(u.headers).forEach(function(v){h.setHeader(v,u.headers[v])});var p,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!f.abortController)g=!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=s(p,g),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};c(t,r.Writable),t.prototype.setHeader=function(u,h){var p=this,g=u.toLowerCase();if(l.indexOf(g)!==-1)return;p._headers[g]={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,g=null;h.method!=="GET"&&h.method!=="HEAD"&&(f.arraybuffer?g=i(C.concat(u._body)):f.blobConstructor?g=new E.Blob(u._body.map(function(b){return i(b)}),{type:(p["content-type"]||{}).value||""}):g=C.concat(u._body).toString());var v=[];if((0,w.default)(p).forEach(function(b){var _=p[b].name,I=p[b].value;Array.isArray(I)?I.forEach(function(L){v.push([_,L])}):v.push([_,I])}),u._mode==="fetch"){var y=null,x=null;if(f.abortController){var T=new AbortController;y=T.signal,u._fetchAbortController=T,"requestTimeout"in h&&h.requestTimeout!==0&&(u._fetchTimer=E.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},h.requestTimeout))}E.fetch(u._opts.url,{method:u._opts.method,headers:v,body:g||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:y}).then(function(b){u._fetchResponse=b,u._connect()},function(b){E.clearTimeout(u._fetchTimer),u._destroyed||u.emit("error",b)})}else{var S=u._xhr=new E.XMLHttpRequest;try{S.open(u._opts.method,u._opts.url,!0)}catch(b){O.nextTick(function(){u.emit("error",b)});return}"responseType"in S&&(S.responseType=u._mode.split(":")[0]),"withCredentials"in S&&(S.withCredentials=!!h.withCredentials),u._mode==="text"&&"overrideMimeType"in S&&S.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(S.timeout=h.requestTimeout,S.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(b){S.setRequestHeader(b[0],b[1])}),u._response=null,S.onreadystatechange=function(){switch(S.readyState){case e.LOADING:case e.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(S.onprogress=function(){u._onXHRProgress()}),S.onerror=function(){if(u._destroyed)return;u.emit("error",new Error("XHR error"))};try{S.send(g)}catch(b){O.nextTick(function(){u.emit("error",b)});return}}};function a(u){try{var 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 g=this;g._body.push(u),p()},t.prototype.abort=t.prototype.destroy=function(){var u=this;u._destroyed=!0,E.clearTimeout(u._fetchTimer),u._response&&(u._response._destroyed=!0),u._xhr?u._xhr.abort():u._fetchAbortController&&u._fetchAbortController.abort()},t.prototype.end=function(u,h,p){var g=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(g,u,h,p)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,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,B,d){(function(O,E,C){"use strict";var A=H("babel-runtime/core-js/promise"),w=m(A);function m(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,s,t){var a=this;if(o.Readable.call(a),a._mode=s,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){O.nextTick(function(){a.emit("close")})}),s==="fetch"){var l=function y(){h.read().then(function(x){if(a._destroyed)return;if(x.done){E.clearTimeout(t),a.push(null);return}a.push(new C(x.value)),y()}).catch(function(x){E.clearTimeout(t),a._destroyed||a.emit("error",x)})};if(a._fetchResponse=e,a.url=e.url,a.statusCode=e.status,a.statusMessage=e.statusText,e.headers.forEach(function(y,x){a.headers[x.toLowerCase()]=y,a.rawHeaders.push(x,y)}),f.writableStream){var u=new WritableStream({write:function(x){return new w.default(function(T,S){a._destroyed?S():a.push(new C(x))?T():a._resumeFetch=T})},close:function(){E.clearTimeout(t),a._destroyed||a.push(null)},abort:function(x){a._destroyed||a.emit("error",x)}});try{e.body.pipeTo(u).catch(function(y){E.clearTimeout(t),a._destroyed||a.emit("error",y)});return}catch(y){}}var h=e.body.getReader();l()}else{a._xhr=n,a._pos=0,a.url=n.responseURL,a.statusCode=n.status,a.statusMessage=n.statusText;var p=n.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(y){var x=y.match(/^([^:]+):\s*(.*)/);if(x){var T=x[1].toLowerCase();T==="set-cookie"?(a.headers[T]===void 0&&(a.headers[T]=[]),a.headers[T].push(x[2])):a.headers[T]!==void 0?a.headers[T]+=", "+x[2]:a.headers[T]=x[2],a.rawHeaders.push(x[1],x[2])}}),a._charset="x-user-defined",!f.overrideMimeType){var g=a.rawHeaders["mime-type"];if(g){var v=g.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,s=null;switch(n._mode){case"text:vbarray":if(e.readyState!==r.DONE)break;try{s=new E.VBArray(e.responseBody).toArray()}catch(h){}if(s!==null){n.push(new C(s));break}case"text":try{s=e.responseText}catch(h){n._mode="text:vbarray";break}if(s.length>n._pos){var t=s.substr(n._pos);if(n._charset==="x-user-defined"){for(var a=new C(t.length),l=0;l<t.length;l++)a[l]=t.charCodeAt(l)&255;n.push(a)}else n.push(t,n._charset);n._pos=s.length}break;case"arraybuffer":if(e.readyState!==r.DONE||!e.response)break;s=e.response,n.push(new C(new Uint8Array(s)));break;case"moz-chunked-arraybuffer":if(s=e.response,e.readyState!==r.LOADING||!s)break;n.push(new C(new Uint8Array(s)));break;case"ms-stream":if(s=e.response,e.readyState!==r.LOADING)break;var u=new E.MSStreamReader;u.onprogress=function(){u.result.byteLength>n._pos&&(n.push(new C(new Uint8Array(u.result.slice(n._pos)))),n._pos=u.result.byteLength)},u.onload=function(){n.push(null)},u.readAsArrayBuffer(s);break}n._xhr.readyState===r.DONE&&n._mode!=="ms-stream"&&n.push(null)}}).call(this,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,B,d){"use strict";var O=H("safe-buffer").Buffer,E=O.isEncoding||function(u){u=""+u;switch(u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function C(u){if(!u)return"utf8";for(var 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===E||!E(u)))throw new Error("Unknown encoding: "+u);return h||u}d.StringDecoder=w;function w(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=s,this.end=t,h=3;break;default:this.write=a,this.end=l;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(h)}w.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||""},w.prototype.end=i,w.prototype.text=r,w.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function m(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function f(u,h,p){var g=h.length-1;if(g<p)return 0;var v=m(h[g]);return v>=0?(v>0&&(u.lastNeed=v-1),v):--g<p||v===-2?0:(v=m(h[g]),v>=0?(v>0&&(u.lastNeed=v-2),v):--g<p||v===-2?0:(v=m(h[g]),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 g=u.length-(p-this.lastNeed);return u.copy(this.lastChar,0,g),u.toString("utf8",h,g)}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 g=p.charCodeAt(p.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",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 s(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 l(u){return u&&u.length?this.write(u):""}},{"safe-buffer":228}],236:[function(H,B,d){(function(O,E){var C=H("process/browser.js").nextTick,A=Function.prototype.apply,w=Array.prototype.slice,m={},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:w.call(arguments,1);return m[r]=!0,C(function(){m[r]&&(i?o.apply(null,i):o.call(null),d.clearImmediate(r))}),r},d.clearImmediate=typeof E=="function"?E:function(o){delete m[o]}}).call(this,H("timers").setImmediate,H("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(H,B,d){var O=H("buffer").Buffer;B.exports=function(E){if(E instanceof Uint8Array){if(E.byteOffset===0&&E.byteLength===E.buffer.byteLength)return E.buffer;if(typeof E.buffer.slice=="function")return E.buffer.slice(E.byteOffset,E.byteOffset+E.byteLength)}if(O.isBuffer(E)){for(var C=new Uint8Array(E.length),A=E.length,w=0;w<A;w++)C[w]=E[w];return C.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(H,B,d){"use strict";var O=H("punycode"),E=H("./util");d.parse=h,d.resolve=g,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,w=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(f),o=["'"].concat(c),r=["%","/","?",";","#"].concat(o),i=["/","?","#"],n=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,s=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},a={javascript:!0,"javascript:":!0},l={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},u=H("querystring");function h(y,x,T){if(y&&E.isObject(y)&&y instanceof C)return y;var S=new C;return S.parse(y,x,T),S}C.prototype.parse=function(y,x,T){if(!E.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var S=y.indexOf("?"),b=S!==-1&&S<y.indexOf("#")?"?":"#",_=y.split(b),I=/\\/g;_[0]=_[0].replace(I,"/"),y=_.join(b);var L=y;if(L=L.trim(),!T&&y.split("#").length===1){var N=m.exec(L);if(N)return this.path=L,this.href=L,this.pathname=N[1],N[2]?(this.search=N[2],x?this.query=u.parse(this.search.substr(1)):this.query=this.search.substr(1)):x&&(this.search="",this.query={}),this}var D=A.exec(L);if(D){D=D[0];var R=D.toLowerCase();this.protocol=R,L=L.substr(D.length)}if(T||D||L.match(/^\/\/[^@\/]+@[^@\/]+/)){var P=L.substr(0,2)==="//";P&&!(D&&a[D])&&(L=L.substr(2),this.slashes=!0)}if(!a[D]&&(P||D&&!l[D])){for(var M=-1,U=0;U<i.length;U++){var F=L.indexOf(i[U]);F!==-1&&(M===-1||F<M)&&(M=F)}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 F=L.indexOf(r[U]);F!==-1&&(M===-1||F<M)&&(M=F)}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,Y=z.length;U<Y;U++){var $=z[U];if(!$)continue;if(!$.match(e)){for(var ue="",ne=0,ge=$.length;ne<ge;ne++)$.charCodeAt(ne)>127?ue+="x":ue+=$[ne];if(!ue.match(e)){var Oe=z.slice(0,U),De=z.slice(U+1),He=$.match(s);He&&(Oe.push(He[1]),De.unshift(He[2])),De.length&&(L="/"+De.join(".")+L),this.hostname=Oe.join(".");break}}}this.hostname.length>n?this.hostname="":this.hostname=this.hostname.toLowerCase(),V||(this.hostname=O.toASCII(this.hostname));var pe=this.port?":"+this.port:"",Ue=this.hostname||"";this.host=Ue+pe,this.href+=this.host,V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!t[R])for(var U=0,Y=o.length;U<Y;U++){var oe=o[U];if(L.indexOf(oe)===-1)continue;var ee=encodeURIComponent(oe);ee===oe&&(ee=escape(oe)),L=L.split(oe).join(ee)}var Xe=L.indexOf("#");Xe!==-1&&(this.hash=L.substr(Xe),L=L.slice(0,Xe));var se=L.indexOf("?");if(se!==-1?(this.search=L.substr(se),this.query=L.substr(se+1),x&&(this.query=u.parse(this.query)),L=L.slice(0,se)):x&&(this.search="",this.query={}),L&&(this.pathname=L),l[R]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var pe=this.pathname||"",Q=this.search||"";this.path=pe+Q}return this.href=this.format(),this};function p(y){return E.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 x=this.protocol||"",T=this.pathname||"",S=this.hash||"",b=!1,_="";this.host?b=y+this.host:this.hostname&&(b=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(b+=":"+this.port)),this.query&&E.isObject(this.query)&&Object.keys(this.query).length&&(_=u.stringify(this.query));var I=this.search||_&&"?"+_||"";return x&&x.substr(-1)!==":"&&(x+=":"),this.slashes||(!x||l[x])&&b!==!1?(b="//"+(b||""),T&&T.charAt(0)!=="/"&&(T="/"+T)):b||(b=""),S&&S.charAt(0)!=="#"&&(S="#"+S),I&&I.charAt(0)!=="?"&&(I="?"+I),T=T.replace(/[?#]/g,function(L){return encodeURIComponent(L)}),I=I.replace("#","%23"),x+b+T+I+S};function g(y,x){return h(y,!1,!0).resolve(x)}C.prototype.resolve=function(y){return this.resolveObject(h(y,!1,!0)).format()};function v(y,x){return y?h(y,!1,!0).resolveObject(x):x}C.prototype.resolveObject=function(y){if(E.isString(y)){var x=new C;x.parse(y,!1,!0),y=x}for(var T=new C,S=Object.keys(this),b=0;b<S.length;b++){var _=S[b];T[_]=this[_]}if(T.hash=y.hash,y.href==="")return T.href=T.format(),T;if(y.slashes&&!y.protocol){for(var I=Object.keys(y),L=0;L<I.length;L++){var N=I[L];N!=="protocol"&&(T[N]=y[N])}return l[T.protocol]&&T.hostname&&!T.pathname&&(T.path=T.pathname="/"),T.href=T.format(),T}if(y.protocol&&y.protocol!==T.protocol){if(!l[y.protocol]){for(var D=Object.keys(y),R=0;R<D.length;R++){var P=D[R];T[P]=y[P]}return T.href=T.format(),T}if(T.protocol=y.protocol,!y.host&&!a[y.protocol]){for(var Y=(y.pathname||"").split("/");Y.length&&!(y.host=Y.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),Y[0]!==""&&Y.unshift(""),Y.length<2&&Y.unshift(""),T.pathname=Y.join("/")}else T.pathname=y.pathname;if(T.search=y.search,T.query=y.query,T.host=y.host||"",T.auth=y.auth,T.hostname=y.hostname||y.host,T.port=y.port,T.pathname||T.search){var M=T.pathname||"",U=T.search||"";T.path=M+U}return T.slashes=T.slashes||y.slashes,T.href=T.format(),T}var F=T.pathname&&T.pathname.charAt(0)==="/",j=y.host||y.pathname&&y.pathname.charAt(0)==="/",W=j||F||T.host&&y.pathname,V=W,z=T.pathname&&T.pathname.split("/")||[],Y=y.pathname&&y.pathname.split("/")||[],$=T.protocol&&!l[T.protocol];if($&&(T.hostname="",T.port=null,T.host&&(z[0]===""?z[0]=T.host:z.unshift(T.host)),T.host="",y.protocol&&(y.hostname=null,y.port=null,y.host&&(Y[0]===""?Y[0]=y.host:Y.unshift(y.host)),y.host=null),W=W&&(Y[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=Y;else if(Y.length)z||(z=[]),z.pop(),z=z.concat(Y),T.search=y.search,T.query=y.query;else if(!E.isNullOrUndefined(y.search)){if($){T.hostname=T.host=z.shift();var ue=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;ue&&(T.auth=ue.shift(),T.host=T.hostname=ue.shift())}return T.search=y.search,T.query=y.query,(!E.isNull(T.pathname)||!E.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T}if(!z.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var ne=z.slice(-1)[0],ge=(T.host||y.host||z.length>1)&&(ne==="."||ne==="..")||ne==="",Oe=0,De=z.length;De>=0;De--)ne=z[De],ne==="."?z.splice(De,1):ne===".."?(z.splice(De,1),Oe++):Oe&&(z.splice(De,1),Oe--);if(!W&&!V)for(;Oe--;Oe)z.unshift("..");W&&z[0]!==""&&(!z[0]||z[0].charAt(0)!=="/")&&z.unshift(""),ge&&z.join("/").substr(-1)!=="/"&&z.push("");var He=z[0]===""||z[0]&&z[0].charAt(0)==="/";if($){T.hostname=T.host=He?"":z.length?z.shift():"";var ue=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;ue&&(T.auth=ue.shift(),T.host=T.hostname=ue.shift())}return W=W||T.host&&z.length,W&&!He&&z.unshift(""),z.length?T.pathname=z.join("/"):(T.pathname=null,T.path=null),(!E.isNull(T.pathname)||!E.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=y.auth||T.auth,T.slashes=T.slashes||y.slashes,T.href=T.format(),T},C.prototype.parseHost=function(){var y=this.host,x=w.exec(y);x&&(x=x[0],x!==":"&&(this.port=x.substr(1)),y=y.substr(0,y.length-x.length)),y&&(this.hostname=y)}},{"./util":239,punycode:209,querystring:212}],239:[function(H,B,d){"use strict";B.exports={isString:function(E){return typeof E=="string"},isObject:function(E){return typeof E=="object"&&E!==null},isNull:function(E){return E===null},isNullOrUndefined:function(E){return E==null}}},{}],240:[function(H,B,d){(function(O){B.exports=E;function E(A,w){if(C("noDeprecation"))return A;var m=!1;function f(){if(!m){if(C("throwDeprecation"))throw new Error(w);C("traceDeprecation")?console.trace(w):console.warn(w),m=!0}return A.apply(this,arguments)}return f}function C(A){try{if(!O.localStorage)return!1}catch(m){return!1}var w=O.localStorage[A];return w==null?!1:String(w).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(H,B,d){typeof Object.create=="function"?B.exports=function(E,C){E.super_=C,E.prototype=Object.create(C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:B.exports=function(E,C){E.super_=C;var A=function(){};A.prototype=C.prototype,E.prototype=new A,E.prototype.constructor=E}},{}],242:[function(H,B,d){B.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],243:[function(H,B,d){(function(O,E){var C=/%[sdj%]/g;d.format=function(M){if(!g(M)){for(var U=[],F=0;F<arguments.length;F++)U.push(m(arguments[F]));return U.join(" ")}for(var F=1,j=arguments,W=j.length,V=String(M).replace(C,function(Y){if(Y==="%%")return"%";if(F>=W)return Y;switch(Y){case"%s":return String(j[F++]);case"%d":return Number(j[F++]);case"%j":try{return JSON.stringify(j[F++])}catch($){return"[Circular]"}default:return Y}}),z=j[F];F<W;z=j[++F])u(z)||!T(z)?V+=" "+z:V+=" "+m(z);return V},d.deprecate=function(M,U){if(y(E.process))return function(){return d.deprecate(M,U).apply(this,arguments)};if(O.noDeprecation===!0)return M;var F=!1;function j(){if(!F){if(O.throwDeprecation)throw new Error(U);O.traceDeprecation?console.trace(U):console.error(U),F=!0}return M.apply(this,arguments)}return j};var A={},w;d.debuglog=function(M){if(y(w)&&(w=O.env.NODE_DEBUG||""),M=M.toUpperCase(),!A[M])if(new RegExp("\\b"+M+"\\b","i").test(w)){var U=O.pid;A[M]=function(){var F=d.format.apply(d,arguments);console.error("%s %d: %s",M,U,F)}}else A[M]=function(){};return A[M]};function m(M,U){var F={seen:[],stylize:c};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),l(U)?F.showHidden=U:U&&d._extend(F,U),y(F.showHidden)&&(F.showHidden=!1),y(F.depth)&&(F.depth=2),y(F.colors)&&(F.colors=!1),y(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=f),r(F,M,F.depth)}d.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(M,U){var F=m.styles[U];return F?"["+m.colors[F][0]+"m"+M+"["+m.colors[F][1]+"m":M}function c(M,U){return M}function o(M){var U={};return M.forEach(function(F,j){U[F]=!0}),U}function r(M,U,F){if(M.customInspect&&U&&_(U.inspect)&&U.inspect!==d.inspect&&!(U.constructor&&U.constructor.prototype===U)){var j=U.inspect(F,M);return g(j)||(j=r(M,j,F)),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)),b(U)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return n(U);if(V.length===0){if(_(U)){var Y=U.name?": "+U.name:"";return M.stylize("[Function"+Y+"]","special")}if(x(U))return M.stylize(RegExp.prototype.toString.call(U),"regexp");if(S(U))return M.stylize(Date.prototype.toString.call(U),"date");if(b(U))return n(U)}var $="",ue=!1,ne=["{","}"];if(a(U)&&(ue=!0,ne=["[","]"]),_(U)){var ge=U.name?": "+U.name:"";$=" [Function"+ge+"]"}if(x(U)&&($=" "+RegExp.prototype.toString.call(U)),S(U)&&($=" "+Date.prototype.toUTCString.call(U)),b(U)&&($=" "+n(U)),V.length===0&&(!ue||U.length==0))return ne[0]+$+ne[1];if(F<0)return x(U)?M.stylize(RegExp.prototype.toString.call(U),"regexp"):M.stylize("[Object]","special");M.seen.push(U);var Oe;return ue?Oe=e(M,U,F,z,V):Oe=V.map(function(De){return s(M,U,F,z,De,ue)}),M.seen.pop(),t(Oe,$,ne)}function i(M,U){if(y(U))return M.stylize("undefined","undefined");if(g(U)){var F="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(F,"string")}if(p(U))return M.stylize(""+U,"number");if(l(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,F,j,W){for(var V=[],z=0,Y=U.length;z<Y;++z)P(U,String(z))?V.push(s(M,U,F,j,String(z),!0)):V.push("");return W.forEach(function($){$.match(/^\d+$/)||V.push(s(M,U,F,j,$,!0))}),V}function s(M,U,F,j,W,V){var z,Y,$;if($=Object.getOwnPropertyDescriptor(U,W)||{value:U[W]},$.get?$.set?Y=M.stylize("[Getter/Setter]","special"):Y=M.stylize("[Getter]","special"):$.set&&(Y=M.stylize("[Setter]","special")),P(j,W)||(z="["+W+"]"),Y||(M.seen.indexOf($.value)<0?(u(F)?Y=r(M,$.value,null):Y=r(M,$.value,F-1),Y.indexOf(`
|
|
|
`)>-1&&(V?Y=Y.split(`
|
|
|
`).map(function(ue){return" "+ue}).join(`
|
|
|
`).substr(2):Y=`
|
|
|
`+Y.split(`
|
|
|
`).map(function(ue){return" "+ue}).join(`
|
|
|
`))):Y=M.stylize("[Circular]","special")),y(z)){if(V&&W.match(/^\d+$/))return Y;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+": "+Y}function t(M,U,F){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?F[0]+(U===""?"":U+`
|
|
|
`)+" "+M.join(`,
|
|
|
`)+" "+F[1]:F[0]+U+" "+M.join(", ")+" "+F[1]}function a(M){return Array.isArray(M)}d.isArray=a;function l(M){return typeof M=="boolean"}d.isBoolean=l;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 g(M){return typeof M=="string"}d.isString=g;function v(M){return typeof M=="symbol"}d.isSymbol=v;function y(M){return M===void 0}d.isUndefined=y;function x(M){return T(M)&&L(M)==="[object RegExp]"}d.isRegExp=x;function T(M){return typeof M=="object"&&M!==null}d.isObject=T;function S(M){return T(M)&&L(M)==="[object Date]"}d.isDate=S;function b(M){return T(M)&&(L(M)==="[object Error]"||M instanceof Error)}d.isError=b;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 D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var M=new Date,U=[N(M.getHours()),N(M.getMinutes()),N(M.getSeconds())].join(":");return[M.getDate(),D[M.getMonth()],U].join(" ")}d.log=function(){console.log("%s - %s",R(),d.format.apply(d,arguments))},d.inherits=H("inherits"),d._extend=function(M,U){if(!U||!T(U))return M;for(var F=Object.keys(U),j=F.length;j--;)M[F[j]]=U[F[j]];return M};function P(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,B,d){"use strict";(function(){"use strict";d.stripBOM=function(O){return O[0]==="\uFEFF"?O.substring(1):O}}).call(void 0)},{}],245:[function(H,B,d){"use strict";var O=H("babel-runtime/helpers/typeof"),E=w(O),C=H("babel-runtime/core-js/object/keys"),A=w(C);function w(m){return m&&m.__esModule?m:{default:m}}(function(){"use strict";var m,f,c,o,r,i={}.hasOwnProperty;m=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 s,t,a;this.options={},t=f["0.2"];for(s in t){if(!i.call(t,s))continue;a=t[s],this.options[s]=a}for(s in e){if(!i.call(e,s))continue;a=e[s],this.options[s]=a}}return n.prototype.buildObject=function(e){var s,t,a,l,u;return s=this.options.attrkey,t=this.options.charkey,(0,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,g){var v,y,x,T,S,b;if((typeof g=="undefined"?"undefined":(0,E.default)(g))!=="object")h.options.cdata&&o(g)?p.raw(r(g)):p.txt(g);else if(Array.isArray(g))for(T in g){if(!i.call(g,T))continue;y=g[T];for(S in y)x=y[S],p=a(p.ele(S),x).up()}else for(S in g){if(!i.call(g,S))continue;if(y=g[S],S===s){if((typeof y=="undefined"?"undefined":(0,E.default)(y))==="object")for(v in y)b=y[v],p=p.att(v,b)}else if(S===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;x=y[T],typeof x=="string"?h.options.cdata&&o(x)?p=p.ele(S).raw(r(x)).up():p=p.ele(S,x).up():p=a(p.ele(S),x).up()}else(typeof y=="undefined"?"undefined":(0,E.default)(y))==="object"?p=a(p.ele(S),y).up():typeof y=="string"&&h.options.cdata&&o(y)?p=p.ele(S).raw(r(y)).up():(y==null&&(y=""),p=p.ele(S,y.toString()).up())}return p}}(this),l=m.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),a(l,e).end(this.options.renderOpts)},n}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(H,B,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,B,d){"use strict";var O=H("babel-runtime/core-js/promise"),E=o(O),C=H("babel-runtime/core-js/object/get-own-property-names"),A=o(C),w=H("babel-runtime/core-js/object/keys"),m=o(w),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,s,t,a,l,u=function(v,y){return function(){return v.apply(y,arguments)}},h=function(v,y){for(var x in y)p.call(y,x)&&(v[x]=y[x]);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"),l=H("timers").setImmediate,i=H("./defaults").defaults,e=function(v){return(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&v!=null&&(0,m.default)(v).length===0},s=function(v,y,x){var T,S,b;for(T=0,S=v.length;T<S;T++)b=v[T],y=b(y,x);return y},d.Parser=function(g){h(v,g);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 x,T,S;if(!(this instanceof d.Parser))return new d.Parser(y);this.options={},T=i["0.2"];for(x in T){if(!p.call(T,x))continue;S=T[x],this.options[x]=S}for(x in y){if(!p.call(y,x))continue;S=y[x],this.options[x]=S}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(t.normalize)),this.reset()}return v.prototype.processAsync=function(){var y,x;try{return this.remaining.length<=this.options.chunkSize?(y=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(y),this.saxParser.close()):(y=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(y),l(this.processAsync))}catch(T){if(x=T,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(x)}},v.prototype.assignOrPush=function(y,x,T){return x in y?(y[x]instanceof Array||(y[x]=[y[x]]),y[x].push(T)):this.options.explicitArray?y[x]=[T]:y[x]=T},v.prototype.reset=function(){var y,x,T,S;return this.removeAllListeners(),this.saxParser=a.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(b){return function(_){if(b.saxParser.resume(),!b.saxParser.errThrown)return b.saxParser.errThrown=!0,b.emit("error",_)}}(this),this.saxParser.onend=function(b){return function(){if(!b.saxParser.ended)return b.saxParser.ended=!0,b.emit("end",b.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,S=[],y=this.options.attrkey,x=this.options.charkey,this.saxParser.onopentag=function(b){return function(_){var I,L,N,D,R;if(N={},N[x]="",!b.options.ignoreAttrs){R=_.attributes;for(I in R){if(!p.call(R,I))continue;!(y in N)&&!b.options.mergeAttrs&&(N[y]={}),L=b.options.attrValueProcessors?s(b.options.attrValueProcessors,_.attributes[I],I):_.attributes[I],D=b.options.attrNameProcessors?s(b.options.attrNameProcessors,I):I,b.options.mergeAttrs?b.assignOrPush(N,D,L):N[y][D]=L}}return N["#name"]=b.options.tagNameProcessors?s(b.options.tagNameProcessors,_.name):_.name,b.options.xmlns&&(N[b.options.xmlnskey]={uri:_.uri,local:_.local}),S.push(N)}}(this),this.saxParser.onclosetag=function(b){return function(){var _,I,L,N,D,R,P,M,U,F;if(R=S.pop(),D=R["#name"],(!b.options.explicitChildren||!b.options.preserveChildrenOrder)&&delete R["#name"],R.cdata===!0&&(_=R.cdata,delete R.cdata),U=S[S.length-1],R[x].match(/^\s*$/)&&!_?(I=R[x],delete R[x]):(b.options.trim&&(R[x]=R[x].trim()),b.options.normalize&&(R[x]=R[x].replace(/\s{2,}/g," ").trim()),R[x]=b.options.valueProcessors?s(b.options.valueProcessors,R[x],D):R[x],(0,m.default)(R).length===1&&x in R&&!b.EXPLICIT_CHARKEY&&(R=R[x])),e(R)&&(R=b.options.emptyTag!==""?b.options.emptyTag:I),b.options.validator!=null&&(F="/"+function(){var j,W,V;for(V=[],j=0,W=S.length;j<W;j++)N=S[j],V.push(N["#name"]);return V}().concat(D).join("/"),function(){var j;try{return R=b.options.validator(F,U&&U[D],R)}catch(W){return j=W,b.emit("error",j)}}()),b.options.explicitChildren&&!b.options.mergeAttrs&&(typeof R=="undefined"?"undefined":(0,c.default)(R))==="object"){if(!b.options.preserveChildrenOrder)N={},b.options.attrkey in R&&(N[b.options.attrkey]=R[b.options.attrkey],delete R[b.options.attrkey]),!b.options.charsAsChildren&&b.options.charkey in R&&(N[b.options.charkey]=R[b.options.charkey],delete R[b.options.charkey]),(0,A.default)(R).length>0&&(N[b.options.childkey]=R),R=N;else if(U){U[b.options.childkey]=U[b.options.childkey]||[],P={};for(L in R){if(!p.call(R,L))continue;P[L]=R[L]}U[b.options.childkey].push(P),delete R["#name"],(0,m.default)(R).length===1&&x in R&&!b.EXPLICIT_CHARKEY&&(R=R[x])}}return S.length>0?b.assignOrPush(U,D,R):(b.options.explicitRoot&&(M=R,R={},R[D]=M),b.resultObject=R,b.saxParser.ended=!0,b.emit("end",b.resultObject))}}(this),T=function(b){return function(_){var I,L;if(L=S[S.length-1],L)return L[x]+=_,b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||_.replace(/\\n/g,"").trim()!=="")&&(L[b.options.childkey]=L[b.options.childkey]||[],I={"#name":"__text__"},I[x]=_,b.options.normalize&&(I[x]=I[x].replace(/\s{2,}/g," ").trim()),L[b.options.childkey].push(I)),L}}(this),this.saxParser.ontext=T,this.saxParser.oncdata=function(b){return function(_){var I;if(I=T(_),I)return I.cdata=!0}}(this)},v.prototype.parseString=function(y,x){var T;x!=null&&typeof x=="function"&&(this.on("end",function(S){return this.reset(),x(null,S)}),this.on("error",function(S){return this.reset(),x(S)}));try{return y=y.toString(),y.trim()===""?(this.emit("end",null),!0):(y=r.stripBOM(y),this.options.async?(this.remaining=y,l(this.processAsync),this.saxParser):this.saxParser.write(y).close())}catch(S){if(T=S,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw T}else return this.emit("error",T),this.saxParser.errThrown=!0}},v.prototype.parseStringPromise=function(y){return new E.default(function(x){return function(T,S){return x.parseString(y,function(b,_){return b?S(b):T(_)})}}(this))},v}(n),d.parseString=function(g,v,y){var x,T,S;return y!=null?(typeof y=="function"&&(x=y),(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&(T=v)):(typeof v=="function"&&(x=v),T={}),S=new d.Parser(T),S.parseString(g,x)},d.parseStringPromise=function(g,v){var y,x;return(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&(y=v),x=new d.Parser(y),x.parseStringPromise(g)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(H,B,d){"use strict";(function(){"use strict";var O;O=new RegExp(/(?!xmlns)^.*:/),d.normalize=function(E){return E.toLowerCase()},d.firstCharLowerCase=function(E){return E.charAt(0).toLowerCase()+E.slice(1)},d.stripPrefix=function(E){return E.replace(O,"")},d.parseNumbers=function(E){return isNaN(E)||(E=E%1===0?parseInt(E,10):parseFloat(E)),E},d.parseBooleans=function(E){return/^(?:true|false)$/i.test(E)&&(E=E.toLowerCase()==="true"),E}}).call(void 0)},{}],249:[function(H,B,d){"use strict";(function(){"use strict";var O,E,C,A,w=function(c,o){for(var r in o)m.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},m={}.hasOwnProperty;E=H("./defaults"),O=H("./builder"),C=H("./parser"),A=H("./processors"),d.defaults=E.defaults,d.processors=A,d.ValidationError=function(f){w(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,B,d){"use strict";(function(){B.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(H,B,d){"use strict";(function(){B.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,B,d){"use strict";var O=H("babel-runtime/core-js/object/get-prototype-of"),E=f(O),C=H("babel-runtime/helpers/typeof"),A=f(C),w=H("babel-runtime/core-js/object/assign"),m=f(w);function f(c){return c&&c.__esModule?c:{default:c}}(function(){var c,o,r,i,n,e,s,t=[].slice,a={}.hasOwnProperty;c=function(){var u,h,p,g,v,y;if(y=arguments[0],v=2<=arguments.length?t.call(arguments,1):[],n(m.default))m.default.apply(null,arguments);else for(u=0,p=v.length;u<p;u++)if(g=v[u],g!=null)for(h in g){if(!a.call(g,h))continue;y[h]=g[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},s=function(u){var h,p;return e(u)&&(p=(0,E.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},B.exports.assign=c,B.exports.isFunction=n,B.exports.isObject=e,B.exports.isArray=r,B.exports.isEmpty=i,B.exports.isPlainObject=s,B.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,B,d){"use strict";(function(){B.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m;A=H("./NodeType"),m=H("./XMLNode"),B.exports=w=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,E.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,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m,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"),m=H("./XMLCharacterData"),B.exports=w=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,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))},r}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m=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;w=H("./XMLNode"),B.exports=A=function(c){m(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,E.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}(w)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m,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"),w=H("./XMLCharacterData"),B.exports=m=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,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))},r}(w)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),E=w(O),C=H("babel-runtime/core-js/object/create"),A=w(C);function w(m){return m&&m.__esModule?m:{default:m}}(function(){var m,f,c;f=H("./XMLDOMErrorHandler"),c=H("./XMLDOMStringList"),B.exports=m=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,E.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,B,d){"use strict";(function(){var O;B.exports=O=function(){function E(){}return E.prototype.handleError=function(C){throw new Error(C)},E}()}).call(void 0)},{}],260:[function(H,B,d){"use strict";(function(){var O;B.exports=O=function(){function E(){}return E.prototype.hasFeature=function(C,A){return!0},E.prototype.createDocumentType=function(C,A,w){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(C,A,w){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(C){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(C,A){throw new Error("This DOM method is not implemented.")},E}()}).call(void 0)},{}],261:[function(H,B,d){"use strict";(function(){var O;B.exports=O=function(){function E(C){this.arr=C||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(C){return this.arr[C]||null},E.prototype.contains=function(C){return this.arr.indexOf(C)!==-1},E}()}).call(void 0)},{}],262:[function(H,B,d){"use strict";(function(){var O,E,C,A=function(f,c){for(var o in c)w.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},w={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),B.exports=E=function(m){A(f,m);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,B,d){"use strict";(function(){var O,E,C,A=function(f,c){for(var o in c)w.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},w={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),B.exports=E=function(m){A(f,m);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,B,d){"use strict";(function(){var O,E,C,A,w=function(c,o){for(var r in o)m.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},m={}.hasOwnProperty;A=H("./Utility").isObject,C=H("./XMLNode"),O=H("./NodeType"),B.exports=E=function(f){w(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,B,d){"use strict";(function(){var O,E,C,A=function(f,c){for(var o in c)w.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},w={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),B.exports=E=function(m){A(f,m);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,B,d){"use strict";(function(){var O,E,C,A,w=function(c,o){for(var r in o)m.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},m={}.hasOwnProperty;A=H("./Utility").isObject,C=H("./XMLNode"),O=H("./NodeType"),B.exports=E=function(f){w(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,B,d){"use strict";(function(){var O,E,C,A,w,m,f,c,o,r=function(e,s){for(var t in s)i.call(s,t)&&(e[t]=s[t]);function a(){this.constructor=e}return a.prototype=s.prototype,e.prototype=new a,e.__super__=s.prototype,e},i={}.hasOwnProperty;o=H("./Utility").isObject,c=H("./XMLNode"),O=H("./NodeType"),E=H("./XMLDTDAttList"),A=H("./XMLDTDEntity"),C=H("./XMLDTDElement"),w=H("./XMLDTDNotation"),f=H("./XMLNamedNodeMap"),B.exports=m=function(n){r(e,n);function e(s,t,a){var l,u,h,p,g,v;if(e.__super__.constructor.call(this,s),this.type=O.DocType,s.children){for(p=s.children,u=0,h=p.length;u<h;u++)if(l=p[u],l.type===O.Element){this.name=l.name;break}}this.documentObject=s,o(t)&&(g=t,t=g.pubID,a=g.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,l,u,h;for(u={},h=this.children,a=0,l=h.length;a<l;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,l,u,h;for(u={},h=this.children,a=0,l=h.length;a<l;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(s,t){var a;return a=new C(this,s,t),this.children.push(a),this},e.prototype.attList=function(s,t,a,l,u){var h;return h=new E(this,s,t,a,l,u),this.children.push(h),this},e.prototype.entity=function(s,t){var a;return a=new A(this,!1,s,t),this.children.push(a),this},e.prototype.pEntity=function(s,t){var a;return a=new A(this,!0,s,t),this.children.push(a),this},e.prototype.notation=function(s,t){var a;return a=new w(this,s,t),this.children.push(a),this},e.prototype.toString=function(s){return this.options.writer.docType(this,this.options.writer.filterOptions(s))},e.prototype.ele=function(s,t){return this.element(s,t)},e.prototype.att=function(s,t,a,l,u){return this.attList(s,t,a,l,u)},e.prototype.ent=function(s,t){return this.entity(s,t)},e.prototype.pent=function(s,t){return this.pEntity(s,t)},e.prototype.not=function(s,t){return this.notation(s,t)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(s){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)?s.name!==this.name||s.publicId!==this.publicId?!1:!(s.systemId!==this.systemId):!1},e}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(H,B,d){"use strict";(function(){var O,E,C,A,w,m,f,c,o=function(n,e){for(var s in e)r.call(e,s)&&(n[s]=e[s]);function t(){this.constructor=n}return t.prototype=e.prototype,n.prototype=new t,n.__super__=e.prototype,n},r={}.hasOwnProperty;c=H("./Utility").isPlainObject,C=H("./XMLDOMImplementation"),E=H("./XMLDOMConfiguration"),w=H("./XMLNode"),O=H("./NodeType"),f=H("./XMLStringifier"),m=H("./XMLStringWriter"),B.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 E,e||(e={}),e.writer||(e.writer=new m),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 s,t,a,l;for(l=this.children,t=0,a=l.length;t<a;t++)if(s=l[t],s.type===O.DocType)return s;return null}}),Object.defineProperty(n.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].encoding:null}}),Object.defineProperty(n.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(n.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(n.prototype,"origin",{get:function(){return null}}),Object.defineProperty(n.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(n.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(n.prototype,"contentType",{get:function(){return null}}),n.prototype.end=function(e){var s;return s={},e?c(e)&&(s=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(s))},n.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},n.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createProcessingInstruction=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.importNode=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createElementNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttributeNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagNameNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.renameNode=function(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createNodeIterator=function(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTreeWalker=function(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(w)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(H,B,d){"use strict";(function(){var O,E,C,A,w,m,f,c,o,r,i,n,e,s,t,a,l,u,h,p,g,v,y,x,T={}.hasOwnProperty;x=H("./Utility"),v=x.isObject,g=x.isFunction,y=x.isPlainObject,p=x.getValue,O=H("./NodeType"),n=H("./XMLDocument"),s=H("./XMLElement"),A=H("./XMLCData"),w=H("./XMLComment"),a=H("./XMLRaw"),h=H("./XMLText"),t=H("./XMLProcessingInstruction"),r=H("./XMLDeclaration"),i=H("./XMLDocType"),m=H("./XMLDTDAttList"),c=H("./XMLDTDEntity"),f=H("./XMLDTDElement"),o=H("./XMLDTDNotation"),C=H("./XMLAttribute"),u=H("./XMLStringifier"),l=H("./XMLStringWriter"),E=H("./WriterState"),B.exports=e=function(){function S(b,_,I){var L;this.name="?xml",this.type=O.Document,b||(b={}),L={},b.writer?y(b.writer)&&(L=b.writer,b.writer=new l):b.writer=new l,this.options=b,this.writer=b.writer,this.writerOptions=this.writer.filterOptions(L),this.stringify=new u(b),this.onDataCallback=_||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return S.prototype.createChildNode=function(b){var _,I,L,N,D,R,P,M;switch(b.type){case O.CData:this.cdata(b.value);break;case O.Comment:this.comment(b.value);break;case O.Element:L={},P=b.attribs;for(I in P){if(!T.call(P,I))continue;_=P[I],L[I]=_.value}this.node(b.name,L);break;case O.Dummy:this.dummy();break;case O.Raw:this.raw(b.value);break;case O.Text:this.text(b.value);break;case O.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}for(M=b.children,D=0,R=M.length;D<R;D++)N=M[D],this.createChildNode(N),N.type===O.Element&&this.up();return this},S.prototype.dummy=function(){return this},S.prototype.node=function(b,_,I){var L;if(b==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(b));return this.openCurrent(),b=p(b),_==null&&(_={}),_=p(_),v(_)||(L=[_,I],I=L[0],_=L[1]),this.currentNode=new s(this,b,_),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},S.prototype.element=function(b,_,I){var L,N,D,R,P,M;if(this.currentNode&&this.currentNode.type===O.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(b)||v(b)||g(b))for(R=this.options.noValidation,this.options.noValidation=!0,M=new n(this.options).element("TEMP_ROOT"),M.element(b),this.options.noValidation=R,P=M.children,N=0,D=P.length;N<D;N++)L=P[N],this.createChildNode(L),L.type===O.Element&&this.up();else this.node(b,_,I);return this},S.prototype.attribute=function(b,_){var I,L;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b));if(b!=null&&(b=p(b)),v(b))for(I in b){if(!T.call(b,I))continue;L=b[I],this.attribute(I,L)}else g(_)&&(_=_.apply()),this.options.keepNullAttributes&&_==null?this.currentNode.attribs[b]=new C(this,b,""):_!=null&&(this.currentNode.attribs[b]=new C(this,b,_));return this},S.prototype.text=function(b){var _;return this.openCurrent(),_=new h(this,b),this.onData(this.writer.text(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.cdata=function(b){var _;return this.openCurrent(),_=new A(this,b),this.onData(this.writer.cdata(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.comment=function(b){var _;return this.openCurrent(),_=new w(this,b),this.onData(this.writer.comment(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.raw=function(b){var _;return this.openCurrent(),_=new a(this,b),this.onData(this.writer.raw(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.instruction=function(b,_){var I,L,N,D,R;if(this.openCurrent(),b!=null&&(b=p(b)),_!=null&&(_=p(_)),Array.isArray(b))for(I=0,D=b.length;I<D;I++)L=b[I],this.instruction(L);else if(v(b))for(L in b){if(!T.call(b,L))continue;N=b[L],this.instruction(L,N)}else g(_)&&(_=_.apply()),R=new t(this,b,_),this.onData(this.writer.processingInstruction(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},S.prototype.declaration=function(b,_,I){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return L=new r(this,b,_,I),this.onData(this.writer.declaration(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.doctype=function(b,_,I){if(this.openCurrent(),b==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new i(this,_,I),this.currentNode.rootNodeName=b,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},S.prototype.dtdElement=function(b,_){var I;return this.openCurrent(),I=new f(this,b,_),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.attList=function(b,_,I,L,N){var D;return this.openCurrent(),D=new m(this,b,_,I,L,N),this.onData(this.writer.dtdAttList(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.entity=function(b,_){var I;return this.openCurrent(),I=new c(this,!1,b,_),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.pEntity=function(b,_){var I;return this.openCurrent(),I=new c(this,!0,b,_),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.notation=function(b,_){var I;return this.openCurrent(),I=new o(this,b,_),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},S.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},S.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},S.prototype.openNode=function(b){var _,I,L,N;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===O.Element&&(this.root=b),I="",b.type===O.Element){this.writerOptions.state=E.OpenTag,I=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name,N=b.attribs;for(L in N){if(!T.call(N,L))continue;_=N[L],I+=this.writer.attribute(_,this.writerOptions,this.currentLevel)}I+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,I=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName,b.pubID&&b.sysID?I+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"':b.sysID&&(I+=' SYSTEM "'+b.sysID+'"'),b.children?(I+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,I+=">"),I+=this.writer.endline(b,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),b.isOpen=!0}},S.prototype.closeNode=function(b){var _;if(!b.isClosed)return _="",this.writerOptions.state=E.CloseTag,b.type===O.Element?_=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel):_=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(_,this.currentLevel),b.isClosed=!0},S.prototype.onData=function(b,_){return this.documentStarted=!0,this.onDataCallback(b,_+1)},S.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},S.prototype.debugInfo=function(b){return b==null?"":"node: <"+b+">"},S.prototype.ele=function(){return this.element.apply(this,arguments)},S.prototype.nod=function(b,_,I){return this.node(b,_,I)},S.prototype.txt=function(b){return this.text(b)},S.prototype.dat=function(b){return this.cdata(b)},S.prototype.com=function(b){return this.comment(b)},S.prototype.ins=function(b,_){return this.instruction(b,_)},S.prototype.dec=function(b,_,I){return this.declaration(b,_,I)},S.prototype.dtd=function(b,_,I){return this.doctype(b,_,I)},S.prototype.e=function(b,_,I){return this.element(b,_,I)},S.prototype.n=function(b,_,I){return this.node(b,_,I)},S.prototype.t=function(b){return this.text(b)},S.prototype.d=function(b){return this.cdata(b)},S.prototype.c=function(b){return this.comment(b)},S.prototype.r=function(b){return this.raw(b)},S.prototype.i=function(b,_){return this.instruction(b,_)},S.prototype.att=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},S.prototype.a=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},S.prototype.ent=function(b,_){return this.entity(b,_)},S.prototype.pent=function(b,_){return this.pEntity(b,_)},S.prototype.not=function(b,_){return this.notation(b,_)},S}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m,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;m=H("./XMLNode"),A=H("./NodeType"),B.exports=w=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,E.default)(this)},r.prototype.toString=function(i){return""},r}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m,f,c,o,r,i,n,e=function(a,l){for(var u in l)s.call(l,u)&&(a[u]=l[u]);function h(){this.constructor=a}return h.prototype=l.prototype,a.prototype=new h,a.__super__=l.prototype,a},s={}.hasOwnProperty;n=H("./Utility"),i=n.isObject,r=n.isFunction,o=n.getValue,c=H("./XMLNode"),A=H("./NodeType"),w=H("./XMLAttribute"),f=H("./XMLNamedNodeMap"),B.exports=m=function(t){e(a,t);function a(l,u,h){var p,g,v,y;if(a.__super__.constructor.call(this,l),u==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(u),this.type=A.Element,this.attribs={},this.schemaTypeInfo=null,h!=null&&this.attribute(h),l.type===A.Document&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this,l.children)){for(y=l.children,g=0,v=y.length;g<v;g++)if(p=y[g],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 l,u,h,p;h=(0,E.default)(this),h.isRoot&&(h.documentObject=null),h.attribs={},p=this.attribs;for(u in p){if(!s.call(p,u))continue;l=p[u],h.attribs[u]=l.clone()}return h.children=[],this.children.forEach(function(g){var v;return v=g.clone(),v.parent=h,h.children.push(v)}),h},a.prototype.attribute=function(l,u){var h,p;if(l!=null&&(l=o(l)),i(l))for(h in l){if(!s.call(l,h))continue;p=l[h],this.attribute(h,p)}else r(u)&&(u=u.apply()),this.options.keepNullAttributes&&u==null?this.attribs[l]=new w(this,l,""):u!=null&&(this.attribs[l]=new w(this,l,u));return this},a.prototype.removeAttribute=function(l){var u,h,p;if(l==null)throw new Error("Missing attribute name. "+this.debugInfo());if(l=o(l),Array.isArray(l))for(h=0,p=l.length;h<p;h++)u=l[h],delete this.attribs[u];else delete this.attribs[l];return this},a.prototype.toString=function(l){return this.options.writer.element(this,this.options.writer.filterOptions(l))},a.prototype.att=function(l,u){return this.attribute(l,u)},a.prototype.a=function(l,u){return this.attribute(l,u)},a.prototype.getAttribute=function(l){return this.attribs.hasOwnProperty(l)?this.attribs[l].value:null},a.prototype.setAttribute=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(l){return this.attribs.hasOwnProperty(l)?this.attribs[l]:null},a.prototype.setAttributeNode=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(l,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(l){return this.attribs.hasOwnProperty(l)},a.prototype.hasAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(l,u){return this.attribs.hasOwnProperty(l)?this.attribs[l].isId:u},a.prototype.setIdAttributeNS=function(l,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(l){var u,h,p;if(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(l))return!1;if(l.namespaceURI!==this.namespaceURI)return!1;if(l.prefix!==this.prefix)return!1;if(l.localName!==this.localName)return!1;if(l.attribs.length!==this.attribs.length)return!1;for(u=h=0,p=this.attribs.length-1;0<=p?h<=p:h>=p;u=0<=p?++h:--h)if(!this.attribs[u].isEqualNode(l.attribs[u]))return!1;return!0},a}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A;B.exports=A=function(){function w(m){this.nodes=m}return Object.defineProperty(w.prototype,"length",{get:function(){return(0,E.default)(this.nodes).length||0}}),w.prototype.clone=function(){return this.nodes=null},w.prototype.getNamedItem=function(m){return this.nodes[m]},w.prototype.setNamedItem=function(m){var f;return f=this.nodes[m.nodeName],this.nodes[m.nodeName]=m,f||null},w.prototype.removeNamedItem=function(m){var f;return f=this.nodes[m],delete this.nodes[m],f||null},w.prototype.item=function(m){return this.nodes[(0,E.default)(this.nodes)[m]]||null},w.prototype.getNamedItemNS=function(m,f){throw new Error("This DOM method is not implemented.")},w.prototype.setNamedItemNS=function(m){throw new Error("This DOM method is not implemented.")},w.prototype.removeNamedItemNS=function(m,f){throw new Error("This DOM method is not implemented.")},w}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(H,B,d){"use strict";(function(){var O,E,C,A,w,m,f,c,o,r,i,n,e,s,t,a,l,u,h,p={}.hasOwnProperty;h=H("./Utility"),u=h.isObject,l=h.isFunction,a=h.isEmpty,t=h.getValue,c=null,C=null,A=null,w=null,m=null,e=null,s=null,n=null,f=null,E=null,i=null,o=null,O=null,B.exports=r=function(){function g(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"),w=H("./XMLDeclaration"),m=H("./XMLDocType"),e=H("./XMLRaw"),s=H("./XMLText"),n=H("./XMLProcessingInstruction"),f=H("./XMLDummy"),E=H("./NodeType"),i=H("./XMLNodeList"),o=H("./XMLNamedNodeMap"),O=H("./DocumentPosition"))}return Object.defineProperty(g.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(g.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(g.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(g.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new i(this.children)),this.childNodeList}}),Object.defineProperty(g.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(g.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(g.prototype,"previousSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y-1]||null}}),Object.defineProperty(g.prototype,"nextSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y+1]||null}}),Object.defineProperty(g.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(g.prototype,"textContent",{get:function(){var y,x,T,S,b;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(b="",S=this.children,x=0,T=S.length;x<T;x++)y=S[x],y.textContent&&(b+=y.textContent);return b}else return null},set:function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),g.prototype.setParent=function(v){var y,x,T,S,b;for(this.parent=v,v&&(this.options=v.options,this.stringify=v.stringify),S=this.children,b=[],x=0,T=S.length;x<T;x++)y=S[x],b.push(y.setParent(this));return b},g.prototype.element=function(v,y,x){var T,S,b,_,I,L,N,D,R,P,M;if(L=null,y===null&&x==null&&(R=[{},null],y=R[0],x=R[1]),y==null&&(y={}),y=t(y),u(y)||(P=[y,x],x=P[0],y=P[1]),v!=null&&(v=t(v)),Array.isArray(v))for(b=0,N=v.length;b<N;b++)S=v[b],L=this.element(S);else if(l(v))L=this.element(v.apply());else if(u(v))for(I in v){if(!p.call(v,I))continue;if(M=v[I],l(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,D=M.length;_<D;_++)S=M[_],T={},T[I]=S,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&&x===null?L=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&v.indexOf(this.stringify.convertTextKey)===0?L=this.text(x):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&v.indexOf(this.stringify.convertCDataKey)===0?L=this.cdata(x):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&v.indexOf(this.stringify.convertCommentKey)===0?L=this.comment(x):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&v.indexOf(this.stringify.convertRawKey)===0?L=this.raw(x):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&v.indexOf(this.stringify.convertPIKey)===0?L=this.instruction(v.substr(this.stringify.convertPIKey.length),x):L=this.node(v,y,x);if(L==null)throw new Error("Could not create any elements with: "+v+". "+this.debugInfo());return L},g.prototype.insertBefore=function(v,y,x){var T,S,b,_,I;if(v!=null?v.type:void 0)return b=v,_=y,b.setParent(this),_?(S=children.indexOf(_),I=children.splice(S),children.push(b),Array.prototype.push.apply(children,I)):children.push(b),b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(v));return S=this.parent.children.indexOf(this),I=this.parent.children.splice(S),T=this.parent.element(v,y,x),Array.prototype.push.apply(this.parent.children,I),T},g.prototype.insertAfter=function(v,y,x){var T,S,b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(v));return S=this.parent.children.indexOf(this),b=this.parent.children.splice(S+1),T=this.parent.element(v,y,x),Array.prototype.push.apply(this.parent.children,b),T},g.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},g.prototype.node=function(v,y,x){var T,S;return v!=null&&(v=t(v)),y||(y={}),y=t(y),u(y)||(S=[y,x],x=S[0],y=S[1]),T=new c(this,v,y),x!=null&&T.text(x),this.children.push(T),T},g.prototype.text=function(v){var y;return u(v)&&this.element(v),y=new s(this,v),this.children.push(y),this},g.prototype.cdata=function(v){var y;return y=new C(this,v),this.children.push(y),this},g.prototype.comment=function(v){var y;return y=new A(this,v),this.children.push(y),this},g.prototype.commentBefore=function(v){var y,x,T;return x=this.parent.children.indexOf(this),T=this.parent.children.splice(x),y=this.parent.comment(v),Array.prototype.push.apply(this.parent.children,T),this},g.prototype.commentAfter=function(v){var y,x,T;return x=this.parent.children.indexOf(this),T=this.parent.children.splice(x+1),y=this.parent.comment(v),Array.prototype.push.apply(this.parent.children,T),this},g.prototype.raw=function(v){var y;return y=new e(this,v),this.children.push(y),this},g.prototype.dummy=function(){var v;return v=new f(this),v},g.prototype.instruction=function(v,y){var x,T,S,b,_;if(v!=null&&(v=t(v)),y!=null&&(y=t(y)),Array.isArray(v))for(b=0,_=v.length;b<_;b++)x=v[b],this.instruction(x);else if(u(v))for(x in v){if(!p.call(v,x))continue;T=v[x],this.instruction(x,T)}else l(y)&&(y=y.apply()),S=new n(this,v,y),this.children.push(S);return this},g.prototype.instructionBefore=function(v,y){var x,T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T),x=this.parent.instruction(v,y),Array.prototype.push.apply(this.parent.children,S),this},g.prototype.instructionAfter=function(v,y){var x,T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T+1),x=this.parent.instruction(v,y),Array.prototype.push.apply(this.parent.children,S),this},g.prototype.declaration=function(v,y,x){var T,S;return T=this.document(),S=new w(T,v,y,x),T.children.length===0?T.children.unshift(S):T.children[0].type===E.Declaration?T.children[0]=S:T.children.unshift(S),T.root()||T},g.prototype.dtd=function(v,y){var x,T,S,b,_,I,L,N,D,R;for(T=this.document(),S=new m(T,v,y),D=T.children,b=_=0,L=D.length;_<L;b=++_)if(x=D[b],x.type===E.DocType)return T.children[b]=S,S;for(R=T.children,b=I=0,N=R.length;I<N;b=++I)if(x=R[b],x.isRoot)return T.children.splice(b,0,S),S;return T.children.push(S),S},g.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},g.prototype.root=function(){var v;for(v=this;v;){if(v.type===E.Document)return v.rootObject;if(v.isRoot)return v;v=v.parent}},g.prototype.document=function(){var v;for(v=this;v;){if(v.type===E.Document)return v;v=v.parent}},g.prototype.end=function(v){return this.document().end(v)},g.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]},g.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]},g.prototype.importDocument=function(v){var y;return y=v.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},g.prototype.debugInfo=function(v){var y,x;return v=v||this.name,v==null&&!((y=this.parent)!=null?y.name:void 0)?"":v==null?"parent: <"+this.parent.name+">":((x=this.parent)!=null?x.name:void 0)?"node: <"+v+">, parent: <"+this.parent.name+">":"node: <"+v+">"},g.prototype.ele=function(v,y,x){return this.element(v,y,x)},g.prototype.nod=function(v,y,x){return this.node(v,y,x)},g.prototype.txt=function(v){return this.text(v)},g.prototype.dat=function(v){return this.cdata(v)},g.prototype.com=function(v){return this.comment(v)},g.prototype.ins=function(v,y){return this.instruction(v,y)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(v,y,x){return this.declaration(v,y,x)},g.prototype.e=function(v,y,x){return this.element(v,y,x)},g.prototype.n=function(v,y,x){return this.node(v,y,x)},g.prototype.t=function(v){return this.text(v)},g.prototype.d=function(v){return this.cdata(v)},g.prototype.c=function(v){return this.comment(v)},g.prototype.r=function(v){return this.raw(v)},g.prototype.i=function(v,y){return this.instruction(v,y)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(v){return this.importDocument(v)},g.prototype.replaceChild=function(v,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeChild=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.appendChild=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasChildNodes=function(){return this.children.length!==0},g.prototype.cloneNode=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isSupported=function(v,y){return!0},g.prototype.hasAttributes=function(){return this.attribs.length!==0},g.prototype.compareDocumentPosition=function(v){var y,x;return y=this,y===v?0:this.document()!==v.document()?(x=O.Disconnected|O.ImplementationSpecific,Math.random()<.5?x|=O.Preceding:x|=O.Following,x):y.isAncestor(v)?O.Contains|O.Preceding:y.isDescendant(v)?O.Contains|O.Following:y.isPreceding(v)?O.Preceding:O.Following},g.prototype.isSameNode=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupPrefix=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isDefaultNamespace=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupNamespaceURI=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(v){var y,x,T;if(v.nodeType!==this.nodeType)return!1;if(v.children.length!==this.children.length)return!1;for(y=x=0,T=this.children.length-1;0<=T?x<=T:x>=T;y=0<=T?++x:--x)if(!this.children[y].isEqualNode(v.children[y]))return!1;return!0},g.prototype.getFeature=function(v,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setUserData=function(v,y,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getUserData=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.contains=function(v){return v?v===this||this.isDescendant(v):!1},g.prototype.isDescendant=function(v){var y,x,T,S,b;for(b=this.children,T=0,S=b.length;T<S;T++){if(y=b[T],v===y)return!0;if(x=y.isDescendant(v),x)return!0}return!1},g.prototype.isAncestor=function(v){return v.isDescendant(this)},g.prototype.isPreceding=function(v){var y,x;return y=this.treePosition(v),x=this.treePosition(this),y===-1||x===-1?!1:y<x},g.prototype.isFollowing=function(v){var y,x;return y=this.treePosition(v),x=this.treePosition(this),y===-1||x===-1?!1:y>x},g.prototype.treePosition=function(v){var y,x;return x=0,y=!1,this.foreachTreeNode(this.document(),function(T){if(x++,!y&&T===v)return y=!0}),y?x:-1},g.prototype.foreachTreeNode=function(v,y){var x,T,S,b,_;for(v||(v=this.document()),b=v.children,T=0,S=b.length;T<S;T++){if(x=b[T],_=y(x))return _;if(_=this.foreachTreeNode(x,y),_)return _}},g}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(H,B,d){"use strict";(function(){var O;B.exports=O=function(){function E(C){this.nodes=C}return Object.defineProperty(E.prototype,"length",{get:function(){return this.nodes.length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.item=function(C){return this.nodes[C]||null},E}()}).call(void 0)},{}],275:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m,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"),w=H("./XMLCharacterData"),B.exports=m=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,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))},r.prototype.isEqualNode=function(i){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.target!==this.target):!1},r}(w)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m,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"),w=H("./XMLNode"),B.exports=m=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,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))},r}(w)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(H,B,d){"use strict";(function(){var O,E,C,A,w=function(c,o){for(var r in o)m.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},m={}.hasOwnProperty;O=H("./NodeType"),A=H("./XMLWriterBase"),E=H("./WriterState"),B.exports=C=function(f){w(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===E.CloseTag?"":c.__super__.endline.call(this,o,r,i)},c.prototype.document=function(o,r){var i,n,e,s,t,a,l,u,h;for(l=o.children,n=e=0,t=l.length;e<t;n=++e)i=l[n],i.isLastRootNode=n===o.children.length-1;for(r=this.filterOptions(r),u=o.children,h=[],s=0,a=u.length;s<a;s++)i=u[s],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,s,t;if(i||(i=0),this.openNode(o,r,i),r.state=E.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=E.InsideTag,t=o.children,e=0,s=t.length;e<s;e++)n=t[e],this.writeChildNode(n,r,i+1);r.state=E.CloseTag,this.stream.write("]")}return r.state=E.CloseTag,this.stream.write(r.spaceBeforeSlash+">"),this.stream.write(this.endline(o,r,i)),r.state=E.None,this.closeNode(o,r,i)},c.prototype.element=function(o,r,i){var n,e,s,t,a,l,u,h,p,g;i||(i=0),this.openNode(o,r,i),r.state=E.OpenTag,this.stream.write(this.indent(o,r,i)+"<"+o.name),p=o.attribs;for(u in p){if(!m.call(p,u))continue;n=p[u],this.attribute(n,r,i)}if(s=o.children.length,t=s===0?null:o.children[0],s===0||o.children.every(function(v){return(v.type===O.Text||v.type===O.Raw)&&v.value===""}))r.allowEmpty?(this.stream.write(">"),r.state=E.CloseTag,this.stream.write("</"+o.name+">")):(r.state=E.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&s===1&&(t.type===O.Text||t.type===O.Raw)&&t.value!=null)this.stream.write(">"),r.state=E.InsideTag,r.suppressPrettyCount++,h=!0,this.writeChildNode(t,r,i+1),r.suppressPrettyCount--,h=!1,r.state=E.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,r,i)),r.state=E.InsideTag,g=o.children,a=0,l=g.length;a<l;a++)e=g[a],this.writeChildNode(e,r,i+1);r.state=E.CloseTag,this.stream.write(this.indent(o,r,i)+"</"+o.name+">")}return this.stream.write(this.endline(o,r,i)),r.state=E.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,B,d){"use strict";(function(){var O,E,C=function(m,f){for(var c in f)A.call(f,c)&&(m[c]=f[c]);function o(){this.constructor=m}return o.prototype=f.prototype,m.prototype=new o,m.__super__=f.prototype,m},A={}.hasOwnProperty;E=H("./XMLWriterBase"),B.exports=O=function(w){C(m,w);function m(f){m.__super__.constructor.call(this,f)}return m.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},m}(E)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(H,B,d){"use strict";(function(){var O,E=function(w,m){return function(){return w.apply(m,arguments)}},C={}.hasOwnProperty;B.exports=O=function(){function A(w){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var m,f,c;w||(w={}),this.options=w,this.options.version||(this.options.version="1.0"),f=w.stringify||{};for(m in f){if(!C.call(f,m))continue;c=f[m],this[m]=c}}return A.prototype.name=function(w){return this.options.noValidation?w:this.assertLegalName(""+w||"")},A.prototype.text=function(w){return this.options.noValidation?w:this.assertLegalChar(this.textEscape(""+w||""))},A.prototype.cdata=function(w){return this.options.noValidation?w:(w=""+w||"",w=w.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(w))},A.prototype.comment=function(w){if(this.options.noValidation)return w;if(w=""+w||"",w.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+w);return this.assertLegalChar(w)},A.prototype.raw=function(w){return this.options.noValidation?w:""+w||""},A.prototype.attValue=function(w){return this.options.noValidation?w:this.assertLegalChar(this.attEscape(w=""+w||""))},A.prototype.insTarget=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},A.prototype.insValue=function(w){if(this.options.noValidation)return w;if(w=""+w||"",w.match(/\?>/))throw new Error("Invalid processing instruction value: "+w);return this.assertLegalChar(w)},A.prototype.xmlVersion=function(w){if(this.options.noValidation)return w;if(w=""+w||"",!w.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+w);return w},A.prototype.xmlEncoding=function(w){if(this.options.noValidation)return w;if(w=""+w||"",!w.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+w);return this.assertLegalChar(w)},A.prototype.xmlStandalone=function(w){return this.options.noValidation?w:w?"yes":"no"},A.prototype.dtdPubID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},A.prototype.dtdSysID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},A.prototype.dtdElementValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},A.prototype.dtdAttType=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},A.prototype.dtdAttDefault=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},A.prototype.dtdEntityValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},A.prototype.dtdNData=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},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(w){var m,f;if(this.options.noValidation)return w;if(m="",this.options.version==="1.0"){if(m=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=w.match(m))throw new Error("Invalid character in string: "+w+" at index "+f.index)}else if(this.options.version==="1.1"&&(m=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=w.match(m)))throw new Error("Invalid character in string: "+w+" at index "+f.index);return w},A.prototype.assertLegalName=function(w){var m;if(this.options.noValidation)return w;if(this.assertLegalChar(w),m=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!w.match(m))throw new Error("Invalid character in name");return w},A.prototype.textEscape=function(w){var m;return this.options.noValidation?w:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(m,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},A.prototype.attEscape=function(w){var m;return this.options.noValidation?w:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(m,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},A}()}).call(void 0)},{}],280:[function(H,B,d){"use strict";var O=H("babel-runtime/core-js/object/create"),E=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m,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"),w=H("./XMLCharacterData"),B.exports=m=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,s;for(s="",e=this.previousSibling;e;)s=e.data+s,e=e.previousSibling;for(s+=this.data,n=this.nextSibling;n;)s=s+n.data,n=n.nextSibling;return s}}),r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(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}(w)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(H,B,d){"use strict";(function(){var O,E,C,A,w,m,f,c,o,r,i,n,e,s,t,a,l,u={}.hasOwnProperty;l=H("./Utility").assign,O=H("./NodeType"),o=H("./XMLDeclaration"),r=H("./XMLDocType"),C=H("./XMLCData"),A=H("./XMLComment"),n=H("./XMLElement"),s=H("./XMLRaw"),t=H("./XMLText"),e=H("./XMLProcessingInstruction"),i=H("./XMLDummy"),w=H("./XMLDTDAttList"),m=H("./XMLDTDElement"),f=H("./XMLDTDEntity"),c=H("./XMLDTDNotation"),E=H("./WriterState"),B.exports=a=function(){function h(p){var g,v,y;p||(p={}),this.options=p,v=p.writer||{};for(g in v){if(!u.call(v,g))continue;y=v[g],this["_"+g]=this[g],this[g]=y}}return h.prototype.filterOptions=function(p){var g,v,y,x,T,S,b,_;return p||(p={}),p=l({},this.options,p),g={writer:this},g.pretty=p.pretty||!1,g.allowEmpty=p.allowEmpty||!1,g.indent=(v=p.indent)!=null?v:" ",g.newline=(y=p.newline)!=null?y:`
|
|
|
`,g.offset=(x=p.offset)!=null?x:0,g.dontPrettyTextNodes=(T=(S=p.dontPrettyTextNodes)!=null?S:p.dontprettytextnodes)!=null?T:0,g.spaceBeforeSlash=(b=(_=p.spaceBeforeSlash)!=null?_:p.spacebeforeslash)!=null?b:"",g.spaceBeforeSlash===!0&&(g.spaceBeforeSlash=" "),g.suppressPrettyCount=0,g.user={},g.state=E.None,g},h.prototype.indent=function(p,g,v){var y;return!g.pretty||g.suppressPrettyCount?"":g.pretty&&(y=(v||0)+g.offset+1,y>0)?new Array(y).join(g.indent):""},h.prototype.endline=function(p,g,v){return!g.pretty||g.suppressPrettyCount?"":g.newline},h.prototype.attribute=function(p,g,v){var y;return this.openAttribute(p,g,v),y=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,g,v),y},h.prototype.cdata=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v)+"<![CDATA[",g.state=E.InsideTag,y+=p.value,g.state=E.CloseTag,y+="]]>"+this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.comment=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v)+"<!-- ",g.state=E.InsideTag,y+=p.value,g.state=E.CloseTag,y+=" -->"+this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.declaration=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v)+"<?xml",g.state=E.InsideTag,y+=' version="'+p.version+'"',p.encoding!=null&&(y+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(y+=' standalone="'+p.standalone+'"'),g.state=E.CloseTag,y+=g.spaceBeforeSlash+"?>",y+=this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.docType=function(p,g,v){var y,x,T,S,b;if(v||(v=0),this.openNode(p,g,v),g.state=E.OpenTag,S=this.indent(p,g,v),S+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?S+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(S+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(S+=" [",S+=this.endline(p,g,v),g.state=E.InsideTag,b=p.children,x=0,T=b.length;x<T;x++)y=b[x],S+=this.writeChildNode(y,g,v+1);g.state=E.CloseTag,S+="]"}return g.state=E.CloseTag,S+=g.spaceBeforeSlash+">",S+=this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),S},h.prototype.element=function(p,g,v){var y,x,T,S,b,_,I,L,N,D,R,P,M,U;v||(v=0),D=!1,R="",this.openNode(p,g,v),g.state=E.OpenTag,R+=this.indent(p,g,v)+"<"+p.name,P=p.attribs;for(N in P){if(!u.call(P,N))continue;y=P[N],R+=this.attribute(y,g,v)}if(T=p.children.length,S=T===0?null:p.children[0],T===0||p.children.every(function(F){return(F.type===O.Text||F.type===O.Raw)&&F.value===""}))g.allowEmpty?(R+=">",g.state=E.CloseTag,R+="</"+p.name+">"+this.endline(p,g,v)):(g.state=E.CloseTag,R+=g.spaceBeforeSlash+"/>"+this.endline(p,g,v));else if(g.pretty&&T===1&&(S.type===O.Text||S.type===O.Raw)&&S.value!=null)R+=">",g.state=E.InsideTag,g.suppressPrettyCount++,D=!0,R+=this.writeChildNode(S,g,v+1),g.suppressPrettyCount--,D=!1,g.state=E.CloseTag,R+="</"+p.name+">"+this.endline(p,g,v);else{if(g.dontPrettyTextNodes){for(M=p.children,b=0,I=M.length;b<I;b++)if(x=M[b],(x.type===O.Text||x.type===O.Raw)&&x.value!=null){g.suppressPrettyCount++,D=!0;break}}for(R+=">"+this.endline(p,g,v),g.state=E.InsideTag,U=p.children,_=0,L=U.length;_<L;_++)x=U[_],R+=this.writeChildNode(x,g,v+1);g.state=E.CloseTag,R+=this.indent(p,g,v)+"</"+p.name+">",D&&g.suppressPrettyCount--,R+=this.endline(p,g,v),g.state=E.None}return this.closeNode(p,g,v),R},h.prototype.writeChildNode=function(p,g,v){switch(p.type){case O.CData:return this.cdata(p,g,v);case O.Comment:return this.comment(p,g,v);case O.Element:return this.element(p,g,v);case O.Raw:return this.raw(p,g,v);case O.Text:return this.text(p,g,v);case O.ProcessingInstruction:return this.processingInstruction(p,g,v);case O.Dummy:return"";case O.Declaration:return this.declaration(p,g,v);case O.DocType:return this.docType(p,g,v);case O.AttributeDeclaration:return this.dtdAttList(p,g,v);case O.ElementDeclaration:return this.dtdElement(p,g,v);case O.EntityDeclaration:return this.dtdEntity(p,g,v);case O.NotationDeclaration:return this.dtdNotation(p,g,v);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},h.prototype.processingInstruction=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v)+"<?",g.state=E.InsideTag,y+=p.target,p.value&&(y+=" "+p.value),g.state=E.CloseTag,y+=g.spaceBeforeSlash+"?>",y+=this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.raw=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v),g.state=E.InsideTag,y+=p.value,g.state=E.CloseTag,y+=this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.text=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v),g.state=E.InsideTag,y+=p.value,g.state=E.CloseTag,y+=this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.dtdAttList=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v)+"<!ATTLIST",g.state=E.InsideTag,y+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(y+=" "+p.defaultValueType),p.defaultValue&&(y+=' "'+p.defaultValue+'"'),g.state=E.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.dtdElement=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v)+"<!ELEMENT",g.state=E.InsideTag,y+=" "+p.name+" "+p.value,g.state=E.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.dtdEntity=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v)+"<!ENTITY",g.state=E.InsideTag,p.pe&&(y+=" %"),y+=" "+p.name,p.value?y+=' "'+p.value+'"':(p.pubID&&p.sysID?y+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(y+=' SYSTEM "'+p.sysID+'"'),p.nData&&(y+=" NDATA "+p.nData)),g.state=E.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.dtdNotation=function(p,g,v){var y;return this.openNode(p,g,v),g.state=E.OpenTag,y=this.indent(p,g,v)+"<!NOTATION",g.state=E.InsideTag,y+=" "+p.name,p.pubID&&p.sysID?y+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?y+=' PUBLIC "'+p.pubID+'"':p.sysID&&(y+=' SYSTEM "'+p.sysID+'"'),g.state=E.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,v),g.state=E.None,this.closeNode(p,g,v),y},h.prototype.openNode=function(p,g,v){},h.prototype.closeNode=function(p,g,v){},h.prototype.openAttribute=function(p,g,v){},h.prototype.closeAttribute=function(p,g,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,B,d){"use strict";(function(){var O,E,C,A,w,m,f,c,o,r;r=H("./Utility"),c=r.assign,o=r.isFunction,C=H("./XMLDOMImplementation"),A=H("./XMLDocument"),w=H("./XMLDocumentCB"),f=H("./XMLStringWriter"),m=H("./XMLStreamWriter"),O=H("./NodeType"),E=H("./WriterState"),B.exports.create=function(i,n,e,s){var t,a;if(i==null)throw new Error("Root element needs a name.");return s=c({},n,e,s),t=new A(s),a=t.element(i),s.headless||(t.declaration(s),(s.pubID!=null||s.sysID!=null)&&t.dtd(s)),a},B.exports.begin=function(i,n,e){var s;return o(i)&&(s=[i,n],n=s[0],e=s[1],i={}),n?new w(i,n,e):new A(i)},B.exports.stringWriter=function(i){return new f(i)},B.exports.streamWriter=function(i,n){return new m(i,n)},B.exports.implementation=new C,B.exports.nodeType=O,B.exports.writerState=E}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(H,B,d){B.exports=E;var O=Object.prototype.hasOwnProperty;function E(){for(var C={},A=0;A<arguments.length;A++){var w=arguments[A];for(var m in w)O.call(w,m)&&(C[m]=w[m])}return C}},{}],284:[function(H,B,d){"use strict";var O=H("buffer").Buffer,E=H("./sha"),C=H("./md5"),A={sha1:E,md5:C},w=64,m=O.alloc(w);m.fill(0);function f(r,i,n){O.isBuffer(i)||(i=O.from(i)),O.isBuffer(n)||(n=O.from(n)),i.length>w?i=r(i):i.length<w&&(i=O.concat([i,m],w));for(var e=O.alloc(w),s=O.alloc(w),t=0;t<w;t++)e[t]=i[t]^54,s[t]=i[t]^92;var a=r(O.concat([e,n]));return r(O.concat([s,a]))}function c(r,i){r=r||"sha1";var n=A[r],e=[],s=0;return n||o("algorithm:",r,"is not yet supported"),{update:function(a){return O.isBuffer(a)||(a=O.from(a)),e.push(a),s+=a.length,this},digest:function(a){var l=O.concat(e),u=i?f(n,i,l):n(l);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,B,d){"use strict";var O=H("buffer").Buffer,E=4,C=O.alloc(E);C.fill(0);var A=8;function w(c,o){if(c.length%E!==0){var r=c.length+(E-c.length%E);c=O.concat([c,C],r)}for(var i=[],n=o?c.readInt32BE:c.readInt32LE,e=0;e<c.length;e+=E)i.push(n.call(c,e));return i}function m(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(w(c,i),c.length*A);return m(n,r,i)}B.exports={hash:f}},{buffer:73}],286:[function(H,B,d){"use strict";var O=H("./helpers");function E(){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,s=-271733879,t=-1732584194,a=271733878,l=0;l<i.length;l+=16){var u=e,h=s,p=t,g=a;e=w(e,s,t,a,i[l+0],7,-680876936),a=w(a,e,s,t,i[l+1],12,-389564586),t=w(t,a,e,s,i[l+2],17,606105819),s=w(s,t,a,e,i[l+3],22,-1044525330),e=w(e,s,t,a,i[l+4],7,-176418897),a=w(a,e,s,t,i[l+5],12,1200080426),t=w(t,a,e,s,i[l+6],17,-1473231341),s=w(s,t,a,e,i[l+7],22,-45705983),e=w(e,s,t,a,i[l+8],7,1770035416),a=w(a,e,s,t,i[l+9],12,-1958414417),t=w(t,a,e,s,i[l+10],17,-42063),s=w(s,t,a,e,i[l+11],22,-1990404162),e=w(e,s,t,a,i[l+12],7,1804603682),a=w(a,e,s,t,i[l+13],12,-40341101),t=w(t,a,e,s,i[l+14],17,-1502002290),s=w(s,t,a,e,i[l+15],22,1236535329),e=m(e,s,t,a,i[l+1],5,-165796510),a=m(a,e,s,t,i[l+6],9,-1069501632),t=m(t,a,e,s,i[l+11],14,643717713),s=m(s,t,a,e,i[l+0],20,-373897302),e=m(e,s,t,a,i[l+5],5,-701558691),a=m(a,e,s,t,i[l+10],9,38016083),t=m(t,a,e,s,i[l+15],14,-660478335),s=m(s,t,a,e,i[l+4],20,-405537848),e=m(e,s,t,a,i[l+9],5,568446438),a=m(a,e,s,t,i[l+14],9,-1019803690),t=m(t,a,e,s,i[l+3],14,-187363961),s=m(s,t,a,e,i[l+8],20,1163531501),e=m(e,s,t,a,i[l+13],5,-1444681467),a=m(a,e,s,t,i[l+2],9,-51403784),t=m(t,a,e,s,i[l+7],14,1735328473),s=m(s,t,a,e,i[l+12],20,-1926607734),e=f(e,s,t,a,i[l+5],4,-378558),a=f(a,e,s,t,i[l+8],11,-2022574463),t=f(t,a,e,s,i[l+11],16,1839030562),s=f(s,t,a,e,i[l+14],23,-35309556),e=f(e,s,t,a,i[l+1],4,-1530992060),a=f(a,e,s,t,i[l+4],11,1272893353),t=f(t,a,e,s,i[l+7],16,-155497632),s=f(s,t,a,e,i[l+10],23,-1094730640),e=f(e,s,t,a,i[l+13],4,681279174),a=f(a,e,s,t,i[l+0],11,-358537222),t=f(t,a,e,s,i[l+3],16,-722521979),s=f(s,t,a,e,i[l+6],23,76029189),e=f(e,s,t,a,i[l+9],4,-640364487),a=f(a,e,s,t,i[l+12],11,-421815835),t=f(t,a,e,s,i[l+15],16,530742520),s=f(s,t,a,e,i[l+2],23,-995338651),e=c(e,s,t,a,i[l+0],6,-198630844),a=c(a,e,s,t,i[l+7],10,1126891415),t=c(t,a,e,s,i[l+14],15,-1416354905),s=c(s,t,a,e,i[l+5],21,-57434055),e=c(e,s,t,a,i[l+12],6,1700485571),a=c(a,e,s,t,i[l+3],10,-1894986606),t=c(t,a,e,s,i[l+10],15,-1051523),s=c(s,t,a,e,i[l+1],21,-2054922799),e=c(e,s,t,a,i[l+8],6,1873313359),a=c(a,e,s,t,i[l+15],10,-30611744),t=c(t,a,e,s,i[l+6],15,-1560198380),s=c(s,t,a,e,i[l+13],21,1309151649),e=c(e,s,t,a,i[l+4],6,-145523070),a=c(a,e,s,t,i[l+11],10,-1120210379),t=c(t,a,e,s,i[l+2],15,718787259),s=c(s,t,a,e,i[l+9],21,-343485551),e=o(e,u),s=o(s,h),t=o(t,p),a=o(a,g)}return Array(e,s,t,a)}function A(i,n,e,s,t,a){return o(r(o(o(n,i),o(s,a)),t),e)}function w(i,n,e,s,t,a,l){return A(n&e|~n&s,i,n,t,a,l)}function m(i,n,e,s,t,a,l){return A(n&s|e&~s,i,n,t,a,l)}function f(i,n,e,s,t,a,l){return A(n^e^s,i,n,t,a,l)}function c(i,n,e,s,t,a,l){return A(e^(n|~s),i,n,t,a,l)}function o(i,n){var e=(i&65535)+(n&65535),s=(i>>16)+(n>>16)+(e>>16);return s<<16|e&65535}function r(i,n){return i<<n|i>>>32-n}B.exports=function(n){return O.hash(n,C,16)}},{"./helpers":285}],287:[function(H,B,d){"use strict";var O=H("./helpers");function E(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,s=-1009589776,t=0;t<f.length;t+=16){for(var a=r,l=i,u=n,h=e,p=s,g=0;g<80;g++){g<16?o[g]=f[t+g]:o[g]=m(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var v=w(w(m(r,5),C(g,i,n,e)),w(w(s,o[g]),A(g)));s=e,e=n,n=m(i,30),i=r,r=v}r=w(r,a),i=w(i,l),n=w(n,u),e=w(e,h),s=w(s,p)}return Array(r,i,n,e,s)}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 w(f,c){var o=(f&65535)+(c&65535),r=(f>>16)+(c>>16)+(o>>16);return r<<16|o&65535}function m(f,c){return f<<c|f>>>32-c}B.exports=function(c){return O.hash(c,E,20,!0)}},{"./helpers":285}],288:[function(H,B,d){"use strict";B.exports=function(){return function(){}}},{}],289:[function(H,B,d){(function(O){"use strict";var E=H("babel-runtime/helpers/typeof"),C=A(E);function A(r){return r&&r.__esModule?r:{default:r}}var w=H("stream"),m=w.Stream,f=H("../lib/common/utils/isArray"),c=f.isArray;B.exports.string=function(i){return typeof i=="string"},B.exports.array=c,B.exports.buffer=O.isBuffer;function o(r){return r instanceof m}B.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,B,d){"use strict";d.encodeURIComponent=function(O){try{return encodeURIComponent(O)}catch(E){return O}},d.escape=H("escape-html"),d.timestamp=function(E){if(E){var C=E;return typeof C=="string"&&(C=Number(C)),String(E).length===10&&(C*=1e3),new Date(C)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(H,B,d){(function(O,E){"use strict";var C=H("babel-runtime/core-js/json/stringify"),A=f(C),w=H("babel-runtime/helpers/typeof"),m=f(w);function f(g){return g&&g.__esModule?g:{default:g}}var c=H("util"),o=H("url"),r=H("http"),i=H("https"),n=H("debug")("urllib"),e=H("humanize-ms"),s,t=0,a=Math.pow(2,31)-10,l=/^https?:\/\//i;function u(g,v){return g===void 0?v:g}function h(g,v){return function(y,x,T){if(y)return v(y);g({data:x,status:T.statusCode,headers:T.headers,res:T})}}d.TIMEOUTS=[e("300s"),e("300s")];var p=["json","text"];d.request=function(v,y,x){return arguments.length===2&&typeof y=="function"&&(x=y,y=null),typeof x=="function"?d.requestWithCallback(v,y,x):(s||(s=H("any-promise")),new s(function(T,S){d.requestWithCallback(v,y,h(T,S))}))},d.requestWithCallback=function(v,y,x){if(!v||typeof v!="string"&&(typeof v=="undefined"?"undefined":(0,m.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"&&(x=y,y=null),y=y||{},t>=a&&(t=0);var S=++t;y.requestUrls=y.requestUrls||[];var b={requestId:S,url:v,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",b),y.timeout=y.timeout||d.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var _=Date.now(),I;typeof v=="string"?(l.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,D=r,R=u(y.agent,d.agent),P=y.fixJSONCtlChars;I.protocol==="https:"&&(D=i,R=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:R,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"],F=0;F<U.length;F++){var j=U[F];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"||E.isBuffer(V))))if(z)V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V);else{var Y=M.headers["Content-Type"]||M.headers["content-type"];Y||(y.contentType==="json"?Y="application/json":Y="application/x-www-form-urlencoded",M.headers["Content-Type"]=Y),parseContentType(Y).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 $=0;if(V){var ue=V.length;E.isBuffer(V)||(ue=E.byteLength(V)),$=M.headers["Content-Length"]=ue}y.dataType==="json"&&(M.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(M);var ne=null,ge=null,Oe=null,De=!1,He=!1,pe=0,Ue=-1,oe=!1,ee="",Xe="",se=null;y.timing&&(se={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Q(){ne&&(clearTimeout(ne),ne=null)}function G(){ge&&(clearTimeout(ge),ge=null)}function J(Te,et,ze){if(G(),!x){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),S,O.pid,M.method,v),Te&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),S,O.pid,Te.name,Te.message,Te.stack);return}var nt=x;x=null;var Ot={};if(ze&&(Ue=ze.statusCode,Ot=ze.headers),Ue===401&&Ot["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var Ct=Ot["www-authenticate"];if(Ct.indexOf("Digest ")>=0)return n("Request#%d %s: got digest auth header WWW-Authenticate: %s",S,v,Ct),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(M.method,M.path,Ct,y.digestAuth),n("Request#%d %s: auth with digest header: %s",S,v,y.headers.Authorization),ze.headers["set-cookie"]&&(y.headers.Cookie=ze.headers["set-cookie"].join(";")),d.requestWithCallback(v,y,nt)}var Tt=Date.now()-_;se&&(se.contentDownload=Tt),n("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Tt,pe,Ue,M.method,M.host,M.path,He,se);var Dt={status:Ue,statusCode:Ue,headers:Ot,size:pe,aborted:oe,rt:Tt,keepAliveSocket:He,data:et,requestUrls:y.requestUrls,timing:se,remoteAddress:ee,remotePort:Xe};if(Te){var Be="";R&&typeof R.getCurrentStatus=="function"&&(Be=", agent status: "+(0,A.default)(R.getCurrentStatus())),Te.message+=", "+M.method+" "+v+" "+Ue+" (connected: "+De+", keepalive socket: "+He+Be+`)
|
|
|
headers: `+(0,A.default)(Ot),Te.data=et,Te.path=M.path,Te.status=Ue,Te.headers=Ot,Te.res=Dt}nt(Te,et,y.streaming?ze:Dt),y.emitter&&(b.url=v,b.socket=ot&&ot.connection,b.options=M,b.size=$,y.emitter.emit("response",{requestId:S,error:Te,ctx:y.ctx,req:b,res:Dt}))}function ve(Te){var et=null;if(y.followRedirect&&statuses.redirect[Te.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var ze=Te.headers.location;if(!ze)et=new Error("Got statusCode "+Te.statusCode+" but cannot resolve next location from headers"),et.name="FollowRedirectError";else if(y._followRedirectCount>y.maxRedirects)et=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+v),et.name="MaxRedirectError";else{var nt=y.formatRedirectUrl?y.formatRedirectUrl(v,ze):o.resolve(v,ze);n("Request#%d %s: `redirected` from %s to %s",S,M.path,v,nt),G(),y.headers&&y.headers.Host&&l.test(ze)&&(y.headers.Host=null);var Ot=x;return x=null,d.requestWithCallback(nt,y,Ot),{redirect:!0,error:null}}}return{redirect:!1,error:et}}!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 de(Te,et,ze){var nt=Te.headers["content-encoding"];return ze(null,et,nt)}var Ce=y.writeStream;n("Request#%d %s %s with headers %j, options.path: %s",S,L,v,M.headers,M.path),y.requestUrls.push(v);function Ee(Te){if(se&&(se.waiting=Date.now()-_),n("Request#%d %s `req response` event emit: status %d, headers: %j",S,v,Te.statusCode,Te.headers),y.streaming){var et=ve(Te);if(et.redirect){Te.resume();return}return et.error?(Te.resume(),J(et.error,null,Te)):J(null,null,Te)}if(Te.on("close",function(){n("Request#%d %s: `res close` event emit, total size %d",S,v,pe)}),Te.on("error",function(){n("Request#%d %s: `res error` event emit, total size %d",S,v,pe)}),Te.on("aborted",function(){oe=!0,n("Request#%d %s: `res aborted` event emit, total size %d",S,v,pe)}),Ce){var et=ve(Te);if(et.redirect){Te.resume();return}return et.error?(Te.resume(),Ce.end(),J(et.error,null,Te)):(y.consumeWriteStream===!1?Te.on("end",J.bind(null,null,null,Te)):isNode010||isNode012?first([[Ce,"close"],[Te,"aborted"]],function(Ot,Ct,Tt){n("Request#%d %s: writeStream or res %s event emitted",S,v,Tt),J(Oe||null,null,Te)}):Ce.on("close",function(){n("Request#%d %s: writeStream close event emitted",S,v),J(Oe||null,null,Te)}),Te.pipe(Ce))}var ze=[];Te.on("data",function(nt){n("Request#%d %s: `res data` event emit, size %d",S,v,nt.length),pe+=nt.length,ze.push(nt)}),Te.on("end",function(){var nt=E.concat(ze,pe);if(n("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",S,v,pe,Te._dumped),Oe)return J(Oe,nt,Te);var Ot=ve(Te);if(Ot.error)return J(Ot.error,nt,Te);if(Ot.redirect)return;de(Te,nt,function(Ct,Tt,Dt){if(Ct)return J(Ct,nt,Te);if(!Dt&&p.indexOf(y.dataType)>=0){try{Tt=decodeBodyByCharset(Tt,Te)}catch(ie){return n("decodeBodyByCharset error: %s",ie),J(null,Tt,Te)}if(y.dataType==="json")if(pe===0)Tt=null;else{var Be=parseJSON(Tt,P);Be.error?Ct=Be.error:Tt=Be.data}}oe&&n("Request#%d %s: Remote socket was terminated before `response.end()` was called",S,v),J(Ct,Tt,Te)})})}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 xe(){n("Connect timer ticking, timeout: %d",le),ne=setTimeout(function(){ne=null,Ue===-1&&(Ue=-2);var Te="Connect timeout for "+le+"ms",et="ConnectionTimeoutError";ot.socket||(et="SocketAssignTimeoutError",Te+=", working sockets is full"),Oe=new Error(Te),Oe.name=et,Oe.requestId=S,n("ConnectTimeout: Request#%d %s %s: %s, connected: %s",S,v,Oe.name,Te,De),Je()},le)}function Qe(){n("Response timer ticking, timeout: %d",fe),ge=setTimeout(function(){ge=null;var Te="Response timeout for "+fe+"ms",et="ResponseTimeoutError";Oe=new Error(Te),Oe.name=et,Oe.requestId=S,n("ResponseTimeout: Request#%d %s %s: %s, connected: %s",S,v,Oe.name,Te,De),Je()},fe)}var ot;M.mode=y.mode?y.mode:"";try{ot=D.request(M,Ee)}catch(Te){return J(Te)}typeof window=="undefined"?xe():ot.on("requestTimeout",function(){Ue===-1&&(Ue=-2);var Te="Connect timeout for "+le+"ms",et="ConnectionTimeoutError";Oe=new Error(Te),Oe.name=et,Oe.requestId=S,Je()});function Je(){n("Request#%d %s abort, connected: %s",S,v,De),ot.socket||(Oe.noSocket=!0,J(Oe)),ot.abort()}return se&&ot.on("finish",function(){se.requestSent=Date.now()-_}),ot.once("socket",function(Te){se&&(se.queuing=Date.now()-_),isNode010&&Te.socket&&(Te=Te.socket);var et=Te.readyState;if(et==="opening"){Te.once("lookup",function(ze,nt,Ot){n("Request#%d %s lookup: %s, %s, %s",S,v,ze,nt,Ot),se&&(se.dnslookup=Date.now()-_),nt&&(ee=nt)}),Te.once("connect",function(){se&&(se.connected=Date.now()-_),Q(),Qe(),n("Request#%d %s new socket connected",S,v),De=!0,ee||(ee=Te.remoteAddress),Xe=Te.remotePort});return}n("Request#%d %s reuse socket connected, readyState: %s",S,v,et),De=!0,He=!0,ee||(ee=Te.remoteAddress),Xe=Te.remotePort,Q(),Qe()}),ot.on("error",function(Te){(Te.name==="Error"||Te.name==="TypeError")&&(Te.name=De?"ResponseError":"RequestError"),Te.message+=' (req "error")',n("Request#%d %s `req error` event emit, %s: %s",S,v,Te.name,Te.message),J(Oe||Te)}),Ce&&Ce.once("error",function(Te){Te.message+=' (writeStream "error")',Oe=Te,n("Request#%d %s `writeStream error` event emit, %s: %s",S,v,Te.name,Te.message),Je()}),y.stream?(y.stream.pipe(ot),y.stream.once("error",function(Te){Te.message+=' (stream "error")',Oe=Te,n("Request#%d %s `readStream error` event emit, %s: %s",S,v,Te.name,Te.message),Je()})):ot.end(V),ot.requestId=S,ot}}).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,B,d){var O=d("hX1E"),E=O.normalizeRadian,C=Math.PI*2;function A(w,m,f,c,o,r,i,n,e){if(i===0)return!1;var s=i;n-=w,e-=m;var t=Math.sqrt(n*n+e*e);if(t-s>f||t+s<f)return!1;if(Math.abs(c-o)%C<1e-4)return!0;if(r){var a=c;c=E(o),o=E(a)}else c=E(c),o=E(o);c>o&&(o+=C);var l=Math.atan2(e,n);return l<0&&(l+=C),l>=c&&l<=o||l+C>=c&&l+C<=o}B.containStroke=A},n4Lv:function(H,B,d){var O=d("7hqr"),E=O.isDimensionStacked,C=d("bYtY"),A=C.map;function w(c,o,r){var i=c.getBaseAxis(),n=c.getOtherAxis(i),e=m(n,r),s=i.dim,t=n.dim,a=o.mapDimension(t),l=o.mapDimension(s),u=t==="x"||t==="radius"?1:0,h=A(c.dimensions,function(v){return o.mapDimension(v)}),p,g=o.getCalculationInfo("stackResultDimension");return(p|=E(o,h[0]))&&(h[0]=g),(p|=E(o,h[1]))&&(h[1]=g),{dataDimsForPoint:h,valueStart:e,valueAxisDim:t,baseAxisDim:s,stacked:!!p,valueDim:a,baseDim:l,baseDataOffset:u,stackedOverDimension:o.getCalculationInfo("stackedOverDimension")}}function m(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,s=[];return s[e]=r.get(c.baseDim,i),s[1-e]=n,o.dataToPoint(s)}B.prepareDataCoordInfo=w,B.getStackedOnPoint=f},n6Mw:function(H,B,d){var O=d("SrGk"),E=d("bYtY"),C=d("Fofx");function A(m,f){O.call(this,m,f,"clipPath","__clippath_in_use__")}E.inherits(A,O),A.prototype.update=function(m){var f=this.getSvgElement(m);f&&this.updateDom(f,m.__clipPaths,!1);var c=this.getTextSvgElement(m);c&&this.updateDom(c,m.__clipPaths,!0),this.markUsed(m)},A.prototype.updateDom=function(m,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 s=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!c){var t=Array.prototype.slice.call(r.transform);C.mul(r.transform,r.parent.invTransform,r.transform),s.brush(r),r.transform=t}else s.brush(r);var a=this.getSvgElement(r);i.innerHTML="",i.appendChild(a.cloneNode()),m.setAttribute("clip-path","url(#"+n+")"),f.length>1&&this.updateDom(i,f.slice(1),c)}else m&&m.setAttribute("clip-path","none")},A.prototype.markUsed=function(m){var f=this;m.__clipPaths&&E.each(m.__clipPaths,function(c){c._dom&&O.prototype.markUsed.call(f,c._dom),c._textDom&&O.prototype.markUsed.call(f,c._textDom)})};var w=A;H.exports=w},nCxF:function(H,B,d){var O=d("QBsz"),E=O.min,C=O.max,A=O.scale,w=O.distance,m=O.add,f=O.clone,c=O.sub;function o(r,i,n,e){var s=[],t=[],a=[],l=[],u,h,p,g;if(e){p=[Infinity,Infinity],g=[-Infinity,-Infinity];for(var v=0,y=r.length;v<y;v++)E(p,p,r[v]),C(g,g,r[v]);E(p,p,e[0]),C(g,g,e[1])}for(var v=0,y=r.length;v<y;v++){var x=r[v];if(n)u=r[v?v-1:y-1],h=r[(v+1)%y];else if(v===0||v===y-1){s.push(f(r[v]));continue}else u=r[v-1],h=r[v+1];c(t,h,u),A(t,t,i);var T=w(x,u),S=w(x,h),b=T+S;b!==0&&(T/=b,S/=b),A(a,t,-T),A(l,t,S);var _=m([],x,a),I=m([],x,l);e&&(C(_,_,p),E(_,_,g),C(I,I,p),E(I,I,g)),s.push(_),s.push(I)}return n&&s.push(s.shift()),s}H.exports=o},nKiI:function(H,B,d){var O=d("bYtY"),E=d("mFDi"),C=d("OELB"),A=C.parsePercent,w=C.MAX_SAFE_INTEGER,m=d("+TT/"),f=d("VaxA"),c=Math.max,o=Math.min,r=O.retrieve,i=O.each,n=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],s=["upperLabel","show"],t=["upperLabel","height"],a={seriesType:"treemap",reset:function(_,I,L,N){var D=L.getWidth(),R=L.getHeight(),P=_.option,M=m.getLayoutRect(_.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()}),U=P.size||[],F=A(r(M.width,U[0]),D),j=A(r(M.height,U[1]),R),W=N&&N.type,V=["treemapZoomToNode","treemapRootToNode"],z=f.retrieveTargetInfo(N,V,_),Y=W==="treemapRender"||W==="treemapMove"?N.rootRect:null,$=_.getViewRoot(),ue=f.getPathToRoot($);if(W!=="treemapMove"){var ne=W==="treemapZoomToNode"?x(_,z,$,F,j):Y?[Y.width,Y.height]:[F,j],ge=P.sort;ge&&ge!=="asc"&&ge!=="desc"&&(ge="desc");var Oe={squareRatio:P.squareRatio,sort:ge,leafDepth:P.leafDepth};$.hostTree.clearLayouts();var De={x:0,y:0,width:ne[0],height:ne[1],area:ne[0]*ne[1]};$.setLayout(De),l($,Oe,!1,0);var De=$.getLayout();i(ue,function(pe,Ue){var oe=(ue[Ue+1]||$).getValue();pe.setLayout(O.extend({dataExtent:[oe,oe],borderWidth:0,upperHeight:0},De))})}var He=_.getData().tree.root;He.setLayout(T(M,Y,z),!0),_.setLayoutInfo(M),S(He,new E(-M.x,-M.y,D,R),ue,$,0)}};function l(_,I,L,N){var D,R;if(_.isRemoved())return;var P=_.getLayout();D=P.width,R=P.height;var M=_.getModel(),U=M.get(n),F=M.get(e)/2,j=b(M),W=Math.max(U,j),V=U-F,z=W-F,M=_.getModel();_.setLayout({borderWidth:U,upperHeight:W,upperLabelHeight:j},!0),D=c(D-2*V,0),R=c(R-V-z,0);var Y=D*R,$=u(_,M,Y,I,L,N);if(!$.length)return;var ue={x:V,y:z,width:D,height:R},ne=o(D,R),ge=Infinity,Oe=[];Oe.area=0;for(var De=0,He=$.length;De<He;){var pe=$[De];Oe.push(pe),Oe.area+=pe.getLayout().area;var Ue=v(Oe,ne,I.squareRatio);Ue<=ge?(De++,ge=Ue):(Oe.area-=Oe.pop().getLayout().area,y(Oe,ne,ue,F,!1),ne=o(ue.width,ue.height),Oe.length=Oe.area=0,ge=Infinity)}if(Oe.length&&y(Oe,ne,ue,F,!0),!L){var oe=M.get("childrenVisibleMin");oe!=null&&Y<oe&&(L=!0)}for(var De=0,He=$.length;De<He;De++)l($[De],I,L,N+1)}function u(_,I,L,N,D,R){var P=_.children||[],M=N.sort;M!=="asc"&&M!=="desc"&&(M=null);var U=N.leafDepth!=null&&N.leafDepth<=R;if(D&&!U)return _.viewChildren=[];P=O.filter(P,function(z){return!z.isRemoved()}),p(P,M);var F=g(I,P,M);if(F.sum===0)return _.viewChildren=[];if(F.sum=h(I,L,F.sum,M,P),F.sum===0)return _.viewChildren=[];for(var j=0,W=P.length;j<W;j++){var V=P[j].getValue()/F.sum*L;P[j].setLayout({area:V})}return U&&(P.length&&_.setLayout({isLeafRoot:!0},!0),P.length=0),_.viewChildren=P,_.setLayout({dataExtent:F.dataExtent},!0),P}function h(_,I,L,N,D){if(!N)return L;for(var R=_.get("visibleMin"),P=D.length,M=P,U=P-1;U>=0;U--){var F=D[N==="asc"?P-U-1:U].getValue();F/L*I<R&&(M=U,L-=F)}return N==="asc"?D.splice(0,P-M):D.splice(M,P-M),L}function p(_,I){return I&&_.sort(function(L,N){var D=I==="asc"?L.getValue()-N.getValue():N.getValue()-L.getValue();return D===0?I==="asc"?L.dataIndex-N.dataIndex:N.dataIndex-L.dataIndex:D}),_}function g(_,I,L){for(var N=0,D=0,R=I.length;D<R;D++)N+=I[D].getValue();var P=_.get("visualDimension"),M;if(!I||!I.length)M=[NaN,NaN];else if(P==="value"&&L)M=[I[I.length-1].getValue(),I[0].getValue()],L==="asc"&&M.reverse();else{var M=[Infinity,-Infinity];i(I,function(F){var j=F.getValue(P);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,D=Infinity,R=0,P,M=_.length;R<M;R++)P=_[R].getLayout().area,P&&(P<D&&(D=P),P>N&&(N=P));var U=_.area*_.area,F=I*I*L;return U?c(F*N/U,U/(F*D)):Infinity}function y(_,I,L,N,D){var R=I===L.width?0:1,P=1-R,M=["x","y"],U=["width","height"],F=L[M[R]],j=I?_.area/I:0;(D||j>L[U[P]])&&(j=L[U[P]]);for(var W=0,V=_.length;W<V;W++){var z=_[W],Y={},$=j?z.getLayout().area/j:0,ue=Y[U[P]]=c(j-2*N,0),ne=L[M[R]]+L[U[R]]-F,ge=W===V-1||ne<$?ne:$,Oe=Y[U[R]]=c(ge-2*N,0);Y[M[P]]=L[M[P]]+o(N,ue/2),Y[M[R]]=F+o(N,Oe/2),F+=ge,z.setLayout(Y,!0)}L[M[P]]+=j,L[U[P]]-=j}function x(_,I,L,N,D){var R=(I||{}).node,P=[N,D];if(!R||R===L)return P;for(var M,U=N*D,F=U*_.option.zoomToNodeRatio;M=R.parentNode;){for(var j=0,W=M.children,V=0,z=W.length;V<z;V++)j+=W[V].getValue();var Y=R.getValue();if(Y===0)return P;F*=j/Y;var $=M.getModel(),ue=$.get(n),ne=Math.max(ue,b($,ue));F+=4*ue*ue+(3*ue+ne)*Math.pow(F,.5),F>w&&(F=w),R=M}F<U&&(F=U);var ge=Math.pow(F/U,.5);return[N*ge,D*ge]}function T(_,I,L){if(I)return{x:I.x,y:I.y};var N={x:0,y:0};if(!L)return N;var D=L.node,R=D.getLayout();if(!R)return N;for(var P=[R.width/2,R.height/2],M=D;M;){var U=M.getLayout();P[0]+=U.x,P[1]+=U.y,M=M.parentNode}return{x:_.width/2-P[0],y:_.height/2-P[1]}}function S(_,I,L,N,D){var R=_.getLayout(),P=L[D],M=P&&P===_;if(P&&!M||D===L.length&&_!==N)return;_.setLayout({isInView:!0,invisible:!M&&!I.intersect(R),isAboveViewRoot:M},!0);var U=new E(I.x-R.x,I.y-R.y,I.width,I.height);i(_.viewChildren||[],function(F){S(F,U,L,N,D+1)})}function b(_){return _.get(s)?_.get(t):0}H.exports=a},nPnh:function(H,B){var d=Math.round;function O(A,w,m){if(!w)return;var f=w.x1,c=w.x2,o=w.y1,r=w.y2;A.x1=f,A.x2=c,A.y1=o,A.y2=r;var i=m&&m.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 E(A,w,m){if(!w)return;var f=w.x,c=w.y,o=w.width,r=w.height;A.x=f,A.y=c,A.width=o,A.height=r;var i=m&&m.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,w,m){if(!w)return A;var f=d(A*2);return(f+d(w))%2===0?f/2:(f+(m?1:-1))/2}B.subPixelOptimizeLine=O,B.subPixelOptimizeRect=E,B.subPixelOptimize=C},nRaC:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("0fbx"),A=d.n(C),w=d("OaEy"),m=d("R9oj")},nVfU:function(H,B,d){var O=d("bYtY"),E=d("OELB"),C=E.parsePercent,A=d("7hqr"),w=A.isDimensionStacked,m=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 x=[],T=y.axis,S="axis0";if(T.type!=="category")return;for(var b=T.getBandWidth(),_=0;_<y.count||0;_++)x.push(O.defaults({bandWidth:b,axisKey:S,stackId:f+_},y));for(var I=a(x),L=[],_=0;_<y.count;_++){var N=I[S][f+_];N.offsetCenter=N.offset+N.width/2,L.push(N)}return L}function e(y,x){var T=[];return x.eachSeriesByType(y,function(S){p(S)&&!g(S)&&T.push(S)}),T}function s(y){var x={};O.each(y,function(N){var D=N.coordinateSystem,R=D.getBaseAxis();if(R.type!=="time"&&R.type!=="value")return;for(var P=N.getData(),M=R.dim+"_"+R.index,U=P.mapDimension(R.dim),F=0,j=P.count();F<j;++F){var W=P.get(U,F);x[M]?x[M].push(W):x[M]=[W]}});var T=[];for(var S in x)if(x.hasOwnProperty(S)){var b=x[S];if(b){b.sort(function(N,D){return N-D});for(var _=null,I=1;I<b.length;++I){var L=b[I]-b[I-1];L>0&&(_=_===null?L:Math.min(_,L))}T[S]=_}}return T}function t(y){var x=s(y),T=[];return O.each(y,function(S){var b=S.coordinateSystem,_=b.getBaseAxis(),I=_.getExtent(),L;if(_.type==="category")L=_.getBandWidth();else if(_.type==="value"||_.type==="time"){var N=_.dim+"_"+_.index,D=x[N],R=Math.abs(I[1]-I[0]),P=_.scale.getExtent(),M=Math.abs(P[1]-P[0]);L=D?R/M*D:R}else{var U=S.getData();L=Math.abs(I[1]-I[0])/U.count()}var F=C(S.get("barWidth"),L),j=C(S.get("barMaxWidth"),L),W=C(S.get("barMinWidth")||1,L),V=S.get("barGap"),z=S.get("barCategoryGap");T.push({bandWidth:L,barWidth:F,barMaxWidth:j,barMinWidth:W,barGap:V,barCategoryGap:z,axisKey:i(_),stackId:r(S)})}),a(T)}function a(y){var x={};O.each(y,function(S,b){var _=S.axisKey,I=S.bandWidth,L=x[_]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},N=L.stacks;x[_]=L;var D=S.stackId;N[D]||L.autoWidthCount++,N[D]=N[D]||{width:0,maxWidth:0};var R=S.barWidth;R&&!N[D].width&&(N[D].width=R,R=Math.min(L.remainedWidth,R),L.remainedWidth-=R);var P=S.barMaxWidth;P&&(N[D].maxWidth=P);var M=S.barMinWidth;M&&(N[D].minWidth=M);var U=S.barGap;U!=null&&(L.gap=U);var F=S.barCategoryGap;F!=null&&(L.categoryGap=F)});var T={};return O.each(x,function(S,b){T[b]={};var _=S.stacks,I=S.bandWidth,L=C(S.categoryGap,I),N=C(S.gap,1),D=S.remainedWidth,R=S.autoWidthCount,P=(D-L)/(R+(R-1)*N);P=Math.max(P,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,D-=z+N*z,R--}else{var z=P;W&&W<z&&(z=Math.min(W,D)),V&&V>z&&(z=V),z!==P&&(j.width=z,D-=z+N*z,R--)}}),P=(D-L)/(R+(R-1)*N),P=Math.max(P,0);var M=0,U;O.each(_,function(j,W){j.width||(j.width=P),U=j,M+=j.width*(1+N)}),U&&(M-=U.width*N);var F=-M/2;O.each(_,function(j,W){T[b][W]=T[b][W]||{bandWidth:I,offset:F,width:j.width},F+=j.width*(1+N)})}),T}function l(y,x,T){if(y&&x){var S=y[i(x)];return S!=null&&T!=null&&(S=S[r(T)]),S}}function u(y,x){var T=e(y,x),S=t(T),b={},_={};O.each(T,function(I){var L=I.getData(),N=I.coordinateSystem,D=N.getBaseAxis(),R=r(I),P=S[i(D)][R],M=P.offset,U=P.width,F=N.getOtherAxis(D),j=I.get("barMinHeight")||0;b[R]=b[R]||[],_[R]=_[R]||[],L.setLayout({bandWidth:P.bandWidth,offset:M,size:U});for(var W=L.mapDimension(F.dim),V=L.mapDimension(D.dim),z=w(L,W),Y=F.isHorizontal(),$=v(D,F,z),ue=0,ne=L.count();ue<ne;ue++){var ge=L.get(W,ue),Oe=L.get(V,ue),De=ge>=0?"p":"n",He=$;z&&(b[R][Oe]||(b[R][Oe]={p:$,n:$}),He=b[R][Oe][De]);var pe,Ue,oe,ee;if(Y){var Xe=N.dataToPoint([ge,Oe]);pe=He,Ue=Xe[1]+M,oe=Xe[0]-$,ee=U,Math.abs(oe)<j&&(oe=(oe<0?-1:1)*j),isNaN(oe)||z&&(b[R][Oe][De]+=oe)}else{var Xe=N.dataToPoint([Oe,ge]);pe=Xe[0]+M,Ue=He,oe=U,ee=Xe[1]-$,Math.abs(ee)<j&&(ee=(ee<=0?-1:1)*j),isNaN(ee)||z&&(b[R][Oe][De]+=ee)}L.setItemLayout(ue,{x:pe,y:Ue,width:oe,height:ee})}},this)}var h={seriesType:"bar",plan:m(),reset:function(y){if(!p(y)||!g(y))return;var x=y.getData(),T=y.coordinateSystem,S=T.grid.getRect(),b=T.getBaseAxis(),_=T.getOtherAxis(b),I=x.mapDimension(_.dim),L=x.mapDimension(b.dim),N=_.isHorizontal(),D=N?0:1,R=l(t([y]),b,y).width;return R>c||(R=c),{progress:P};function P(M,U){for(var F=M.count,j=new o(F*2),W=new o(F*2),V=new o(F),z,Y=[],$=[],ue=0,ne=0;(z=M.next())!=null;)$[D]=U.get(I,z),$[1-D]=U.get(L,z),Y=T.dataToPoint($,null,Y),W[ue]=N?S.x+S.width:Y[0],j[ue++]=Y[0],W[ue]=N?Y[1]:S.y+S.height,j[ue++]=Y[1],V[ne++]=z;U.setLayout({largePoints:j,largeDataIndices:V,largeBackgroundPoints:W,barWidth:R,valueAxisStart:v(b,_,!1),backgroundStart:N?S.x:S.y,valueAxisHorizontal:N})}}};function p(y){return y.coordinateSystem&&y.coordinateSystem.type==="cartesian2d"}function g(y){return y.pipelineContext&&y.pipelineContext.large}function v(y,x,T){return x.toGlobalCoord(x.dataToCoord(x.type==="log"?1:0))}B.getLayoutOnAxis=n,B.prepareLayoutBarSeries=e,B.makeColumnLayout=t,B.retrieveColumnLayout=l,B.layout=u,B.largeLayout=h},ngQI:function(H,B,d){"use strict";d.d(B,"a",function(){return tu}),d.d(B,"b",function(){return Iu}),d.d(B,"c",function(){return zr});var O=d("q1tI"),E=d.n(O),C=d("dI71"),A=d("wx14"),w=d("ANjH"),m=d("/MKj");function f(Me,te){if(Me.length!==te.length)return!1;for(var ye=0;ye<Me.length;ye++)if(Me[ye]!==te[ye])return!1;return!0}function c(Me,te){var ye=Object(O.useState)(function(){return{inputs:te,result:Me()}})[0],Ge=Object(O.useRef)(!0),st=Object(O.useRef)(ye),Ft=Ge.current||Boolean(te&&st.current.inputs&&f(te,st.current.inputs)),zt=Ft?st.current:{inputs:te,result:Me()};return Object(O.useEffect)(function(){Ge.current=!1,st.current=zt},[zt]),zt.result}function o(Me,te){return c(function(){return Me},te)}var r=c,i=o,n=d("9R94"),e=function(te){var ye=te.top,Ge=te.right,st=te.bottom,Ft=te.left,zt=Ge-Ft,Yt=st-ye,Nr={top:ye,right:Ge,bottom:st,left:Ft,width:zt,height:Yt,x:Ft,y:ye,center:{x:(Ge+Ft)/2,y:(st+ye)/2}};return Nr},s=function(te,ye){return{top:te.top-ye.top,left:te.left-ye.left,bottom:te.bottom+ye.bottom,right:te.right+ye.right}},t=function(te,ye){return{top:te.top+ye.top,left:te.left+ye.left,bottom:te.bottom-ye.bottom,right:te.right-ye.right}},a=function(te,ye){return{top:te.top+ye.y,left:te.left+ye.x,bottom:te.bottom+ye.y,right:te.right+ye.x}},l={top:0,right:0,bottom:0,left:0},u=function(te){var ye=te.borderBox,Ge=te.margin,st=Ge===void 0?l:Ge,Ft=te.border,zt=Ft===void 0?l:Ft,Yt=te.padding,Nr=Yt===void 0?l:Yt,Qr=e(s(ye,st)),Cr=e(t(ye,zt)),Er=e(t(Cr,Nr));return{marginBox:Qr,borderBox:e(ye),paddingBox:Cr,contentBox:Er,margin:st,border:zt,padding:Nr}},h=function(te){var ye=te.slice(0,-2),Ge=te.slice(-2);if(Ge!=="px")return 0;var st=Number(ye);return isNaN(st)&&Object(n.a)(!1),st},p=function(){return{x:window.pageXOffset,y:window.pageYOffset}},g=function(te,ye){var Ge=te.borderBox,st=te.border,Ft=te.margin,zt=te.padding,Yt=a(Ge,ye);return u({borderBox:Yt,border:st,margin:Ft,padding:zt})},v=function(te,ye){return ye===void 0&&(ye=p()),g(te,ye)},y=function(te,ye){var Ge={top:h(ye.marginTop),right:h(ye.marginRight),bottom:h(ye.marginBottom),left:h(ye.marginLeft)},st={top:h(ye.paddingTop),right:h(ye.paddingRight),bottom:h(ye.paddingBottom),left:h(ye.paddingLeft)},Ft={top:h(ye.borderTopWidth),right:h(ye.borderRightWidth),bottom:h(ye.borderBottomWidth),left:h(ye.borderLeftWidth)};return u({borderBox:te,margin:Ge,padding:st,border:Ft})},x=function(te){var ye=te.getBoundingClientRect(),Ge=window.getComputedStyle(te);return y(ye,Ge)},T=Number.isNaN||function(te){return typeof te=="number"&&te!==te};function S(Me,te){return Me===te?!0:!!(T(Me)&&T(te))}function b(Me,te){if(Me.length!==te.length)return!1;for(var ye=0;ye<Me.length;ye++)if(!S(Me[ye],te[ye]))return!1;return!0}function _(Me,te){te===void 0&&(te=b);var ye,Ge=[],st,Ft=!1;function zt(){for(var Yt=[],Nr=0;Nr<arguments.length;Nr++)Yt[Nr]=arguments[Nr];return Ft&&ye===this&&te(Yt,Ge)||(st=Me.apply(this,Yt),Ft=!0,ye=this,Ge=Yt),st}return zt}var I=_,L=function(te){var ye=[],Ge=null,st=function(){for(var zt=arguments.length,Yt=new Array(zt),Nr=0;Nr<zt;Nr++)Yt[Nr]=arguments[Nr];if(ye=Yt,Ge)return;Ge=requestAnimationFrame(function(){Ge=null,te.apply(void 0,ye)})};return st.cancel=function(){if(!Ge)return;cancelAnimationFrame(Ge),Ge=null},st},N=L,D=d("i8i4"),R=d.n(D),P=!0,M=/[ \t]{2,}/g,U=/^[ \t]*/gm,F=function(te){return te.replace(M," ").replace(U,"").trim()},j=function(te){return F(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+F(te)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},W=function(te){return[j(te),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},V="__react-beautiful-dnd-disable-dev-warnings";function z(Me,te){var ye;if(P)return;if(typeof window!="undefined"&&window[V])return;(ye=console)[Me].apply(ye,W(te))}var Y=z.bind(null,"warn"),$=z.bind(null,"error");function ue(){}function ne(Me,te){return Object(A.a)({},Me,{},te)}function ge(Me,te,ye){var Ge=te.map(function(st){var Ft=ne(ye,st.options);return Me.addEventListener(st.eventName,st.fn,Ft),function(){Me.removeEventListener(st.eventName,st.fn,Ft)}});return function(){Ge.forEach(function(Ft){Ft()})}}var Oe=!0,De="Invariant failed";function He(Me){this.message=Me}He.prototype.toString=function(){return this.message};function pe(Me,te){if(Me)return;throw Oe?new He(De):new He(De+": "+(te||""))}var Ue=function(Me){Object(C.a)(te,Me);function te(){for(var Ge,st=arguments.length,Ft=new Array(st),zt=0;zt<st;zt++)Ft[zt]=arguments[zt];return Ge=Me.call.apply(Me,[this].concat(Ft))||this,Ge.callbacks=null,Ge.unbind=ue,Ge.onWindowError=function(Yt){var Nr=Ge.getCallbacks();Nr.isDragging()&&Nr.tryAbort();var Qr=Yt.error;Qr instanceof He&&Yt.preventDefault()},Ge.getCallbacks=function(){if(!Ge.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Ge.callbacks},Ge.setCallbacks=function(Yt){Ge.callbacks=Yt},Ge}var ye=te.prototype;return ye.componentDidMount=function(){this.unbind=ge(window,[{eventName:"error",fn:this.onWindowError}])},ye.componentWillUnmount=function(){this.unbind()},ye.componentDidCatch=function(st){if(st instanceof He){this.setState({});return}throw st},ye.render=function(){return this.props.children(this.setCallbacks)},te}(E.a.Component),oe=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,ee=function(te){return te+1},Xe=function(te){return`
|
|
|
You have lifted an item in position `+ee(te.source.index)+`
|
|
|
`},se=function(te,ye){var Ge=te.droppableId===ye.droppableId,st=ee(te.index),Ft=ee(ye.index);return Ge?`
|
|
|
You have moved the item from position `+st+`
|
|
|
to position `+Ft+`
|
|
|
`:`
|
|
|
You have moved the item from position `+st+`
|
|
|
in list `+te.droppableId+`
|
|
|
to list `+ye.droppableId+`
|
|
|
in position `+Ft+`
|
|
|
`},Q=function(te,ye,Ge){var st=ye.droppableId===Ge.droppableId;return st?`
|
|
|
The item `+te+`
|
|
|
has been combined with `+Ge.draggableId:`
|
|
|
The item `+te+`
|
|
|
in list `+ye.droppableId+`
|
|
|
has been combined with `+Ge.draggableId+`
|
|
|
in list `+Ge.droppableId+`
|
|
|
`},G=function(te){var ye=te.destination;if(ye)return se(te.source,ye);var Ge=te.combine;return Ge?Q(te.draggableId,te.source,Ge):"You are over an area that cannot be dropped on"},J=function(te){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+ee(te.index)+`
|
|
|
`},ve=function(te){if(te.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+J(te.source)+`
|
|
|
`;var ye=te.destination,Ge=te.combine;return ye?`
|
|
|
You have dropped the item.
|
|
|
`+se(te.source,ye)+`
|
|
|
`:Ge?`
|
|
|
You have dropped the item.
|
|
|
`+Q(te.draggableId,te.source,Ge)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+J(te.source)+`
|
|
|
`},de={dragHandleUsageInstructions:oe,onDragStart:Xe,onDragUpdate:G,onDragEnd:ve},Ce={x:0,y:0},Ee=function(te,ye){return{x:te.x+ye.x,y:te.y+ye.y}},le=function(te,ye){return{x:te.x-ye.x,y:te.y-ye.y}},fe=function(te,ye){return te.x===ye.x&&te.y===ye.y},xe=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},Qe=function(te,ye,Ge){var st;return Ge===void 0&&(Ge=0),st={},st[te]=ye,st[te==="x"?"y":"x"]=Ge,st},ot=function(te,ye){return Math.sqrt(Math.pow(ye.x-te.x,2)+Math.pow(ye.y-te.y,2))},Je=function(te,ye){return Math.min.apply(Math,ye.map(function(Ge){return ot(te,Ge)}))},Te=function(te){return function(ye){return{x:te(ye.x),y:te(ye.y)}}},et=function(te,ye){var Ge=e({top:Math.max(ye.top,te.top),right:Math.min(ye.right,te.right),bottom:Math.min(ye.bottom,te.bottom),left:Math.max(ye.left,te.left)});return Ge.width<=0||Ge.height<=0?null:Ge},ze=function(te,ye){return{top:te.top+ye.y,left:te.left+ye.x,bottom:te.bottom+ye.y,right:te.right+ye.x}},nt=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},Ot={top:0,right:0,bottom:0,left:0},Ct=function(te,ye){return ye?ze(te,ye.scroll.diff.displacement):te},Tt=function(te,ye,Ge){if(Ge&&Ge.increasedBy){var st;return Object(A.a)({},te,(st={},st[ye.end]=te[ye.end]+Ge.increasedBy[ye.line],st))}return te},Dt=function(te,ye){return ye&&ye.shouldClipSubject?et(ye.pageMarginBox,te):e(te)},Be=function(te){var ye=te.page,Ge=te.withPlaceholder,st=te.axis,Ft=te.frame,zt=Ct(ye.marginBox,Ft),Yt=Tt(zt,st,Ge),Nr=Dt(Yt,Ft);return{page:ye,withPlaceholder:Ge,active:Nr}},ie=function(te,ye){te.frame||pe(!1);var Ge=te.frame,st=le(ye,Ge.scroll.initial),Ft=xe(st),zt=Object(A.a)({},Ge,{scroll:{initial:Ge.scroll.initial,current:ye,diff:{value:st,displacement:Ft},max:Ge.scroll.max}}),Yt=Be({page:te.subject.page,withPlaceholder:te.subject.withPlaceholder,axis:te.axis,frame:zt}),Nr=Object(A.a)({},te,{frame:zt,subject:Yt});return Nr};function X(Me){return Number.isInteger?Number.isInteger(Me):typeof Me=="number"&&isFinite(Me)&&Math.floor(Me)===Me}function Fe(Me){return Object.values?Object.values(Me):Object.keys(Me).map(function(te){return Me[te]})}function Ne(Me,te){if(Me.findIndex)return Me.findIndex(te);for(var ye=0;ye<Me.length;ye++)if(te(Me[ye]))return ye;return-1}function q(Me,te){if(Me.find)return Me.find(te);var ye=Ne(Me,te);return ye!==-1?Me[ye]:void 0}function ht(Me){return Array.prototype.slice.call(Me)}var Rt=I(function(Me){return Me.reduce(function(te,ye){return te[ye.descriptor.id]=ye,te},{})}),ut=I(function(Me){return Me.reduce(function(te,ye){return te[ye.descriptor.id]=ye,te},{})}),Xt=I(function(Me){return Fe(Me)}),or=I(function(Me){return Fe(Me)}),Zr=I(function(Me,te){var ye=or(te).filter(function(Ge){return Me===Ge.descriptor.droppableId}).sort(function(Ge,st){return Ge.descriptor.index-st.descriptor.index});return ye});function ar(Me){return Me.at&&Me.at.type==="REORDER"?Me.at.destination:null}function dr(Me){return Me.at&&Me.at.type==="COMBINE"?Me.at.combine:null}var er=I(function(Me,te){return te.filter(function(ye){return ye.descriptor.id!==Me.descriptor.id})}),Ht=function(te){var ye=te.isMovingForward,Ge=te.draggable,st=te.destination,Ft=te.insideDestination,zt=te.previousImpact;if(!st.isCombineEnabled)return null;var Yt=ar(zt);if(!Yt)return null;function Nr(hi){var ji={type:"COMBINE",combine:{draggableId:hi,droppableId:st.descriptor.id}};return Object(A.a)({},zt,{at:ji})}var Qr=zt.displaced.all,Cr=Qr.length?Qr[0]:null;if(ye)return Cr?Nr(Cr):null;var Er=er(Ge,Ft);if(!Cr){if(!Er.length)return null;var Kr=Er[Er.length-1];return Nr(Kr.descriptor.id)}var qr=Ne(Er,function(hi){return hi.descriptor.id===Cr});qr!==-1||pe(!1);var Cn=qr-1;if(Cn<0)return null;var oi=Er[Cn];return Nr(oi.descriptor.id)},dt=function(te,ye){return te.descriptor.droppableId===ye.descriptor.id},Hr={point:Ce,value:0},dn={invisible:{},visible:{},all:[]},Nn={displaced:dn,displacedBy:Hr,at:null},Vn=function(te,ye){return function(Ge){return te<=Ge&&Ge<=ye}},gi=function(te){var ye=Vn(te.top,te.bottom),Ge=Vn(te.left,te.right);return function(st){var Ft=ye(st.top)&&ye(st.bottom)&&Ge(st.left)&&Ge(st.right);if(Ft)return!0;var zt=ye(st.top)||ye(st.bottom),Yt=Ge(st.left)||Ge(st.right),Nr=zt&&Yt;if(Nr)return!0;var Qr=st.top<te.top&&st.bottom>te.bottom,Cr=st.left<te.left&&st.right>te.right,Er=Qr&&Cr;if(Er)return!0;var Kr=Qr&&Yt||Cr&&zt;return Kr}},bn=function(te){var ye=Vn(te.top,te.bottom),Ge=Vn(te.left,te.right);return function(st){var Ft=ye(st.top)&&ye(st.bottom)&&Ge(st.left)&&Ge(st.right);return Ft}},Mn={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"},St=function(te){return function(ye){var Ge=Vn(ye.top,ye.bottom),st=Vn(ye.left,ye.right);return function(Ft){return te===Mn?Ge(Ft.top)&&Ge(Ft.bottom):st(Ft.left)&&st(Ft.right)}}},Ie=function(te,ye){var Ge=ye.frame?ye.frame.scroll.diff.displacement:Ce;return ze(te,Ge)},_e=function(te,ye,Ge){return ye.subject.active?Ge(ye.subject.active)(te):!1},Le=function(te,ye,Ge){return Ge(ye)(te)},Ze=function(te){var ye=te.target,Ge=te.destination,st=te.viewport,Ft=te.withDroppableDisplacement,zt=te.isVisibleThroughFrameFn,Yt=Ft?Ie(ye,Ge):ye;return _e(Yt,Ge,zt)&&Le(Yt,st,zt)},it=function(te){return Ze(Object(A.a)({},te,{isVisibleThroughFrameFn:gi}))},ft=function(te){return Ze(Object(A.a)({},te,{isVisibleThroughFrameFn:bn}))},Nt=function(te){return Ze(Object(A.a)({},te,{isVisibleThroughFrameFn:St(te.destination.axis)}))},Ar=function(te,ye,Ge){if(typeof Ge=="boolean")return Ge;if(!ye)return!0;var st=ye.invisible,Ft=ye.visible;if(st[te])return!1;var zt=Ft[te];return zt?zt.shouldAnimate:!0};function Mr(Me,te){var ye=Me.page.marginBox,Ge={top:te.point.y,right:0,bottom:0,left:te.point.x};return e(s(ye,Ge))}function un(Me){var te=Me.afterDragging,ye=Me.destination,Ge=Me.displacedBy,st=Me.viewport,Ft=Me.forceShouldAnimate,zt=Me.last;return te.reduce(function(Nr,Qr){var Cr=Mr(Qr,Ge),Er=Qr.descriptor.id;Nr.all.push(Er);var Kr=it({target:Cr,destination:ye,viewport:st,withDroppableDisplacement:!0});if(!Kr)return Nr.invisible[Qr.descriptor.id]=!0,Nr;var qr=Ar(Er,zt,Ft),Cn={draggableId:Er,shouldAnimate:qr};return Nr.visible[Er]=Cn,Nr},{all:[],visible:{},invisible:{}})}function Mt(Me,te){if(!Me.length)return 0;var ye=Me[Me.length-1].descriptor.index;return te.inHomeList?ye:ye+1}function at(Me){var te=Me.insideDestination,ye=Me.inHomeList,Ge=Me.displacedBy,st=Me.destination,Ft=Mt(te,{inHomeList:ye});return{displaced:dn,displacedBy:Ge,at:{type:"REORDER",destination:{droppableId:st.descriptor.id,index:Ft}}}}function lt(Me){var te=Me.draggable,ye=Me.insideDestination,Ge=Me.destination,st=Me.viewport,Ft=Me.displacedBy,zt=Me.last,Yt=Me.index,Nr=Me.forceShouldAnimate,Qr=dt(te,Ge);if(Yt==null)return at({insideDestination:ye,inHomeList:Qr,displacedBy:Ft,destination:Ge});var Cr=q(ye,function(oi){return oi.descriptor.index===Yt});if(!Cr)return at({insideDestination:ye,inHomeList:Qr,displacedBy:Ft,destination:Ge});var Er=er(te,ye),Kr=ye.indexOf(Cr),qr=Er.slice(Kr),Cn=un({afterDragging:qr,destination:Ge,displacedBy:Ft,last:zt,viewport:st.frame,forceShouldAnimate:Nr});return{displaced:Cn,displacedBy:Ft,at:{type:"REORDER",destination:{droppableId:Ge.descriptor.id,index:Yt}}}}function rr(Me,te){return Boolean(te.effected[Me])}var Bt=function(te){var ye=te.isMovingForward,Ge=te.destination,st=te.draggables,Ft=te.combine,zt=te.afterCritical;if(!Ge.isCombineEnabled)return null;var Yt=Ft.draggableId,Nr=st[Yt],Qr=Nr.descriptor.index,Cr=rr(Yt,zt);return Cr?ye?Qr:Qr-1:ye?Qr+1:Qr},_t=function(te){var ye=te.isMovingForward,Ge=te.isInHomeList,st=te.insideDestination,Ft=te.location;if(!st.length)return null;var zt=Ft.index,Yt=ye?zt+1:zt-1,Nr=st[0].descriptor.index,Qr=st[st.length-1].descriptor.index,Cr=Ge?Qr:Qr+1;return Yt<Nr||Yt>Cr?null:Yt},Kt=function(te){var ye=te.isMovingForward,Ge=te.isInHomeList,st=te.draggable,Ft=te.draggables,zt=te.destination,Yt=te.insideDestination,Nr=te.previousImpact,Qr=te.viewport,Cr=te.afterCritical,Er=Nr.at;if(Er||pe(!1),Er.type==="REORDER"){var Kr=_t({isMovingForward:ye,isInHomeList:Ge,location:Er.destination,insideDestination:Yt});return Kr==null?null:lt({draggable:st,insideDestination:Yt,destination:zt,viewport:Qr,last:Nr.displaced,displacedBy:Nr.displacedBy,index:Kr})}var qr=Bt({isMovingForward:ye,destination:zt,displaced:Nr.displaced,draggables:Ft,combine:Er.combine,afterCritical:Cr});return qr==null?null:lt({draggable:st,insideDestination:Yt,destination:zt,viewport:Qr,last:Nr.displaced,displacedBy:Nr.displacedBy,index:qr})},wt=function(te){var ye=te.displaced,Ge=te.afterCritical,st=te.combineWith,Ft=te.displacedBy,zt=Boolean(ye.visible[st]||ye.invisible[st]);return rr(st,Ge)?zt?Ce:xe(Ft.point):zt?Ft.point:Ce},Ut=function(te){var ye=te.afterCritical,Ge=te.impact,st=te.draggables,Ft=dr(Ge);Ft||pe(!1);var zt=Ft.draggableId,Yt=st[zt].page.borderBox.center,Nr=wt({displaced:Ge.displaced,afterCritical:ye,combineWith:zt,displacedBy:Ge.displacedBy});return Ee(Yt,Nr)},Sr=function(te,ye){return ye.margin[te.start]+ye.borderBox[te.size]/2},hr=function(te,ye){return ye.margin[te.end]+ye.borderBox[te.size]/2},gr=function(te,ye,Ge){return ye[te.crossAxisStart]+Ge.margin[te.crossAxisStart]+Ge.borderBox[te.crossAxisSize]/2},Jr=function(te){var ye=te.axis,Ge=te.moveRelativeTo,st=te.isMoving;return Qe(ye.line,Ge.marginBox[ye.end]+Sr(ye,st),gr(ye,Ge.marginBox,st))},$r=function(te){var ye=te.axis,Ge=te.moveRelativeTo,st=te.isMoving;return Qe(ye.line,Ge.marginBox[ye.start]-hr(ye,st),gr(ye,Ge.marginBox,st))},Pn=function(te){var ye=te.axis,Ge=te.moveInto,st=te.isMoving;return Qe(ye.line,Ge.contentBox[ye.start]+Sr(ye,st),gr(ye,Ge.contentBox,st))},Dn=function(te){var ye=te.impact,Ge=te.draggable,st=te.draggables,Ft=te.droppable,zt=te.afterCritical,Yt=Zr(Ft.descriptor.id,st),Nr=Ge.page,Qr=Ft.axis;if(!Yt.length)return Pn({axis:Qr,moveInto:Ft.page,isMoving:Nr});var Cr=ye.displaced,Er=ye.displacedBy,Kr=Cr.all[0];if(Kr){var qr=st[Kr];if(rr(Kr,zt))return $r({axis:Qr,moveRelativeTo:qr.page,isMoving:Nr});var Cn=g(qr.page,Er.point);return $r({axis:Qr,moveRelativeTo:Cn,isMoving:Nr})}var oi=Yt[Yt.length-1];if(oi.descriptor.id===Ge.descriptor.id)return Nr.borderBox.center;if(rr(oi.descriptor.id,zt)){var hi=g(oi.page,xe(zt.displacedBy.point));return Jr({axis:Qr,moveRelativeTo:hi,isMoving:Nr})}return Jr({axis:Qr,moveRelativeTo:oi.page,isMoving:Nr})},Zn=function(te,ye){var Ge=te.frame;return Ge?Ee(ye,Ge.scroll.diff.displacement):ye},li=function(te){var ye=te.impact,Ge=te.draggable,st=te.droppable,Ft=te.draggables,zt=te.afterCritical,Yt=Ge.page.borderBox.center,Nr=ye.at;return st&&Nr?Nr.type==="REORDER"?Dn({impact:ye,draggable:Ge,draggables:Ft,droppable:st,afterCritical:zt}):Ut({impact:ye,draggables:Ft,afterCritical:zt}):Yt},Ai=function(te){var ye=li(te),Ge=te.droppable,st=Ge?Zn(Ge,ye):ye;return st},Ii=function(te,ye){var Ge=le(ye,te.scroll.initial),st=xe(Ge),Ft=e({top:ye.y,bottom:ye.y+te.frame.height,left:ye.x,right:ye.x+te.frame.width}),zt={frame:Ft,scroll:{initial:te.scroll.initial,max:te.scroll.max,current:ye,diff:{value:Ge,displacement:st}}};return zt};function $e(Me,te){return Me.map(function(ye){return te[ye]})}function Se(Me,te){for(var ye=0;ye<te.length;ye++){var Ge=te[ye].visible[Me];if(Ge)return Ge}return null}var Re=function(te){var ye=te.impact,Ge=te.viewport,st=te.destination,Ft=te.draggables,zt=te.maxScrollChange,Yt=Ii(Ge,Ee(Ge.scroll.current,zt)),Nr=st.frame?ie(st,Ee(st.frame.scroll.current,zt)):st,Qr=ye.displaced,Cr=un({afterDragging:$e(Qr.all,Ft),destination:st,displacedBy:ye.displacedBy,viewport:Yt.frame,last:Qr,forceShouldAnimate:!1}),Er=un({afterDragging:$e(Qr.all,Ft),destination:Nr,displacedBy:ye.displacedBy,viewport:Ge.frame,last:Qr,forceShouldAnimate:!1}),Kr={},qr={},Cn=[Qr,Cr,Er];Qr.all.forEach(function(hi){var ji=Se(hi,Cn);if(ji){qr[hi]=ji;return}Kr[hi]=!0});var oi=Object(A.a)({},ye,{displaced:{all:Qr.all,invisible:Kr,visible:qr}});return oi},je=function(te,ye){return Ee(te.scroll.diff.displacement,ye)},Ye=function(te){var ye=te.pageBorderBoxCenter,Ge=te.draggable,st=te.viewport,Ft=je(st,ye),zt=le(Ft,Ge.page.borderBox.center);return Ee(Ge.client.borderBox.center,zt)},Ve=function(te){var ye=te.draggable,Ge=te.destination,st=te.newPageBorderBoxCenter,Ft=te.viewport,zt=te.withDroppableDisplacement,Yt=te.onlyOnMainAxis,Nr=Yt===void 0?!1:Yt,Qr=le(st,ye.page.borderBox.center),Cr=ze(ye.page.borderBox,Qr),Er={target:Cr,destination:Ge,withDroppableDisplacement:zt,viewport:Ft};return Nr?Nt(Er):ft(Er)},qe=function(te){var ye=te.isMovingForward,Ge=te.draggable,st=te.destination,Ft=te.draggables,zt=te.previousImpact,Yt=te.viewport,Nr=te.previousPageBorderBoxCenter,Qr=te.previousClientSelection,Cr=te.afterCritical;if(!st.isEnabled)return null;var Er=Zr(st.descriptor.id,Ft),Kr=dt(Ge,st),qr=Ht({isMovingForward:ye,draggable:Ge,destination:st,insideDestination:Er,previousImpact:zt})||Kt({isMovingForward:ye,isInHomeList:Kr,draggable:Ge,draggables:Ft,destination:st,insideDestination:Er,previousImpact:zt,viewport:Yt,afterCritical:Cr});if(!qr)return null;var Cn=Ai({impact:qr,draggable:Ge,droppable:st,draggables:Ft,afterCritical:Cr}),oi=Ve({draggable:Ge,destination:st,newPageBorderBoxCenter:Cn,viewport:Yt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(oi){var hi=Ye({pageBorderBoxCenter:Cn,draggable:Ge,viewport:Yt});return{clientSelection:hi,impact:qr,scrollJumpRequest:null}}var ji=le(Cn,Nr),Oi=Re({impact:qr,viewport:Yt,destination:st,draggables:Ft,maxScrollChange:ji});return{clientSelection:Qr,impact:Oi,scrollJumpRequest:ji}},xt=function(te){var ye=te.subject.active;return ye||pe(!1),ye},ct=function(te){var ye=te.isMovingForward,Ge=te.pageBorderBoxCenter,st=te.source,Ft=te.droppables,zt=te.viewport,Yt=st.subject.active;if(!Yt)return null;var Nr=st.axis,Qr=Vn(Yt[Nr.start],Yt[Nr.end]),Cr=Xt(Ft).filter(function(Kr){return Kr!==st}).filter(function(Kr){return Kr.isEnabled}).filter(function(Kr){return Boolean(Kr.subject.active)}).filter(function(Kr){return gi(zt.frame)(xt(Kr))}).filter(function(Kr){var qr=xt(Kr);return ye?Yt[Nr.crossAxisEnd]<qr[Nr.crossAxisEnd]:qr[Nr.crossAxisStart]<Yt[Nr.crossAxisStart]}).filter(function(Kr){var qr=xt(Kr),Cn=Vn(qr[Nr.start],qr[Nr.end]);return Qr(qr[Nr.start])||Qr(qr[Nr.end])||Cn(Yt[Nr.start])||Cn(Yt[Nr.end])}).sort(function(Kr,qr){var Cn=xt(Kr)[Nr.crossAxisStart],oi=xt(qr)[Nr.crossAxisStart];return ye?Cn-oi:oi-Cn}).filter(function(Kr,qr,Cn){return xt(Kr)[Nr.crossAxisStart]===xt(Cn[0])[Nr.crossAxisStart]});if(!Cr.length)return null;if(Cr.length===1)return Cr[0];var Er=Cr.filter(function(Kr){var qr=Vn(xt(Kr)[Nr.start],xt(Kr)[Nr.end]);return qr(Ge[Nr.line])});return Er.length===1?Er[0]:Er.length>1?Er.sort(function(Kr,qr){return xt(Kr)[Nr.start]-xt(qr)[Nr.start]})[0]:Cr.sort(function(Kr,qr){var Cn=Je(Ge,nt(xt(Kr))),oi=Je(Ge,nt(xt(qr)));return Cn!==oi?Cn-oi:xt(Kr)[Nr.start]-xt(qr)[Nr.start]})[0]},Jt=function(te,ye){var Ge=te.page.borderBox.center;return rr(te.descriptor.id,ye)?le(Ge,ye.displacedBy.point):Ge},Rr=function(te,ye){var Ge=te.page.borderBox;return rr(te.descriptor.id,ye)?ze(Ge,xe(ye.displacedBy.point)):Ge},Ir=function(te){var ye=te.pageBorderBoxCenter,Ge=te.viewport,st=te.destination,Ft=te.insideDestination,zt=te.afterCritical,Yt=Ft.filter(function(Nr){return ft({target:Rr(Nr,zt),destination:st,viewport:Ge.frame,withDroppableDisplacement:!0})}).sort(function(Nr,Qr){var Cr=ot(ye,Zn(st,Jt(Nr,zt))),Er=ot(ye,Zn(st,Jt(Qr,zt)));return Cr<Er?-1:Er<Cr?1:Nr.descriptor.index-Qr.descriptor.index});return Yt[0]||null},Xr=I(function(te,ye){var Ge=ye[te.line];return{value:Ge,point:Qe(te.line,Ge)}}),qt=function(te,ye,Ge){var st=te.axis;if(te.descriptor.mode==="virtual")return Qe(st.line,ye[st.line]);var Ft=te.subject.page.contentBox[st.size],zt=Zr(te.descriptor.id,Ge),Yt=zt.reduce(function(Cr,Er){return Cr+Er.client.marginBox[st.size]},0),Nr=Yt+ye[st.line],Qr=Nr-Ft;return Qr<=0?null:Qe(st.line,Qr)},pn=function(te,ye){return Object(A.a)({},te,{scroll:Object(A.a)({},te.scroll,{max:ye})})},fr=function(te,ye,Ge){var st=te.frame;dt(ye,te)&&pe(!1),te.subject.withPlaceholder&&pe(!1);var Ft=Xr(te.axis,ye.displaceBy).point,zt=qt(te,Ft,Ge),Yt={placeholderSize:Ft,increasedBy:zt,oldFrameMaxScroll:te.frame?te.frame.scroll.max:null};if(!st){var Nr=Be({page:te.subject.page,withPlaceholder:Yt,axis:te.axis,frame:te.frame});return Object(A.a)({},te,{subject:Nr})}var Qr=zt?Ee(st.scroll.max,zt):st.scroll.max,Cr=pn(st,Qr),Er=Be({page:te.subject.page,withPlaceholder:Yt,axis:te.axis,frame:Cr});return Object(A.a)({},te,{subject:Er,frame:Cr})},mn=function(te){var ye=te.subject.withPlaceholder;ye||pe(!1);var Ge=te.frame;if(!Ge){var st=Be({page:te.subject.page,axis:te.axis,frame:null,withPlaceholder:null});return Object(A.a)({},te,{subject:st})}var Ft=ye.oldFrameMaxScroll;Ft||pe(!1);var zt=pn(Ge,Ft),Yt=Be({page:te.subject.page,axis:te.axis,frame:zt,withPlaceholder:null});return Object(A.a)({},te,{subject:Yt,frame:zt})},en=function(te){var ye=te.previousPageBorderBoxCenter,Ge=te.moveRelativeTo,st=te.insideDestination,Ft=te.draggable,zt=te.draggables,Yt=te.destination,Nr=te.viewport,Qr=te.afterCritical;if(!Ge){if(st.length)return null;var Cr={displaced:dn,displacedBy:Hr,at:{type:"REORDER",destination:{droppableId:Yt.descriptor.id,index:0}}},Er=Ai({impact:Cr,draggable:Ft,droppable:Yt,draggables:zt,afterCritical:Qr}),Kr=dt(Ft,Yt)?Yt:fr(Yt,Ft,zt),qr=Ve({draggable:Ft,destination:Kr,newPageBorderBoxCenter:Er,viewport:Nr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return qr?Cr:null}var Cn=Boolean(ye[Yt.axis.line]<=Ge.page.borderBox.center[Yt.axis.line]),oi=function(){var ji=Ge.descriptor.index;return Ge.descriptor.id===Ft.descriptor.id||Cn?ji:ji+1}(),hi=Xr(Yt.axis,Ft.displaceBy);return lt({draggable:Ft,insideDestination:st,destination:Yt,viewport:Nr,displacedBy:hi,last:dn,index:oi})},kr=function(te){var ye=te.isMovingForward,Ge=te.previousPageBorderBoxCenter,st=te.draggable,Ft=te.isOver,zt=te.draggables,Yt=te.droppables,Nr=te.viewport,Qr=te.afterCritical,Cr=ct({isMovingForward:ye,pageBorderBoxCenter:Ge,source:Ft,droppables:Yt,viewport:Nr});if(!Cr)return null;var Er=Zr(Cr.descriptor.id,zt),Kr=Ir({pageBorderBoxCenter:Ge,viewport:Nr,destination:Cr,insideDestination:Er,afterCritical:Qr}),qr=en({previousPageBorderBoxCenter:Ge,destination:Cr,draggable:st,draggables:zt,moveRelativeTo:Kr,insideDestination:Er,viewport:Nr,afterCritical:Qr});if(!qr)return null;var Cn=Ai({impact:qr,draggable:st,droppable:Cr,draggables:zt,afterCritical:Qr}),oi=Ye({pageBorderBoxCenter:Cn,draggable:st,viewport:Nr});return{clientSelection:oi,impact:qr,scrollJumpRequest:null}},Gn=function(te){var ye=te.at;return ye?ye.type==="REORDER"?ye.destination.droppableId:ye.combine.droppableId:null},di=function(te,ye){var Ge=Gn(te);return Ge?ye[Ge]:null},_i=function(te){var ye=te.state,Ge=te.type,st=di(ye.impact,ye.dimensions.droppables),Ft=Boolean(st),zt=ye.dimensions.droppables[ye.critical.droppable.id],Yt=st||zt,Nr=Yt.axis.direction,Qr=Nr==="vertical"&&(Ge==="MOVE_UP"||Ge==="MOVE_DOWN")||Nr==="horizontal"&&(Ge==="MOVE_LEFT"||Ge==="MOVE_RIGHT");if(Qr&&!Ft)return null;var Cr=Ge==="MOVE_DOWN"||Ge==="MOVE_RIGHT",Er=ye.dimensions.draggables[ye.critical.draggable.id],Kr=ye.current.page.borderBoxCenter,qr=ye.dimensions,Cn=qr.draggables,oi=qr.droppables;return Qr?qe({isMovingForward:Cr,previousPageBorderBoxCenter:Kr,draggable:Er,destination:Yt,draggables:Cn,viewport:ye.viewport,previousClientSelection:ye.current.client.selection,previousImpact:ye.impact,afterCritical:ye.afterCritical}):kr({isMovingForward:Cr,previousPageBorderBoxCenter:Kr,draggable:Er,isOver:Yt,draggables:Cn,droppables:oi,viewport:ye.viewport,afterCritical:ye.afterCritical})};function Br(Me){return Me.phase==="DRAGGING"||Me.phase==="COLLECTING"}function sn(Me){var te=Vn(Me.top,Me.bottom),ye=Vn(Me.left,Me.right);return function(st){return te(st.y)&&ye(st.x)}}function Sn(Me,te){return Me.left<te.right&&Me.right>te.left&&Me.top<te.bottom&&Me.bottom>te.top}function Pt(Me){var te=Me.pageBorderBox,ye=Me.draggable,Ge=Me.candidates,st=ye.page.borderBox.center,Ft=Ge.map(function(zt){var Yt=zt.axis,Nr=Qe(zt.axis.line,te.center[Yt.line],zt.page.borderBox.center[Yt.crossAxisLine]);return{id:zt.descriptor.id,distance:ot(st,Nr)}}).sort(function(zt,Yt){return Yt.distance-zt.distance});return Ft[0]?Ft[0].id:null}function gt(Me){var te=Me.pageBorderBox,ye=Me.draggable,Ge=Me.droppables,st=Xt(Ge).filter(function(Ft){if(!Ft.isEnabled)return!1;var zt=Ft.subject.active;if(!zt)return!1;if(!Sn(te,zt))return!1;if(sn(zt)(te.center))return!0;var Yt=Ft.axis,Nr=zt.center[Yt.crossAxisLine],Qr=te[Yt.crossAxisStart],Cr=te[Yt.crossAxisEnd],Er=Vn(zt[Yt.crossAxisStart],zt[Yt.crossAxisEnd]),Kr=Er(Qr),qr=Er(Cr);return!Kr&&!qr?!0:Kr?Qr<Nr:Cr>Nr});return st.length?st.length===1?st[0].descriptor.id:Pt({pageBorderBox:te,draggable:ye,candidates:st}):null}var Et=function(te,ye){return e(ze(te,ye))},Lt=function(te,ye){var Ge=te.frame;return Ge?Et(ye,Ge.scroll.diff.value):ye};function kt(Me){var te=Me.displaced,ye=Me.id;return Boolean(te.visible[ye]||te.invisible[ye])}function yt(Me){var te=Me.draggable,ye=Me.closest,Ge=Me.inHomeList;return ye?Ge&&ye.descriptor.index>te.descriptor.index?ye.descriptor.index-1:ye.descriptor.index:null}var Qt=function(te){var ye=te.pageBorderBoxWithDroppableScroll,Ge=te.draggable,st=te.destination,Ft=te.insideDestination,zt=te.last,Yt=te.viewport,Nr=te.afterCritical,Qr=st.axis,Cr=Xr(st.axis,Ge.displaceBy),Er=Cr.value,Kr=ye[Qr.start],qr=ye[Qr.end],Cn=er(Ge,Ft),oi=q(Cn,function(ji){var Oi=ji.descriptor.id,wa=ji.page.borderBox.center[Qr.line],Qi=rr(Oi,Nr),Ua=kt({displaced:zt,id:Oi});return Qi?Ua?qr<=wa:Kr<wa-Er:Ua?qr<=wa+Er:Kr<wa}),hi=yt({draggable:Ge,closest:oi,inHomeList:dt(Ge,st)});return lt({draggable:Ge,insideDestination:Ft,destination:st,viewport:Yt,last:zt,displacedBy:Cr,index:hi})},tr=4,ir=function(te){var ye=te.draggable,Ge=te.pageBorderBoxWithDroppableScroll,st=te.previousImpact,Ft=te.destination,zt=te.insideDestination,Yt=te.afterCritical;if(!Ft.isCombineEnabled)return null;var Nr=Ft.axis,Qr=Xr(Ft.axis,ye.displaceBy),Cr=Qr.value,Er=Ge[Nr.start],Kr=Ge[Nr.end],qr=er(ye,zt),Cn=q(qr,function(hi){var ji=hi.descriptor.id,Oi=hi.page.borderBox,wa=Oi[Nr.size],Qi=wa/tr,Ua=rr(ji,Yt),Sa=kt({displaced:st.displaced,id:ji});return Ua?Sa?Kr>Oi[Nr.start]+Qi&&Kr<Oi[Nr.end]-Qi:Er>Oi[Nr.start]-Cr+Qi&&Er<Oi[Nr.end]-Cr-Qi:Sa?Kr>Oi[Nr.start]+Cr+Qi&&Kr<Oi[Nr.end]+Cr-Qi:Er>Oi[Nr.start]+Qi&&Er<Oi[Nr.end]-Qi});if(!Cn)return null;var oi={displacedBy:Qr,displaced:st.displaced,at:{type:"COMBINE",combine:{draggableId:Cn.descriptor.id,droppableId:Ft.descriptor.id}}};return oi},yr=function(te){var ye=te.pageOffset,Ge=te.draggable,st=te.draggables,Ft=te.droppables,zt=te.previousImpact,Yt=te.viewport,Nr=te.afterCritical,Qr=Et(Ge.page.borderBox,ye),Cr=gt({pageBorderBox:Qr,draggable:Ge,droppables:Ft});if(!Cr)return Nn;var Er=Ft[Cr],Kr=Zr(Er.descriptor.id,st),qr=Lt(Er,Qr);return ir({pageBorderBoxWithDroppableScroll:qr,draggable:Ge,previousImpact:zt,destination:Er,insideDestination:Kr,afterCritical:Nr})||Qt({pageBorderBoxWithDroppableScroll:qr,draggable:Ge,destination:Er,insideDestination:Kr,last:zt.displaced,viewport:Yt,afterCritical:Nr})},xn=function(te,ye){var Ge;return Object(A.a)({},te,(Ge={},Ge[ye.descriptor.id]=ye,Ge))},vn=function(te){var ye=te.previousImpact,Ge=te.impact,st=te.droppables,Ft=Gn(ye),zt=Gn(Ge);if(!Ft)return st;if(Ft===zt)return st;var Yt=st[Ft];if(!Yt.subject.withPlaceholder)return st;var Nr=mn(Yt);return xn(st,Nr)},Wn=function(te){var ye=te.draggable,Ge=te.draggables,st=te.droppables,Ft=te.previousImpact,zt=te.impact,Yt=vn({previousImpact:Ft,impact:zt,droppables:st}),Nr=Gn(zt);if(!Nr)return Yt;var Qr=st[Nr];if(dt(ye,Qr))return Yt;if(Qr.subject.withPlaceholder)return Yt;var Cr=fr(Qr,ye,Ge);return xn(Yt,Cr)},Yr=function(te){var ye=te.state,Ge=te.clientSelection,st=te.dimensions,Ft=te.viewport,zt=te.impact,Yt=te.scrollJumpRequest,Nr=Ft||ye.viewport,Qr=st||ye.dimensions,Cr=Ge||ye.current.client.selection,Er=le(Cr,ye.initial.client.selection),Kr={offset:Er,selection:Cr,borderBoxCenter:Ee(ye.initial.client.borderBoxCenter,Er)},qr={selection:Ee(Kr.selection,Nr.scroll.current),borderBoxCenter:Ee(Kr.borderBoxCenter,Nr.scroll.current),offset:Ee(Kr.offset,Nr.scroll.diff.value)},Cn={client:Kr,page:qr};if(ye.phase==="COLLECTING")return Object(A.a)({phase:"COLLECTING"},ye,{dimensions:Qr,viewport:Nr,current:Cn});var oi=Qr.draggables[ye.critical.draggable.id],hi=zt||yr({pageOffset:qr.offset,draggable:oi,draggables:Qr.draggables,droppables:Qr.droppables,previousImpact:ye.impact,viewport:Nr,afterCritical:ye.afterCritical}),ji=Wn({draggable:oi,impact:hi,previousImpact:ye.impact,draggables:Qr.draggables,droppables:Qr.droppables}),Oi=Object(A.a)({},ye,{current:Cn,dimensions:{draggables:Qr.draggables,droppables:ji},impact:hi,viewport:Nr,scrollJumpRequest:Yt||null,forceShouldAnimate:Yt?!1:null});return Oi};function xr(Me,te){return Me.map(function(ye){return te[ye]})}var ln=function(te){var ye=te.impact,Ge=te.viewport,st=te.draggables,Ft=te.destination,zt=te.forceShouldAnimate,Yt=ye.displaced,Nr=xr(Yt.all,st),Qr=un({afterDragging:Nr,destination:Ft,displacedBy:ye.displacedBy,viewport:Ge.frame,forceShouldAnimate:zt,last:Yt});return Object(A.a)({},ye,{displaced:Qr})},On=function(te){var ye=te.impact,Ge=te.draggable,st=te.droppable,Ft=te.draggables,zt=te.viewport,Yt=te.afterCritical,Nr=Ai({impact:ye,draggable:Ge,draggables:Ft,droppable:st,afterCritical:Yt});return Ye({pageBorderBoxCenter:Nr,draggable:Ge,viewport:zt})},In=function(te){var ye=te.state,Ge=te.dimensions,st=te.viewport;ye.movementMode==="SNAP"||pe(!1);var Ft=ye.impact,zt=st||ye.viewport,Yt=Ge||ye.dimensions,Nr=Yt.draggables,Qr=Yt.droppables,Cr=Nr[ye.critical.draggable.id],Er=Gn(Ft);Er||pe(!1);var Kr=Qr[Er],qr=ln({impact:Ft,viewport:zt,destination:Kr,draggables:Nr}),Cn=On({impact:qr,draggable:Cr,droppable:Kr,draggables:Nr,viewport:zt,afterCritical:ye.afterCritical});return Yr({impact:qr,clientSelection:Cn,state:ye,dimensions:Yt,viewport:zt})},Un=function(te){return{index:te.index,droppableId:te.droppableId}},ti=function(te){var ye=te.draggable,Ge=te.home,st=te.draggables,Ft=te.viewport,zt=Xr(Ge.axis,ye.displaceBy),Yt=Zr(Ge.descriptor.id,st),Nr=Yt.indexOf(ye);Nr!==-1||pe(!1);var Qr=Yt.slice(Nr+1),Cr=Qr.reduce(function(Cn,oi){return Cn[oi.descriptor.id]=!0,Cn},{}),Er={inVirtualList:Ge.descriptor.mode==="virtual",displacedBy:zt,effected:Cr},Kr=un({afterDragging:Qr,destination:Ge,displacedBy:zt,last:null,viewport:Ft.frame,forceShouldAnimate:!1}),qr={displaced:Kr,displacedBy:zt,at:{type:"REORDER",destination:Un(ye.descriptor)}};return{impact:qr,afterCritical:Er}},ui=function(te,ye){return{draggables:te.draggables,droppables:xn(te.droppables,ye)}},si=function(te){},Pi=function(te){},zi=function(te){var ye=te.draggable,Ge=te.offset,st=te.initialWindowScroll,Ft=g(ye.client,Ge),zt=v(Ft,st),Yt=Object(A.a)({},ye,{placeholder:Object(A.a)({},ye.placeholder,{client:Ft}),client:Ft,page:zt});return Yt},Ri=function(te){var ye=te.frame;return ye||pe(!1),ye},Yi=function(te){var ye=te.additions,Ge=te.updatedDroppables,st=te.viewport,Ft=st.scroll.diff.value;return ye.map(function(zt){var Yt=zt.descriptor.droppableId,Nr=Ge[Yt],Qr=Ri(Nr),Cr=Qr.scroll.diff.value,Er=Ee(Ft,Cr),Kr=zi({draggable:zt,offset:Er,initialWindowScroll:st.scroll.initial});return Kr})},$n=function(te){var ye=te.state,Ge=te.published;si();var st=Ge.modified.map(function(Qi){var Ua=ye.dimensions.droppables[Qi.droppableId],Sa=ie(Ua,Qi.scroll);return Sa}),Ft=Object(A.a)({},ye.dimensions.droppables,{},Rt(st)),zt=ut(Yi({additions:Ge.additions,updatedDroppables:Ft,viewport:ye.viewport})),Yt=Object(A.a)({},ye.dimensions.draggables,{},zt);Ge.removals.forEach(function(Qi){delete Yt[Qi]});var Nr={droppables:Ft,draggables:Yt},Qr=Gn(ye.impact),Cr=Qr?Nr.droppables[Qr]:null,Er=Nr.draggables[ye.critical.draggable.id],Kr=Nr.droppables[ye.critical.droppable.id],qr=ti({draggable:Er,home:Kr,draggables:Yt,viewport:ye.viewport}),Cn=qr.impact,oi=qr.afterCritical,hi=Cr&&Cr.isCombineEnabled?ye.impact:Cn,ji=yr({pageOffset:ye.current.page.offset,draggable:Nr.draggables[ye.critical.draggable.id],draggables:Nr.draggables,droppables:Nr.droppables,previousImpact:hi,viewport:ye.viewport,afterCritical:oi});Pi();var Oi=Object(A.a)({phase:"DRAGGING"},ye,{phase:"DRAGGING",impact:ji,onLiftImpact:Cn,dimensions:Nr,afterCritical:oi,forceShouldAnimate:!1});if(ye.phase==="COLLECTING")return Oi;var wa=Object(A.a)({phase:"DROP_PENDING"},Oi,{phase:"DROP_PENDING",reason:ye.reason,isWaiting:!1});return wa},gn=function(te){return te.movementMode==="SNAP"},mi=function(te,ye,Ge){var st=ui(te.dimensions,ye);return!gn(te)||Ge?Yr({state:te,dimensions:st}):In({state:te,dimensions:st})};function Hi(Me){return Me.isDragging&&Me.movementMode==="SNAP"?Object(A.a)({phase:"DRAGGING"},Me,{scrollJumpRequest:null}):Me}var Li={phase:"IDLE",completed:null,shouldFlush:!1},Bi=function(te,ye){if(te===void 0&&(te=Li),ye.type==="FLUSH")return Object(A.a)({},Li,{shouldFlush:!0});if(ye.type==="INITIAL_PUBLISH"){te.phase==="IDLE"||pe(!1);var Ge=ye.payload,st=Ge.critical,Ft=Ge.clientSelection,zt=Ge.viewport,Yt=Ge.dimensions,Nr=Ge.movementMode,Qr=Yt.draggables[st.draggable.id],Cr=Yt.droppables[st.droppable.id],Er={selection:Ft,borderBoxCenter:Qr.client.borderBox.center,offset:Ce},Kr={client:Er,page:{selection:Ee(Er.selection,zt.scroll.initial),borderBoxCenter:Ee(Er.selection,zt.scroll.initial),offset:Ee(Er.selection,zt.scroll.diff.value)}},qr=Xt(Yt.droppables).every(function(Wo){return!Wo.isFixedOnPage}),Cn=ti({draggable:Qr,home:Cr,draggables:Yt.draggables,viewport:zt}),oi=Cn.impact,hi=Cn.afterCritical,ji={phase:"DRAGGING",isDragging:!0,critical:st,movementMode:Nr,dimensions:Yt,initial:Kr,current:Kr,isWindowScrollAllowed:qr,impact:oi,afterCritical:hi,onLiftImpact:oi,viewport:zt,scrollJumpRequest:null,forceShouldAnimate:null};return ji}if(ye.type==="COLLECTION_STARTING"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase==="DRAGGING"||pe(!1);var Oi=Object(A.a)({phase:"COLLECTING"},te,{phase:"COLLECTING"});return Oi}if(ye.type==="PUBLISH_WHILE_DRAGGING")return te.phase==="COLLECTING"||te.phase==="DROP_PENDING"||pe(!1),$n({state:te,published:ye.payload});if(ye.type==="MOVE"){if(te.phase==="DROP_PENDING")return te;Br(te)||pe(!1);var wa=ye.payload.client;return fe(wa,te.current.client.selection)?te:Yr({state:te,clientSelection:wa,impact:gn(te)?te.impact:null})}if(ye.type==="UPDATE_DROPPABLE_SCROLL"){if(te.phase==="DROP_PENDING")return Hi(te);if(te.phase==="COLLECTING")return Hi(te);Br(te)||pe(!1);var Qi=ye.payload,Ua=Qi.id,Sa=Qi.newScroll,So=te.dimensions.droppables[Ua];if(!So)return te;var Fo=ie(So,Sa);return mi(te,Fo,!1)}if(ye.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(te.phase==="DROP_PENDING")return te;Br(te)||pe(!1);var k=ye.payload,K=k.id,Z=k.isEnabled,re=te.dimensions.droppables[K];re||pe(!1),re.isEnabled!==Z||pe(!1);var ce=Object(A.a)({},re,{isEnabled:Z});return mi(te,ce,!0)}if(ye.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(te.phase==="DROP_PENDING")return te;Br(te)||pe(!1);var Pe=ye.payload,mt=Pe.id,Wt=Pe.isCombineEnabled,sr=te.dimensions.droppables[mt];sr||pe(!1),sr.isCombineEnabled!==Wt||pe(!1);var pr=Object(A.a)({},sr,{isCombineEnabled:Wt});return mi(te,pr,!0)}if(ye.type==="MOVE_BY_WINDOW_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="DROP_ANIMATING")return te;Br(te)||pe(!1),te.isWindowScrollAllowed||pe(!1);var wn=ye.payload.newScroll;if(fe(te.viewport.scroll.current,wn))return Hi(te);var Rn=Ii(te.viewport,wn);return gn(te)?In({state:te,viewport:Rn}):Yr({state:te,viewport:Rn})}if(ye.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Br(te))return te;var ei=ye.payload.maxScroll;if(fe(ei,te.viewport.scroll.max))return te;var ni=Object(A.a)({},te.viewport,{scroll:Object(A.a)({},te.viewport.scroll,{max:ei})});return Object(A.a)({phase:"DRAGGING"},te,{viewport:ni})}if(ye.type==="MOVE_UP"||ye.type==="MOVE_DOWN"||ye.type==="MOVE_LEFT"||ye.type==="MOVE_RIGHT"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase==="DRAGGING"||pe(!1);var Mi=_i({state:te,type:ye.type});return Mi?Yr({state:te,impact:Mi.impact,clientSelection:Mi.clientSelection,scrollJumpRequest:Mi.scrollJumpRequest}):te}if(ye.type==="DROP_PENDING"){var Zi=ye.payload.reason;te.phase==="COLLECTING"||pe(!1);var da=Object(A.a)({phase:"DROP_PENDING"},te,{phase:"DROP_PENDING",isWaiting:!0,reason:Zi});return da}if(ye.type==="DROP_ANIMATE"){var ia=ye.payload,na=ia.completed,xa=ia.dropDuration,Ma=ia.newHomeClientOffset;te.phase==="DRAGGING"||te.phase==="DROP_PENDING"||pe(!1);var To={phase:"DROP_ANIMATING",completed:na,dropDuration:xa,newHomeClientOffset:Ma,dimensions:te.dimensions};return To}if(ye.type==="DROP_COMPLETE"){var no=ye.payload.completed;return{phase:"IDLE",completed:no,shouldFlush:!1}}return te},wr=function(te){return{type:"BEFORE_INITIAL_CAPTURE",payload:te}},lr=function(te){return{type:"LIFT",payload:te}},on=function(te){return{type:"INITIAL_PUBLISH",payload:te}},Zt=function(te){return{type:"PUBLISH_WHILE_DRAGGING",payload:te}},br=function(){return{type:"COLLECTION_STARTING",payload:null}},Or=function(te){return{type:"UPDATE_DROPPABLE_SCROLL",payload:te}},Wr=function(te){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:te}},An=function(te){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:te}},bt=function(te){return{type:"MOVE",payload:te}},mr=function(te){return{type:"MOVE_BY_WINDOW_SCROLL",payload:te}},vr=function(te){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:te}},Fr=function(){return{type:"MOVE_UP",payload:null}},nn=function(){return{type:"MOVE_DOWN",payload:null}},cn=function(){return{type:"MOVE_RIGHT",payload:null}},tn=function(){return{type:"MOVE_LEFT",payload:null}},Ln=function(){return{type:"FLUSH",payload:null}},Tn=function(te){return{type:"DROP_ANIMATE",payload:te}},Xn=function(te){return{type:"DROP_COMPLETE",payload:te}},ci=function(te){return{type:"DROP",payload:te}},Jn=function(te){return{type:"DROP_PENDING",payload:te}},pi=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Si(Me){if(Me.length<=1)return;for(var te=Me.map(function(Yt){return Yt.descriptor.index}),ye={},Ge=1;Ge<te.length;Ge++){var st=te[Ge],Ft=te[Ge-1];st!==Ft+1&&(ye[st]=!0)}if(!Object.keys(ye).length)return;var zt=te.map(function(Yt){var Nr=Boolean(ye[Yt]);return Nr?"[\u{1F525}"+Yt+"]":""+Yt}).join(", ")}function Ni(Me,te){if(!1)var ye}var xi=function(te){return function(ye){var Ge=ye.getState,st=ye.dispatch;return function(Ft){return function(zt){if(zt.type!=="LIFT"){Ft(zt);return}var Yt=zt.payload,Nr=Yt.id,Qr=Yt.clientSelection,Cr=Yt.movementMode,Er=Ge();Er.phase==="DROP_ANIMATING"&&st(Xn({completed:Er.completed})),Ge().phase==="IDLE"||pe(!1),st(Ln()),st(wr({draggableId:Nr,movementMode:Cr}));var Kr={shouldPublishImmediately:Cr==="SNAP"},qr={draggableId:Nr,scrollOptions:Kr},Cn=te.startPublishing(qr),oi=Cn.critical,hi=Cn.dimensions,ji=Cn.viewport;Ni(oi,hi),st(on({critical:oi,dimensions:hi,clientSelection:Qr,movementMode:Cr,viewport:ji}))}}}},yi=function(te){return function(){return function(ye){return function(Ge){Ge.type==="INITIAL_PUBLISH"&&te.dragging(),Ge.type==="DROP_ANIMATE"&&te.dropping(Ge.payload.completed.result.reason),(Ge.type==="FLUSH"||Ge.type==="DROP_COMPLETE")&&te.resting(),ye(Ge)}}}},vi={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ti={opacity:{drop:0,combining:.7},scale:{drop:.75}},Ui={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},$i=Ui.outOfTheWay+"s "+vi.outOfTheWay,Di={fluid:"opacity "+$i,snap:"transform "+$i+", opacity "+$i,drop:function(te){var ye=te+"s "+vi.drop;return"transform "+ye+", opacity "+ye},outOfTheWay:"transform "+$i,placeholder:"height "+$i+", width "+$i+", margin "+$i},ua=function(te){return fe(te,Ce)?null:"translate("+te.x+"px, "+te.y+"px)"},aa={moveTo:ua,drop:function(te,ye){var Ge=ua(te);return Ge?ye?Ge+" scale("+Ti.scale.drop+")":Ge:null}},Gi=Ui.minDropTime,Vi=Ui.maxDropTime,ta=Vi-Gi,Xi=1500,ga=.6,ra=function(te){var ye=te.current,Ge=te.destination,st=te.reason,Ft=ot(ye,Ge);if(Ft<=0)return Gi;if(Ft>=Xi)return Vi;var zt=Ft/Xi,Yt=Gi+ta*zt,Nr=st==="CANCEL"?Yt*ga:Yt;return Number(Nr.toFixed(2))},pa=function(te){var ye=te.impact,Ge=te.draggable,st=te.dimensions,Ft=te.viewport,zt=te.afterCritical,Yt=st.draggables,Nr=st.droppables,Qr=Gn(ye),Cr=Qr?Nr[Qr]:null,Er=Nr[Ge.descriptor.droppableId],Kr=On({impact:ye,draggable:Ge,draggables:Yt,afterCritical:zt,droppable:Cr||Er,viewport:Ft}),qr=le(Kr,Ge.client.borderBox.center);return qr},_a=function(te){var ye=te.draggables,Ge=te.reason,st=te.lastImpact,Ft=te.home,zt=te.viewport,Yt=te.onLiftImpact;if(!st.at||Ge!=="DROP"){var Nr=ln({draggables:ye,impact:Yt,destination:Ft,viewport:zt,forceShouldAnimate:!0});return{impact:Nr,didDropInsideDroppable:!1}}if(st.at.type==="REORDER")return{impact:st,didDropInsideDroppable:!0};var Qr=Object(A.a)({},st,{displaced:dn});return{impact:Qr,didDropInsideDroppable:!0}},Da=function(te){var ye=te.getState,Ge=te.dispatch;return function(st){return function(Ft){if(Ft.type!=="DROP"){st(Ft);return}var zt=ye(),Yt=Ft.payload.reason;if(zt.phase==="COLLECTING"){Ge(Jn({reason:Yt}));return}if(zt.phase==="IDLE")return;var Nr=zt.phase==="DROP_PENDING"&&zt.isWaiting;Nr&&pe(!1),zt.phase==="DRAGGING"||zt.phase==="DROP_PENDING"||pe(!1);var Qr=zt.critical,Cr=zt.dimensions,Er=Cr.draggables[zt.critical.draggable.id],Kr=_a({reason:Yt,lastImpact:zt.impact,afterCritical:zt.afterCritical,onLiftImpact:zt.onLiftImpact,home:zt.dimensions.droppables[zt.critical.droppable.id],viewport:zt.viewport,draggables:zt.dimensions.draggables}),qr=Kr.impact,Cn=Kr.didDropInsideDroppable,oi=Cn?ar(qr):null,hi=Cn?dr(qr):null,ji={index:Qr.draggable.index,droppableId:Qr.droppable.id},Oi={draggableId:Er.descriptor.id,type:Er.descriptor.type,source:ji,reason:Yt,mode:zt.movementMode,destination:oi,combine:hi},wa=pa({impact:qr,draggable:Er,dimensions:Cr,viewport:zt.viewport,afterCritical:zt.afterCritical}),Qi={critical:zt.critical,afterCritical:zt.afterCritical,result:Oi,impact:qr},Ua=!fe(zt.current.client.offset,wa)||Boolean(Oi.combine);if(!Ua){Ge(Xn({completed:Qi}));return}var Sa=ra({current:zt.current.client.offset,destination:wa,reason:Yt}),So={newHomeClientOffset:wa,dropDuration:Sa,completed:Qi};Ge(Tn(So))}}},Ra=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ao(Me){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ye){if(ye.target!==window&&ye.target!==window.document)return;Me()}}}function ja(Me){var te=Me.onWindowScroll;function ye(){te(Ra())}var Ge=N(ye),st=Ao(Ge),Ft=ue;function zt(){return Ft!==ue}function Yt(){zt()&&pe(!1),Ft=ge(window,[st])}function Nr(){zt()||pe(!1),Ge.cancel(),Ft(),Ft=ue}return{start:Yt,stop:Nr,isActive:zt}}var Ya=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Ia=function(te){var ye=ja({onWindowScroll:function(st){te.dispatch(mr({newScroll:st}))}});return function(Ge){return function(st){!ye.isActive()&&st.type==="INITIAL_PUBLISH"&&ye.start(),ye.isActive()&&Ya(st)&&ye.stop(),Ge(st)}}},Va=function(te){var ye=!1,Ge=!1,st=setTimeout(function(){Ge=!0}),Ft=function(Yt){if(ye)return;if(Ge)return;ye=!0,te(Yt),clearTimeout(st)};return Ft.wasCalled=function(){return ye},Ft},co=function(){var te=[],ye=function(zt){var Yt=Ne(te,function(Cr){return Cr.timerId===zt});Yt!==-1||pe(!1);var Nr=te.splice(Yt,1),Qr=Nr[0];Qr.callback()},Ge=function(zt){var Yt=setTimeout(function(){return ye(Yt)}),Nr={timerId:Yt,callback:zt};te.push(Nr)},st=function(){if(!te.length)return;var zt=[].concat(te);te.length=0,zt.forEach(function(Yt){clearTimeout(Yt.timerId),Yt.callback()})};return{add:Ge,flush:st}},Ca=function(te,ye){return te==null&&ye==null?!0:te==null||ye==null?!1:te.droppableId===ye.droppableId&&te.index===ye.index},yo=function(te,ye){return te==null&&ye==null?!0:te==null||ye==null?!1:te.draggableId===ye.draggableId&&te.droppableId===ye.droppableId},uo=function(te,ye){if(te===ye)return!0;var Ge=te.draggable.id===ye.draggable.id&&te.draggable.droppableId===ye.draggable.droppableId&&te.draggable.type===ye.draggable.type&&te.draggable.index===ye.draggable.index,st=te.droppable.id===ye.droppable.id&&te.droppable.type===ye.droppable.type;return Ge&&st},Ga=function(te,ye){si(),ye(),Pi()},Oo=function(te,ye){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ye}},oa=function(te,ye,Ge,st){if(!te){Ge(st(ye));return}var Ft=Va(Ge),zt={announce:Ft};te(ye,zt),Ft.wasCalled()||Ge(st(ye))},qa=function(te,ye){var Ge=co(),st=null,Ft=function(qr,Cn){st&&pe(!1),Ga("onBeforeCapture",function(){var oi=te().onBeforeCapture;if(oi){var hi={draggableId:qr,mode:Cn};oi(hi)}})},zt=function(qr,Cn){st&&pe(!1),Ga("onBeforeDragStart",function(){var oi=te().onBeforeDragStart;oi&&oi(Oo(qr,Cn))})},Yt=function(qr,Cn){st&&pe(!1);var oi=Oo(qr,Cn);st={mode:Cn,lastCritical:qr,lastLocation:oi.source,lastCombine:null},Ge.add(function(){Ga("onDragStart",function(){return oa(te().onDragStart,oi,ye,de.onDragStart)})})},Nr=function(qr,Cn){var oi=ar(Cn),hi=dr(Cn);st||pe(!1);var ji=!uo(qr,st.lastCritical);ji&&(st.lastCritical=qr);var Oi=!Ca(st.lastLocation,oi);Oi&&(st.lastLocation=oi);var wa=!yo(st.lastCombine,hi);if(wa&&(st.lastCombine=hi),!ji&&!Oi&&!wa)return;var Qi=Object(A.a)({},Oo(qr,st.mode),{combine:hi,destination:oi});Ge.add(function(){Ga("onDragUpdate",function(){return oa(te().onDragUpdate,Qi,ye,de.onDragUpdate)})})},Qr=function(){st||pe(!1),Ge.flush()},Cr=function(qr){st||pe(!1),st=null,Ga("onDragEnd",function(){return oa(te().onDragEnd,qr,ye,de.onDragEnd)})},Er=function(){if(!st)return;var qr=Object(A.a)({},Oo(st.lastCritical,st.mode),{combine:null,destination:null,reason:"CANCEL"});Cr(qr)};return{beforeCapture:Ft,beforeStart:zt,start:Yt,update:Nr,flush:Qr,drop:Cr,abort:Er}},oo=function(te,ye){var Ge=qa(te,ye);return function(st){return function(Ft){return function(zt){if(zt.type==="BEFORE_INITIAL_CAPTURE"){Ge.beforeCapture(zt.payload.draggableId,zt.payload.movementMode);return}if(zt.type==="INITIAL_PUBLISH"){var Yt=zt.payload.critical;Ge.beforeStart(Yt,zt.payload.movementMode),Ft(zt),Ge.start(Yt,zt.payload.movementMode);return}if(zt.type==="DROP_COMPLETE"){var Nr=zt.payload.completed.result;Ge.flush(),Ft(zt),Ge.drop(Nr);return}if(Ft(zt),zt.type==="FLUSH"){Ge.abort();return}var Qr=st.getState();Qr.phase==="DRAGGING"&&Ge.update(Qr.critical,Qr.impact)}}}},Ro=function(te){return function(ye){return function(Ge){if(Ge.type!=="DROP_ANIMATION_FINISHED"){ye(Ge);return}var st=te.getState();st.phase==="DROP_ANIMATING"||pe(!1),te.dispatch(Xn({completed:st.completed}))}}},Xa=function(te){var ye=null,Ge=null;function st(){Ge&&(cancelAnimationFrame(Ge),Ge=null),ye&&(ye(),ye=null)}return function(Ft){return function(zt){if((zt.type==="FLUSH"||zt.type==="DROP_COMPLETE"||zt.type==="DROP_ANIMATION_FINISHED")&&st(),Ft(zt),zt.type!=="DROP_ANIMATE")return;var Yt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Qr=te.getState();Qr.phase==="DROP_ANIMATING"&&te.dispatch(pi())}};Ge=requestAnimationFrame(function(){Ge=null,ye=ge(window,[Yt])})}}},_o=function(te){return function(){return function(ye){return function(Ge){(Ge.type==="DROP_COMPLETE"||Ge.type==="FLUSH"||Ge.type==="DROP_ANIMATE")&&te.stopPublishing(),ye(Ge)}}}},go=function(te){var ye=!1;return function(){return function(Ge){return function(st){if(st.type==="INITIAL_PUBLISH"){ye=!0,te.tryRecordFocus(st.payload.critical.draggable.id),Ge(st),te.tryRestoreFocusRecorded();return}if(Ge(st),!ye)return;if(st.type==="FLUSH"){ye=!1,te.tryRestoreFocusRecorded();return}if(st.type==="DROP_COMPLETE"){ye=!1;var Ft=st.payload.completed.result;Ft.combine&&te.tryShiftRecord(Ft.draggableId,Ft.combine.draggableId),te.tryRestoreFocusRecorded()}}}}},Ja=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Fa=function(te){return function(ye){return function(Ge){return function(st){if(Ja(st)){te.stop(),Ge(st);return}if(st.type==="INITIAL_PUBLISH"){Ge(st);var Ft=ye.getState();Ft.phase==="DRAGGING"||pe(!1),te.start(Ft);return}Ge(st),te.scroll(ye.getState())}}}},ha=function(te){return function(ye){return function(Ge){if(ye(Ge),Ge.type!=="PUBLISH_WHILE_DRAGGING")return;var st=te.getState();if(st.phase!=="DROP_PENDING")return;if(st.isWaiting)return;te.dispatch(ci({reason:st.reason}))}}},rt=w.d,cr=function(te){var ye=te.dimensionMarshal,Ge=te.focusMarshal,st=te.styleMarshal,Ft=te.getResponders,zt=te.announce,Yt=te.autoScroller;return Object(w.e)(Bi,rt(Object(w.a)(yi(st),_o(ye),xi(ye),Da,Ro,Xa,ha,Fa(Yt),Ia,go(Ge),oo(Ft,zt))))},Pr=function(){return{additions:{},removals:{},modified:{}}};function Lr(Me){var te=Me.registry,ye=Me.callbacks,Ge=Pr(),st=null,Ft=function(){if(st)return;ye.collectionStarting(),st=requestAnimationFrame(function(){st=null,si();var Cr=Ge,Er=Cr.additions,Kr=Cr.removals,qr=Cr.modified,Cn=Object.keys(Er).map(function(ji){return te.draggable.getById(ji).getDimension(Ce)}).sort(function(ji,Oi){return ji.descriptor.index-Oi.descriptor.index}),oi=Object.keys(qr).map(function(ji){var Oi=te.droppable.getById(ji),wa=Oi.callbacks.getScrollWhileDragging();return{droppableId:ji,scroll:wa}}),hi={additions:Cn,removals:Object.keys(Kr),modified:oi};Ge=Pr(),Pi(),ye.publish(hi)})},zt=function(Cr){var Er=Cr.descriptor.id;Ge.additions[Er]=Cr,Ge.modified[Cr.descriptor.droppableId]=!0,Ge.removals[Er]&&delete Ge.removals[Er],Ft()},Yt=function(Cr){var Er=Cr.descriptor;Ge.removals[Er.id]=!0,Ge.modified[Er.droppableId]=!0,Ge.additions[Er.id]&&delete Ge.additions[Er.id],Ft()},Nr=function(){if(!st)return;cancelAnimationFrame(st),st=null,Ge=Pr()};return{add:zt,remove:Yt,stop:Nr}}var _n=function(te){var ye=te.scrollHeight,Ge=te.scrollWidth,st=te.height,Ft=te.width,zt=le({x:Ge,y:ye},{x:Ft,y:st}),Yt={x:Math.max(0,zt.x),y:Math.max(0,zt.y)};return Yt},Vr=function(){var te=document.documentElement;return te||pe(!1),te},_r=function(){var te=Vr(),ye=_n({scrollHeight:te.scrollHeight,scrollWidth:te.scrollWidth,width:te.clientWidth,height:te.clientHeight});return ye},kn=function(){var te=Ra(),ye=_r(),Ge=te.y,st=te.x,Ft=Vr(),zt=Ft.clientWidth,Yt=Ft.clientHeight,Nr=st+zt,Qr=Ge+Yt,Cr=e({top:Ge,left:st,right:Nr,bottom:Qr}),Er={frame:Cr,scroll:{initial:te,current:te,max:ye,diff:{value:Ce,displacement:Ce}}};return Er},Ur=function(te){var ye=te.critical,Ge=te.scrollOptions,st=te.registry;si();var Ft=kn(),zt=Ft.scroll.current,Yt=ye.droppable,Nr=st.droppable.getAllByType(Yt.type).map(function(Kr){return Kr.callbacks.getDimensionAndWatchScroll(zt,Ge)}),Qr=st.draggable.getAllByType(ye.draggable.type).map(function(Kr){return Kr.getDimension(zt)}),Cr={draggables:ut(Qr),droppables:Rt(Nr)};Pi();var Er={dimensions:Cr,critical:ye,viewport:Ft};return Er};function En(Me,te,ye){if(ye.descriptor.id===te.id)return!1;if(ye.descriptor.type!==te.type)return!1;var Ge=Me.droppable.getById(ye.descriptor.droppableId);return!(Ge.descriptor.mode!=="virtual")}var jn=function(te,ye){var Ge=null,st=Lr({callbacks:{publish:ye.publishWhileDragging,collectionStarting:ye.collectionStarting},registry:te}),Ft=function(Cn,oi){if(te.droppable.exists(Cn)||pe(!1),!Ge)return;ye.updateDroppableIsEnabled({id:Cn,isEnabled:oi})},zt=function(Cn,oi){if(!Ge)return;te.droppable.exists(Cn)||pe(!1),ye.updateDroppableIsCombineEnabled({id:Cn,isCombineEnabled:oi})},Yt=function(Cn,oi){if(!Ge)return;te.droppable.exists(Cn)||pe(!1),ye.updateDroppableScroll({id:Cn,newScroll:oi})},Nr=function(Cn,oi){if(!Ge)return;te.droppable.getById(Cn).callbacks.scroll(oi)},Qr=function(){if(!Ge)return;st.stop();var Cn=Ge.critical.droppable;te.droppable.getAllByType(Cn.type).forEach(function(oi){return oi.callbacks.dragStopped()}),Ge.unsubscribe(),Ge=null},Cr=function(Cn){Ge||pe(!1);var oi=Ge.critical.draggable;Cn.type==="ADDITION"&&(En(te,oi,Cn.value)&&st.add(Cn.value)),Cn.type==="REMOVAL"&&(En(te,oi,Cn.value)&&st.remove(Cn.value))},Er=function(Cn){Ge&&pe(!1);var oi=te.draggable.getById(Cn.draggableId),hi=te.droppable.getById(oi.descriptor.droppableId),ji={draggable:oi.descriptor,droppable:hi.descriptor},Oi=te.subscribe(Cr);return Ge={critical:ji,unsubscribe:Oi},Ur({critical:ji,registry:te,scrollOptions:Cn.scrollOptions})},Kr={updateDroppableIsEnabled:Ft,updateDroppableIsCombineEnabled:zt,scrollDroppable:Nr,updateDroppableScroll:Yt,startPublishing:Er,stopPublishing:Qr};return Kr},Hn=function(te,ye){return te.phase==="IDLE"?!0:te.phase!=="DROP_ANIMATING"||te.completed.result.draggableId===ye?!1:te.completed.result.reason==="DROP"},Bn=function(te){window.scrollBy(te.x,te.y)},ri=I(function(Me){return Xt(Me).filter(function(te){return te.isEnabled?!!te.frame:!1})}),Yn=function(te,ye){var Ge=q(ri(ye),function(st){return st.frame||pe(!1),sn(st.frame.pageMarginBox)(te)});return Ge},ii=function(te){var ye=te.center,Ge=te.destination,st=te.droppables;if(Ge){var Ft=st[Ge];return Ft.frame?Ft:null}var zt=Yn(ye,st);return zt},ai={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ki=function(te,ye){var Ge=te[ye.size]*ai.startFromPercentage,st=te[ye.size]*ai.maxScrollAtPercentage,Ft={startScrollingFrom:Ge,maxScrollValueAt:st};return Ft},bi=function(te){var ye=te.startOfRange,Ge=te.endOfRange,st=te.current,Ft=Ge-ye;if(Ft===0)return 0;var zt=st-ye,Yt=zt/Ft;return Yt},Ki=1,Aa=function(te,ye){if(te>ye.startScrollingFrom)return 0;if(te<=ye.maxScrollValueAt)return ai.maxPixelScroll;if(te===ye.startScrollingFrom)return Ki;var Ge=bi({startOfRange:ye.maxScrollValueAt,endOfRange:ye.startScrollingFrom,current:te}),st=1-Ge,Ft=ai.maxPixelScroll*ai.ease(st);return Math.ceil(Ft)},ea=ai.durationDampening.accelerateAt,Ji=ai.durationDampening.stopDampeningAt,sa=function(te,ye){var Ge=ye,st=Ji,Ft=Date.now(),zt=Ft-Ge;if(zt>=Ji)return te;if(zt<ea)return Ki;var Yt=bi({startOfRange:ea,endOfRange:st,current:zt}),Nr=te*ai.ease(Yt);return Math.ceil(Nr)},fa=function(te){var ye=te.distanceToEdge,Ge=te.thresholds,st=te.dragStartTime,Ft=te.shouldUseTimeDampening,zt=Aa(ye,Ge);return zt===0?0:Ft?Math.max(sa(zt,st),Ki):zt},xo=function(te){var ye=te.container,Ge=te.distanceToEdges,st=te.dragStartTime,Ft=te.axis,zt=te.shouldUseTimeDampening,Yt=ki(ye,Ft),Nr=Ge[Ft.end]<Ge[Ft.start];return Nr?fa({distanceToEdge:Ge[Ft.end],thresholds:Yt,dragStartTime:st,shouldUseTimeDampening:zt}):-1*fa({distanceToEdge:Ge[Ft.start],thresholds:Yt,dragStartTime:st,shouldUseTimeDampening:zt})},Qa=function(te){var ye=te.container,Ge=te.subject,st=te.proposedScroll,Ft=Ge.height>ye.height,zt=Ge.width>ye.width;return!zt&&!Ft?st:zt&&Ft?null:{x:zt?0:st.x,y:Ft?0:st.y}},Wi=Te(function(Me){return Me===0?0:Me}),qi=function(te){var ye=te.dragStartTime,Ge=te.container,st=te.subject,Ft=te.center,zt=te.shouldUseTimeDampening,Yt={top:Ft.y-Ge.top,right:Ge.right-Ft.x,bottom:Ge.bottom-Ft.y,left:Ft.x-Ge.left},Nr=xo({container:Ge,distanceToEdges:Yt,dragStartTime:ye,axis:Mn,shouldUseTimeDampening:zt}),Qr=xo({container:Ge,distanceToEdges:Yt,dragStartTime:ye,axis:jt,shouldUseTimeDampening:zt}),Cr=Wi({x:Qr,y:Nr});if(fe(Cr,Ce))return null;var Er=Qa({container:Ge,subject:st,proposedScroll:Cr});return Er?fe(Er,Ce)?null:Er:null},ca=Te(function(Me){return Me===0?0:Me>0?1:-1}),ma=function(){var Me=function(ye,Ge){return ye<0?ye:ye>Ge?ye-Ge:0};return function(te){var ye=te.current,Ge=te.max,st=te.change,Ft=Ee(ye,st),zt={x:Me(Ft.x,Ge.x),y:Me(Ft.y,Ge.y)};return fe(zt,Ce)?null:zt}}(),ka=function(te){var ye=te.max,Ge=te.current,st=te.change,Ft={x:Math.max(Ge.x,ye.x),y:Math.max(Ge.y,ye.y)},zt=ca(st),Yt=ma({max:Ft,current:Ge,change:zt});return Yt?zt.x!==0&&Yt.x===0?!0:zt.y!==0&&Yt.y===0:!0},La=function(te,ye){return ka({current:te.scroll.current,max:te.scroll.max,change:ye})},Za=function(te,ye){if(!La(te,ye))return null;var Ge=te.scroll.max,st=te.scroll.current;return ma({current:st,max:Ge,change:ye})},eo=function(te,ye){var Ge=te.frame;return Ge?ka({current:Ge.scroll.current,max:Ge.scroll.max,change:ye}):!1},Po=function(te,ye){var Ge=te.frame;return Ge&&eo(te,ye)?ma({current:Ge.scroll.current,max:Ge.scroll.max,change:ye}):null},jo=function(te){var ye=te.viewport,Ge=te.subject,st=te.center,Ft=te.dragStartTime,zt=te.shouldUseTimeDampening,Yt=qi({dragStartTime:Ft,container:ye.frame,subject:Ge,center:st,shouldUseTimeDampening:zt});return Yt&&La(ye,Yt)?Yt:null},cs=function(te){var ye=te.droppable,Ge=te.subject,st=te.center,Ft=te.dragStartTime,zt=te.shouldUseTimeDampening,Yt=ye.frame;if(!Yt)return null;var Nr=qi({dragStartTime:Ft,container:Yt.pageMarginBox,subject:Ge,center:st,shouldUseTimeDampening:zt});return Nr&&eo(ye,Nr)?Nr:null},Mo=function(te){var ye=te.state,Ge=te.dragStartTime,st=te.shouldUseTimeDampening,Ft=te.scrollWindow,zt=te.scrollDroppable,Yt=ye.current.page.borderBoxCenter,Nr=ye.dimensions.draggables[ye.critical.draggable.id],Qr=Nr.page.marginBox;if(ye.isWindowScrollAllowed){var Cr=ye.viewport,Er=jo({dragStartTime:Ge,viewport:Cr,subject:Qr,center:Yt,shouldUseTimeDampening:st});if(Er){Ft(Er);return}}var Kr=ii({center:Yt,destination:Gn(ye.impact),droppables:ye.dimensions.droppables});if(!Kr)return;var qr=cs({dragStartTime:Ge,droppable:Kr,subject:Qr,center:Yt,shouldUseTimeDampening:st});qr&&zt(Kr.descriptor.id,qr)},Lo=function(te){var ye=te.scrollWindow,Ge=te.scrollDroppable,st=N(ye),Ft=N(Ge),zt=null,Yt=function(Er){zt||pe(!1);var Kr=zt,qr=Kr.shouldUseTimeDampening,Cn=Kr.dragStartTime;Mo({state:Er,scrollWindow:st,scrollDroppable:Ft,dragStartTime:Cn,shouldUseTimeDampening:qr})},Nr=function(Er){si(),zt&&pe(!1);var Kr=Date.now(),qr=!1,Cn=function(){qr=!0};Mo({state:Er,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Cn,scrollDroppable:Cn}),zt={dragStartTime:Kr,shouldUseTimeDampening:qr},Pi(),qr&&Yt(Er)},Qr=function(){if(!zt)return;st.cancel(),Ft.cancel(),zt=null};return{start:Nr,stop:Qr,scroll:Yt}},Ba=function(te){var ye=te.move,Ge=te.scrollDroppable,st=te.scrollWindow,Ft=function(Cr,Er){var Kr=Ee(Cr.current.client.selection,Er);ye({client:Kr})},zt=function(Cr,Er){if(!eo(Cr,Er))return Er;var Kr=Po(Cr,Er);if(!Kr)return Ge(Cr.descriptor.id,Er),null;var qr=le(Er,Kr);Ge(Cr.descriptor.id,qr);var Cn=le(Er,qr);return Cn},Yt=function(Cr,Er,Kr){if(!Cr)return Kr;if(!La(Er,Kr))return Kr;var qr=Za(Er,Kr);if(!qr)return st(Kr),null;var Cn=le(Kr,qr);st(Cn);var oi=le(Kr,Cn);return oi},Nr=function(Cr){var Er=Cr.scrollJumpRequest;if(!Er)return;var Kr=Gn(Cr.impact);Kr||pe(!1);var qr=zt(Cr.dimensions.droppables[Kr],Er);if(!qr)return;var Cn=Cr.viewport,oi=Yt(Cr.isWindowScrollAllowed,Cn,qr);if(!oi)return;Ft(Cr,oi)};return Nr},za=function(te){var ye=te.scrollDroppable,Ge=te.scrollWindow,st=te.move,Ft=Lo({scrollWindow:Ge,scrollDroppable:ye}),zt=Ba({move:st,scrollWindow:Ge,scrollDroppable:ye}),Yt=function(Cr){if(Cr.phase!=="DRAGGING")return;if(Cr.movementMode==="FLUID"){Ft.scroll(Cr);return}if(!Cr.scrollJumpRequest)return;zt(Cr)},Nr={scroll:Yt,start:Ft.start,stop:Ft.stop};return Nr},Ta="data-rbd",ko=function(){var Me=Ta+"-drag-handle";return{base:Me,draggableId:Me+"-draggable-id",contextId:Me+"-context-id"}}(),Qo=function(){var Me=Ta+"-draggable";return{base:Me,contextId:Me+"-context-id",id:Me+"-id"}}(),so=function(){var Me=Ta+"-droppable";return{base:Me,contextId:Me+"-context-id",id:Me+"-id"}}(),Os={contextId:Ta+"-scroll-container-context-id"},ho=function(te){return function(ye){return"["+ye+'="'+te+'"]'}},bo=function(te,ye){return te.map(function(Ge){var st=Ge.styles[ye];return st?Ge.selector+" { "+st+" }":""}).join(" ")},ds="pointer-events: none;",Ho=function(te){var ye=ho(te),Ge=function(){var Nr=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:ye(ko.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:Nr,dragging:ds,dropAnimating:Nr}}}(),st=function(){var Nr=`
|
|
|
transition: `+Di.outOfTheWay+`;
|
|
|
`;return{selector:ye(Qo.contextId),styles:{dragging:Nr,dropAnimating:Nr,userCancel:Nr}}}(),Ft={selector:ye(so.contextId),styles:{always:"overflow-anchor: none;"}},zt={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;
|
|
|
`}},Yt=[st,Ge,Ft,zt];return{always:bo(Yt,"always"),resting:bo(Yt,"resting"),dragging:bo(Yt,"dragging"),dropAnimating:bo(Yt,"dropAnimating"),userCancel:bo(Yt,"userCancel")}},zo=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?O.useLayoutEffect:O.useEffect,rn=function(){var te=document.querySelector("head");return te||pe(!1),te},es=function(te){var ye=document.createElement("style");return te&&ye.setAttribute("nonce",te),ye.type="text/css",ye};function Js(Me,te){var ye=r(function(){return Ho(Me)},[Me]),Ge=Object(O.useRef)(null),st=Object(O.useRef)(null),Ft=i(I(function(Er){var Kr=st.current;Kr||pe(!1),Kr.textContent=Er}),[]),zt=i(function(Er){var Kr=Ge.current;Kr||pe(!1),Kr.textContent=Er},[]);zo(function(){!Ge.current&&!st.current||pe(!1);var Er=es(te),Kr=es(te);return Ge.current=Er,st.current=Kr,Er.setAttribute(Ta+"-always",Me),Kr.setAttribute(Ta+"-dynamic",Me),rn().appendChild(Er),rn().appendChild(Kr),zt(ye.always),Ft(ye.resting),function(){var qr=function(oi){var hi=oi.current;hi||pe(!1),rn().removeChild(hi),oi.current=null};qr(Ge),qr(st)}},[te,zt,Ft,ye.always,ye.resting,Me]);var Yt=i(function(){return Ft(ye.dragging)},[Ft,ye.dragging]),Nr=i(function(Er){if(Er==="DROP"){Ft(ye.dropAnimating);return}Ft(ye.userCancel)},[Ft,ye.dropAnimating,ye.userCancel]),Qr=i(function(){if(!st.current)return;Ft(ye.resting)},[Ft,ye.resting]),Cr=r(function(){return{dragging:Yt,dropping:Nr,resting:Qr}},[Yt,Nr,Qr]);return Cr}var Es=function(te){return te&&te.ownerDocument?te.ownerDocument.defaultView:window};function gs(Me){return Me instanceof Es(Me).HTMLElement}function Ko(Me,te){var ye="["+ko.contextId+'="'+Me+'"]',Ge=ht(document.querySelectorAll(ye));if(!Ge.length)return null;var st=q(Ge,function(Ft){return Ft.getAttribute(ko.draggableId)===te});return st&&gs(st)?st:null}function hs(Me){var te=Object(O.useRef)({}),ye=Object(O.useRef)(null),Ge=Object(O.useRef)(null),st=Object(O.useRef)(!1),Ft=i(function(Kr,qr){var Cn={id:Kr,focus:qr};return te.current[Kr]=Cn,function(){var hi=te.current,ji=hi[Kr];ji!==Cn&&delete hi[Kr]}},[]),zt=i(function(Kr){var qr=Ko(Me,Kr);qr&&qr!==document.activeElement&&qr.focus()},[Me]),Yt=i(function(Kr,qr){ye.current===Kr&&(ye.current=qr)},[]),Nr=i(function(){if(Ge.current)return;if(!st.current)return;Ge.current=requestAnimationFrame(function(){Ge.current=null;var Kr=ye.current;Kr&&zt(Kr)})},[zt]),Qr=i(function(Kr){ye.current=null;var qr=document.activeElement;if(!qr)return;if(qr.getAttribute(ko.draggableId)!==Kr)return;ye.current=Kr},[]);zo(function(){return st.current=!0,function(){st.current=!1;var Kr=Ge.current;Kr&&cancelAnimationFrame(Kr)}},[]);var Cr=r(function(){return{register:Ft,tryRecordFocus:Qr,tryRestoreFocusRecorded:Nr,tryShiftRecord:Yt}},[Ft,Qr,Nr,Yt]);return Cr}function bs(){var Me={draggables:{},droppables:{}},te=[];function ye(Er){return te.push(Er),function(){var qr=te.indexOf(Er);if(qr===-1)return;te.splice(qr,1)}}function Ge(Er){te.length&&te.forEach(function(Kr){return Kr(Er)})}function st(Er){return Me.draggables[Er]||null}function Ft(Er){var Kr=st(Er);return Kr||pe(!1),Kr}var zt={register:function(Kr){Me.draggables[Kr.descriptor.id]=Kr,Ge({type:"ADDITION",value:Kr})},update:function(Kr,qr){var Cn=Me.draggables[qr.descriptor.id];if(!Cn)return;if(Cn.uniqueId!==Kr.uniqueId)return;delete Me.draggables[qr.descriptor.id],Me.draggables[Kr.descriptor.id]=Kr},unregister:function(Kr){var qr=Kr.descriptor.id,Cn=st(qr);if(!Cn)return;if(Kr.uniqueId!==Cn.uniqueId)return;delete Me.draggables[qr],Ge({type:"REMOVAL",value:Kr})},getById:Ft,findById:st,exists:function(Kr){return Boolean(st(Kr))},getAllByType:function(Kr){return Fe(Me.draggables).filter(function(qr){return qr.descriptor.type===Kr})}};function Yt(Er){return Me.droppables[Er]||null}function Nr(Er){var Kr=Yt(Er);return Kr||pe(!1),Kr}var Qr={register:function(Kr){Me.droppables[Kr.descriptor.id]=Kr},unregister:function(Kr){var qr=Yt(Kr.descriptor.id);if(!qr)return;if(Kr.uniqueId!==qr.uniqueId)return;delete Me.droppables[Kr.descriptor.id]},getById:Nr,findById:Yt,exists:function(Kr){return Boolean(Yt(Kr))},getAllByType:function(Kr){return Fe(Me.droppables).filter(function(qr){return qr.descriptor.type===Kr})}};function Cr(){Me.draggables={},Me.droppables={},te.length=0}return{draggable:zt,droppable:Qr,subscribe:ye,clean:Cr}}function ws(){var Me=r(bs,[]);return Object(O.useEffect)(function(){return function(){requestAnimationFrame(Me.clean)}},[Me]),Me}var qo=E.a.createContext(null),us=function(){var te=document.body;return te||pe(!1),te},_s={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},vs=function(te){return"rbd-announcement-"+te};function vo(Me){var te=r(function(){return vs(Me)},[Me]),ye=Object(O.useRef)(null);Object(O.useEffect)(function(){var Ft=document.createElement("div");return ye.current=Ft,Ft.id=te,Ft.setAttribute("aria-live","assertive"),Ft.setAttribute("aria-atomic","true"),Object(A.a)(Ft.style,_s),us().appendChild(Ft),function(){setTimeout(function(){var Nr=us();Nr.contains(Ft)&&Nr.removeChild(Ft),Ft===ye.current&&(ye.current=null)})}},[te]);var Ge=i(function(st){var Ft=ye.current;if(Ft){Ft.textContent=st;return}},[]);return Ge}var to=0,Jo={separator:"::"};function ts(){to=0}function Ha(Me,te){return te===void 0&&(te=Jo),r(function(){return""+Me+te.separator+to++},[te.separator,Me])}function It(Me){var te=Me.contextId,ye=Me.uniqueId;return"rbd-hidden-text-"+te+"-"+ye}function Vt(Me){var te=Me.contextId,ye=Me.text,Ge=Ha("hidden-text",{separator:"-"}),st=r(function(){return It({contextId:te,uniqueId:Ge})},[Ge,te]);return Object(O.useEffect)(function(){var zt=document.createElement("div");return zt.id=st,zt.textContent=ye,zt.style.display="none",us().appendChild(zt),function(){var Nr=us();Nr.contains(zt)&&Nr.removeChild(zt)}},[st,ye]),st}var hn=E.a.createContext(null),zn={react:"^16.8.5","react-dom":"^16.8.5"},vt=/(\d+)\.(\d+)\.(\d+)/,ae=function(te){var ye=vt.exec(te);ye!=null||pe(!1);var Ge=Number(ye[1]),st=Number(ye[2]),Ft=Number(ye[3]);return{major:Ge,minor:st,patch:Ft,raw:te}},me=function(te,ye){return ye.major>te.major?!0:ye.major<te.major?!1:ye.minor>te.minor?!0:ye.minor<te.minor?!1:ye.patch>=te.patch},be=function(te,ye){var Ge=ae(te),st=ae(ye);if(me(Ge,st))return},Ke=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,At=function(te){var ye=te.doctype;if(!ye)return;ye.name.toLowerCase()!=="html",ye.publicId!==""};function Gt(Me){}function Dr(Me,te){Gt(function(){Object(O.useEffect)(function(){try{Me()}catch(ye){$(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+ye.message+`
|
|
|
`)}},te)})}function Gr(){Dr(function(){be(zn.react,E.a.version),At(document)},[])}function fn(Me){var te=Object(O.useRef)(Me);return Object(O.useEffect)(function(){te.current=Me}),te}function Kn(){var Me=null;function te(){return Boolean(Me)}function ye(zt){return zt===Me}function Ge(zt){Me&&pe(!1);var Yt={abandon:zt};return Me=Yt,Yt}function st(){Me||pe(!1),Me=null}function Ft(){Me&&(Me.abandon(),st())}return{isClaimed:te,isActive:ye,claim:Ge,release:st,tryAbandon:Ft}}var qn=9,Qn=13,Ei=27,Fi=32,va=33,Oa=34,fo=35,wo=36,lo=37,Yo=38,Vo=39,No=40,ao,Ka=(ao={},ao[Qn]=!0,ao[qn]=!0,ao),is=function(te){Ka[te.keyCode]&&te.preventDefault()},Is=function(){var Me="visibilitychange";if(typeof document=="undefined")return Me;var te=[Me,"ms"+Me,"webkit"+Me,"moz"+Me,"o"+Me],ye=q(te,function(Ge){return"on"+Ge in document});return ye||Me}(),Go=0,la=5;function Vs(Me,te){return Math.abs(te.x-Me.x)>=la||Math.abs(te.y-Me.y)>=la}var Hs={type:"IDLE"};function fs(Me){var te=Me.cancel,ye=Me.completed,Ge=Me.getPhase,st=Me.setPhase;return[{eventName:"mousemove",fn:function(zt){var Yt=zt.button,Nr=zt.clientX,Qr=zt.clientY;if(Yt!==Go)return;var Cr={x:Nr,y:Qr},Er=Ge();if(Er.type==="DRAGGING"){zt.preventDefault(),Er.actions.move(Cr);return}Er.type==="PENDING"||pe(!1);var Kr=Er.point;if(!Vs(Kr,Cr))return;zt.preventDefault();var qr=Er.actions.fluidLift(Cr);st({type:"DRAGGING",actions:qr})}},{eventName:"mouseup",fn:function(zt){var Yt=Ge();if(Yt.type!=="DRAGGING"){te();return}zt.preventDefault(),Yt.actions.drop({shouldBlockNextClick:!0}),ye()}},{eventName:"mousedown",fn:function(zt){Ge().type==="DRAGGING"&&zt.preventDefault(),te()}},{eventName:"keydown",fn:function(zt){var Yt=Ge();if(Yt.type==="PENDING"){te();return}if(zt.keyCode===Ei){zt.preventDefault(),te();return}is(zt)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ge().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(zt){var Yt=Ge();if(Yt.type!=="IDLE"||pe(!1),Yt.actions.shouldRespectForcePress()){te();return}zt.preventDefault()}},{eventName:Is,fn:te}]}function as(Me){var te=Object(O.useRef)(Hs),ye=Object(O.useRef)(ue),Ge=r(function(){return{eventName:"mousedown",fn:function(Er){if(Er.defaultPrevented)return;if(Er.button!==Go)return;if(Er.ctrlKey||Er.metaKey||Er.shiftKey||Er.altKey)return;var Kr=Me.findClosestDraggableId(Er);if(!Kr)return;var qr=Me.tryGetLock(Kr,zt,{sourceEvent:Er});if(!qr)return;Er.preventDefault();var Cn={x:Er.clientX,y:Er.clientY};ye.current(),Qr(qr,Cn)}}},[Me]),st=r(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Er){if(Er.defaultPrevented)return;var Kr=Me.findClosestDraggableId(Er);if(!Kr)return;var qr=Me.findOptionsForDraggable(Kr);if(!qr)return;if(qr.shouldRespectForcePress)return;if(!Me.canGetLock(Kr))return;Er.preventDefault()}}},[Me]),Ft=i(function(){var Er={passive:!1,capture:!0};ye.current=ge(window,[st,Ge],Er)},[st,Ge]),zt=i(function(){var Cr=te.current;if(Cr.type==="IDLE")return;te.current=Hs,ye.current(),Ft()},[Ft]),Yt=i(function(){var Cr=te.current;zt(),Cr.type==="DRAGGING"&&Cr.actions.cancel({shouldBlockNextClick:!0}),Cr.type==="PENDING"&&Cr.actions.abort()},[zt]),Nr=i(function(){var Er={capture:!0,passive:!1},Kr=fs({cancel:Yt,completed:zt,getPhase:function(){return te.current},setPhase:function(Cn){te.current=Cn}});ye.current=ge(window,Kr,Er)},[Yt,zt]),Qr=i(function(Er,Kr){te.current.type==="IDLE"||pe(!1),te.current={type:"PENDING",point:Kr,actions:Er},Nr()},[Nr]);zo(function(){return Ft(),function(){ye.current()}},[Ft])}var Ss;function xl(){}var vl=(Ss={},Ss[Oa]=!0,Ss[va]=!0,Ss[wo]=!0,Ss[fo]=!0,Ss);function zs(Me,te){function ye(){te(),Me.cancel()}function Ge(){te(),Me.drop()}return[{eventName:"keydown",fn:function(Ft){if(Ft.keyCode===Ei){Ft.preventDefault(),ye();return}if(Ft.keyCode===Fi){Ft.preventDefault(),Ge();return}if(Ft.keyCode===No){Ft.preventDefault(),Me.moveDown();return}if(Ft.keyCode===Yo){Ft.preventDefault(),Me.moveUp();return}if(Ft.keyCode===Vo){Ft.preventDefault(),Me.moveRight();return}if(Ft.keyCode===lo){Ft.preventDefault(),Me.moveLeft();return}if(vl[Ft.keyCode]){Ft.preventDefault();return}is(Ft)}},{eventName:"mousedown",fn:ye},{eventName:"mouseup",fn:ye},{eventName:"click",fn:ye},{eventName:"touchstart",fn:ye},{eventName:"resize",fn:ye},{eventName:"wheel",fn:ye,options:{passive:!0}},{eventName:Is,fn:ye}]}function Zo(Me){var te=Object(O.useRef)(xl),ye=r(function(){return{eventName:"keydown",fn:function(Ft){if(Ft.defaultPrevented)return;if(Ft.keyCode!==Fi)return;var zt=Me.findClosestDraggableId(Ft);if(!zt)return;var Yt=Me.tryGetLock(zt,Cr,{sourceEvent:Ft});if(!Yt)return;Ft.preventDefault();var Nr=!0,Qr=Yt.snapLift();te.current();function Cr(){Nr||pe(!1),Nr=!1,te.current(),Ge()}te.current=ge(window,zs(Qr,Cr),{capture:!0,passive:!1})}}},[Me]),Ge=i(function(){var Ft={passive:!1,capture:!0};te.current=ge(window,[ye],Ft)},[ye]);zo(function(){return Ge(),function(){te.current()}},[Ge])}var As={type:"IDLE"},nl=120,Ps=.15;function po(Me){var te=Me.cancel,ye=Me.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(st){st.preventDefault()}},{eventName:"keydown",fn:function(st){if(ye().type!=="DRAGGING"){te();return}st.keyCode===Ei&&st.preventDefault(),te()}},{eventName:Is,fn:te}]}function Wa(Me){var te=Me.cancel,ye=Me.completed,Ge=Me.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ft){var zt=Ge();if(zt.type!=="DRAGGING"){te();return}zt.hasMoved=!0;var Yt=Ft.touches[0],Nr=Yt.clientX,Qr=Yt.clientY,Cr={x:Nr,y:Qr};Ft.preventDefault(),zt.actions.move(Cr)}},{eventName:"touchend",fn:function(Ft){var zt=Ge();if(zt.type!=="DRAGGING"){te();return}Ft.preventDefault(),zt.actions.drop({shouldBlockNextClick:!0}),ye()}},{eventName:"touchcancel",fn:function(Ft){if(Ge().type!=="DRAGGING"){te();return}Ft.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(Ft){var zt=Ge();zt.type!=="IDLE"||pe(!1);var Yt=Ft.touches[0];if(!Yt)return;var Nr=Yt.force>=Ps;if(!Nr)return;var Qr=zt.actions.shouldRespectForcePress();if(zt.type==="PENDING"){Qr&&te();return}if(Qr){if(zt.hasMoved){Ft.preventDefault();return}te();return}Ft.preventDefault()}},{eventName:Is,fn:te}]}function Eo(Me){var te=Object(O.useRef)(As),ye=Object(O.useRef)(ue),Ge=i(function(){return te.current},[]),st=i(function(qr){te.current=qr},[]),Ft=r(function(){return{eventName:"touchstart",fn:function(qr){if(qr.defaultPrevented)return;var Cn=Me.findClosestDraggableId(qr);if(!Cn)return;var oi=Me.tryGetLock(Cn,Yt,{sourceEvent:qr});if(!oi)return;var hi=qr.touches[0],ji=hi.clientX,Oi=hi.clientY,wa={x:ji,y:Oi};ye.current(),Er(oi,wa)}}},[Me]),zt=i(function(){var qr={capture:!0,passive:!1};ye.current=ge(window,[Ft],qr)},[Ft]),Yt=i(function(){var Kr=te.current;if(Kr.type==="IDLE")return;Kr.type==="PENDING"&&clearTimeout(Kr.longPressTimerId),st(As),ye.current(),zt()},[zt,st]),Nr=i(function(){var Kr=te.current;Yt(),Kr.type==="DRAGGING"&&Kr.actions.cancel({shouldBlockNextClick:!0}),Kr.type==="PENDING"&&Kr.actions.abort()},[Yt]),Qr=i(function(){var qr={capture:!0,passive:!1},Cn={cancel:Nr,completed:Yt,getPhase:Ge},oi=ge(window,Wa(Cn),qr),hi=ge(window,po(Cn),qr);ye.current=function(){oi(),hi()}},[Nr,Ge,Yt]),Cr=i(function(){var qr=Ge();qr.type==="PENDING"||pe(!1);var Cn=qr.actions.fluidLift(qr.point);st({type:"DRAGGING",actions:Cn,hasMoved:!1})},[Ge,st]),Er=i(function(qr,Cn){Ge().type==="IDLE"||pe(!1);var oi=setTimeout(Cr,nl);st({type:"PENDING",point:Cn,actions:qr,longPressTimerId:oi}),Qr()},[Qr,Ge,st,Cr]);zo(function(){return zt(),function(){ye.current();var Cn=Ge();Cn.type==="PENDING"&&(clearTimeout(Cn.longPressTimerId),st(As))}},[Ge,zt,st]),zo(function(){var qr=ge(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qr},[])}function Xo(Me){Gt(function(){var te=fn(Me);Dr(function(){te.current.length===Me.length||pe(!1)})})}var $o={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Co(Me,te){if(te==null)return!1;var ye=Boolean($o[te.tagName.toLowerCase()]);if(ye)return!0;var Ge=te.getAttribute("contenteditable");return Ge==="true"||Ge===""?!0:te===Me?!1:Co(Me,te.parentElement)}function rs(Me,te){var ye=te.target;return gs(ye)?Co(Me,ye):!1}var os=function(te){return e(te.getBoundingClientRect()).center};function Fs(Me){return Me instanceof Es(Me).Element}var ol=function(){var Me="matches";if(typeof document=="undefined")return Me;var te=[Me,"msMatchesSelector","webkitMatchesSelector"],ye=q(te,function(Ge){return Ge in Element.prototype});return ye||Me}();function Zs(Me,te){return Me==null?null:Me[ol](te)?Me:Zs(Me.parentElement,te)}function dl(Me,te){return Me.closest?Me.closest(te):Zs(Me,te)}function hl(Me){return"["+ko.contextId+'="'+Me+'"]'}function sl(Me,te){var ye=te.target;if(!Fs(ye))return null;var Ge=hl(Me),st=dl(ye,Ge);return st&&gs(st)?st:null}function yl(Me,te){var ye=sl(Me,te);return ye?ye.getAttribute(ko.draggableId):null}function Ns(Me,te){var ye="["+Qo.contextId+'="'+Me+'"]',Ge=ht(document.querySelectorAll(ye)),st=q(Ge,function(Ft){return Ft.getAttribute(Qo.id)===te});return st&&gs(st)?st:null}function ys(Me){Me.preventDefault()}function Ds(Me){var te=Me.expected,ye=Me.phase,Ge=Me.isLockActive,st=Me.shouldWarn;return Ge()?!(te!==ye):!1}function xs(Me){var te=Me.lockAPI,ye=Me.store,Ge=Me.registry,st=Me.draggableId;if(te.isClaimed())return!1;var Ft=Ge.draggable.findById(st);return Ft&&Ft.options.isEnabled?!!Hn(ye.getState(),st):!1}function Xs(Me){var te=Me.lockAPI,ye=Me.contextId,Ge=Me.store,st=Me.registry,Ft=Me.draggableId,zt=Me.forceSensorStop,Yt=Me.sourceEvent,Nr=xs({lockAPI:te,store:Ge,registry:st,draggableId:Ft});if(!Nr)return null;var Qr=st.draggable.getById(Ft),Cr=Ns(ye,Qr.descriptor.id);if(!Cr)return null;if(Yt&&!Qr.options.canDragInteractiveElements&&rs(Cr,Yt))return null;var Er=te.claim(zt||ue),Kr="PRE_DRAG";function qr(){return Qr.options.shouldRespectForcePress}function Cn(){return te.isActive(Er)}function oi(Sa,So){Ds({expected:Sa,phase:Kr,isLockActive:Cn,shouldWarn:!0})&&Ge.dispatch(So())}var hi=oi.bind(null,"DRAGGING");function ji(Sa){function So(){te.release(),Kr="COMPLETED"}Kr!=="PRE_DRAG"&&(So(),Kr==="PRE_DRAG"||pe(!1)),Ge.dispatch(lr(Sa.liftActionArgs)),Kr="DRAGGING";function Fo(k,K){if(K===void 0&&(K={shouldBlockNextClick:!1}),Sa.cleanup(),K.shouldBlockNextClick){var Z=ge(window,[{eventName:"click",fn:ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Z)}So(),Ge.dispatch(ci({reason:k}))}return Object(A.a)({isActive:function(){return Ds({expected:"DRAGGING",phase:Kr,isLockActive:Cn,shouldWarn:!1})},shouldRespectForcePress:qr,drop:function(K){return Fo("DROP",K)},cancel:function(K){return Fo("CANCEL",K)}},Sa.actions)}function Oi(Sa){var So=N(function(k){hi(function(){return bt({client:k})})}),Fo=ji({liftActionArgs:{id:Ft,clientSelection:Sa,movementMode:"FLUID"},cleanup:function(){return So.cancel()},actions:{move:So}});return Object(A.a)({},Fo,{move:So})}function wa(){var Sa={moveUp:function(){return hi(Fr)},moveRight:function(){return hi(cn)},moveDown:function(){return hi(nn)},moveLeft:function(){return hi(tn)}};return ji({liftActionArgs:{id:Ft,clientSelection:os(Cr),movementMode:"SNAP"},cleanup:ue,actions:Sa})}function Qi(){var Sa=Ds({expected:"PRE_DRAG",phase:Kr,isLockActive:Cn,shouldWarn:!0});Sa&&te.release()}var Ua={isActive:function(){return Ds({expected:"PRE_DRAG",phase:Kr,isLockActive:Cn,shouldWarn:!1})},shouldRespectForcePress:qr,fluidLift:Oi,snapLift:wa,abort:Qi};return Ua}var ll=[as,Zo,Eo];function El(Me){var te=Me.contextId,ye=Me.store,Ge=Me.registry,st=Me.customSensors,Ft=Me.enableDefaultSensors,zt=[].concat(Ft?ll:[],st||[]),Yt=Object(O.useState)(function(){return Kn()})[0],Nr=i(function(Oi,wa){Oi.isDragging&&!wa.isDragging&&Yt.tryAbandon()},[Yt]);zo(function(){var Oi=ye.getState(),wa=ye.subscribe(function(){var Qi=ye.getState();Nr(Oi,Qi),Oi=Qi});return wa},[Yt,ye,Nr]),zo(function(){return Yt.tryAbandon},[Yt.tryAbandon]);var Qr=i(function(ji){return xs({lockAPI:Yt,registry:Ge,store:ye,draggableId:ji})},[Yt,Ge,ye]),Cr=i(function(ji,Oi,wa){return Xs({lockAPI:Yt,registry:Ge,contextId:te,store:ye,draggableId:ji,forceSensorStop:Oi,sourceEvent:wa&&wa.sourceEvent?wa.sourceEvent:null})},[te,Yt,Ge,ye]),Er=i(function(ji){return yl(te,ji)},[te]),Kr=i(function(ji){var Oi=Ge.draggable.findById(ji);return Oi?Oi.options:null},[Ge.draggable]),qr=i(function(){if(!Yt.isClaimed())return;Yt.tryAbandon(),ye.getState().phase!=="IDLE"&&ye.dispatch(Ln())},[Yt,ye]),Cn=i(Yt.isClaimed,[Yt]),oi=r(function(){return{canGetLock:Qr,tryGetLock:Cr,findClosestDraggableId:Er,findOptionsForDraggable:Kr,tryReleaseLock:qr,isLockClaimed:Cn}},[Qr,Cr,Er,Kr,qr,Cn]);Xo(zt);for(var hi=0;hi<zt.length;hi++)zt[hi](oi)}var jl=function(te){return{onBeforeCapture:te.onBeforeCapture,onBeforeDragStart:te.onBeforeDragStart,onDragStart:te.onDragStart,onDragEnd:te.onDragEnd,onDragUpdate:te.onDragUpdate}};function $s(Me){return Me.current||pe(!1),Me.current}function Nl(Me){var te=Me.contextId,ye=Me.setCallbacks,Ge=Me.sensors,st=Me.nonce,Ft=Me.dragHandleUsageInstructions,zt=Object(O.useRef)(null);Gr();var Yt=fn(Me),Nr=i(function(){return jl(Yt.current)},[Yt]),Qr=vo(te),Cr=Vt({contextId:te,text:Ft}),Er=Js(te,st),Kr=i(function(k){$s(zt).dispatch(k)},[]),qr=r(function(){return Object(w.b)({publishWhileDragging:Zt,updateDroppableScroll:Or,updateDroppableIsEnabled:Wr,updateDroppableIsCombineEnabled:An,collectionStarting:br},Kr)},[Kr]),Cn=ws(),oi=r(function(){return jn(Cn,qr)},[Cn,qr]),hi=r(function(){return za(Object(A.a)({scrollWindow:Bn,scrollDroppable:oi.scrollDroppable},Object(w.b)({move:bt},Kr)))},[oi.scrollDroppable,Kr]),ji=hs(te),Oi=r(function(){return cr({announce:Qr,autoScroller:hi,dimensionMarshal:oi,focusMarshal:ji,getResponders:Nr,styleMarshal:Er})},[Qr,hi,oi,ji,Nr,Er]);zt.current=Oi;var wa=i(function(){var k=$s(zt),K=k.getState();K.phase!=="IDLE"&&k.dispatch(Ln())},[]),Qi=i(function(){var k=$s(zt).getState();return k.isDragging||k.phase==="DROP_ANIMATING"},[]),Ua=r(function(){return{isDragging:Qi,tryAbort:wa}},[Qi,wa]);ye(Ua);var Sa=i(function(k){return Hn($s(zt).getState(),k)},[]),So=i(function(){return Br($s(zt).getState())},[]),Fo=r(function(){return{marshal:oi,focus:ji,contextId:te,canLift:Sa,isMovementAllowed:So,dragHandleUsageInstructionsId:Cr,registry:Cn}},[te,oi,Cr,ji,Sa,So,Cn]);return El({contextId:te,store:Oi,registry:Cn,customSensors:Ge,enableDefaultSensors:Me.enableDefaultSensors!==!1}),Object(O.useEffect)(function(){return wa},[wa]),E.a.createElement(hn.Provider,{value:Fo},E.a.createElement(m.a,{context:qo,store:Oi},Me.children))}var kl=0;function yu(){kl=0}function cu(){return r(function(){return""+kl++},[])}function eu(){yu(),ts()}function tu(Me){var te=cu(),ye=Me.dragHandleUsageInstructions||de.dragHandleUsageInstructions;return E.a.createElement(Ue,null,function(Ge){return E.a.createElement(Nl,{nonce:Me.nonce,contextId:te,setCallbacks:Ge,dragHandleUsageInstructions:ye,enableDefaultSensors:Me.enableDefaultSensors,sensors:Me.sensors,onBeforeCapture:Me.onBeforeCapture,onBeforeDragStart:Me.onBeforeDragStart,onDragStart:Me.onDragStart,onDragUpdate:Me.onDragUpdate,onDragEnd:Me.onDragEnd},Me.children)})}var Vl=function(te){return function(ye){return te===ye}},Ys=Vl("scroll"),il=Vl("auto"),fl=Vl("visible"),Pl=function(te,ye){return ye(te.overflowX)||ye(te.overflowY)},du=function(te,ye){return ye(te.overflowX)&&ye(te.overflowY)},ru=function(te){var ye=window.getComputedStyle(te),Ge={overflowX:ye.overflowX,overflowY:ye.overflowY};return Pl(Ge,Ys)||Pl(Ge,il)},nu=function(){return!1;var te,ye;if(!ru(te))return!1;var Ge,st;if(du(st,fl))return!1},Qs=function Me(te){return te==null?null:te===document.body?nu()?te:null:te===document.documentElement?null:ru(te)?te:Me(te.parentElement)},iu=function(te){if(!te)return;var ye=Qs(te.parentElement);if(!ye)return},au=function(te){return{x:te.scrollLeft,y:te.scrollTop}},bu=function Me(te){if(!te)return!1;var ye=window.getComputedStyle(te);return ye.position==="fixed"?!0:Me(te.parentElement)},bl=function(te){var ye=Qs(te),Ge=bu(te);return{closestScrollable:ye,isFixedOnPage:Ge}},Fl=function(te){var ye=te.descriptor,Ge=te.isEnabled,st=te.isCombineEnabled,Ft=te.isFixedOnPage,zt=te.direction,Yt=te.client,Nr=te.page,Qr=te.closest,Cr=function(){if(!Qr)return null;var Cn=Qr.scrollSize,oi=Qr.client,hi=_n({scrollHeight:Cn.scrollHeight,scrollWidth:Cn.scrollWidth,height:oi.paddingBox.height,width:oi.paddingBox.width});return{pageMarginBox:Qr.page.marginBox,frameClient:oi,scrollSize:Cn,shouldClipSubject:Qr.shouldClipSubject,scroll:{initial:Qr.scroll,current:Qr.scroll,max:hi,diff:{value:Ce,displacement:Ce}}}}(),Er=zt==="vertical"?Mn:jt,Kr=Be({page:Nr,withPlaceholder:null,axis:Er,frame:Cr}),qr={descriptor:ye,isCombineEnabled:st,isFixedOnPage:Ft,axis:Er,isEnabled:Ge,client:Yt,page:Nr,frame:Cr,subject:Kr};return qr},Hl=function(te,ye){var Ge=x(te);if(!ye)return Ge;if(te!==ye)return Ge;var st=Ge.paddingBox.top-ye.scrollTop,Ft=Ge.paddingBox.left-ye.scrollLeft,zt=st+ye.scrollHeight,Yt=Ft+ye.scrollWidth,Nr={top:st,right:Yt,bottom:zt,left:Ft},Qr=s(Nr,Ge.border),Cr=u({borderBox:Qr,margin:Ge.margin,border:Ge.border,padding:Ge.padding});return Cr},Gl=function(te){var ye=te.ref,Ge=te.descriptor,st=te.env,Ft=te.windowScroll,zt=te.direction,Yt=te.isDropDisabled,Nr=te.isCombineEnabled,Qr=te.shouldClipSubject,Cr=st.closestScrollable,Er=Hl(ye,Cr),Kr=v(Er,Ft),qr=function(){if(!Cr)return null;var oi=x(Cr),hi={scrollHeight:Cr.scrollHeight,scrollWidth:Cr.scrollWidth};return{client:oi,page:v(oi,Ft),scroll:au(Cr),scrollSize:hi,shouldClipSubject:Qr}}(),Cn=Fl({descriptor:Ge,isEnabled:!Yt,isCombineEnabled:Nr,isFixedOnPage:st.isFixedOnPage,direction:zt,client:Er,page:Kr,closest:qr});return Cn},Tl={passive:!1},Tu={passive:!0},Cu=function(te){return te.shouldPublishImmediately?Tl:Tu};function Cl(Me){var te=Object(O.useContext)(Me);return te||pe(!1),te}var ou=function(te){return te&&te.env.closestScrollable||null};function hu(Me){var te=Object(O.useRef)(null),ye=Cl(hn),Ge=Ha("droppable"),st=ye.registry,Ft=ye.marshal,zt=fn(Me),Yt=r(function(){return{id:Me.droppableId,type:Me.type,mode:Me.mode}},[Me.droppableId,Me.mode,Me.type]),Nr=Object(O.useRef)(Yt),Qr=r(function(){return I(function(Qi,Ua){te.current||pe(!1);var Sa={x:Qi,y:Ua};Ft.updateDroppableScroll(Yt.id,Sa)})},[Yt.id,Ft]),Cr=i(function(){var Qi=te.current;return!Qi||!Qi.env.closestScrollable?Ce:au(Qi.env.closestScrollable)},[]),Er=i(function(){var Qi=Cr();Qr(Qi.x,Qi.y)},[Cr,Qr]),Kr=r(function(){return N(Er)},[Er]),qr=i(function(){var Qi=te.current,Ua=ou(Qi);Qi&&Ua||pe(!1);var Sa=Qi.scrollOptions;if(Sa.shouldPublishImmediately){Er();return}Kr()},[Kr,Er]),Cn=i(function(Qi,Ua){te.current&&pe(!1);var Sa=zt.current,So=Sa.getDroppableRef();So||pe(!1);var Fo=bl(So),k={ref:So,descriptor:Yt,env:Fo,scrollOptions:Ua};te.current=k;var K=Gl({ref:So,descriptor:Yt,env:Fo,windowScroll:Qi,direction:Sa.direction,isDropDisabled:Sa.isDropDisabled,isCombineEnabled:Sa.isCombineEnabled,shouldClipSubject:!Sa.ignoreContainerClipping}),Z=Fo.closestScrollable;return Z&&(Z.setAttribute(Os.contextId,ye.contextId),Z.addEventListener("scroll",qr,Cu(k.scrollOptions))),K},[ye.contextId,Yt,qr,zt]),oi=i(function(){var Qi=te.current,Ua=ou(Qi);return Qi&&Ua||pe(!1),au(Ua)},[]),hi=i(function(){var Qi=te.current;Qi||pe(!1);var Ua=ou(Qi);if(te.current=null,!Ua)return;Kr.cancel(),Ua.removeAttribute(Os.contextId),Ua.removeEventListener("scroll",qr,Cu(Qi.scrollOptions))},[qr,Kr]),ji=i(function(Qi){var Ua=te.current;Ua||pe(!1);var Sa=ou(Ua);Sa||pe(!1),Sa.scrollTop+=Qi.y,Sa.scrollLeft+=Qi.x},[]),Oi=r(function(){return{getDimensionAndWatchScroll:Cn,getScrollWhileDragging:oi,dragStopped:hi,scroll:ji}},[hi,Cn,oi,ji]),wa=r(function(){return{uniqueId:Ge,descriptor:Yt,callbacks:Oi}},[Oi,Yt,Ge]);zo(function(){return Nr.current=wa.descriptor,st.droppable.register(wa),function(){te.current&&hi(),st.droppable.unregister(wa)}},[Oi,Yt,hi,wa,Ft,st.droppable]),zo(function(){if(!te.current)return;Ft.updateDroppableIsEnabled(Nr.current.id,!Me.isDropDisabled)},[Me.isDropDisabled,Ft]),zo(function(){if(!te.current)return;Ft.updateDroppableIsCombineEnabled(Nr.current.id,Me.isCombineEnabled)},[Me.isCombineEnabled,Ft])}function su(){}var Rs={width:0,height:0,margin:Ot},el=function(te){var ye=te.isAnimatingOpenOnMount,Ge=te.placeholder,st=te.animate;return ye||st==="close"?Rs:{height:Ge.client.borderBox.height,width:Ge.client.borderBox.width,margin:Ge.client.margin}},Bl=function(te){var ye=te.isAnimatingOpenOnMount,Ge=te.placeholder,st=te.animate,Ft=el({isAnimatingOpenOnMount:ye,placeholder:Ge,animate:st});return{display:Ge.display,boxSizing:"border-box",width:Ft.width,height:Ft.height,marginTop:Ft.margin.top,marginRight:Ft.margin.right,marginBottom:Ft.margin.bottom,marginLeft:Ft.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:st!=="none"?Di.placeholder:null}};function wu(Me){var te=Object(O.useRef)(null),ye=i(function(){if(!te.current)return;clearTimeout(te.current),te.current=null},[]),Ge=Me.animate,st=Me.onTransitionEnd,Ft=Me.onClose,zt=Me.contextId,Yt=Object(O.useState)(Me.animate==="open"),Nr=Yt[0],Qr=Yt[1];Object(O.useEffect)(function(){return Nr?Ge!=="open"?(ye(),Qr(!1),su):te.current?su:(te.current=setTimeout(function(){te.current=null,Qr(!1)}),ye):su},[Ge,Nr,ye]);var Cr=i(function(Kr){if(Kr.propertyName!=="height")return;st(),Ge==="close"&&Ft()},[Ge,Ft,st]),Er=Bl({isAnimatingOpenOnMount:Nr,animate:Me.animate,placeholder:Me.placeholder});return E.a.createElement(Me.placeholder.tagName,{style:Er,"data-rbd-placeholder-context-id":zt,onTransitionEnd:Cr,ref:Me.innerRef})}var fu=E.a.memo(wu),Xl=E.a.createContext(null);function Kl(Me){Me&&gs(Me)||pe(!1)}function lu(Me){return typeof Me=="boolean"}function pu(Me,te){te.forEach(function(ye){return ye(Me)})}var mu=[function(te){var ye=te.props;ye.droppableId||pe(!1),typeof ye.droppableId=="string"||pe(!1)},function(te){var ye=te.props;lu(ye.isDropDisabled)||pe(!1),lu(ye.isCombineEnabled)||pe(!1),lu(ye.ignoreContainerClipping)||pe(!1)},function(te){var ye=te.getDroppableRef;Kl(ye())}],pl=[function(te){var ye=te.props,Ge=te.getPlaceholderRef;if(!ye.placeholder)return;var st=Ge();if(st)return}],wl=[function(te){var ye=te.props;ye.renderClone||pe(!1)},function(te){var ye=te.getPlaceholderRef;ye()&&pe(!1)}];function Dl(Me){Dr(function(){pu(Me,mu),Me.props.mode==="standard"&&pu(Me,pl),Me.props.mode==="virtual"&&pu(Me,wl)})}var Bo=function(Me){Object(C.a)(te,Me);function te(){for(var Ge,st=arguments.length,Ft=new Array(st),zt=0;zt<st;zt++)Ft[zt]=arguments[zt];return Ge=Me.call.apply(Me,[this].concat(Ft))||this,Ge.state={isVisible:Boolean(Ge.props.on),data:Ge.props.on,animate:Ge.props.shouldAnimate&&Ge.props.on?"open":"none"},Ge.onClose=function(){if(Ge.state.animate!=="close")return;Ge.setState({isVisible:!1})},Ge}te.getDerivedStateFromProps=function(st,Ft){return st.shouldAnimate?st.on?{isVisible:!0,data:st.on,animate:"open"}:Ft.isVisible?{isVisible:!0,data:Ft.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(st.on),data:st.on,animate:"none"}};var ye=te.prototype;return ye.render=function(){if(!this.state.isVisible)return null;var st={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(st)},te}(E.a.PureComponent),Na={dragging:5e3,dropAnimating:4500},ro=function(te,ye){return ye?Di.drop(ye.duration):te?Di.snap:Di.fluid},Io=function(te,ye){return te?ye?Ti.opacity.drop:Ti.opacity.combining:null},Bs=function(te){return te.forceShouldAnimate!=null?te.forceShouldAnimate:te.mode==="SNAP"};function Ol(Me){var te=Me.dimension,ye=te.client,Ge=Me.offset,st=Me.combineWith,Ft=Me.dropping,zt=Boolean(st),Yt=Bs(Me),Nr=Boolean(Ft),Qr=Nr?aa.drop(Ge,zt):aa.moveTo(Ge),Cr={position:"fixed",top:ye.marginBox.top,left:ye.marginBox.left,boxSizing:"border-box",width:ye.borderBox.width,height:ye.borderBox.height,transition:ro(Yt,Ft),transform:Qr,opacity:Io(zt,Nr),zIndex:Nr?Na.dropAnimating:Na.dragging,pointerEvents:"none"};return Cr}function _l(Me){return{transform:aa.moveTo(Me.offset),transition:Me.shouldAnimateDisplacement?null:"none"}}function ml(Me){return Me.type==="DRAGGING"?Ol(Me):_l(Me)}function Al(Me,te,ye){ye===void 0&&(ye=Ce);var Ge=window.getComputedStyle(te),st=te.getBoundingClientRect(),Ft=y(st,Ge),zt=v(Ft,ye),Yt={client:Ft,tagName:te.tagName.toLowerCase(),display:Ge.display},Nr={x:Ft.marginBox.width,y:Ft.marginBox.height},Qr={descriptor:Me,placeholder:Yt,displaceBy:Nr,client:Ft,page:zt};return Qr}function Il(Me){var te=Ha("draggable"),ye=Me.descriptor,Ge=Me.registry,st=Me.getDraggableRef,Ft=Me.canDragInteractiveElements,zt=Me.shouldRespectForcePress,Yt=Me.isEnabled,Nr=r(function(){return{canDragInteractiveElements:Ft,shouldRespectForcePress:zt,isEnabled:Yt}},[Ft,Yt,zt]),Qr=i(function(qr){var Cn=st();return Cn||pe(!1),Al(ye,Cn,qr)},[ye,st]),Cr=r(function(){return{uniqueId:te,descriptor:ye,options:Nr,getDimension:Qr}},[ye,Qr,Nr,te]),Er=Object(O.useRef)(Cr),Kr=Object(O.useRef)(!0);zo(function(){return Ge.draggable.register(Er.current),function(){return Ge.draggable.unregister(Er.current)}},[Ge.draggable]),zo(function(){if(Kr.current){Kr.current=!1;return}var qr=Er.current;Er.current=Cr,Ge.draggable.update(Cr,qr)},[Cr,Ge.draggable])}function Ll(Me,te,ye){Dr(function(){function Ge(Ft){return"Draggable[id: "+Ft+"]: "}var st=Me.draggableId;if(st||pe(!1),typeof st=="string"||pe(!1),X(Me.index)||pe(!1),Me.mapped.type==="DRAGGING")return;Kl(ye()),Me.isEnabled&&(Ko(te,st)||pe(!1))})}function Ks(Me){Gt(function(){var te=Object(O.useRef)(Me);Dr(function(){Me===te.current||pe(!1)},[Me])})}function Yl(Me){Me.preventDefault()}function gu(Me){var te=Object(O.useRef)(null),ye=i(function(k){te.current=k},[]),Ge=i(function(){return te.current},[]),st=Cl(hn),Ft=st.contextId,zt=st.dragHandleUsageInstructionsId,Yt=st.registry,Nr=Cl(Xl),Qr=Nr.type,Cr=Nr.droppableId,Er=r(function(){return{id:Me.draggableId,index:Me.index,type:Qr,droppableId:Cr}},[Me.draggableId,Me.index,Qr,Cr]),Kr=Me.children,qr=Me.draggableId,Cn=Me.isEnabled,oi=Me.shouldRespectForcePress,hi=Me.canDragInteractiveElements,ji=Me.isClone,Oi=Me.mapped,wa=Me.dropAnimationFinished;if(Ll(Me,Ft,Ge),Ks(ji),!ji){var Qi=r(function(){return{descriptor:Er,registry:Yt,getDraggableRef:Ge,canDragInteractiveElements:hi,shouldRespectForcePress:oi,isEnabled:Cn}},[Er,Yt,Ge,hi,oi,Cn]);Il(Qi)}var Ua=r(function(){return Cn?{tabIndex:0,role:"button","aria-describedby":zt,"data-rbd-drag-handle-draggable-id":qr,"data-rbd-drag-handle-context-id":Ft,draggable:!1,onDragStart:Yl}:null},[Ft,zt,qr,Cn]),Sa=i(function(k){if(Oi.type!=="DRAGGING")return;if(!Oi.dropping)return;if(k.propertyName!=="transform")return;wa()},[wa,Oi]),So=r(function(){var k=ml(Oi),K=Oi.type==="DRAGGING"&&Oi.dropping?Sa:null,Z={innerRef:ye,draggableProps:{"data-rbd-draggable-context-id":Ft,"data-rbd-draggable-id":qr,style:k,onTransitionEnd:K},dragHandleProps:Ua};return Z},[Ft,Ua,qr,Oi,Sa,ye]),Fo=r(function(){return{draggableId:Er.id,type:Er.type,source:{index:Er.index,droppableId:Er.droppableId}}},[Er.droppableId,Er.id,Er.index,Er.type]);return Kr(So,Oi.snapshot,Fo)}var uu=function(te,ye){return te===ye},Ou=function(te){var ye=te.combine,Ge=te.destination;return Ge?Ge.droppableId:ye?ye.droppableId:null},Vu=function(te){return te.combine?te.combine.draggableId:null},Fu=function(te){return te.at&&te.at.type==="COMBINE"?te.at.combine.draggableId:null};function ec(){var Me=I(function(st,Ft){return{x:st,y:Ft}}),te=I(function(st,Ft,zt,Yt,Nr){return{isDragging:!0,isClone:Ft,isDropAnimating:Boolean(Nr),dropAnimation:Nr,mode:st,draggingOver:zt,combineWith:Yt,combineTargetFor:null}}),ye=I(function(st,Ft,zt,Yt,Nr,Qr,Cr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Nr,combineWith:Qr,mode:Ft,offset:st,dimension:zt,forceShouldAnimate:Cr,snapshot:te(Ft,Yt,Nr,Qr,null)}}}),Ge=function(Ft,zt){if(Ft.isDragging){if(Ft.critical.draggable.id!==zt.draggableId)return null;var Yt=Ft.current.client.offset,Nr=Ft.dimensions.draggables[zt.draggableId],Qr=Gn(Ft.impact),Cr=Fu(Ft.impact),Er=Ft.forceShouldAnimate;return ye(Me(Yt.x,Yt.y),Ft.movementMode,Nr,zt.isClone,Qr,Cr,Er)}if(Ft.phase==="DROP_ANIMATING"){var Kr=Ft.completed;if(Kr.result.draggableId!==zt.draggableId)return null;var qr=zt.isClone,Cn=Ft.dimensions.draggables[zt.draggableId],oi=Kr.result,hi=oi.mode,ji=Ou(oi),Oi=Vu(oi),wa=Ft.dropDuration,Qi={duration:wa,curve:vi.drop,moveTo:Ft.newHomeClientOffset,opacity:Oi?Ti.opacity.drop:null,scale:Oi?Ti.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ft.newHomeClientOffset,dimension:Cn,dropping:Qi,draggingOver:ji,combineWith:Oi,mode:hi,forceShouldAnimate:null,snapshot:te(hi,qr,ji,Oi,Qi)}}}return null};return Ge}function Bu(Me){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Me,combineWith:null}}var Gu={mapped:{type:"SECONDARY",offset:Ce,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bu(null)}};function Xu(){var Me=I(function(zt,Yt){return{x:zt,y:Yt}}),te=I(Bu),ye=I(function(zt,Yt,Nr){return Yt===void 0&&(Yt=null),{mapped:{type:"SECONDARY",offset:zt,combineTargetFor:Yt,shouldAnimateDisplacement:Nr,snapshot:te(Yt)}}}),Ge=function(Yt){return Yt?ye(Ce,Yt,!0):null},st=function(Yt,Nr,Qr,Cr){var Er=Qr.displaced.visible[Yt],Kr=Boolean(Cr.inVirtualList&&Cr.effected[Yt]),qr=dr(Qr),Cn=qr&&qr.draggableId===Yt?Nr:null;if(!Er){if(!Kr)return Ge(Cn);if(Qr.displaced.invisible[Yt])return null;var oi=xe(Cr.displacedBy.point),hi=Me(oi.x,oi.y);return ye(hi,Cn,!0)}if(Kr)return Ge(Cn);var ji=Qr.displacedBy.point,Oi=Me(ji.x,ji.y);return ye(Oi,Cn,Er.shouldAnimate)},Ft=function(Yt,Nr){if(Yt.isDragging)return Yt.critical.draggable.id===Nr.draggableId?null:st(Nr.draggableId,Yt.critical.draggable.id,Yt.impact,Yt.afterCritical);if(Yt.phase==="DROP_ANIMATING"){var Qr=Yt.completed;return Qr.result.draggableId===Nr.draggableId?null:st(Nr.draggableId,Qr.result.draggableId,Qr.impact,Qr.afterCritical)}return null};return Ft}var Yu=function(){var te=ec(),ye=Xu(),Ge=function(Ft,zt){return te(Ft,zt)||ye(Ft,zt)||Gu};return Ge},Uu={dropAnimationFinished:pi},_u=Object(m.c)(Yu,Uu,null,{context:qo,pure:!0,areStatePropsEqual:uu})(gu);function Ul(Me){var te=Cl(Xl),ye=te.isUsingCloneFor;return ye===Me.draggableId&&!Me.isClone?null:E.a.createElement(_u,Me)}function Iu(Me){var te=typeof Me.isDragDisabled=="boolean"?!Me.isDragDisabled:!0,ye=Boolean(Me.disableInteractiveElementBlocking),Ge=Boolean(Me.shouldRespectForcePress);return E.a.createElement(Ul,Object(A.a)({},Me,{isClone:!1,isEnabled:te,canDragInteractiveElements:ye,shouldRespectForcePress:Ge}))}function Wl(Me){var te=Object(O.useContext)(hn);te||pe(!1);var ye=te.contextId,Ge=te.isMovementAllowed,st=Object(O.useRef)(null),Ft=Object(O.useRef)(null),zt=Me.children,Yt=Me.droppableId,Nr=Me.type,Qr=Me.mode,Cr=Me.direction,Er=Me.ignoreContainerClipping,Kr=Me.isDropDisabled,qr=Me.isCombineEnabled,Cn=Me.snapshot,oi=Me.useClone,hi=Me.updateViewportMaxScroll,ji=Me.getContainerForClone,Oi=i(function(){return st.current},[]),wa=i(function(re){st.current=re},[]),Qi=i(function(){return Ft.current},[]),Ua=i(function(re){Ft.current=re},[]);Dl({props:Me,getDroppableRef:Oi,getPlaceholderRef:Qi});var Sa=i(function(){Ge()&&hi({maxScroll:_r()})},[Ge,hi]);hu({droppableId:Yt,type:Nr,mode:Qr,direction:Cr,isDropDisabled:Kr,isCombineEnabled:qr,ignoreContainerClipping:Er,getDroppableRef:Oi});var So=E.a.createElement(Bo,{on:Me.placeholder,shouldAnimate:Me.shouldAnimatePlaceholder},function(re){var ce=re.onClose,Pe=re.data,mt=re.animate;return E.a.createElement(fu,{placeholder:Pe,onClose:ce,innerRef:Ua,animate:mt,contextId:ye,onTransitionEnd:Sa})}),Fo=r(function(){return{innerRef:wa,placeholder:So,droppableProps:{"data-rbd-droppable-id":Yt,"data-rbd-droppable-context-id":ye}}},[ye,Yt,So,wa]),k=oi?oi.dragging.draggableId:null,K=r(function(){return{droppableId:Yt,type:Nr,isUsingCloneFor:k}},[Yt,k,Nr]);function Z(){if(!oi)return null;var re=oi.dragging,ce=oi.render,Pe=E.a.createElement(Ul,{draggableId:re.draggableId,index:re.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(mt,Wt){return ce(mt,Wt,re)});return R.a.createPortal(Pe,ji())}return E.a.createElement(Xl.Provider,{value:K},zt(Fo,Cn),Z())}var Su=function(te,ye){return te===ye.droppable.type},Ae=function(te,ye){return ye.draggables[te.draggable.id]},We=function(){var te={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ye=Object(A.a)({},te,{shouldAnimatePlaceholder:!1}),Ge=I(function(zt){return{draggableId:zt.id,type:zt.type,source:{index:zt.index,droppableId:zt.droppableId}}}),st=I(function(zt,Yt,Nr,Qr,Cr,Er){var Kr=Cr.descriptor.id,qr=Cr.descriptor.droppableId===zt;if(qr){var Cn=Er?{render:Er,dragging:Ge(Cr.descriptor)}:null,oi={isDraggingOver:Nr,draggingOverWith:Nr?Kr:null,draggingFromThisWith:Kr,isUsingPlaceholder:!0};return{placeholder:Cr.placeholder,shouldAnimatePlaceholder:!1,snapshot:oi,useClone:Cn}}if(!Yt)return ye;if(!Qr)return te;var hi={isDraggingOver:Nr,draggingOverWith:Kr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Cr.placeholder,shouldAnimatePlaceholder:!0,snapshot:hi,useClone:null}}),Ft=function(Yt,Nr){var Qr=Nr.droppableId,Cr=Nr.type,Er=!Nr.isDropDisabled,Kr=Nr.renderClone;if(Yt.isDragging){var qr=Yt.critical;if(!Su(Cr,qr))return ye;var Cn=Ae(qr,Yt.dimensions),oi=Gn(Yt.impact)===Qr;return st(Qr,Er,oi,oi,Cn,Kr)}if(Yt.phase==="DROP_ANIMATING"){var hi=Yt.completed;if(!Su(Cr,hi.critical))return ye;var ji=Ae(hi.critical,Yt.dimensions);return st(Qr,Er,Ou(hi.result)===Qr,Gn(hi.impact)===Qr,ji,Kr)}if(Yt.phase==="IDLE"&&Yt.completed&&!Yt.shouldFlush){var Oi=Yt.completed;if(!Su(Cr,Oi.critical))return ye;var wa=Gn(Oi.impact)===Qr,Qi=Boolean(Oi.impact.at&&Oi.impact.at.type==="COMBINE"),Ua=Oi.critical.droppable.id===Qr;return wa?Qi?te:ye:Ua?te:ye}return ye};return Ft},pt={updateViewportMaxScroll:vr};function nr(){return document.body||pe(!1),document.body}var Tr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nr},zr=Object(m.c)(We,pt,null,{context:qo,pure:!0,areStatePropsEqual:uu})(Wl);zr.defaultProps=Tr},ni6a:function(H,B,d){var O=d("pzxd"),E=d("mFDi"),C=d("gut8"),A=C.WILL_BE_RESTORED,w=new E,m=function(){};m.prototype={constructor:m,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&&(w.copy(r),w.applyTransform(e),r=w),O.renderText(this,o,n,i,r,A),o.restore()}};var f=m;H.exports=f},nkfE:function(H,B,d){var O=d("bYtY"),E=d("ca2m"),C=d("bLfw"),A=d("+TT/"),w=A.getLayoutParams,m=A.mergeLayoutParam,f=d("jkPA"),c=["value","category","time","log"];function o(r,i,n,e){O.each(c,function(s){i.extend({type:r+"Axis."+s,mergeDefaultAndTheme:function(t,a){var l=this.layoutMode,u=l?w(t):{},h=a.getTheme();O.merge(t,h.get(s+"Axis")),O.merge(t,this.getDefaultOption()),t.type=n(r,t),l&&m(t,u,l)},optionUpdated:function(){var t=this.option;t.type==="category"&&(this.__ordinalMeta=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([{},E[s+"Axis"],e],!0)})}),C.registerSubTypeDefaulter(r+"Axis",O.curry(n,r))}H.exports=o},noeP:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("UOVi");O.registerAction("dataZoom",function(A,w){var m=C.createLinkedNodesFinder(E.bind(w.eachComponent,w,"dataZoom"),C.eachAxisDim,function(c,o){return c.get(o.axisIndex)}),f=[];w.eachComponent({mainType:"dataZoom",query:A},function(c,o){f.push.apply(f,m(c).nodes)}),E.each(f,function(c,o){c.setRawRange({start:A.start,end:A.end,startValue:A.startValue,endValue:A.endValue})})})},o40c:function(H,B,d){var O=d("IwbS"),E=d("OS9S"),C=d("loD1"),A=d("aKvl"),w=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 s=i[e++];if(s>0){o.moveTo(i[e++],i[e++]);for(var t=1;t<s;t++)o.lineTo(i[e++],i[e++])}}else for(var e=0;e<i.length;){var a=i[e++],l=i[e++],u=i[e++],h=i[e++];if(o.moveTo(a,l),n>0){var p=(a+u)/2-(l-h)*n,g=(l+h)/2-(u-a)*n;o.quadraticCurveTo(p,g,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 s=0,t=0;t<n.length;){var a=n[t++];if(a>0)for(var l=n[t++],u=n[t++],h=1;h<a;h++){var p=n[t++],g=n[t++];if(C.containStroke(l,u,p,g))return s}s++}else for(var s=0,t=0;t<n.length;){var l=n[t++],u=n[t++],p=n[t++],g=n[t++];if(e>0){var v=(l+p)/2-(u-g)*e,y=(u+g)/2-(p-l)*e;if(A.containStroke(l,u,v,y,p,g))return s}else if(C.containStroke(l,u,p,g))return s;s++}return-1}});function m(){this.group=new O.Group}var f=m.prototype;f.isPersistent=function(){return!this._incremental},f.updateData=function(o){this.group.removeAll();var r=new w({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 E({silent:!0})),this.group.add(this._incremental)):this._incremental=null},f.incrementalUpdate=function(o,r){var i=new w;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(s){o.dataIndex=null;var t=o.findDataIndex(s.offsetX,s.offsetY);t>0&&(o.dataIndex=t+o.__startIndex)}))},f._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};var c=m;H.exports=c},oBaM:function(H,B,d){var O=d("T4UG"),E=d("5GtS"),C=d("bYtY"),A=d("7aKB"),w=A.encodeHTML,m=d("xKMd"),f=O.extend({type:"series.radar",dependencies:["radar"],init:function(o){f.superApply(this,"init",arguments),this.legendVisualProvider=new m(C.bind(this.getData,this),C.bind(this.getRawData,this))},getInitialData:function(o,r){return E(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(o){var r=this.getData(),i=this.coordinateSystem,n=i.getIndicatorAxes(),e=this.getData().getName(o);return w(e===""?this.name:e)+"<br/>"+C.map(n,function(s,t){var a=r.get(r.mapDimension(s.dim),o);return w(s.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,s=n.length;e<s;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,B,d){var O=d("bLfw");O.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(H,B,d){},oRuE:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso10126={pad:function(C,A){var w=A*4,m=w-C.sigBytes%w;C.concat(O.lib.WordArray.random(m-1)).concat(O.lib.WordArray.create([m<<24],1))},unpad:function(C){var A=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=A}},O.pad.Iso10126})},oVpE:function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("mFDi"),A=d("6GrX"),w=A.calculateTextPosition,m=E.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,l){var u=l.cx,h=l.cy,p=l.width/2,g=l.height/2;a.moveTo(u,h-g),a.lineTo(u+p,h+g),a.lineTo(u-p,h+g),a.closePath()}}),f=E.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,l){var u=l.cx,h=l.cy,p=l.width/2,g=l.height/2;a.moveTo(u,h-g),a.lineTo(u+p,h),a.lineTo(u,h+g),a.lineTo(u-p,h),a.closePath()}}),c=E.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,l){var u=l.x,h=l.y,p=l.width/5*3,g=Math.max(p,l.height),v=p/2,y=v*v/(g-v),x=h-g+v+y,T=Math.asin(y/v),S=Math.cos(T)*v,b=Math.sin(T),_=Math.cos(T),I=v*.6,L=v*.7;a.moveTo(u-S,x+y),a.arc(u,x,v,Math.PI-T,Math.PI*2+T),a.bezierCurveTo(u+S-b*I,x+y+_*I,u,h-L,u,h),a.bezierCurveTo(u,h-L,u-S+b*I,x+y+_*I,u-S,x+y),a.closePath()}}),o=E.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,l){var u=l.height,h=l.width,p=l.x,g=l.y,v=h/3*2;a.moveTo(p,g),a.lineTo(p+v,g+u),a.lineTo(p,g+u/4*3),a.lineTo(p-v,g+u),a.lineTo(p,g),a.closePath()}}),r={line:E.Line,rect:E.Rect,roundRect:E.Rect,square:E.Rect,circle:E.Circle,diamond:f,pin:c,arrow:o,triangle:m},i={line:function(a,l,u,h,p){p.x1=a,p.y1=l+h/2,p.x2=a+u,p.y2=l+h/2},rect:function(a,l,u,h,p){p.x=a,p.y=l,p.width=u,p.height=h},roundRect:function(a,l,u,h,p){p.x=a,p.y=l,p.width=u,p.height=h,p.r=Math.min(u,h)/4},square:function(a,l,u,h,p){var g=Math.min(u,h);p.x=a,p.y=l,p.width=g,p.height=g},circle:function(a,l,u,h,p){p.cx=a+u/2,p.cy=l+h/2,p.r=Math.min(u,h)/2},diamond:function(a,l,u,h,p){p.cx=a+u/2,p.cy=l+h/2,p.width=u,p.height=h},pin:function(a,l,u,h,p){p.x=a+u/2,p.y=l+h/2,p.width=u,p.height=h},arrow:function(a,l,u,h,p){p.x=a+u/2,p.y=l+h/2,p.width=u,p.height=h},triangle:function(a,l,u,h,p){p.cx=a+u/2,p.cy=l+h/2,p.width=u,p.height=h}},n={};O.each(r,function(a,l){n[l]=new a});var e=E.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(a,l,u){var h=w(a,l,u),p=this.shape;return p&&p.symbolType==="pin"&&l.textPosition==="inside"&&(h.y=u.y+u.height*.4),h},buildPath:function(a,l,u){var h=l.symbolType;if(h!=="none"){var p=n[h];p||(h="rect",p=n[h]),i[h](l.x,l.y,l.width,l.height,p.shape),p.buildPath(a,p.shape,u)}}});function s(a,l){if(this.type!=="image"){var u=this.style,h=this.shape;h&&h.symbolType==="line"?u.stroke=a:this.__isEmptyBrush?(u.stroke=a,u.fill=l||"#fff"):(u.fill&&(u.fill=a),u.stroke&&(u.stroke=a)),this.dirty(!1)}}function t(a,l,u,h,p,g,v){var y=a.indexOf("empty")===0;y&&(a=a.substr(5,1).toLowerCase()+a.substr(6));var x;return a.indexOf("image://")===0?x=E.makeImage(a.slice(8),new C(l,u,h,p),v?"center":"cover"):a.indexOf("path://")===0?x=E.makePath(a.slice(7),{},new C(l,u,h,p),v?"center":"cover"):x=new e({shape:{symbolType:a,x:l,y:u,width:h,height:p}}),x.__isEmptyBrush=y,x.setColor=s,x.setColor(g),x}B.createSymbol=t},oY9F:function(H,B,d){var O=d("OlYY"),E=O.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});H.exports=E},osHv:function(H,B,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var E=O.Pos;function C(l,u){return l.line-u.line||l.ch-u.ch}var 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",w=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",m=new RegExp("<(/?)(["+A+"]["+w+"]*)","g");function f(l,u,h,p){this.line=u,this.ch=h,this.cm=l,this.text=l.getLine(u),this.min=p?Math.max(p.from,l.firstLine()):l.firstLine(),this.max=p?Math.min(p.to-1,l.lastLine()):l.lastLine()}function c(l,u){var h=l.cm.getTokenTypeAt(E(l.line,u));return h&&/\btag\b/.test(h)}function o(l){return l.line>=l.max?void 0:(l.ch=0,l.text=l.cm.getLine(++l.line),!0)}function r(l){return l.line<=l.min?void 0:(l.text=l.cm.getLine(--l.line),l.ch=l.text.length,!0)}function i(l){for(;;){var u=l.text.indexOf(">",l.ch);if(u==-1){if(o(l))continue;return}if(!c(l,u+1)){l.ch=u+1;continue}var h=l.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(l.text.slice(h+1,u));return l.ch=u+1,p?"selfClose":"regular"}}function n(l){for(;;){var u=l.ch?l.text.lastIndexOf("<",l.ch-1):-1;if(u==-1){if(r(l))continue;return}if(!c(l,u+1)){l.ch=u;continue}m.lastIndex=u,l.ch=u;var h=m.exec(l.text);if(h&&h.index==u)return h}}function e(l){for(;;){m.lastIndex=l.ch;var u=m.exec(l.text);if(!u){if(o(l))continue;return}if(!c(l,u.index+1)){l.ch=u.index+1;continue}return l.ch=u.index+u[0].length,u}}function s(l){for(;;){var u=l.ch?l.text.lastIndexOf(">",l.ch-1):-1;if(u==-1){if(r(l))continue;return}if(!c(l,u+1)){l.ch=u;continue}var h=l.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(l.text.slice(h+1,u));return l.ch=u+1,p?"selfClose":"regular"}}function t(l,u){for(var h=[];;){var p=e(l),g,v=l.line,y=l.ch-(p?p[0].length:0);if(!p||!(g=i(l)))return;if(g=="selfClose")continue;if(p[1]){for(var x=h.length-1;x>=0;--x)if(h[x]==p[2]){h.length=x;break}if(x<0&&(!u||u==p[2]))return{tag:p[2],from:E(v,y),to:E(l.line,l.ch)}}else h.push(p[2])}}function a(l,u){for(var h=[];;){var p=s(l);if(!p)return;if(p=="selfClose"){n(l);continue}var g=l.line,v=l.ch,y=n(l);if(!y)return;if(y[1])h.push(y[2]);else{for(var x=h.length-1;x>=0;--x)if(h[x]==y[2]){h.length=x;break}if(x<0&&(!u||u==y[2]))return{tag:y[2],from:E(l.line,l.ch),to:E(g,v)}}}}O.registerHelper("fold","xml",function(l,u){for(var h=new f(l,u.line,0);;){var p=e(h);if(!p||h.line!=u.line)return;var g=i(h);if(!g)return;if(!p[1]&&g!="selfClose"){var v=E(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(l,u,h){var p=new f(l,u.line,u.ch,h);if(p.text.indexOf(">")==-1&&p.text.indexOf("<")==-1)return;var g=i(p),v=g&&E(p.line,p.ch),y=g&&n(p);if(!g||!y||C(p,u)>0)return;var x={from:E(p.line,p.ch),to:v,tag:y[2]};return g=="selfClose"?{open:x,close:null,at:"open"}:y[1]?{open:a(p,y[2]),close:x,at:"close"}:(p=new f(l,v.line,v.ch,h),{open:x,close:t(p,y[2]),at:"open"})},O.findEnclosingTag=function(l,u,h,p){for(var g=new f(l,u.line,u.ch,h);;){var v=a(g,p);if(!v)break;var y=new f(l,u.line,u.ch,h),x=t(y,v.tag);if(x)return{open:v,close:x}}},O.scanForClosingTag=function(l,u,h,p){var g=new f(l,u.line,u.ch,p?{from:0,to:p}:null);return t(g,h)}})},ozfa:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("KxFI"),A=d.n(C)},"p+If":function(H,B,d){var O=d("ProS");d("cpOr"),d("rkZ5");var E=d("ZYIC"),C=d("7ph2");O.registerLayout(E),O.registerVisual(C)},"p/La":function(H,B){var d=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function O(E,C){E==="china"&&C.name==="\u53F0\u6E7E"&&C.geometries.push({type:"polygon",exterior:d[0]})}H.exports=O},p1MT:function(H,B,d){var O=d("Hw7h"),E=d("IwbS"),C=d("6Ic6"),A=d("OELB"),w=A.parsePercent,m=A.round,f=A.linearMap;function c(e,s){var t=e.get("center"),a=s.getWidth(),l=s.getHeight(),u=Math.min(a,l),h=w(t[0],s.getWidth()),p=w(t[1],s.getHeight()),g=w(e.get("radius"),u/2);return{cx:h,cy:p,r:g}}function o(e,s){return s&&(typeof s=="string"?e=s.replace("{value}",e!=null?e:""):typeof s=="function"&&(e=s(e))),e}var r=Math.PI*2,i=C.extend({type:"gauge",render:function(e,s,t){this.group.removeAll();var a=e.get("axisLine.lineStyle.color"),l=c(e,t);this._renderMain(e,s,t,a,l)},dispose:function(){},_renderMain:function(e,s,t,a,l){for(var u=this.group,h=e.getModel("axisLine"),p=h.getModel("lineStyle"),g=e.get("clockwise"),v=-e.get("startAngle")/180*Math.PI,y=-e.get("endAngle")/180*Math.PI,x=(y-v)%r,T=v,S=p.get("width"),b=h.get("show"),_=0;b&&_<a.length;_++){var I=Math.min(Math.max(a[_][0],0),1),y=v+x*I,L=new E.Sector({shape:{startAngle:T,endAngle:y,cx:l.cx,cy:l.cy,clockwise:g,r0:l.r-S,r:l.r},silent:!0});L.setStyle({fill:a[_][1]}),L.setStyle(p.getLineStyle(["color","borderWidth","borderColor"])),u.add(L),T=y}var N=function(R){if(R<=0)return a[0][1];for(var P=0;P<a.length;P++)if(a[P][0]>=R&&(P===0?0:a[P-1][0])<R)return a[P][1];return a[P-1][1]};if(!g){var D=v;v=y,y=D}this._renderTicks(e,s,t,N,l,v,y,g),this._renderPointer(e,s,t,N,l,v,y,g),this._renderTitle(e,s,t,N,l),this._renderDetail(e,s,t,N,l)},_renderTicks:function(e,s,t,a,l,u,h,p){for(var g=this.group,v=l.cx,y=l.cy,x=l.r,T=+e.get("min"),S=+e.get("max"),b=e.getModel("splitLine"),_=e.getModel("axisTick"),I=e.getModel("axisLabel"),L=e.get("splitNumber"),N=_.get("splitNumber"),D=w(b.get("length"),x),R=w(_.get("length"),x),P=u,M=(h-u)/L,U=M/N,F=b.getModel("lineStyle").getLineStyle(),j=_.getModel("lineStyle").getLineStyle(),W=0;W<=L;W++){var V=Math.cos(P),z=Math.sin(P);if(b.get("show")){var Y=new E.Line({shape:{x1:V*x+v,y1:z*x+y,x2:V*(x-D)+v,y2:z*(x-D)+y},style:F,silent:!0});F.stroke==="auto"&&Y.setStyle({stroke:a(W/L)}),g.add(Y)}if(I.get("show")){var $=o(m(W/L*(S-T)+T),I.get("formatter")),ue=I.get("distance"),ne=a(W/L);g.add(new E.Text({style:E.setTextStyle({},I,{text:$,x:V*(x-D-ue)+v,y:z*(x-D-ue)+y,textVerticalAlign:z<-.4?"top":z>.4?"bottom":"middle",textAlign:V<-.4?"left":V>.4?"right":"center"},{autoColor:ne}),silent:!0}))}if(_.get("show")&&W!==L){for(var ge=0;ge<=N;ge++){var V=Math.cos(P),z=Math.sin(P),Oe=new E.Line({shape:{x1:V*x+v,y1:z*x+y,x2:V*(x-R)+v,y2:z*(x-R)+y},silent:!0,style:j});j.stroke==="auto"&&Oe.setStyle({stroke:a((W+ge/N)/L)}),g.add(Oe),P+=U}P-=U}else P+=M}},_renderPointer:function(e,s,t,a,l,u,h,p){var g=this.group,v=this._data;if(!e.get("pointer.show")){v&&v.eachItemGraphicEl(function(b){g.remove(b)});return}var y=[+e.get("min"),+e.get("max")],x=[u,h],T=e.getData(),S=T.mapDimension("value");T.diff(v).add(function(b){var _=new O({shape:{angle:u}});E.initProps(_,{shape:{angle:f(T.get(S,b),y,x,!0)}},e),g.add(_),T.setItemGraphicEl(b,_)}).update(function(b,_){var I=v.getItemGraphicEl(_);E.updateProps(I,{shape:{angle:f(T.get(S,b),y,x,!0)}},e),g.add(I),T.setItemGraphicEl(b,I)}).remove(function(b){var _=v.getItemGraphicEl(b);g.remove(_)}).execute(),T.eachItemGraphicEl(function(b,_){var I=T.getItemModel(_),L=I.getModel("pointer");b.setShape({x:l.cx,y:l.cy,width:w(L.get("width"),l.r),r:w(L.get("length"),l.r)}),b.useStyle(I.getModel("itemStyle").getItemStyle()),b.style.fill==="auto"&&b.setStyle("fill",a(f(T.get(S,_),y,[0,1],!0))),E.setHoverStyle(b,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=T},_renderTitle:function(e,s,t,a,l){var u=e.getData(),h=u.mapDimension("value"),p=e.getModel("title");if(p.get("show")){var g=p.get("offsetCenter"),v=l.cx+w(g[0],l.r),y=l.cy+w(g[1],l.r),x=+e.get("min"),T=+e.get("max"),S=e.getData().get(h,0),b=a(f(S,[x,T],[0,1],!0));this.group.add(new E.Text({silent:!0,style:E.setTextStyle({},p,{x:v,y,text:u.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:b,forceRich:!0})}))}},_renderDetail:function(e,s,t,a,l){var u=e.getModel("detail"),h=+e.get("min"),p=+e.get("max");if(u.get("show")){var g=u.get("offsetCenter"),v=l.cx+w(g[0],l.r),y=l.cy+w(g[1],l.r),x=w(u.get("width"),l.r),T=w(u.get("height"),l.r),S=e.getData(),b=S.get(S.mapDimension("value"),0),_=a(f(b,[h,p],[0,1],!0));this.group.add(new E.Text({silent:!0,style:E.setTextStyle({},u,{x:v,y,text:o(b,u.get("formatter")),textWidth:isNaN(x)?null:x,textHeight:isNaN(T)?null:T,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),n=i;H.exports=n},"p77/":function(H,B,d){},pA7S:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.WordArray,w=C.BlockCipher,m=E.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=m.DES=w.extend({_doReset:function(){for(var l=this._key,u=l.words,h=[],p=0;p<56;p++){var g=f[p]-1;h[p]=u[g>>>5]>>>31-g%32&1}for(var v=this._subKeys=[],y=0;y<16;y++){for(var x=v[y]=[],T=o[y],p=0;p<24;p++)x[p/6|0]|=h[(c[p]-1+T)%28]<<31-p%6,x[4+(p/6|0)]|=h[28+(c[p+24]-1+T)%28]<<31-p%6;x[0]=x[0]<<1|x[0]>>>31;for(var p=1;p<7;p++)x[p]=x[p]>>>(p-1)*4+3;x[7]=x[7]<<5|x[7]>>>27}for(var S=this._invSubKeys=[],p=0;p<16;p++)S[p]=v[15-p]},encryptBlock:function(l,u){this._doCryptBlock(l,u,this._subKeys)},decryptBlock:function(l,u){this._doCryptBlock(l,u,this._invSubKeys)},_doCryptBlock:function(l,u,h){this._lBlock=l[u],this._rBlock=l[u+1],e.call(this,4,252645135),e.call(this,16,65535),s.call(this,2,858993459),s.call(this,8,16711935),e.call(this,1,1431655765);for(var p=0;p<16;p++){for(var g=h[p],v=this._lBlock,y=this._rBlock,x=0,T=0;T<8;T++)x|=r[T][((y^g[T])&i[T])>>>0];this._lBlock=y,this._rBlock=v^x}var S=this._lBlock;this._lBlock=this._rBlock,this._rBlock=S,e.call(this,1,1431655765),s.call(this,8,16711935),s.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),l[u]=this._lBlock,l[u+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(a,l){var u=(this._lBlock>>>a^this._rBlock)&l;this._rBlock^=u,this._lBlock^=u<<a}function s(a,l){var u=(this._rBlock>>>a^this._lBlock)&l;this._lBlock^=u,this._rBlock^=u<<a}E.DES=w._createHelper(n);var t=m.TripleDES=w.extend({_doReset:function(){var l=this._key,u=l.words;if(u.length!==2&&u.length!==4&&u.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=u.slice(0,2),p=u.length<4?u.slice(0,2):u.slice(2,4),g=u.length<6?u.slice(0,2):u.slice(4,6);this._des1=n.createEncryptor(A.create(h)),this._des2=n.createEncryptor(A.create(p)),this._des3=n.createEncryptor(A.create(g))},encryptBlock:function(l,u){this._des1.encryptBlock(l,u),this._des2.decryptBlock(l,u),this._des3.encryptBlock(l,u)},decryptBlock:function(l,u){this._des3.decryptBlock(l,u),this._des2.encryptBlock(l,u),this._des1.decryptBlock(l,u)},keySize:192/32,ivSize:64/32,blockSize:64/32});E.TripleDES=w._createHelper(t)}(),O.TripleDES})},pC0b:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("xzDV"),A=d.n(C),w=d("5Dmo")},"pED+":function(H,B,d){},pG52:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("WXVj"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},pLH3:function(H,B,d){var O=d("ProS");d("ALo7"),d("TWL2");var E=d("mOdp"),C=d("JLnu"),A=d("0/Rx");O.registerVisual(E("funnel")),O.registerLayout(C),O.registerProcessor(A("funnel"))},pP6R:function(H,B,d){var O=d("ProS"),E="\0_ec_interaction_mutex";function C(f,c,o){var r=m(f);r[c]=o}function A(f,c,o){var r=m(f),i=r[c];i===o&&(r[c]=null)}function w(f,c){return!!m(f)[c]}function m(f){return f[E]||(f[E]={})}O.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),B.take=C,B.release=A,B.isTaken=w},pmaE:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),A=d("DEFe"),w="__seriesMapHighDown",m="__seriesMapCallKey",f=O.extendChartView({type:"map",render:function(r,i,n,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var s=this.group;if(s.removeAll(),r.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===r.id){var t=this._mapDraw;t&&s.add(t.group)}else if(r.needsDrawMap){var t=this._mapDraw||new A(n,!0);s.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,s=this.group;e.each(e.mapDimension("value"),function(t,a){if(isNaN(t))return;var l=e.getItemLayout(a);if(!l||!l.point)return;var u=l.point,h=l.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 g=r.mainSeries.getData(),v=e.getName(a),y=g.indexOfName(v),x=e.getItemModel(a),T=x.getModel("label"),S=x.getModel("emphasis.label"),b=g.getItemGraphicEl(y),_=E.retrieve2(r.getFormattedLabel(y,"normal"),v),I=E.retrieve2(r.getFormattedLabel(y,"emphasis"),_),L=b[w],N=Math.random();if(!L){L=b[w]={};var D=E.curry(c,!0),R=E.curry(c,!1);b.on("mouseover",D).on("mouseout",R).on("emphasis",D).on("normal",R)}b[m]=N,E.extend(L,{recordVersion:N,circle:p,labelModel:T,hoverLabelModel:S,emphasisText:I,normalText:_}),o(L,!1)}s.add(p)})}});function c(r){var i=this[w];i&&i.recordVersion===this[m]&&o(i,r)}function o(r,i){var n=r.circle,e=r.labelModel,s=r.hoverLabelModel,t=r.emphasisText,a=r.normalText;i?(n.style.extendFrom(C.setTextStyle({},s,{text:s.get("show")?t:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=C.Z2_EMPHASIS_LIFT):(C.setTextStyle(n.style,e,{text:e.get("show")?a:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),n.__mapOriginalZ2!=null&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}H.exports=f},pwpV:function(H,B,d){},pzxd:function(H,B,d){var O=d("bYtY"),E=O.retrieve2,C=O.retrieve3,A=O.each,w=O.normalizeCssArray,m=O.isString,f=O.isObject,c=d("6GrX"),o=d("VpOo"),r=d("Xnb7"),i=d("fW2E"),n=d("gut8"),e=n.ContextCachedBy,s=n.WILL_BE_RESTORED,t=c.DEFAULT_FONT,a={left:1,right:1,center:1},l={top:1,bottom:1,middle:1},u=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},p={};function g(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||l[z]?z:"top";var Y=W.textPadding;Y&&(W.textPadding=w(W.textPadding))}}function y(W,V,z,Y,$,ue){Y.rich?T(W,V,z,Y,$,ue):x(W,V,z,Y,$,ue)}function x(W,V,z,Y,$,ue){"use strict";var ne=I(Y),ge,Oe=!1,De=V.__attrCachedBy===e.PLAIN_TEXT;ue!==s?(ue&&(ge=ue.style,Oe=!ne&&De&&ge),V.__attrCachedBy=ne?e.NONE:e.PLAIN_TEXT):De&&(V.__attrCachedBy=e.NONE);var He=Y.font||t;(!Oe||He!==(ge.font||t))&&(V.font=He);var pe=W.__computedFont;W.__styleFont!==He&&(W.__styleFont=He,pe=W.__computedFont=V.font);var Ue=Y.textPadding,oe=Y.textLineHeight,ee=W.__textCotentBlock;(!ee||W.__dirtyText)&&(ee=W.__textCotentBlock=c.parsePlainText(z,pe,Ue,oe,Y.truncate));var Xe=ee.outerHeight,se=ee.lines,Q=ee.lineHeight,G=D(p,W,Y,$),J=G.baseX,ve=G.baseY,de=G.textAlign||"left",Ce=G.textVerticalAlign;b(V,Y,$,J,ve);var Ee=c.adjustTextY(ve,Xe,Ce),le=J,fe=Ee;if(ne||Ue){var xe=c.getWidth(z,pe),Qe=xe;Ue&&(Qe+=Ue[1]+Ue[3]);var ot=c.adjustTextX(J,Qe,de);ne&&L(W,V,Y,ot,Ee,Qe,Xe),Ue&&(le=F(J,de,Ue),fe+=Ue[0])}V.textAlign=de,V.textBaseline="middle",V.globalAlpha=Y.opacity||1;for(var Je=0;Je<u.length;Je++){var Te=u[Je],et=Te[0],ze=Te[1],nt=Y[et];(!Oe||nt!==ge[et])&&(V[ze]=i(V,ze,nt||Te[2]))}fe+=Q/2;var Ot=Y.textStrokeWidth,Ct=Oe?ge.textStrokeWidth:null,Tt=!Oe||Ot!==Ct,Dt=!Oe||Tt||Y.textStroke!==ge.textStroke,Be=P(Y.textStroke,Ot),ie=M(Y.textFill);if(Be&&(Tt&&(V.lineWidth=Ot),Dt&&(V.strokeStyle=Be)),ie&&((!Oe||Y.textFill!==ge.textFill)&&(V.fillStyle=ie)),se.length===1)Be&&V.strokeText(se[0],le,fe),ie&&V.fillText(se[0],le,fe);else for(var Je=0;Je<se.length;Je++)Be&&V.strokeText(se[Je],le,fe),ie&&V.fillText(se[Je],le,fe),fe+=Q}function T(W,V,z,Y,$,ue){ue!==s&&(V.__attrCachedBy=e.NONE);var ne=W.__textCotentBlock;(!ne||W.__dirtyText)&&(ne=W.__textCotentBlock=c.parseRichText(z,Y)),S(W,V,ne,Y,$)}function S(W,V,z,Y,$){var ue=z.width,ne=z.outerWidth,ge=z.outerHeight,Oe=Y.textPadding,De=D(p,W,Y,$),He=De.baseX,pe=De.baseY,Ue=De.textAlign,oe=De.textVerticalAlign;b(V,Y,$,He,pe);var ee=c.adjustTextX(He,ne,Ue),Xe=c.adjustTextY(pe,ge,oe),se=ee,Q=Xe;Oe&&(se+=Oe[3],Q+=Oe[0]);var G=se+ue;I(Y)&&L(W,V,Y,ee,Xe,ne,ge);for(var J=0;J<z.lines.length;J++){for(var ve=z.lines[J],de=ve.tokens,Ce=de.length,Ee=ve.lineHeight,le=ve.width,fe=0,xe=se,Qe=G,ot=Ce-1,Je;fe<Ce&&(Je=de[fe],!Je.textAlign||Je.textAlign==="left");)_(W,V,Je,Y,Ee,Q,xe,"left"),le-=Je.width,xe+=Je.width,fe++;for(;ot>=0&&(Je=de[ot],Je.textAlign==="right");)_(W,V,Je,Y,Ee,Q,Qe,"right"),le-=Je.width,Qe-=Je.width,ot--;for(xe+=(ue-(xe-se)-(G-Qe)-le)/2;fe<=ot;)Je=de[fe],_(W,V,Je,Y,Ee,Q,xe+Je.width/2,"center"),xe+=Je.width,fe++;Q+=Ee}}function b(W,V,z,Y,$){if(z&&V.textRotation){var ue=V.textOrigin;ue==="center"?(Y=z.width/2+z.x,$=z.height/2+z.y):ue&&(Y=ue[0]+z.x,$=ue[1]+z.y),W.translate(Y,$),W.rotate(-V.textRotation),W.translate(-Y,-$)}}function _(W,V,z,Y,$,ue,ne,ge){var Oe=Y.rich[z.styleName]||{};Oe.text=z.text;var De=z.textVerticalAlign,He=ue+$/2;De==="top"?He=ue+z.height/2:De==="bottom"&&(He=ue+$-z.height/2),!z.isLineHolder&&I(Oe)&&L(W,V,Oe,ge==="right"?ne-z.width:ge==="center"?ne-z.width/2:ne,He-z.height/2,z.width,z.height);var pe=z.textPadding;pe&&(ne=F(ne,ge,pe),He-=z.height/2-pe[2]-z.textHeight/2),R(V,"shadowBlur",C(Oe.textShadowBlur,Y.textShadowBlur,0)),R(V,"shadowColor",Oe.textShadowColor||Y.textShadowColor||"transparent"),R(V,"shadowOffsetX",C(Oe.textShadowOffsetX,Y.textShadowOffsetX,0)),R(V,"shadowOffsetY",C(Oe.textShadowOffsetY,Y.textShadowOffsetY,0)),R(V,"textAlign",ge),R(V,"textBaseline","middle"),R(V,"font",z.font||t);var Ue=P(Oe.textStroke||Y.textStroke,ee),oe=M(Oe.textFill||Y.textFill),ee=E(Oe.textStrokeWidth,Y.textStrokeWidth);Ue&&(R(V,"lineWidth",ee),R(V,"strokeStyle",Ue),V.strokeText(z.text,ne,He)),oe&&(R(V,"fillStyle",oe),V.fillText(z.text,ne,He))}function I(W){return!!(W.textBackgroundColor||W.textBorderWidth&&W.textBorderColor)}function L(W,V,z,Y,$,ue,ne){var ge=z.textBackgroundColor,Oe=z.textBorderWidth,De=z.textBorderColor,He=m(ge);if(R(V,"shadowBlur",z.textBoxShadowBlur||0),R(V,"shadowColor",z.textBoxShadowColor||"transparent"),R(V,"shadowOffsetX",z.textBoxShadowOffsetX||0),R(V,"shadowOffsetY",z.textBoxShadowOffsetY||0),He||Oe&&De){V.beginPath();var pe=z.textBorderRadius;pe?o.buildPath(V,{x:Y,y:$,width:ue,height:ne,r:pe}):V.rect(Y,$,ue,ne),V.closePath()}if(He)if(R(V,"fillStyle",ge),z.fillOpacity!=null){var Ue=V.globalAlpha;V.globalAlpha=z.fillOpacity*z.opacity,V.fill(),V.globalAlpha=Ue}else V.fill();else if(f(ge)){var oe=ge.image;oe=r.createOrUpdateImage(oe,null,W,N,ge),oe&&r.isImageReady(oe)&&V.drawImage(oe,Y,$,ue,ne)}if(Oe&&De)if(R(V,"lineWidth",Oe),R(V,"strokeStyle",De),z.strokeOpacity!=null){var Ue=V.globalAlpha;V.globalAlpha=z.strokeOpacity*z.opacity,V.stroke(),V.globalAlpha=Ue}else V.stroke()}function N(W,V){V.image=W}function D(W,V,z,Y){var $=z.x||0,ue=z.y||0,ne=z.textAlign,ge=z.textVerticalAlign;if(Y){var Oe=z.textPosition;if(Oe instanceof Array)$=Y.x+U(Oe[0],Y.width),ue=Y.y+U(Oe[1],Y.height);else{var De=V&&V.calculateTextPosition?V.calculateTextPosition(h,z,Y):c.calculateTextPosition(h,z,Y);$=De.x,ue=De.y,ne=ne||De.textAlign,ge=ge||De.textVerticalAlign}var He=z.textOffset;He&&($+=He[0],ue+=He[1])}return W=W||{},W.baseX=$,W.baseY=ue,W.textAlign=ne,W.textVerticalAlign=ge,W}function R(W,V,z){return W[V]=i(W,V,z),W[V]}function P(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 F(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)}B.normalizeTextStyle=g,B.renderText=y,B.getBoxPosition=D,B.getStroke=P,B.getFill=M,B.parsePercent=U,B.needDrawText=j},"q/+u":function(H,B,d){var O=d("ProS"),E=d("9wZj"),C=d("yWXo"),A=d("h8O9");O.extendChartView({type:"scatter",render:function(w,m,f){var c=w.getData(),o=this._updateSymbolDraw(c,w);o.updateData(c,{clipShape:this._getClipShape(w)}),this._finished=!0},incrementalPrepareRender:function(w,m,f){var c=w.getData(),o=this._updateSymbolDraw(c,w);o.incrementalPrepareUpdate(c),this._finished=!1},incrementalRender:function(w,m,f){this._symbolDraw.incrementalUpdate(w,m.getData(),{clipShape:this._getClipShape(m)}),this._finished=w.end===m.getData().count()},updateTransform:function(w,m,f){var c=w.getData();if(this.group.dirty(),!this._finished||c.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=A().reset(w);o.progress&&o.progress({start:0,end:c.count()},c),this._symbolDraw.updateLayout(c)},_getClipShape:function(w){var m=w.coordinateSystem,f=m&&m.getArea&&m.getArea();return w.get("clip",!0)?f:null},_updateSymbolDraw:function(w,m){var f=this._symbolDraw,c=m.pipelineContext,o=c.large;return(!f||o!==this._isLargeDraw)&&(f&&f.remove(),f=this._symbolDraw=o?new C:new E,this._isLargeDraw=o,this.group.removeAll()),this.group.add(f.group),f},remove:function(w,m){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(H,B){var d=["lineStyle","normal","opacity"],O={seriesType:"parallel",reset:function(E,C,A){var w=E.getModel("itemStyle"),m=E.getModel("lineStyle"),f=C.get("color"),c=m.get("color")||w.get("color")||f[E.seriesIndex%f.length],o=E.get("inactiveOpacity"),r=E.get("activeOpacity"),i=E.getModel("lineStyle").getLineStyle(),n=E.coordinateSystem,e=E.getData(),s={normal:i.opacity,active:r,inactive:o};e.setVisual("color",c);function t(a,l){n.eachActiveState(l,function(u,h){var p=s[u];if(u==="normal"&&l.hasItemOption){var g=l.getItemModel(h).get(d,!0);g!=null&&(p=g)}l.setItemVisual(h,"opacity",p)},a.start,a.end)}return{progress:t}}};H.exports=O},q4HE:function(H,B){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+E+C,w="\\ufe0e\\ufe0f",m="["+d+"]",f="["+A+"]",c="\\ud83c[\\udffb-\\udfff]",o="(?:"+f+"|"+c+")",r="[^"+d+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",s=o+"?",t="["+w+"]?",a="(?:"+e+"(?:"+[r,i,n].join("|")+")"+t+s+")*",l=t+s+a,u="(?:"+[r+f+"?",f,i,n,m].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+l,"g");function p(g){for(var v=h.lastIndex=0;h.test(g);)++v;return v}H.exports=p},q7KB:function(H,B,d){},qBft:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.AnsiX923={pad:function(C,A){var w=C.sigBytes,m=A*4,f=m-w%m,c=w+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,B,d){var O=d("ItGF"),E=d("QBsz"),C=E.applyTransform,A=d("mFDi"),w=d("Qe9p"),m=d("6GrX"),f=d("pzxd"),c=d("ni6a"),o=d("Gev7"),r=d("Dagg"),i=d("dqUG"),n=d("y+Vt"),e=d("IMiH"),s=d("QuXc"),t=d("06Qe"),a=e.CMD,l=Math.round,u=Math.sqrt,h=Math.abs,p=Math.cos,g=Math.sin,v=Math.max;if(!O.canvasSupported){var y=",",x="progid:DXImageTransform.Microsoft",T=21600,S=T/2,b=1e5,_=1e3,I=function(ve){ve.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",ve.coordsize=T+","+T,ve.coordorigin="0,0"},L=function(ve){return String(ve).replace(/&/g,"&").replace(/"/g,""")},N=function(ve,de,Ce){return"rgb("+[ve,de,Ce].join(",")+")"},D=function(ve,de){de&&ve&&de.parentNode!==ve&&ve.appendChild(de)},R=function(ve,de){de&&ve&&de.parentNode===ve&&ve.removeChild(de)},P=function(ve,de,Ce){return(parseFloat(ve)||0)*b+(parseFloat(de)||0)*_+Ce},M=f.parsePercent,U=function(ve,de,Ce){var Ee=w.parse(de);Ce=+Ce,isNaN(Ce)&&(Ce=1),Ee&&(ve.color=N(Ee[0],Ee[1],Ee[2]),ve.opacity=Ce*Ee[3])},F=function(ve){var de=w.parse(ve);return[N(de[0],de[1],de[2]),de[3]]},j=function(ve,de,Ce){var Ee=de.fill;if(Ee!=null)if(Ee instanceof s){var le,fe=0,xe=[0,0],Qe=0,ot=1,Je=Ce.getBoundingRect(),Te=Je.width,et=Je.height;if(Ee.type==="linear"){le="gradient";var ze=Ce.transform,nt=[Ee.x*Te,Ee.y*et],Ot=[Ee.x2*Te,Ee.y2*et];ze&&(C(nt,nt,ze),C(Ot,Ot,ze));var Ct=Ot[0]-nt[0],Tt=Ot[1]-nt[1];fe=Math.atan2(Ct,Tt)*180/Math.PI,fe<0&&(fe+=360),fe<1e-6&&(fe=0)}else{le="gradientradial";var nt=[Ee.x*Te,Ee.y*et],ze=Ce.transform,Dt=Ce.scale,Be=Te,ie=et;xe=[(nt[0]-Je.x)/Be,(nt[1]-Je.y)/ie],ze&&C(nt,nt,ze),Be/=Dt[0]*T,ie/=Dt[1]*T;var X=v(Be,ie);Qe=2*0/X,ot=2*Ee.r/X-Qe}var Fe=Ee.colorStops.slice();Fe.sort(function(er,Ht){return er.offset-Ht.offset});for(var Ne=Fe.length,q=[],ht=[],Rt=0;Rt<Ne;Rt++){var ut=Fe[Rt],Xt=F(ut.color);ht.push(ut.offset*ot+Qe+" "+Xt[0]),(Rt===0||Rt===Ne-1)&&q.push(Xt)}if(Ne>=2){var or=q[0][0],Zr=q[1][0],ar=q[0][1]*de.opacity,dr=q[1][1]*de.opacity;ve.type=le,ve.method="none",ve.focus="100%",ve.angle=fe,ve.color=or,ve.color2=Zr,ve.colors=ht.join(","),ve.opacity=dr,ve.opacity2=ar}le==="radial"&&(ve.focusposition=xe.join(","))}else U(ve,Ee,de.opacity)},W=function(ve,de){de.lineDash&&(ve.dashstyle=de.lineDash.join(" ")),de.stroke!=null&&!(de.stroke instanceof s)&&U(ve,de.stroke,de.opacity)},V=function(ve,de,Ce,Ee){var le=de==="fill",fe=ve.getElementsByTagName(de)[0];Ce[de]!=null&&Ce[de]!=="none"&&(le||!le&&Ce.lineWidth)?(ve[le?"filled":"stroked"]="true",Ce[de]instanceof s&&R(ve,fe),fe||(fe=t.createNode(de)),le?j(fe,Ce,Ee):W(fe,Ce),D(ve,fe)):(ve[le?"filled":"stroked"]="false",R(ve,fe))},z=[[],[],[]],Y=function(ve,de){var Ce=a.M,Ee=a.C,le=a.L,fe=a.A,xe=a.Q,Qe=[],ot,Je,Te,et,ze,nt,Ot=ve.data,Ct=ve.len();for(et=0;et<Ct;){Te=Ot[et++],Je="",ot=0;switch(Te){case Ce:Je=" m ",ot=1,ze=Ot[et++],nt=Ot[et++],z[0][0]=ze,z[0][1]=nt;break;case le:Je=" l ",ot=1,ze=Ot[et++],nt=Ot[et++],z[0][0]=ze,z[0][1]=nt;break;case xe:case Ee:Je=" c ",ot=3;var Tt=Ot[et++],Dt=Ot[et++],Be=Ot[et++],ie=Ot[et++],X,Fe;Te===xe?(X=Be,Fe=ie,Be=(Be+2*Tt)/3,ie=(ie+2*Dt)/3,Tt=(ze+2*Tt)/3,Dt=(nt+2*Dt)/3):(X=Ot[et++],Fe=Ot[et++]),z[0][0]=Tt,z[0][1]=Dt,z[1][0]=Be,z[1][1]=ie,z[2][0]=X,z[2][1]=Fe,ze=X,nt=Fe;break;case fe:var Ne=0,q=0,ht=1,Rt=1,ut=0;de&&(Ne=de[4],q=de[5],ht=u(de[0]*de[0]+de[1]*de[1]),Rt=u(de[2]*de[2]+de[3]*de[3]),ut=Math.atan2(-de[1]/Rt,de[0]/ht));var Xt=Ot[et++],or=Ot[et++],Zr=Ot[et++],ar=Ot[et++],dr=Ot[et++]+ut,er=Ot[et++]+dr+ut;et++;var Ht=Ot[et++],dt=Xt+p(dr)*Zr,Hr=or+g(dr)*ar,Tt=Xt+p(er)*Zr,Dt=or+g(er)*ar,dn=Ht?" wa ":" at ";Math.abs(dt-Tt)<1e-4&&(Math.abs(er-dr)>.01?Ht&&(dt+=270/T):Math.abs(Hr-or)<1e-4?Ht&&dt<Xt||!Ht&&dt>Xt?Dt-=270/T:Dt+=270/T:Ht&&Hr<or||!Ht&&Hr>or?Tt+=270/T:Tt-=270/T),Qe.push(dn,l(((Xt-Zr)*ht+Ne)*T-S),y,l(((or-ar)*Rt+q)*T-S),y,l(((Xt+Zr)*ht+Ne)*T-S),y,l(((or+ar)*Rt+q)*T-S),y,l((dt*ht+Ne)*T-S),y,l((Hr*Rt+q)*T-S),y,l((Tt*ht+Ne)*T-S),y,l((Dt*Rt+q)*T-S)),ze=Tt,nt=Dt;break;case a.R:var Nn=z[0],Vn=z[1];Nn[0]=Ot[et++],Nn[1]=Ot[et++],Vn[0]=Nn[0]+Ot[et++],Vn[1]=Nn[1]+Ot[et++],de&&(C(Nn,Nn,de),C(Vn,Vn,de)),Nn[0]=l(Nn[0]*T-S),Vn[0]=l(Vn[0]*T-S),Nn[1]=l(Nn[1]*T-S),Vn[1]=l(Vn[1]*T-S),Qe.push(" m ",Nn[0],y,Nn[1]," l ",Vn[0],y,Nn[1]," l ",Vn[0],y,Vn[1]," l ",Nn[0],y,Vn[1]);break;case a.Z:Qe.push(" x ")}if(ot>0){Qe.push(Je);for(var gi=0;gi<ot;gi++){var bn=z[gi];de&&C(bn,bn,de),Qe.push(l(bn[0]*T-S),y,l(bn[1]*T-S),gi<ot-1?y:"")}}}return Qe.join("")};n.prototype.brushVML=function(J){var ve=this.style,de=this._vmlEl;de||(de=t.createNode("shape"),I(de),this._vmlEl=de),V(de,"fill",ve,this),V(de,"stroke",ve,this);var Ce=this.transform,Ee=Ce!=null,le=de.getElementsByTagName("stroke")[0];if(le){var fe=ve.lineWidth;if(Ee&&!ve.strokeNoScale){var xe=Ce[0]*Ce[3]-Ce[1]*Ce[2];fe*=u(h(xe))}le.weight=fe+"px"}var Qe=this.path||(this.path=new e);this.__dirtyPath&&(Qe.beginPath(),Qe.subPixelOptimize=!1,this.buildPath(Qe,this.shape),Qe.toStatic(),this.__dirtyPath=!1),de.path=Y(Qe,this.transform),de.style.zIndex=P(this.zlevel,this.z,this.z2),D(J,de),ve.text!=null?this.drawRectText(J,this.getBoundingRect()):this.removeRectText(J)},n.prototype.onRemove=function(J){R(J,this._vmlEl),this.removeRectText(J)},n.prototype.onAdd=function(J){D(J,this._vmlEl),this.appendRectText(J)};var $=function(ve){return typeof ve=="object"&&ve.tagName&&ve.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(J){var ve=this.style,de=ve.image,Ce,Ee;if($(de)){var le=de.src;if(le===this._imageSrc)Ce=this._imageWidth,Ee=this._imageHeight;else{var fe=de.runtimeStyle,xe=fe.width,Qe=fe.height;fe.width="auto",fe.height="auto",Ce=de.width,Ee=de.height,fe.width=xe,fe.height=Qe,this._imageSrc=le,this._imageWidth=Ce,this._imageHeight=Ee}de=le}else de===this._imageSrc&&(Ce=this._imageWidth,Ee=this._imageHeight);if(!de)return;var ot=ve.x||0,Je=ve.y||0,Te=ve.width,et=ve.height,ze=ve.sWidth,nt=ve.sHeight,Ot=ve.sx||0,Ct=ve.sy||0,Tt=ze&&nt,Dt=this._vmlEl;Dt||(Dt=t.doc.createElement("div"),I(Dt),this._vmlEl=Dt);var Be=Dt.style,ie=!1,X,Fe=1,Ne=1;if(this.transform&&(X=this.transform,Fe=u(X[0]*X[0]+X[1]*X[1]),Ne=u(X[2]*X[2]+X[3]*X[3]),ie=X[1]||X[2]),ie){var q=[ot,Je],ht=[ot+Te,Je],Rt=[ot,Je+et],ut=[ot+Te,Je+et];C(q,q,X),C(ht,ht,X),C(Rt,Rt,X),C(ut,ut,X);var Xt=v(q[0],ht[0],Rt[0],ut[0]),or=v(q[1],ht[1],Rt[1],ut[1]),Zr=[];Zr.push("M11=",X[0]/Fe,y,"M12=",X[2]/Ne,y,"M21=",X[1]/Fe,y,"M22=",X[3]/Ne,y,"Dx=",l(ot*Fe+X[4]),y,"Dy=",l(Je*Ne+X[5])),Be.padding="0 "+l(Xt)+"px "+l(or)+"px 0",Be.filter=x+".Matrix("+Zr.join("")+", SizingMethod=clip)"}else X&&(ot=ot*Fe+X[4],Je=Je*Ne+X[5]),Be.filter="",Be.left=l(ot)+"px",Be.top=l(Je)+"px";var ar=this._imageEl,dr=this._cropEl;ar||(ar=t.doc.createElement("div"),this._imageEl=ar);var er=ar.style;if(Tt){if(Ce&&Ee)er.width=l(Fe*Ce*Te/ze)+"px",er.height=l(Ne*Ee*et/nt)+"px";else{var Ht=new Image,dt=this;Ht.onload=function(){Ht.onload=null,Ce=Ht.width,Ee=Ht.height,er.width=l(Fe*Ce*Te/ze)+"px",er.height=l(Ne*Ee*et/nt)+"px",dt._imageWidth=Ce,dt._imageHeight=Ee,dt._imageSrc=de},Ht.src=de}dr||(dr=t.doc.createElement("div"),dr.style.overflow="hidden",this._cropEl=dr);var Hr=dr.style;Hr.width=l((Te+Ot*Te/ze)*Fe),Hr.height=l((et+Ct*et/nt)*Ne),Hr.filter=x+".Matrix(Dx="+-Ot*Te/ze*Fe+",Dy="+-Ct*et/nt*Ne+")",dr.parentNode||Dt.appendChild(dr),ar.parentNode!==dr&&dr.appendChild(ar)}else er.width=l(Fe*Te)+"px",er.height=l(Ne*et)+"px",Dt.appendChild(ar),dr&&dr.parentNode&&(Dt.removeChild(dr),this._cropEl=null);var dn="",Nn=ve.opacity;Nn<1&&(dn+=".Alpha(opacity="+l(Nn*100)+") "),dn+=x+".AlphaImageLoader(src="+de+", SizingMethod=scale)",er.filter=dn,Dt.style.zIndex=P(this.zlevel,this.z,this.z2),D(J,Dt),ve.text!=null&&this.drawRectText(J,this.getBoundingRect())},r.prototype.onRemove=function(J){R(J,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(J)},r.prototype.onAdd=function(J){D(J,this._vmlEl),this.appendRectText(J)};var ue="normal",ne={},ge=0,Oe=100,De=document.createElement("div"),He=function(ve){var de=ne[ve];if(!de){ge>Oe&&(ge=0,ne={});var Ce=De.style,Ee;try{Ce.font=ve,Ee=Ce.fontFamily.split(",")[0]}catch(le){}de={style:Ce.fontStyle||ue,variant:Ce.fontVariant||ue,weight:Ce.fontWeight||ue,size:parseFloat(Ce.fontSize||12)|0,family:Ee||"Microsoft YaHei"},ne[ve]=de,ge++}return de},pe;m.$override("measureText",function(J,ve){var de=t.doc;pe||(pe=de.createElement("div"),pe.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",t.doc.body.appendChild(pe));try{pe.style.font=ve}catch(Ce){}return pe.innerHTML="",pe.appendChild(de.createTextNode(J)),{width:pe.offsetWidth}});for(var Ue=new A,oe=function(ve,de,Ce,Ee){var le=this.style;this.__dirty&&f.normalizeTextStyle(le,!0);var fe=le.text;if(fe!=null&&(fe+=""),!fe)return;if(le.rich){var xe=m.parseRichText(fe,le);fe=[];for(var Qe=0;Qe<xe.lines.length;Qe++){for(var ot=xe.lines[Qe].tokens,Je=[],Te=0;Te<ot.length;Te++)Je.push(ot[Te].text);fe.push(Je.join(""))}fe=fe.join(`
|
|
|
`)}var et,ze,nt=le.textAlign,Ot=le.textVerticalAlign,Ct=He(le.font),Tt=Ct.style+" "+Ct.variant+" "+Ct.weight+" "+Ct.size+'px "'+Ct.family+'"';Ce=Ce||m.getBoundingRect(fe,Tt,nt,Ot,le.textPadding,le.textLineHeight);var Dt=this.transform;if(Dt&&!Ee&&(Ue.copy(de),Ue.applyTransform(Dt),de=Ue),Ee)et=de.x,ze=de.y;else{var Be=le.textPosition;if(Be instanceof Array)et=de.x+M(Be[0],de.width),ze=de.y+M(Be[1],de.height),nt=nt||"left";else{var ie=this.calculateTextPosition?this.calculateTextPosition({},le,de):m.calculateTextPosition({},le,de);et=ie.x,ze=ie.y,nt=nt||ie.textAlign,Ot=Ot||ie.textVerticalAlign}}et=m.adjustTextX(et,Ce.width,nt),ze=m.adjustTextY(ze,Ce.height,Ot),ze+=Ce.height/2;var X=t.createNode,Fe=this._textVmlEl,Ne,q,ht;Fe?(ht=Fe.firstChild,Ne=ht.nextSibling,q=Ne.nextSibling):(Fe=X("line"),Ne=X("path"),q=X("textpath"),ht=X("skew"),q.style["v-text-align"]="left",I(Fe),Ne.textpathok=!0,q.on=!0,Fe.from="0 0",Fe.to="1000 0.05",D(Fe,ht),D(Fe,Ne),D(Fe,q),this._textVmlEl=Fe);var Rt=[et,ze],ut=Fe.style;Dt&&Ee?(C(Rt,Rt,Dt),ht.on=!0,ht.matrix=Dt[0].toFixed(3)+y+Dt[2].toFixed(3)+y+Dt[1].toFixed(3)+y+Dt[3].toFixed(3)+",0,0",ht.offset=(l(Rt[0])||0)+","+(l(Rt[1])||0),ht.origin="0 0",ut.left="0px",ut.top="0px"):(ht.on=!1,ut.left=l(et)+"px",ut.top=l(ze)+"px"),q.string=L(fe);try{q.style.font=Tt}catch(Xt){}V(Fe,"fill",{fill:le.textFill,opacity:le.opacity},this),V(Fe,"stroke",{stroke:le.textStroke,opacity:le.opacity,lineDash:le.lineDash||null},this),Fe.style.zIndex=P(this.zlevel,this.z,this.z2),D(ve,Fe)},ee=function(ve){R(ve,this._textVmlEl),this._textVmlEl=null},Xe=function(ve){D(ve,this._textVmlEl)},se=[c,o,r,n,i],Q=0;Q<se.length;Q++){var G=se[Q].prototype;G.drawRectText=oe,G.removeRectText=ee,G.appendRectText=Xe}i.prototype.brushVML=function(J){var ve=this.style;ve.text!=null?this.drawRectText(J,{x:ve.x||0,y:ve.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(J)},i.prototype.onRemove=function(J){this.removeRectText(J)},i.prototype.onAdd=function(J){this.appendRectText(J)}}},qJCg:function(H,B,d){var O=d("BlVb"),E=d("mFDi"),C=d("IwbS"),A=C.linePolygonIntersect,w={lineX:m(0),lineY:m(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,s=o.y,t=o.width,a=o.height,l=n[0];if(O.contain(n,e,s)||O.contain(n,e+t,s)||O.contain(n,e,s+a)||O.contain(n,e+t,s+a)||E.create(o).contain(l[0],l[1])||A(e,s,e+t,s,n)||A(e,s,e,s+a,n)||A(e+t,s,e+t,s+a,n)||A(e,s+a,e+t,s+a,n))return!0}}};function m(o){var r=["x","y"],i=["width","height"];return{point:function(n,e,s){if(n){var t=s.range,a=n[o];return f(a,t)}},rect:function(n,e,s){if(n){var t=s.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=w;H.exports=c},qM6L:function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.WordArray,w=E.enc,m=w.Utf16=w.Utf16BE={stringify:function(o){for(var r=o.words,i=o.sigBytes,n=[],e=0;e<i;e+=2){var s=r[e>>>2]>>>16-e%4*8&65535;n.push(String.fromCharCode(s))}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)}};w.Utf16LE={stringify:function(o){for(var r=o.words,i=o.sigBytes,n=[],e=0;e<i;e+=2){var s=f(r[e>>>2]>>>16-e%4*8&65535);n.push(String.fromCharCode(s))}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,B,d){var O=d("JEkh"),E=O.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});H.exports=E},qOx5:function(H,B,d){"use strict";d.d(B,"a",function(){return m});var O=d("Kwbf");function E(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 s=c.get(e)||new Set;s.forEach(function(u){var h=u.key,p=u.node,g=u.children,v=g===void 0?[]:g;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 l=c.get(a)||new Set;l.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 g=!0,v=!1;(h.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var x=y.key,T=i.has(x);g&&!T&&(g=!1),!v&&(T||n.has(x))&&(v=!0)}),g&&i.add(h.key),v&&n.add(h.key),t.add(h.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(E(n,i))}}function w(f,c,o,r,i){for(var n=new Set(f),e=new Set(c),s=0;s<=r;s+=1){var t=o.get(s)||new Set;t.forEach(function(h){var p=h.key,g=h.node,v=h.children,y=v===void 0?[]:v;!n.has(p)&&!e.has(p)&&!i(g)&&y.filter(function(x){return!i(x.node)}).forEach(function(x){n.delete(x.key)})})}e=new Set;for(var a=new Set,l=r;l>=0;l-=1){var u=o.get(l)||new Set;u.forEach(function(h){var p=h.parent,g=h.node;if(i(g)||!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(x){return!i(x.node)}).forEach(function(x){var T=x.key,S=n.has(T);v&&!S&&(v=!1),!y&&(S||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(E(e,n))}}function m(f,c,o,r){var i=[],n;r?n=r:n=C;var e=new Set(f.filter(function(l){var u=!!o[l];return u||i.push(l),u})),s=new Map,t=0;Object.keys(o).forEach(function(l){var u=o[l],h=u.level,p=s.get(h);p||(p=new Set,s.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(l){return"'".concat(l,"'")}).join(", ")));var a;return c===!0?a=A(e,s,t,n):a=w(e,c.halfCheckedKeys,s,t,n),a}},qPY4:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("u4NN"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},qWUW:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("DL4k")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="CaretDownOutlined";var c=A.forwardRef(f);B.default=c},qWt2:function(H,B,d){var O=d("ProS"),E=O.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});H.exports=E},qZFw:function(H,B,d){var O=d("bYtY"),E=d("6GrX"),C=d("hM6l"),A=d("4NO4"),w=A.makeInner,m=w();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 s=n[0],t=o.dataToCoord(s+1)-o.dataToCoord(s),a=Math.abs(t),l=E.getBoundingRect(s,r.getFont(),"center","top"),u=Math.max(l.height,7),h=u/a;isNaN(h)&&(h=Infinity);var p=Math.max(0,Math.floor(h)),g=m(o.model),v=g.lastAutoInterval,y=g.lastTickCount;return v!=null&&y!=null&&Math.abs(v-p)<=1&&Math.abs(y-e)<=1&&v>p?p=v:(g.lastTickCount=e,g.lastAutoInterval=p),p}},O.inherits(f,C);var c=f;H.exports=c},qgGe:function(H,B,d){var O=d("bYtY"),E=d("T4UG"),C=d("Bsck"),A=d("VaxA"),w=A.wrapTreePathInfo,m=E.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=E.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(c);return o.treePathInfo=w(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=m},qj72:function(H,B,d){var O=d("bYtY");function E(A,w){return w=w||[0,0],O.map(["x","y"],function(m,f){var c=this.getAxis(m),o=w[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 w=A.grid.getRect();return{coordSys:{type:"cartesian2d",x:w.x,y:w.y,width:w.width,height:w.height},api:{coord:function(m){return A.dataToPoint(m)},size:O.bind(E,A)}}}H.exports=C},"qt/9":function(H,B,d){var O=d("ProS"),E=d("bYtY");d("Wqna"),d("1tlw"),d("Mylv");var C=d("nVfU"),A=C.layout,w=d("f5Yq");d("Ae16"),O.registerLayout(E.curry(A,"pictorialBar")),O.registerVisual(w("pictorialBar","roundRect"))},qu8F:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return O.mode.CTRGladman=function(){var E=O.lib.BlockCipherMode.extend();function C(m){if((m>>24&255)===255){var f=m>>16&255,c=m>>8&255,o=m&255;f===255?(f=0,c===255?(c=0,o===255?o=0:++o):++c):++f,m=0,m+=f<<16,m+=c<<8,m+=o}else m+=1<<24;return m}function A(m){return(m[0]=C(m[0]))===0&&(m[1]=C(m[1])),m}var w=E.Encryptor=E.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 s=0;s<r;s++)f[c+s]^=e[s]}});return E.Decryptor=w,E}(),O.mode.CTRGladman})},quyA:function(H,B){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+E+C,w="\\ufe0e\\ufe0f",m="\\u200d",f=RegExp("["+m+d+A+w+"]");function c(o){return f.test(o)}H.exports=c},qwVE:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("K4ya"),A=d("XxSj"),w=O.PRIORITY.VISUAL.COMPONENT;O.registerVisual(w,{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,E.bind(r.getValueState,r),r.getDataDimension(f.getData())))}),o}}),O.registerVisual(w,{createOnAllSeries:!0,reset:function(f,c){var o=f.getData(),r=[];c.eachComponent("visualMap",function(i){if(i.isTargetSeries(f)){var n=i.getVisualMeta(E.bind(m,null,f,i))||{stops:[],outerColors:[]},e=i.getDataDimension(o),s=o.getDimensionInfo(e);s!=null&&(n.dimension=s.index,r.push(n))}}),f.getData().setVisual("visualMeta",r)}});function m(f,c,o,r){for(var i=c.targetVisuals[r],n=A.prepareVisualTypes(i),e={color:f.getData().getVisual("color")},s=0,t=n.length;s<t;s++){var a=n[s],l=i[a==="opacity"?"__alphaForOpacity":a];l&&l.applyVisual(o,u,h)}return e.color;function u(p){return e[p]}function h(p,g){e[p]=g}}},"r+aA":function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("s2MQ")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="EyeInvisibleOutlined";var c=A.forwardRef(f);B.default=c},"r/2G":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("+Zaj"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},r6Bn:function(H,B,d){var O=d("bYtY"),E=d("ItGF"),C=d("4fz+"),A=d("BPZU");function w(c,o){return c.zlevel===o.zlevel?c.z===o.z?c.z2-o.z2:c.z-o.z:c.zlevel-o.zlevel}var m=function(){this._roots=[],this._displayList=[],this._displayListLen=0};m.prototype={constructor:m,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,E.canvasSupported&&A(i,w)},_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,s=o;e;)e.parent=s,e.updateTransform(),r.push(e),s=e,e=e.clipPath}if(o.isGroup){for(var t=o._children,a=0;a<t.length;a++){var l=t[a];o.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,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:w};var f=m;H.exports=f},rA99:function(H,B,d){var O=d("y+Vt"),E=d("QBsz"),C=d("Sj9i"),A=C.quadraticSubdivide,w=C.cubicSubdivide,m=C.quadraticAt,f=C.cubicAt,c=C.quadraticDerivativeAt,o=C.cubicDerivativeAt,r=[];function i(e,s,t){var a=e.cpx2,l=e.cpy2;return a===null||l===null?[(t?o:f)(e.x1,e.cpx1,e.cpx2,e.x2,s),(t?o:f)(e.y1,e.cpy1,e.cpy2,e.y2,s)]:[(t?c:m)(e.x1,e.cpx1,e.x2,s),(t?c:m)(e.y1,e.cpy1,e.y2,s)]}var n=O.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(s,t){var a=t.x1,l=t.y1,u=t.x2,h=t.y2,p=t.cpx1,g=t.cpy1,v=t.cpx2,y=t.cpy2,x=t.percent;if(x===0)return;s.moveTo(a,l),v==null||y==null?(x<1&&(A(a,p,u,x,r),p=r[1],u=r[2],A(l,g,h,x,r),g=r[1],h=r[2]),s.quadraticCurveTo(p,g,u,h)):(x<1&&(w(a,p,v,u,x,r),p=r[1],v=r[2],u=r[3],w(l,g,y,h,x,r),g=r[1],y=r[2],h=r[3]),s.bezierCurveTo(p,g,v,y,u,h))},pointAt:function(s){return i(this.shape,s,!1)},tangentAt:function(s){var t=i(this.shape,s,!0);return E.normalize(t,t)}});H.exports=n},"rAM+":function(H,B,d){"use strict";d.d(B,"a",function(){return E});var O=d("Qw5x");function E(C,A){var w;if(typeof Symbol=="undefined"||C[Symbol.iterator]==null){if(Array.isArray(C)||(w=Object(O.a)(C))||A&&C&&typeof C.length=="number"){w&&(C=w);var m=0,f=function(){};return{s:f,n:function(){return m>=C.length?{done:!0}:{done:!1,value:C[m++]}},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(){w=C[Symbol.iterator]()},n:function(){var n=w.next();return c=n.done,n},e:function(n){o=!0,r=n},f:function(){try{!c&&w.return!=null&&w.return()}finally{if(o)throw r}}}}},rHrb:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.CopyToClipboard=void 0;var O=C(d("q1tI")),E=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(g){return typeof g}:A=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},A(h)}function w(h,p){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);p&&(v=v.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),g.push.apply(g,v)}return g}function m(h){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?w(g,!0).forEach(function(v){l(h,v,g[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):w(g).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(g,v))})}return h}function f(h,p){if(h==null)return{};var g=c(h,p),v,y;if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(h);for(y=0;y<x.length;y++){if(v=x[y],p.indexOf(v)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(h,v))continue;g[v]=h[v]}}return g}function c(h,p){if(h==null)return{};var g={},v=Object.keys(h),y,x;for(x=0;x<v.length;x++){if(y=v[x],p.indexOf(y)>=0)continue;g[y]=h[y]}return g}function o(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function r(h,p){for(var g=0;g<p.length;g++){var v=p[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function i(h,p,g){return p&&r(h.prototype,p),g&&r(h,g),h}function n(h,p){return p&&(A(p)==="object"||typeof p=="function")?p:s(h)}function e(h){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},e(h)}function s(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 l(h,p,g){return p in h?Object.defineProperty(h,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[p]=g,h}var u=function(h){t(p,h);function p(){var g,v;o(this,p);for(var y=arguments.length,x=new Array(y),T=0;T<y;T++)x[T]=arguments[T];return v=n(this,(g=e(p)).call.apply(g,[this].concat(x))),l(s(v),"onClick",function(S){var b=v.props,_=b.text,I=b.onCopy,L=b.children,N=b.options,D=O.default.Children.only(L),R=(0,E.default)(_,N);I&&I(_,R),D&&D.props&&typeof D.props.onClick=="function"&&D.props.onClick(S)}),v}return i(p,[{key:"render",value:function(){var v=this.props,y=v.text,x=v.onCopy,T=v.options,S=v.children,b=f(v,["text","onCopy","options","children"]),_=O.default.Children.only(S);return O.default.cloneElement(_,m({},b,{onClick:this.onClick}))}}]),p}(O.default.PureComponent);B.CopyToClipboard=u,l(u,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="ReloadOutlined";var f=B.a=E.forwardRef(m)},rUJ1:function(H,B){var d=/[&<>"']/,O=/[&<>"']/g,E=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,A={"&":"&","<":"<",">":">",'"':""","'":"'"},w=function(S){return A[S]};function m(T,S){if(S){if(d.test(T))return T.replace(O,w)}else if(E.test(T))return T.replace(C,w);return T}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(T){return T.replace(f,function(S,b){return b=b.toLowerCase(),b==="colon"?":":b.charAt(0)==="#"?b.charAt(1)==="x"?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}var o=/(^|[^\[])\^/g;function r(T,S){T=T.source||T,S=S||"";var b={replace:function(I,L){return L=L.source||L,L=L.replace(o,"$1"),T=T.replace(I,L),b},getRegex:function(){return new RegExp(T,S)}};return b}var i=/[^\w:]/g,n=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(T,S,b){if(T){var _;try{_=decodeURIComponent(c(b)).replace(i,"").toLowerCase()}catch(I){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}S&&!n.test(b)&&(b=u(S,b));try{b=encodeURI(b).replace(/%25/g,"%")}catch(I){return null}return b}var s={},t=/^[^:]+:\/*[^/]*$/,a=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(T,S){s[" "+T]||(t.test(T)?s[" "+T]=T+"/":s[" "+T]=v(T,"/",!0)),T=s[" "+T];var b=T.indexOf(":")===-1;return S.substring(0,2)==="//"?b?S:T.replace(a,"$1")+S:S.charAt(0)==="/"?b?S:T.replace(l,"$1")+S:T+S}var h={exec:function(){}};function p(T){for(var S=1,b,_;S<arguments.length;S++){b=arguments[S];for(_ in b)Object.prototype.hasOwnProperty.call(b,_)&&(T[_]=b[_])}return T}function g(T,S){var b=T.replace(/\|/g,function(L,N,D){for(var R=!1,P=N;--P>=0&&D[P]==="\\";)R=!R;return R?"|":" |"}),_=b.split(/ \|/),I=0;if(_.length>S)_.splice(S);else for(;_.length<S;)_.push("");for(;I<_.length;I++)_[I]=_[I].trim().replace(/\\\|/g,"|");return _}function v(T,S,b){var _=T.length;if(_===0)return"";for(var I=0;I<_;){var L=T.charAt(_-I-1);if(L===S&&!b)I++;else if(L!==S&&b)I++;else break}return T.substr(0,_-I)}function y(T,S){if(T.indexOf(S[1])===-1)return-1;for(var b=T.length,_=0,I=0;I<b;I++)if(T[I]==="\\")I++;else if(T[I]===S[0])_++;else if(T[I]===S[1]&&(_--,_<0))return I;return-1}function x(T){T&&T.sanitize&&!T.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}H.exports={escape:m,unescape:c,edit:r,cleanUrl:e,resolveUrl:u,noopTest:h,merge:p,splitCells:g,rtrim:v,findClosingBracket:y,checkSanitizeDeprecation:x}},rdUC:function(H,B,d){var O=d("MFOe"),E=O.Global;H.exports={name:"localStorage",read:A,write:w,each:m,remove:f,clearAll:c};function C(){return E.localStorage}function A(o){return C().getItem(o)}function w(o,r){return C().setItem(o,r)}function m(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,B,d){var O=d("lOQZ"),E=O.circularLayout;function C(A){A.eachSeriesByType("graph",function(w){w.get("layout")==="circular"&&E(w,"symbolSize")})}H.exports=C},rfSb:function(H,B,d){var O=d("T4UG"),E=d("sdST"),C=d("L0Ub"),A=C.getDimensionTypeByAxis,w=d("YXkt"),m=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(m.bind(this.getData,this),m.bind(this.getRawData,this))},fixData:function(t){var a=t.length,l=c(t,function(D){return D[2]}),u=[];l.buckets.each(function(D,R){u.push({name:R,dataList:D})});for(var h=u.length,p=-1,g=-1,v=0;v<h;++v){var y=u[v].dataList.length;y>p&&(p=y,g=v)}for(var x=0;x<h;++x){if(x===g)continue;for(var T=u[x].name,S=0;S<p;++S){for(var b=u[g].dataList[S][0],_=u[x].dataList.length,I=-1,L=0;L<_;++L){var N=u[x].dataList[L][0];if(N===b){I=L;break}}I===-1&&(t[a]=[],t[a][0]=b,t[a][1]=0,t[a][2]=T,a++)}}return t},getInitialData:function(t,a){for(var l=a.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],u=l.get("type"),h=m.filter(t.data,function(b){return b[2]!==void 0}),p=this.fixData(h||[]),g=[],v=this.nameMap=m.createHashMap(),y=0,x=0;x<p.length;++x)g.push(p[x][n]),v.get(p[x][n])||(v.set(p[x][n],y),y++);var T=E(p,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:A(u)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),S=new w(T,this);return S.initData(p),S},getLayerSeries:function(){for(var t=this.getData(),a=t.count(),l=[],u=0;u<a;++u)l[u]=u;var h=t.mapDimension("single"),p=c(l,function(v){return t.get("name",v)}),g=[];return p.buckets.each(function(v,y){v.sort(function(x,T){return t.get(h,x)-t.get(h,T)}),g.push({name:y,indices:v})}),g},getAxisTooltipData:function(t,a,l){m.isArray(t)||(t=t?[t]:[]);for(var u=this.getData(),h=this.getLayerSeries(),p=[],g=h.length,v,y=0;y<g;++y){for(var x=Number.MAX_VALUE,T=-1,S=h[y].indices.length,b=0;b<S;++b){var _=u.get(t[0],h[y].indices[b]),I=Math.abs(_-a);I<=x&&(v=_,x=I,T=h[y].indices[b])}p.push(T)}return{dataIndices:p,nestestValue:v}},formatTooltip:function(t){var a=this.getData(),l=a.getName(t),u=a.get(a.mapDimension("value"),t);return(isNaN(u)||u==null)&&(u="-"),r(l+" : "+u)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),s=e;H.exports=s},rkZ5:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),A=d("c8qY"),w=d("D9ME"),m=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(s,t,a){var l=s.getData(),u=this._updateLineDraw(l,s),h=s.get("zlevel"),p=s.get("effect.trailLength"),g=a.getZr(),v=g.painter.getType()==="svg";v||g.painter.getLayer(h).clear(!0),this._lastZlevel!=null&&!v&&g.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(s)&&p&&(v||g.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(p/10+.9,1),0)})),u.updateData(l);var y=s.get("clip",!0)&&n(s.coordinateSystem,!1,s);y?this.group.setClipPath(y):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},incrementalPrepareRender:function(s,t,a){var l=s.getData(),u=this._updateLineDraw(l,s);u.incrementalPrepareUpdate(l),this._clearLayer(a),this._finished=!1},incrementalRender:function(s,t,a){this._lineDraw.incrementalUpdate(s,t.getData()),this._finished=s.end===t.getData().count()},updateTransform:function(s,t,a){var l=s.getData(),u=s.pipelineContext;if(!this._finished||u.large||u.progressiveRender)return{update:!0};var h=r.reset(s);h.progress&&h.progress({start:0,end:l.count()},l),this._lineDraw.updateLayout(),this._clearLayer(a)},_updateLineDraw:function(s,t){var a=this._lineDraw,l=this._showEffect(t),u=!!t.get("polyline"),h=t.pipelineContext,p=h.large;return(!a||l!==this._hasEffet||u!==this._isPolyline||p!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=p?new o:new A(u?l?c:f:l?w:m),this._hasEffet=l,this._isPolyline=u,this._isLargeDraw=p,this.group.removeAll()),this.group.add(a.group),a},_showEffect:function(s){return!!s.get("effect.show")},_clearLayer:function(s){var t=s.getZr(),a=t.painter.getType()==="svg";!a&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(s,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});H.exports=e},rmlV:function(H,B,d){var O=d("y+Vt"),E=O.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(A,w){var m=.5522848,f=w.cx,c=w.cy,o=w.rx,r=w.ry,i=o*m,n=r*m;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=E},rnVJ:function(H,B,d){var O=d("bYtY"),E=["rect","polygon","keep","clear"];function C(w,m){var f=w&&w.brush;if(O.isArray(f)||(f=f?[f]:[]),!f.length)return;var c=[];O.each(f,function(e){var s=e.hasOwnProperty("toolbox")?e.toolbox:[];s instanceof Array&&(c=c.concat(s))});var o=w&&w.toolbox;O.isArray(o)&&(o=o[0]),o||(o={feature:{}},w.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),m&&!n.length&&n.push.apply(n,E)}function A(w){var m={};O.each(w,function(f){m[f]=1}),w.length=0,O.each(m,function(f,c){w.push(c)})}H.exports=C},rwxt:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=d("GdRQ");function E(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 w=!O.supportsCursorURIs||O.isTouchDevice,m=function(){function f(){E(this,f),this._target=null,this._canvas=document.createElement("canvas"),w&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return A(f,[{key:"attach",value:function(o){if(this._target&&this.detach(),this._target=o,w){document.body.appendChild(this._canvas);var r={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,r),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,r),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,r),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,r)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(w){var 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 s=this._canvas.getContext("2d");this._canvas.width=n,this._canvas.height=e;var t;try{t=new ImageData(new Uint8ClampedArray(o),n,e)}catch(l){t=s.createImageData(n,e),t.data.set(new Uint8ClampedArray(o))}if(s.clearRect(0,0,n,e),s.putImageData(t,0,0),w)this._updatePosition();else{var a=this._canvas.toDataURL();this._target.style.cursor="url("+a+")"+r+" "+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(!w)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}();B.default=m},rySg:function(H,B,d){d("SMc4"),d("8nMs")},s2MQ:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},s2lz:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),A=d("gPAo"),w=d("VaxA"),m=d("9hCq"),f=d("SgGq"),c=d("mFDi"),o=d("Fofx"),r=d("5s0K"),i=d("KCsZ"),n=d("7aKB"),e=n.windowOpen,s=E.bind,t=C.Group,a=C.Rect,l=E.each,u=3,h=["label"],p=["emphasis","label"],g=["upperLabel"],v=["emphasis","upperLabel"],y=10,x=1,T=2,S=i([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),b=function(D){var R=S(D);return R.stroke=R.fill=R.lineWidth=null,R},_=O.extendChartView({type:"treemap",init:function(D,R){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(D,R,P,M){var U=R.findComponents({mainType:"series",subType:"treemap",query:M});if(E.indexOf(U,D)<0)return;this.seriesModel=D,this.api=P,this.ecModel=R;var F=["treemapZoomToNode","treemapRootToNode"],j=w.retrieveTargetInfo(M,F,D),W=M&&M.type,V=D.layoutInfo,z=!this._oldTree,Y=this._storage,$=W==="treemapRootToNode"&&j&&Y?{rootNodeGroup:Y.nodeGroup[j.node.getRawIndex()],direction:M.direction}:null,ue=this._giveContainerGroup(V),ne=this._doRender(ue,D,$);!z&&(!W||W==="treemapZoomToNode"||W==="treemapRootToNode")?this._doAnimation(ue,ne,D,$):ne.renderFinally(),this._resetController(P),this._renderBreadcrumb(D,P,j)},_giveContainerGroup:function(D){var R=this._containerGroup;return R||(R=this._containerGroup=new t,this._initEvents(R),this.group.add(R)),R.attr("position",[D.x,D.y]),R},_doRender:function(D,R,P){var M=R.getData().tree,U=this._oldTree,F=I(),j=I(),W=this._storage,V=[],z=E.curry(L,R,j,W,P,F,V);$(M.root?[M.root]:[],U&&U.root?[U.root]:[],D,M===U||!U,0);var Y=ue(W);return this._oldTree=M,this._storage=j,{lastsForAnimation:F,willDeleteEls:Y,renderFinally:ne};function $(ge,Oe,De,He,pe){He?(Oe=ge,l(ge,function(ee,Xe){!ee.isRemoved()&&oe(Xe,Xe)})):new A(Oe,ge,Ue,Ue).add(oe).update(oe).remove(E.curry(oe,null)).execute();function Ue(ee){return ee.getId()}function oe(ee,Xe){var se=ee!=null?ge[ee]:null,Q=Xe!=null?Oe[Xe]:null,G=z(se,Q,De,pe);G&&$(se&&se.viewChildren||[],Q&&Q.viewChildren||[],G,He,pe+1)}}function ue(ge){var Oe=I();return ge&&l(ge,function(De,He){var pe=Oe[He];l(De,function(Ue){Ue&&(pe.push(Ue),Ue.__tmWillDelete=1)})}),Oe}function ne(){l(Y,function(ge){l(ge,function(Oe){Oe.parent&&Oe.parent.remove(Oe)})}),l(V,function(ge){ge.invisible=!0,ge.dirty()})}},_doAnimation:function(D,R,P,M){if(!P.get("animation"))return;var U=P.get("animationDurationUpdate"),F=P.get("animationEasing"),j=r.createWrap();l(R.willDeleteEls,function(W,V){l(W,function(z,Y){if(z.invisible)return;var $=z.parent,ue;if(M&&M.direction==="drillDown")ue=$===M.rootNodeGroup?{shape:{x:0,y:0,width:$.__tmNodeWidth,height:$.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var ne=0,ge=0;$.__tmWillDelete||(ne=$.__tmNodeWidth/2,ge=$.__tmNodeHeight/2),ue=V==="nodeGroup"?{position:[ne,ge],style:{opacity:0}}:{shape:{x:ne,y:ge,width:0,height:0},style:{opacity:0}}}ue&&j.add(z,ue,U,F)})}),l(this._storage,function(W,V){l(W,function(z,Y){var $=R.lastsForAnimation[V][Y],ue={};if(!$)return;V==="nodeGroup"?$.old&&(ue.position=z.position.slice(),z.attr("position",$.old)):($.old&&(ue.shape=E.extend({},z.shape),z.setShape($.old)),$.fadein?(z.setStyle("opacity",0),ue.style={opacity:1}):z.style.opacity!==1&&(ue.style={opacity:1})),j.add(z,ue,U,F)})},this),this._state="animating",j.done(s(function(){this._state="ready",R.renderFinally()},this)).start()},_resetController:function(D){var R=this._controller;R||(R=this._controller=new f(D.getZr()),R.enable(this.seriesModel.get("roam")),R.on("pan",s(this._onPan,this)),R.on("zoom",s(this._onZoom,this)));var P=new c(0,0,D.getWidth(),D.getHeight());R.setPointerChecker(function(M,U,F){return P.contain(U,F)})},_clearController:function(){var D=this._controller;D&&(D.dispose(),D=null)},_onPan:function(D){if(this._state!=="animating"&&(Math.abs(D.dx)>u||Math.abs(D.dy)>u)){var R=this.seriesModel.getData().tree.root;if(!R)return;var P=R.getLayout();if(!P)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:P.x+D.dx,y:P.y+D.dy,width:P.width,height:P.height}})}},_onZoom:function(D){var R=D.originX,P=D.originY;if(this._state!=="animating"){var M=this.seriesModel.getData().tree.root;if(!M)return;var U=M.getLayout();if(!U)return;var F=new c(U.x,U.y,U.width,U.height),j=this.seriesModel.layoutInfo;R-=j.x,P-=j.y;var W=o.create();o.translate(W,W,[-R,-P]),o.scale(W,W,[D.scale,D.scale]),o.translate(W,W,[R,P]),F.applyTransform(W),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x,y:F.y,width:F.width,height:F.height}})}},_initEvents:function(D){D.on("click",function(R){if(this._state!=="ready")return;var P=this.seriesModel.get("nodeClick",!0);if(!P)return;var M=this.findTarget(R.offsetX,R.offsetY);if(!M)return;var U=M.node;if(U.getLayout().isLeafRoot)this._rootToNode(M);else if(P==="zoomToNode")this._zoomToNode(M);else if(P==="link"){var F=U.hostTree.data.getItemModel(U.dataIndex),j=F.get("link",!0),W=F.get("target",!0)||"blank";j&&e(j,W)}},this)},_renderBreadcrumb:function(D,R,P){P||(P=D.get("leafDepth",!0)!=null?{node:D.getViewRoot()}:this.findTarget(R.getWidth()/2,R.getHeight()/2),P||(P={node:D.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new m(this.group))).render(D,R,P.node,s(M,this));function M(U){this._state!=="animating"&&(w.aboveViewRoot(D.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(D){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:D.node})},_rootToNode:function(D){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:D.node})},findTarget:function(D,R){var P,M=this.seriesModel.getViewRoot();return M.eachNode({attr:"viewChildren",order:"preorder"},function(U){var F=this._storage.background[U.getRawIndex()];if(F){var j=F.transformCoordToLocal(D,R),W=F.shape;if(W.x<=j[0]&&j[0]<=W.x+W.width&&W.y<=j[1]&&j[1]<=W.y+W.height)P={node:U,offsetX:j[0],offsetY:j[1]};else return!1}},this),P}});function I(){return{nodeGroup:[],background:[],content:[]}}function L(D,R,P,M,U,F,j,W,V,z){if(!j)return;var Y=j.getLayout(),$=D.getData();if($.setItemGraphicEl(j.dataIndex,null),!Y||!Y.isInView)return;var ue=Y.width,ne=Y.height,ge=Y.borderWidth,Oe=Y.invisible,De=j.getRawIndex(),He=W&&W.getRawIndex(),pe=j.viewChildren,Ue=Y.upperHeight,oe=pe&&pe.length,ee=j.getModel("itemStyle"),Xe=j.getModel("emphasis.itemStyle"),se=fe("nodeGroup",t);if(!se)return;if(V.add(se),se.attr("position",[Y.x||0,Y.y||0]),se.__tmNodeWidth=ue,se.__tmNodeHeight=ne,Y.isAboveViewRoot)return se;var Q=j.getModel(),G=fe("background",a,z,x);if(G&&ve(se,G,oe&&Y.upperLabelHeight),oe)C.isHighDownDispatcher(se)&&C.setAsHighDownDispatcher(se,!1),G&&(C.setAsHighDownDispatcher(G,!0),$.setItemGraphicEl(j.dataIndex,G));else{var J=fe("content",a,z,T);J&&de(se,J),G&&C.isHighDownDispatcher(G)&&C.setAsHighDownDispatcher(G,!1),C.setAsHighDownDispatcher(se,!0),$.setItemGraphicEl(j.dataIndex,se)}return se;function ve(ot,Je,Te){if(Je.dataIndex=j.dataIndex,Je.seriesIndex=D.seriesIndex,Je.setShape({x:0,y:0,width:ue,height:ne}),Oe)Ce(Je);else{Je.invisible=!1;var et=j.getVisual("borderColor",!0),ze=Xe.get("borderColor"),nt=b(ee);nt.fill=et;var Ot=S(Xe);if(Ot.fill=ze,Te){var Ct=ue-2*ge;Ee(nt,Ot,et,Ct,Ue,{x:ge,y:0,width:Ct,height:Ue})}else nt.text=Ot.text=null;Je.setStyle(nt),C.setElementHoverStyle(Je,Ot)}ot.add(Je)}function de(ot,Je){Je.dataIndex=j.dataIndex,Je.seriesIndex=D.seriesIndex;var Te=Math.max(ue-2*ge,0),et=Math.max(ne-2*ge,0);if(Je.culling=!0,Je.setShape({x:ge,y:ge,width:Te,height:et}),Oe)Ce(Je);else{Je.invisible=!1;var ze=j.getVisual("color",!0),nt=b(ee);nt.fill=ze;var Ot=S(Xe);Ee(nt,Ot,ze,Te,et),Je.setStyle(nt),C.setElementHoverStyle(Je,Ot)}ot.add(Je)}function Ce(ot){!ot.invisible&&F.push(ot)}function Ee(ot,Je,Te,et,ze,nt){var Ot=Q.get("name"),Ct=Q.getModel(nt?g:h),Tt=Q.getModel(nt?v:p),Dt=Ct.getShallow("show");C.setLabelStyle(ot,Je,Ct,Tt,{defaultText:Dt?Ot:null,autoColor:Te,isRectText:!0,labelFetcher:D,labelDataIndex:j.dataIndex,labelProp:nt?"upperLabel":"label"}),le(ot,nt,Y),le(Je,nt,Y),nt&&(ot.textRect=E.clone(nt)),ot.truncate=Dt&&Ct.get("ellipsis")?{outerWidth:et,outerHeight:ze,minChar:2}:null}function le(ot,Je,Te){var et=ot.text;if(!Je&&Te.isLeafRoot&&et!=null){var ze=D.get("drillDownIcon",!0);ot.text=ze?ze+" "+et:et}}function fe(ot,Je,Te,et){var ze=He!=null&&P[ot][He],nt=U[ot];return ze?(P[ot][He]=null,xe(nt,ze,ot)):Oe||(ze=new Je({z:N(Te,et)}),ze.__tmDepth=Te,ze.__tmStorageName=ot,Qe(nt,ze,ot)),R[ot][De]=ze}function xe(ot,Je,Te){var et=ot[De]={};et.old=Te==="nodeGroup"?Je.position.slice():E.extend({},Je.shape)}function Qe(ot,Je,Te){var et=ot[De]={},ze=j.parentNode;if(ze&&(!M||M.direction==="drillDown")){var nt=0,Ot=0,Ct=U.background[ze.getRawIndex()];!M&&Ct&&Ct.old&&(nt=Ct.old.width,Ot=Ct.old.height),et.old=Te==="nodeGroup"?[0,Ot]:{x:nt,y:Ot,width:0,height:0}}et.fadein=Te!=="nodeGroup"}}function N(D,R){var P=D*y+R;return(P-1)/P}H.exports=_},sAZ8:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("+rIm"),A=d("/IIm"),w=d("9KIM"),m=d("IwbS"),f=["axisLine","axisTickLabel","axisName"],c=O.extendComponentView({type:"parallelAxis",init:function(e,s){c.superApply(this,"init",arguments),(this._brushController=new A(s.getZr())).on("brush",E.bind(this._onBrush,this))},render:function(e,s,t,a){if(o(e,s,a))return;this.axisModel=e,this.api=t,this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new m.Group,this.group.add(this._axisGroup),!e.get("show"))return;var u=i(e,s),h=u.coordinateSystem,p=e.getAreaSelectStyle(),g=p.width,v=e.axis.dim,y=h.getAxisLayout(v),x=E.extend({strokeContainThreshold:g},y),T=new C(e,x);E.each(f,T.add,T),this._axisGroup.add(T.getGroup()),this._refreshBrushController(x,p,e,u,g,t);var S=a&&a.animation===!1?null:e;m.groupTransition(l,this._axisGroup,S)},_refreshBrushController:function(e,s,t,a,l,u){var h=t.axis.getExtent(),p=h[1]-h[0],g=Math.min(30,Math.abs(p)*.1),v=m.BoundingRect.create({x:h[0],y:-l/2,width:p,height:l});v.x-=g,v.width+=2*g,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:w.makeRectPanelClipPath(v),isTargetByCursor:w.makeRectIsTargetByCursor(v,u,a),getLinearBrushOtherExtent:w.makeLinearBrushOtherExtent(v,0)}]).enableBrush({brushType:"lineX",brushStyle:s,removeOnClick:!0}).updateCovers(r(t))},_onBrush:function(e,s){var t=this.axisModel,a=t.axis,l=E.map(e,function(u){return[a.coordToData(u.range[0],!0),a.coordToData(u.range[1],!0)]});(!t.option.realtime===s.isEnd||s.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:t.id,intervals:l})},dispose:function(){this._brushController.dispose()}});function o(e,s,t){return t&&t.type==="axisAreaSelect"&&s.findComponents({mainType:"parallelAxis",query:t})[0]===e}function r(e){var s=e.axis;return E.map(e.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[s.dataToCoord(t[0],!0),s.dataToCoord(t[1],!0)]}})}function i(e,s){return s.getComponent("parallel",e.get("parallelIndex"))}var n=c;H.exports=n},sE09:function(H,B,d){},sGsY:function(H,B,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),A=d.n(C),w=d("q1tI"),m=d("TSYQ"),f=d.n(m),c=d("H84U"),o=d("B6l+"),r=d.n(o),i=function(j){var W=j.value,V=j.formatter,z=j.precision,Y=j.decimalSeparator,$=j.groupSeparator,ue=$===void 0?"":$,ne=j.prefixCls,ge;if(typeof V=="function")ge=V(W);else{var Oe=String(W),De=Oe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Oe==="-")ge=Oe;else{var He=De[1],pe=De[2]||"0",Ue=De[4]||"";pe=pe.replace(/\B(?=(\d{3})+(?!\d))/g,ue),typeof z=="number"&&(Ue=r()(Ue,z,"0").slice(0,z)),Ue&&(Ue="".concat(Y).concat(Ue)),ge=[w.createElement("span",{key:"int",className:"".concat(ne,"-content-value-int")},He,pe),Ue&&w.createElement("span",{key:"decimal",className:"".concat(ne,"-content-value-decimal")},Ue)]}}return w.createElement("span",{className:"".concat(ne,"-content-value")},ge)},n=i,e=function(j){var W=j.prefixCls,V=j.className,z=j.style,Y=j.valueStyle,$=j.value,ue=$===void 0?0:$,ne=j.title,ge=j.valueRender,Oe=j.prefix,De=j.suffix,He=j.direction,pe=j.onMouseEnter,Ue=j.onMouseLeave,oe=w.createElement(n,A()({},j,{value:ue})),ee=f()(W,V,E()({},"".concat(W,"-rtl"),He==="rtl"));return w.createElement("div",{className:ee,style:z,onMouseEnter:pe,onMouseLeave:Ue},ne&&w.createElement("div",{className:"".concat(W,"-title")},ne),w.createElement("div",{style:Y,className:"".concat(W,"-content")},Oe&&w.createElement("span",{className:"".concat(W,"-content-prefix")},Oe),ge?ge(oe):oe,De&&w.createElement("span",{className:"".concat(W,"-content-suffix")},De)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var s=Object(c.c)({prefixCls:"statistic"})(e),t=s,a=d("lwsE"),l=d.n(a),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),g=d.n(p),v=d("LQ03"),y=d.n(v),x=d("J4zp"),T=d.n(x),S=d("QQZ/"),b=d.n(S),_=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(F,j){var W=F,V=/\[[^\]]*]/g,z=(j.match(V)||[]).map(function(ne){return ne.slice(1,-1)}),Y=j.replace(V,"[]"),$=_.reduce(function(ne,ge){var Oe=T()(ge,2),De=Oe[0],He=Oe[1];if(ne.indexOf(De)!==-1){var pe=Math.floor(W/He);return W-=pe*He,ne.replace(new RegExp("".concat(De,"+"),"g"),function(Ue){var oe=Ue.length;return b()(pe.toString(),oe,"0")})}return ne},Y),ue=0;return $.replace(V,function(){var ne=z[ue];return ue+=1,ne})}function L(F,j){var W=j.format,V=W===void 0?"":W,z=new Date(F).getTime(),Y=Date.now(),$=Math.max(z-Y,0);return I($,V)}var N=d("0n0R"),D=1e3/30;function R(F){return new Date(F).getTime()}var P=function(F){g()(W,F);var j=y()(W);function W(){var V;return l()(this,W),V=j.apply(this,arguments),V.syncTimer=function(){var z=V.props.value,Y=R(z);Y>=Date.now()?V.startTimer():V.stopTimer()},V.startTimer=function(){if(V.countdownId)return;V.countdownId=window.setInterval(function(){V.forceUpdate()},D)},V.stopTimer=function(){var z=V.props,Y=z.onFinish,$=z.value;if(V.countdownId){clearInterval(V.countdownId),V.countdownId=void 0;var ue=R($);Y&&ue<Date.now()&&Y()}},V.formatCountdown=function(z,Y){var $=V.props.format;return L(z,A()(A()({},Y),{format:$}))},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 w.createElement(t,A()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),W}(w.Component);P.defaultProps={format:"HH:mm:ss"};var M=P;t.Countdown=M;var U=B.a=t},"sK/D":function(H,B,d){var O=d("IwbS"),E=d("OELB"),C=E.round;function A(f,c,o){var r=f.getArea(),i=f.getBaseAxis().isHorizontal(),n=r.x,e=r.y,s=r.width,t=r.height,a=o.get("lineStyle.width")||2;n-=a/2,e-=a/2,s+=a,t+=a,n=Math.floor(n),s=Math.round(s);var l=new O.Rect({shape:{x:n,y:e,width:s,height:t}});return c&&(l.shape[i?"width":"height"]=0,O.initProps(l,{shape:{width:s,height:t}},o)),l}function w(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 m(f,c,o){if(f){if(f.type==="polar")return w(f,c,o);if(f.type==="cartesian2d")return A(f,c,o)}else return null;return null}B.createGridClipPath=A,B.createPolarClipPath=w,B.createClipPath=m},sKgW:function(H,B){var d=9007199254740991,O=Math.floor;function E(C,A){var w="";if(!C||A<1||A>d)return w;do A%2&&(w+=C),A=O(A/2),A&&(C+=C);while(A);return w}H.exports=E},sPJy:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("AOa7"),A=d.n(C),w=d("lUTK"),m=d("qVdP")},sPtV:function(H,B,d){"use strict";d.d(B,"a",function(){return A});var O=d("q1tI"),E=d.n(O),C=d("hkKa");function A(w){var m=O.useRef(w),f=Object(C.a)();return[function(){return m.current},function(c){m.current=c,f()}]}},sRwP:function(H,B,d){d("jsU+"),d("2548"),d("Tp9H"),d("06DH"),d("dnwI"),d("fE02"),d("33Ds")},"sS/r":function(H,B,d){var O=d("4fz+"),E=d("iRjW"),C=d("Yl7c"),A=function(){this.group=new O,this.uid=E.getUID("viewComponent")};A.prototype={constructor:A,init:function(f,c){},render:function(f,c,o,r){},dispose:function(){},filterForExposedEvent:null};var w=A.prototype;w.updateView=w.updateLayout=w.updateVisual=function(f,c,o,r){},C.enableClassExtend(A),C.enableClassManagement(A,{registerWhenExtend:!0});var m=A;H.exports=m},"sW+o":function(H,B,d){var O=d("SrGk"),E=d("bYtY"),C=d("SUKs"),A=d("Qe9p");function w(f,c){O.call(this,f,c,["linearGradient","radialGradient"],"__gradient_in_use__")}E.inherits(w,O),w.prototype.addWithoutUpdate=function(f,c){if(c&&c.style){var o=this;E.each(["fill","stroke"],function(r){if(c.style[r]&&(c.style[r].type==="linear"||c.style[r].type==="radial")){var i=c.style[r],n=o.getDefs(!0),e;i._dom?(e=i._dom,n.contains(i._dom)||o.addDom(e)):e=o.add(i),o.markUsed(c);var s=e.getAttribute("id");f.setAttribute(r,"url(#"+s+")")}})}},w.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},w.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))})},w.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 s=A.parse(e)[3],t=A.toHex(e);n.setAttribute("stop-color","#"+t),n.setAttribute("stop-opacity",s)}else n.setAttribute("stop-color",o[r].color);c.appendChild(n)}f._dom=c},w.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 m=w;H.exports=m},sdST:function(H,B,d){var O=d("hi0g");function E(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=E},sjKO:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=C;var O=30,E=12;function C(A,w){var m,f,c,o,r,i,n,e,s,t,a,l,u,h,p,g,v,y,x,T,S,b,_,I,L;m=A.state,f=A.next_in,I=A.input,c=f+(A.avail_in-5),o=A.next_out,L=A.output,r=o-(w-A.avail_out),i=o+(A.avail_out-257),n=m.dmax,e=m.wsize,s=m.whave,t=m.wnext,a=m.window,l=m.hold,u=m.bits,h=m.lencode,p=m.distcode,g=(1<<m.lenbits)-1,v=(1<<m.distbits)-1;e:do{u<15&&(l+=I[f++]<<u,u+=8,l+=I[f++]<<u,u+=8),y=h[l&g];t:for(;;){if(x=y>>>24,l>>>=x,u-=x,x=y>>>16&255,x===0)L[o++]=y&65535;else if(x&16){T=y&65535,x&=15,x&&(u<x&&(l+=I[f++]<<u,u+=8),T+=l&(1<<x)-1,l>>>=x,u-=x),u<15&&(l+=I[f++]<<u,u+=8,l+=I[f++]<<u,u+=8),y=p[l&v];r:for(;;){if(x=y>>>24,l>>>=x,u-=x,x=y>>>16&255,x&16){if(S=y&65535,x&=15,u<x&&(l+=I[f++]<<u,u+=8,u<x&&(l+=I[f++]<<u,u+=8)),S+=l&(1<<x)-1,S>n){A.msg="invalid distance too far back",m.mode=O;break e}if(l>>>=x,u-=x,x=o-r,S>x){if(x=S-x,x>s&&m.sane){A.msg="invalid distance too far back",m.mode=O;break e}if(b=0,_=a,t===0){if(b+=e-x,x<T){T-=x;do L[o++]=a[b++];while(--x);b=o-S,_=L}}else if(t<x){if(b+=e+t-x,x-=t,x<T){T-=x;do L[o++]=a[b++];while(--x);if(b=0,t<T){x=t,T-=x;do L[o++]=a[b++];while(--x);b=o-S,_=L}}}else if(b+=t-x,x<T){T-=x;do L[o++]=a[b++];while(--x);b=o-S,_=L}for(;T>2;)L[o++]=_[b++],L[o++]=_[b++],L[o++]=_[b++],T-=3;T&&(L[o++]=_[b++],T>1&&(L[o++]=_[b++]))}else{b=o-S;do L[o++]=L[b++],L[o++]=L[b++],L[o++]=L[b++],T-=3;while(T>2);T&&(L[o++]=L[b++],T>1&&(L[o++]=L[b++]))}}else if((x&64)===0){y=p[(y&65535)+(l&(1<<x)-1)];continue r}else{A.msg="invalid distance code",m.mode=O;break e}break}}else if((x&64)===0){y=h[(y&65535)+(l&(1<<x)-1)];continue t}else if(x&32){m.mode=E;break e}else{A.msg="invalid literal/length code",m.mode=O;break e}break}}while(f<c&&o<i);T=u>>3,f-=T,u-=T<<3,l&=(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),m.hold=l,m.bits=u;return}},szbU:function(H,B,d){var O=d("bYtY"),E=O.each;function C(w){var m=w&&w.visualMap;O.isArray(m)||(m=m?[m]:[]),E(m,function(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)&&E(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(w,m){return w&&w.hasOwnProperty&&w.hasOwnProperty(m)}H.exports=C},t23M:function(H,B,d){"use strict";var O=d("wx14"),E=d("q1tI"),C=d("Zm9Q"),A=d("Kwbf"),w=d("VTBJ"),m=d("c+Xe"),f=d("m+aA"),c=d("bdgK"),o=new Map;function r(b){b.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 s(b,_){o.has(b)||(o.set(b,new Set),i.observe(b)),o.get(b).add(_)}function t(b,_){o.has(b)&&(o.get(b).delete(_),o.get(b).size||(i.unobserve(b),o.delete(b)))}var a=d("1OyB"),l=d("vuIU"),u=d("Ji7U"),h=d("LK+K"),p=function(b){Object(u.a)(I,b);var _=Object(h.a)(I);function I(){return Object(a.a)(this,I),_.apply(this,arguments)}return Object(l.a)(I,[{key:"render",value:function(){return this.props.children}}]),I}(E.Component),g=E.createContext(null);function v(b){var _=b.children,I=b.onBatchResize,L=E.useRef(0),N=E.useRef([]),D=E.useContext(g),R=E.useCallback(function(P,M,U){L.current+=1;var F=L.current;N.current.push({size:P,element:M,data:U}),Promise.resolve().then(function(){F===L.current&&(I==null||I(N.current),N.current=[])}),D==null||D(P,M,U)},[I,D]);return E.createElement(g.Provider,{value:R},_)}function y(b){var _=b.children,I=b.disabled,L=E.useRef(null),N=E.useRef(null),D=E.useContext(g),R=typeof _=="function",P=R?_(L):_,M=E.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),U=!R&&E.isValidElement(P)&&Object(m.c)(P),F=U?P.ref:null,j=E.useMemo(function(){return Object(m.a)(F,L)},[F,L]),W=E.useRef(b);W.current=b;var V=E.useCallback(function(z){var Y=W.current,$=Y.onResize,ue=Y.data,ne=z.getBoundingClientRect(),ge=ne.width,Oe=ne.height,De=z.offsetWidth,He=z.offsetHeight,pe=Math.floor(ge),Ue=Math.floor(Oe);if(M.current.width!==pe||M.current.height!==Ue||M.current.offsetWidth!==De||M.current.offsetHeight!==He){var oe={width:pe,height:Ue,offsetWidth:De,offsetHeight:He};M.current=oe;var ee=De===Math.round(ge)?ge:De,Xe=He===Math.round(Oe)?Oe:He,se=Object(w.a)(Object(w.a)({},oe),{},{offsetWidth:ee,offsetHeight:Xe});D==null||D(se,z,ue),$&&Promise.resolve().then(function(){$(se,z)})}},[]);return E.useEffect(function(){var z=Object(f.a)(L.current)||Object(f.a)(N.current);return z&&!I&&s(z,V),function(){return t(z,V)}},[L.current,I]),E.createElement(p,{ref:N},U?E.cloneElement(P,{ref:j}):P)}var x="rc-observer-key";function T(b){var _=b.children,I=typeof _=="function"?[_]:Object(C.a)(_);return I.map(function(L,N){var D=(L==null?void 0:L.key)||"".concat(x,"-").concat(N);return E.createElement(y,Object(O.a)({},b,{key:D}),L)})}T.Collection=v;var S=B.a=T},t3Fx:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=Object.assign||function(a){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(a[h]=u[h])}return a},E=function(){function a(l,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(l,p.key,p)}}return function(l,u,h){return u&&a(l.prototype,u),h&&a(l,h),l}}(),C=d("q1tI"),A=i(C),w=d("17x9"),m=i(w),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,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function e(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function s(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){s(l,a);function l(u){n(this,l);var h=e(this,(l.__proto__||Object.getPrototypeOf(l)).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,g=p.onEvents,v=p.onChartReady,y=h.renderEchartDom();h.bindEvents(y,g||{}),typeof v=="function"&&h.props.onChartReady(y),h.echartsElement&&(0,o.bind)(h.echartsElement,function(){try{y.resize()}catch(x){console.warn(x)}})},h.bindEvents=function(p,g){var v=function(T,S){typeof T=="string"&&typeof S=="function"&&p.on(T,function(b){S(b,p)})};for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&v(y,g[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 E(l,[{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 g=this.renderEchartDom();if(!(0,c.default)(h.style,this.props.style)||!(0,c.default)(h.className,this.props.className))try{g.resize()}catch(v){console.warn(v)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var h=this,p=this.props,g=p.style,v=p.className,y=O({height:300},g);return A.default.createElement("div",{ref:function(T){h.echartsElement=T},style:y,className:"echarts-for-react "+v})}}]),l}(C.Component);B.default=t,t.propTypes={option:m.default.object.isRequired,echarts:m.default.object,notMerge:m.default.bool,lazyUpdate:m.default.bool,style:m.default.object,className:m.default.string,theme:m.default.oneOfType([m.default.string,m.default.object]),onChartReady:m.default.func,showLoading:m.default.bool,loadingOption:m.default.object,onEvents:m.default.object,opts:m.default.shape({devicePixelRatio:m.default.number,renderer:m.default.oneOf(["canvas","svg"]),width:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])]),height:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:m.default.func},t.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(H,B,d){var O=d("bYtY"),E=d("IwbS"),C=d("Qxkt"),A=d("Znkb"),w=d("+rIm"),m=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function f(i,n,e){n[1]>n[0]&&(n=n.slice().reverse());var s=i.coordToPoint([n[0],e]),t=i.coordToPoint([n[1],e]);return{x1:s[0],y1:s[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,s=e.polar,t=s.getRadiusAxis().getExtent(),a=e.getTicksCoords(),l=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(m,function(h){i.get(h+".show")&&(!e.scale.isBlank()||h==="axisLine")&&this["_"+h](i,s,a,l,t,u)},this)},_axisLine:function(i,n,e,s,t){var a=i.getModel("axisLine.lineStyle"),l=c(n),u=l?0:1,h;t[u]===0?h=new E.Circle({shape:{cx:n.cx,cy:n.cy,r:t[l]},style:a.getLineStyle(),z2:1,silent:!0}):h=new E.Ring({shape:{cx:n.cx,cy:n.cy,r:t[l],r0:t[u]},style:a.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,this.group.add(h)},_axisTick:function(i,n,e,s,t){var a=i.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),u=t[c(n)],h=O.map(e,function(p){return new E.Line({shape:f(n,[u,u+l],p.coord)})});this.group.add(E.mergePath(h,{style:O.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")})}))},_minorTick:function(i,n,e,s,t){if(!s.length)return;for(var a=i.getModel("axisTick"),l=i.getModel("minorTick"),u=(a.get("inside")?-1:1)*l.get("length"),h=t[c(n)],p=[],g=0;g<s.length;g++)for(var v=0;v<s[g].length;v++)p.push(new E.Line({shape:f(n,[h,h+u],s[g][v].coord)}));this.group.add(E.mergePath(p,{style:O.defaults(l.getModel("lineStyle").getLineStyle(),O.defaults(a.getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(i,n,e,s,t,a){var l=i.getCategories(!0),u=i.getModel("axisLabel"),h=u.get("margin"),p=i.get("triggerEvent");O.each(a,function(g,v){var y=u,x=g.tickValue,T=t[c(n)],S=n.coordToPoint([T+h,g.coord]),b=n.cx,_=n.cy,I=Math.abs(S[0]-b)/T<.3?"center":S[0]>b?"left":"right",L=Math.abs(S[1]-_)/T<.3?"middle":S[1]>_?"top":"bottom";l&&l[x]&&l[x].textStyle&&(y=new C(l[x].textStyle,u,u.ecModel));var N=new E.Text({silent:w.isLabelSilent(i)});this.group.add(N),E.setTextStyle(N.style,y,{x:S[0],y:S[1],textFill:y.getTextColor()||i.get("axisLine.lineStyle.color"),text:g.formattedLabel,textAlign:I,textVerticalAlign:L}),p&&(N.eventData=w.makeAxisEventDataBase(i),N.eventData.targetType="axisLabel",N.eventData.value=g.rawLabel)},this)},_splitLine:function(i,n,e,s,t){var a=i.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],g=0;g<e.length;g++){var v=h++%u.length;p[v]=p[v]||[],p[v].push(new E.Line({shape:f(n,t,e[g].coord)}))}for(var g=0;g<p.length;g++)this.group.add(E.mergePath(p[g],{style:O.defaults({stroke:u[g%u.length]},l.getLineStyle()),silent:!0,z:i.get("z")}))},_minorSplitLine:function(i,n,e,s,t){if(!s.length)return;for(var a=i.getModel("minorSplitLine"),l=a.getModel("lineStyle"),u=[],h=0;h<s.length;h++)for(var p=0;p<s[h].length;p++)u.push(new E.Line({shape:f(n,t,s[h][p].coord)}));this.group.add(E.mergePath(u,{style:l.getLineStyle(),silent:!0,z:i.get("z")}))},_splitArea:function(i,n,e,s,t){if(!e.length)return;var a=i.getModel("splitArea"),l=a.getModel("areaStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],g=Math.PI/180,v=-e[0].coord*g,y=Math.min(t[0],t[1]),x=Math.max(t[0],t[1]),T=i.get("clockwise"),S=1;S<e.length;S++){var b=h++%u.length;p[b]=p[b]||[],p[b].push(new E.Sector({shape:{cx:n.cx,cy:n.cy,r0:y,r:x,startAngle:v,endAngle:-e[S].coord*g,clockwise:T},silent:!0})),v=-e[S].coord*g}for(var S=0;S<p.length;S++)this.group.add(E.mergePath(p[S],{style:O.defaults({fill:u[S%u.length]},l.getAreaStyle()),silent:!0}))}});H.exports=r},tSko:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("SRve")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="PlusOutlined";var c=A.forwardRef(f);B.default=c},tceW:function(H,B,d){var O=d("KCsZ"),E=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C={getBarItemStyle:function(A){var w=E(this,A);if(this.getBorderLineDash){var m=this.getBorderLineDash();m&&(w.lineDash=m)}return w}};H.exports=C},tkwv:function(H,B,d){"use strict";var O=Array.isArray,E=Object.keys,C=Object.prototype.hasOwnProperty;H.exports=function A(w,m){if(w===m)return!0;if(w&&m&&typeof w=="object"&&typeof m=="object"){var f=O(w),c=O(m),o,r,i;if(f&&c){if(r=w.length,r!=m.length)return!1;for(o=r;o--!==0;)if(!A(w[o],m[o]))return!1;return!0}if(f!=c)return!1;var n=w instanceof Date,e=m instanceof Date;if(n!=e)return!1;if(n&&e)return w.getTime()==m.getTime();var s=w instanceof RegExp,t=m instanceof RegExp;if(s!=t)return!1;if(s&&t)return w.toString()==m.toString();var a=E(w);if(r=a.length,r!==E(m).length)return!1;for(o=r;o--!==0;)if(!C.call(m,a[o]))return!1;for(o=r;o--!==0;)if(i=a[o],!A(w[i],m[i]))return!1;return!0}return w!==w&&m!==m}},txkQ:function(H,B,d){var O=d("aX58");B.zrender=O;var E=d("Fofx");B.matrix=E;var C=d("QBsz");B.vector=C;var A=d("bYtY"),w=d("Qe9p");B.color=w;var m=d("IwbS"),f=d("OELB");B.number=f;var c=d("7aKB");B.format=c;var o=d("iLNv"),r=o.throttle;B.throttle=o.throttle;var i=d("FUi9");B.helper=i;var n=d("vafp");B.parseGeoJSON=n;var e=d("YXkt");B.List=e;var s=d("Qxkt");B.Model=s;var t=d("hM6l");B.Axis=t;var a=d("ItGF");B.env=a;var l=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]=m[p]}),B.parseGeoJson=l,B.util=u,B.graphic=h},u3DP:function(H,B,d){var O=d("6GrX"),E=d("OELB"),C=E.parsePercent,A=Math.PI/180;function w(o,r,i,n,e,s,t,a,l,u){o.sort(function(I,L){return I.y-L.y});function h(I,L,N,D){for(var R=I;R<L&&!(o[R].y+N>l+t);R++)if(o[R].y+=N,R>I&&R+1<L&&o[R+1].y>o[R].y+o[R].height){p(R,N/2);return}p(L-1,N/2)}function p(I,L){for(var N=I;N>=0&&!(o[N].y-L<l);N--)if(o[N].y-=L,N>0&&o[N].y>o[N-1].y+o[N-1].height)break}function g(I,L,N,D,R,P){for(var M=(P>0,L?Number.MAX_VALUE:0),U=0,F=I.length;U<F;U++){if(I[U].labelAlignTo!=="none")continue;var j=Math.abs(I[U].y-D),W=I[U].len,V=I[U].len2,z=j<R+W?Math.sqrt((R+W+V)*(R+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*P,M=z}}for(var v=0,y,x=o.length,T=[],S=[],b=0;b<x;b++){if(o[b].position==="outer"&&o[b].labelAlignTo==="labelLine"){var _=o[b].x-u;o[b].linePoints[1][0]+=_,o[b].x=u}y=o[b].y-v,y<0&&h(b,x,-y,e),v=o[b].y+o[b].height}t-v<0&&p(x-1,v-t);for(var b=0;b<x;b++)o[b].y>=i?S.push(o[b]):T.push(o[b]);g(T,!1,r,i,n,e),g(S,!0,r,i,n,e)}function m(o,r,i,n,e,s,t,a){for(var l=[],u=[],h=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<o.length;g++){if(f(o[g]))continue;o[g].x<r?(h=Math.min(h,o[g].x),l.push(o[g])):(p=Math.max(p,o[g].x),u.push(o[g]))}w(u,r,i,n,1,e,s,t,a,p),w(l,r,i,n,-1,e,s,t,a,h);for(var g=0;g<o.length;g++){var v=o[g];if(f(v))continue;var y=v.linePoints;if(y){var x=v.labelAlignTo==="edge",T=v.textRect.width,S;x?v.x<r?S=y[2][0]-v.labelDistance-t-v.labelMargin:S=t+e-v.labelMargin-y[2][0]-v.labelDistance:v.x<r?S=v.x-t-v.bleedMargin:S=t+e-v.x-v.bleedMargin,S<v.textRect.width&&(v.text=O.truncateText(v.text,S,v.font),v.labelAlignTo==="edge"&&(T=O.getWidth(v.text,v.font)));var b=y[1][0]-y[2][0];x?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]+b),y[1][1]=y[2][1]=v.y}}}function f(o){return o.position==="center"}function c(o,r,i,n,e,s){var t=o.getData(),a=[],l,u,h=!1,p=(o.get("minShowLabelAngle")||0)*A;t.each(function(g){var v=t.getItemLayout(g),y=t.getItemModel(g),x=y.getModel("label"),T=x.get("position")||y.get("emphasis.label.position"),S=x.get("distanceToLabelLine"),b=x.get("alignTo"),_=C(x.get("margin"),i),I=x.get("bleedMargin"),L=x.getFont(),N=y.getModel("labelLine"),D=N.get("length");D=C(D,i);var R=N.get("length2");if(R=C(R,i),v.angle<p)return;var P=(v.startAngle+v.endAngle)/2,M=Math.cos(P),U=Math.sin(P),F,j,W,V;l=v.cx,u=v.cy;var z=o.getFormattedLabel(g,"normal")||t.getName(g),Y=O.getBoundingRect(z,L,V,"top"),$=T==="inside"||T==="inner";if(T==="center")F=v.cx,j=v.cy,V="center";else{var ue=($?(v.r+v.r0)/2*M:v.r*M)+l,ne=($?(v.r+v.r0)/2*U:v.r*U)+u;if(F=ue+M*3,j=ne+U*3,!$){var ge=ue+M*(D+r-v.r),Oe=ne+U*(D+r-v.r),De=ge+(M<0?-1:1)*R,He=Oe;b==="edge"?F=M<0?e+_:e+i-_:F=De+(M<0?-S:S),j=He,W=[[ue,ne],[ge,Oe],[De,He]]}V=$?"center":b==="edge"?M>0?"right":"left":M>0?"left":"right"}var pe,Ue=x.get("rotate");typeof Ue=="number"?pe=Ue*(Math.PI/180):pe=Ue?M<0?-P+Math.PI:-P:0,h=!!pe,v.label={x:F,y:j,position:T,height:Y.height,len:D,len2:R,linePoints:W,textAlign:V,verticalAlign:"middle",rotation:pe,inside:$,labelDistance:S,labelAlignTo:b,labelMargin:_,bleedMargin:I,textRect:Y,text:z,font:L},$||a.push(v.label)}),!h&&o.get("avoidLabelOverlap")&&m(a,l,u,r,i,n,e,s)}H.exports=c},u3os:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.ver=B.clear=B.bind=void 0;var O=d("P4Qj"),E=function(m,f){var c=(0,O.getSensor)(m);return c.bind(f),function(){c.unbind(f)}};B.bind=E;var C=function(m){var f=(0,O.getSensor)(m);(0,O.removeSensor)(f)};B.clear=C;var A="1.0.1";B.ver=A},u4NN:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("Uc92")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="EyeOutlined";var c=A.forwardRef(f);B.default=c},u9fO:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("b80e"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},uAnK:function(H,B,d){var O=d("bYtY"),E=d("Kagy"),C=d("KxfA"),A=C.retrieveRawValue;function w(m,f){var c=f.getModel("aria");if(c.get("show")){if(c.get("description")){m.setAttribute("aria-label",c.get("description"));return}}else return;var o=0;f.eachSeries(function(g,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 s=h();s?e=l(u("general.withTitle"),{title:s}):e=u("general.withoutTitle");var t=[],a=o>1?"series.multiple.prefix":"series.single.prefix";e+=l(u(a),{seriesCount:o}),f.eachSeries(function(g,v){if(v<n){var y,x=g.get("name"),T="series."+(o>1?"multiple":"single")+".";y=u(x?T+"withName":T+"withoutName"),y=l(y,{seriesId:g.seriesIndex,seriesName:g.get("name"),seriesType:p(g.subType)});var S=g.getData();window.data=S,S.count()>r?y+=l(u("data.partialData"),{displayCnt:r}):y+=u("data.allData");for(var b=[],_=0;_<S.count();_++)if(_<r){var I=S.getName(_),L=A(S,_);b.push(l(u(I?"data.withName":"data.withoutName"),{name:I,value:L}))}y+=b.join(u("data.separator.middle"))+u("data.separator.end"),t.push(y)}}),e+=t.join(u("series.multiple.separator.middle"))+u("series.multiple.separator.end"),m.setAttribute("aria-label",e);function l(g,v){if(typeof g!="string")return g;var y=g;return O.each(v,function(x,T){y=y.replace(new RegExp("\\{\\s*"+T+"\\s*\\}","g"),x)}),y}function u(g){var v=c.get(g);if(v==null){for(var y=g.split("."),x=E.aria,T=0;T<y.length;++T)x=x[y[T]];return x}else return v}function h(){var g=f.getModel("title").option;return g&&g.length&&(g=g[0]),g&&g.text}function p(g){return E.series.typeNames[g]||"\u81EA\u5B9A\u4E49\u56FE"}}H.exports=w},uGsb:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("MlIO"),d("1uat"))})(this,function(O){return function(){var E=O,C=E.x64,A=C.Word,w=C.WordArray,m=E.algo,f=m.SHA512,c=m.SHA384=f.extend({_doReset:function(){this._hash=new w.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}});E.SHA384=f._createHelper(c),E.HmacSHA384=f._createHmacHelper(c)}(),O.SHA384})},uGxW:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.NoPadding={pad:function(){},unpad:function(){}},O.pad.NoPadding})},uK0f:function(H,B,d){(function(O,E){H.exports=E()})(this,function(){"use strict";function O(E,C,A){A=A||{},A.childrenKeyName=A.childrenKeyName||"children";var w=E||[],m=[],f=0;do{var c=w.filter(function(o){return C(o,f)})[0];if(!c)break;m.push(c),w=c[A.childrenKeyName]||[],f+=1}while(w.length>0);return m}return O})},uOyE:function(H,B,d){var O=d("ProS");O.registerAction({type:"brush",event:"brush"},function(E,C){C.eachComponent({mainType:"brush",query:E},function(A){A.setAreas(E.areas)})}),O.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),O.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(H,B,d){H.exports=O;function O(){return d("gaXo"),{}}},uciX:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("wx14"),C=d("1OyB"),A=d("vuIU"),w=d("JX7q"),m=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"),s=d("c+Xe"),t=d("zT1h"),a=d("QC+M"),l=d("TSYQ"),u=d.n(l);function h(oe,ee,Xe){return Xe?oe[0]===ee[0]:oe[0]===ee[0]&&oe[1]===ee[1]}function p(oe,ee,Xe){var se=oe[ee]||{};return Object(O.a)(Object(O.a)({},se),Xe)}function g(oe,ee,Xe,se){for(var Q=Xe.points,G=Object.keys(oe),J=0;J<G.length;J+=1){var ve=G[J];if(h(oe[ve].points,Q,se))return"".concat(ee,"-placement-").concat(ve)}return""}var v=d("ODXe"),y=d("Ff2n"),x=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var oe=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(oe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(oe==null?void 0:oe.substr(0,4)))},T=d("8XRh");function S(oe){var ee=oe.prefixCls,Xe=oe.motion,se=oe.animation,Q=oe.transitionName;return Xe||(se?{motionName:"".concat(ee,"-").concat(se)}:Q?{motionName:Q}:null)}function b(oe){var ee=oe.prefixCls,Xe=oe.visible,se=oe.zIndex,Q=oe.mask,G=oe.maskMotion,J=oe.maskAnimation,ve=oe.maskTransitionName;if(!Q)return null;var de={};return(G||ve||J)&&(de=Object(O.a)({motionAppear:!0},S({motion:G,prefixCls:ee,transitionName:ve,animation:J}))),c.createElement(T.b,Object(E.a)({},de,{visible:Xe,removeOnLeave:!0}),function(Ce){var Ee=Ce.className;return c.createElement("div",{style:{zIndex:se},className:u()("".concat(ee,"-mask"),Ee)})})}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 oe};var oe={},ee=Object.prototype,Xe=ee.hasOwnProperty,se=typeof Symbol=="function"?Symbol:{},Q=se.iterator||"@@iterator",G=se.asyncIterator||"@@asyncIterator",J=se.toStringTag||"@@toStringTag";function ve(ie,X,Fe){return Object.defineProperty(ie,X,{value:Fe,enumerable:!0,configurable:!0,writable:!0}),ie[X]}try{ve({},"")}catch(ie){ve=function(Fe,Ne,q){return Fe[Ne]=q}}function de(ie,X,Fe,Ne){var q=X&&X.prototype instanceof le?X:le,ht=Object.create(q.prototype),Rt=new Tt(Ne||[]);return ht._invoke=function(ut,Xt,or){var Zr="suspendedStart";return function(ar,dr){if(Zr==="executing")throw new Error("Generator is already running");if(Zr==="completed"){if(ar==="throw")throw dr;return Be()}for(or.method=ar,or.arg=dr;;){var er=or.delegate;if(er){var Ht=nt(er,or);if(Ht){if(Ht===Ee)continue;return Ht}}if(or.method==="next")or.sent=or._sent=or.arg;else if(or.method==="throw"){if(Zr==="suspendedStart")throw Zr="completed",or.arg;or.dispatchException(or.arg)}else or.method==="return"&&or.abrupt("return",or.arg);Zr="executing";var dt=Ce(ut,Xt,or);if(dt.type==="normal"){if(Zr=or.done?"completed":"suspendedYield",dt.arg===Ee)continue;return{value:dt.arg,done:or.done}}dt.type==="throw"&&(Zr="completed",or.method="throw",or.arg=dt.arg)}}}(ie,Fe,Rt),ht}function Ce(ie,X,Fe){try{return{type:"normal",arg:ie.call(X,Fe)}}catch(Ne){return{type:"throw",arg:Ne}}}oe.wrap=de;var Ee={};function le(){}function fe(){}function xe(){}var Qe={};ve(Qe,Q,function(){return this});var ot=Object.getPrototypeOf,Je=ot&&ot(ot(Dt([])));Je&&Je!==ee&&Xe.call(Je,Q)&&(Qe=Je);var Te=xe.prototype=le.prototype=Object.create(Qe);function et(ie){["next","throw","return"].forEach(function(X){ve(ie,X,function(Fe){return this._invoke(X,Fe)})})}function ze(ie,X){function Fe(q,ht,Rt,ut){var Xt=Ce(ie[q],ie,ht);if(Xt.type!=="throw"){var or=Xt.arg,Zr=or.value;return Zr&&Object(L.a)(Zr)=="object"&&Xe.call(Zr,"__await")?X.resolve(Zr.__await).then(function(ar){Fe("next",ar,Rt,ut)},function(ar){Fe("throw",ar,Rt,ut)}):X.resolve(Zr).then(function(ar){or.value=ar,Rt(or)},function(ar){return Fe("throw",ar,Rt,ut)})}ut(Xt.arg)}var Ne;this._invoke=function(q,ht){function Rt(){return new X(function(ut,Xt){Fe(q,ht,ut,Xt)})}return Ne=Ne?Ne.then(Rt,Rt):Rt()}}function nt(ie,X){var Fe=ie.iterator[X.method];if(Fe===void 0){if(X.delegate=null,X.method==="throw"){if(ie.iterator.return&&(X.method="return",X.arg=void 0,nt(ie,X),X.method==="throw"))return Ee;X.method="throw",X.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ee}var Ne=Ce(Fe,ie.iterator,X.arg);if(Ne.type==="throw")return X.method="throw",X.arg=Ne.arg,X.delegate=null,Ee;var q=Ne.arg;return q?q.done?(X[ie.resultName]=q.value,X.next=ie.nextLoc,X.method!=="return"&&(X.method="next",X.arg=void 0),X.delegate=null,Ee):q:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,Ee)}function Ot(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 Ct(ie){var X=ie.completion||{};X.type="normal",delete X.arg,ie.completion=X}function Tt(ie){this.tryEntries=[{tryLoc:"root"}],ie.forEach(Ot,this),this.reset(!0)}function Dt(ie){if(ie){var X=ie[Q];if(X)return X.call(ie);if(typeof ie.next=="function")return ie;if(!isNaN(ie.length)){var Fe=-1,Ne=function q(){for(;++Fe<ie.length;)if(Xe.call(ie,Fe))return q.value=ie[Fe],q.done=!1,q;return q.value=void 0,q.done=!0,q};return Ne.next=Ne}}return{next:Be}}function Be(){return{value:void 0,done:!0}}return fe.prototype=xe,ve(Te,"constructor",xe),ve(xe,"constructor",fe),fe.displayName=ve(xe,J,"GeneratorFunction"),oe.isGeneratorFunction=function(ie){var X=typeof ie=="function"&&ie.constructor;return!!X&&(X===fe||(X.displayName||X.name)==="GeneratorFunction")},oe.mark=function(ie){return Object.setPrototypeOf?Object.setPrototypeOf(ie,xe):(ie.__proto__=xe,ve(ie,J,"GeneratorFunction")),ie.prototype=Object.create(Te),ie},oe.awrap=function(ie){return{__await:ie}},et(ze.prototype),ve(ze.prototype,G,function(){return this}),oe.AsyncIterator=ze,oe.async=function(ie,X,Fe,Ne,q){q===void 0&&(q=Promise);var ht=new ze(de(ie,X,Fe,Ne),q);return oe.isGeneratorFunction(X)?ht:ht.next().then(function(Rt){return Rt.done?Rt.value:ht.next()})},et(Te),ve(Te,J,"Generator"),ve(Te,Q,function(){return this}),ve(Te,"toString",function(){return"[object Generator]"}),oe.keys=function(ie){var X=[];for(var Fe in ie)X.push(Fe);return X.reverse(),function Ne(){for(;X.length;){var q=X.pop();if(q in ie)return Ne.value=q,Ne.done=!1,Ne}return Ne.done=!0,Ne}},oe.values=Dt,Tt.prototype={constructor:Tt,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(Ct),!X)for(var Fe in this)Fe.charAt(0)==="t"&&Xe.call(this,Fe)&&!isNaN(+Fe.slice(1))&&(this[Fe]=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 Fe=this;function Ne(or,Zr){return Rt.type="throw",Rt.arg=X,Fe.next=or,Zr&&(Fe.method="next",Fe.arg=void 0),!!Zr}for(var q=this.tryEntries.length-1;q>=0;--q){var ht=this.tryEntries[q],Rt=ht.completion;if(ht.tryLoc==="root")return Ne("end");if(ht.tryLoc<=this.prev){var ut=Xe.call(ht,"catchLoc"),Xt=Xe.call(ht,"finallyLoc");if(ut&&Xt){if(this.prev<ht.catchLoc)return Ne(ht.catchLoc,!0);if(this.prev<ht.finallyLoc)return Ne(ht.finallyLoc)}else if(ut){if(this.prev<ht.catchLoc)return Ne(ht.catchLoc,!0)}else{if(!Xt)throw new Error("try statement without catch or finally");if(this.prev<ht.finallyLoc)return Ne(ht.finallyLoc)}}}},abrupt:function(X,Fe){for(var Ne=this.tryEntries.length-1;Ne>=0;--Ne){var q=this.tryEntries[Ne];if(q.tryLoc<=this.prev&&Xe.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var ht=q;break}}ht&&(X==="break"||X==="continue")&&ht.tryLoc<=Fe&&Fe<=ht.finallyLoc&&(ht=null);var Rt=ht?ht.completion:{};return Rt.type=X,Rt.arg=Fe,ht?(this.method="next",this.next=ht.finallyLoc,Ee):this.complete(Rt)},complete:function(X,Fe){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"&&Fe&&(this.next=Fe),Ee},finish:function(X){for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var Ne=this.tryEntries[Fe];if(Ne.finallyLoc===X)return this.complete(Ne.completion,Ne.afterLoc),Ct(Ne),Ee}},catch:function(X){for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var Ne=this.tryEntries[Fe];if(Ne.tryLoc===X){var q=Ne.completion;if(q.type==="throw"){var ht=q.arg;Ct(Ne)}return ht}}throw new Error("illegal catch attempt")},delegateYield:function(X,Fe,Ne){return this.delegate={iterator:Dt(X),resultName:Fe,nextLoc:Ne},this.method==="next"&&(this.arg=void 0),Ee}},oe}var D=d("HaE+"),R=d("dm2S"),P=["measure","alignPre","align",null,"motion"],M=function(oe,ee){var Xe=Object(R.a)(null),se=Object(v.a)(Xe,2),Q=se[0],G=se[1],J=Object(c.useRef)();function ve(Ee){G(Ee,!0)}function de(){i.a.cancel(J.current)}function Ce(Ee){de(),J.current=Object(i.a)(function(){ve(function(le){switch(Q){case"align":return"motion";case"motion":return"stable";default:}return le}),Ee==null||Ee()})}return Object(c.useEffect)(function(){ve("measure")},[oe]),Object(c.useEffect)(function(){switch(Q){case"measure":ee();break;default:}Q&&(J.current=Object(i.a)(Object(D.a)(N().mark(function Ee(){var le,fe;return N().wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:le=P.indexOf(Q),fe=P[le+1],fe&&le!==-1&&ve(fe);case 3:case"end":return Qe.stop()}},Ee)}))))},[Q]),Object(c.useEffect)(function(){return function(){de()}},[]),[Q,Ce]},U=function(oe){var ee=c.useState({width:0,height:0}),Xe=Object(v.a)(ee,2),se=Xe[0],Q=Xe[1];function G(ve){Q({width:ve.offsetWidth,height:ve.offsetHeight})}var J=c.useMemo(function(){var ve={};if(oe){var de=se.width,Ce=se.height;oe.indexOf("height")!==-1&&Ce?ve.height=Ce:oe.indexOf("minHeight")!==-1&&Ce&&(ve.minHeight=Ce),oe.indexOf("width")!==-1&&de?ve.width=de:oe.indexOf("minWidth")!==-1&&de&&(ve.minWidth=de)}return ve},[oe,se]);return[J,G]},F=c.forwardRef(function(oe,ee){var Xe=oe.visible,se=oe.prefixCls,Q=oe.className,G=oe.style,J=oe.children,ve=oe.zIndex,de=oe.stretch,Ce=oe.destroyPopupOnHide,Ee=oe.forceRender,le=oe.align,fe=oe.point,xe=oe.getRootDomNode,Qe=oe.getClassNameFromAlign,ot=oe.onAlign,Je=oe.onMouseEnter,Te=oe.onMouseLeave,et=oe.onMouseDown,ze=oe.onTouchStart,nt=oe.onClick,Ot=Object(c.useRef)(),Ct=Object(c.useRef)(),Tt=Object(c.useState)(),Dt=Object(v.a)(Tt,2),Be=Dt[0],ie=Dt[1],X=U(de),Fe=Object(v.a)(X,2),Ne=Fe[0],q=Fe[1];function ht(){de&&q(xe())}var Rt=M(Xe,ht),ut=Object(v.a)(Rt,2),Xt=ut[0],or=ut[1],Zr=Object(c.useState)(0),ar=Object(v.a)(Zr,2),dr=ar[0],er=ar[1],Ht=Object(c.useRef)();Object(I.a)(function(){Xt==="alignPre"&&er(0)},[Xt]);function dt(){return fe||xe}function Hr(){var jt;(jt=Ot.current)===null||jt===void 0||jt.forceAlign()}function dn(jt,St){var Ie=Qe(St);Be!==Ie&&ie(Ie),er(function(_e){return _e+1}),Xt==="align"&&(ot==null||ot(jt,St))}Object(I.a)(function(){Xt==="align"&&(dr<2?Hr():or(function(){var jt;(jt=Ht.current)===null||jt===void 0||jt.call(Ht)}))},[dr]);var Nn=Object(O.a)({},S(oe));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(jt){var St=Nn[jt];Nn[jt]=function(Ie,_e){return or(),St==null?void 0:St(Ie,_e)}});function Vn(){return new Promise(function(jt){Ht.current=jt})}c.useEffect(function(){!Nn.motionName&&Xt==="motion"&&or()},[Nn.motionName,Xt]),c.useImperativeHandle(ee,function(){return{forceAlign:Hr,getElement:function(){return Ct.current}}});var gi=Object(O.a)(Object(O.a)({},Ne),{},{zIndex:ve,opacity:Xt==="motion"||Xt==="stable"||!Xe?void 0:0,pointerEvents:!Xe&&Xt!=="stable"?"none":void 0},G),bn=!0;(le==null?void 0:le.points)&&(Xt==="align"||Xt==="stable")&&(bn=!1);var Mn=J;return c.Children.count(J)>1&&(Mn=c.createElement("div",{className:"".concat(se,"-content")},J)),c.createElement(T.b,Object(E.a)({visible:Xe,ref:Ct,leavedClassName:"".concat(se,"-hidden")},Nn,{onAppearPrepare:Vn,onEnterPrepare:Vn,removeOnLeave:Ce,forceRender:Ee}),function(jt,St){var Ie=jt.className,_e=jt.style,Le=u()(se,Q,Be,Ie);return c.createElement(_.a,{target:dt(),key:"popup",ref:Ot,monitorWindowResize:!0,disabled:bn,align:le,onAlign:dn},c.createElement("div",{ref:St,className:Le,onMouseEnter:Je,onMouseLeave:Te,onMouseDownCapture:et,onTouchStartCapture:ze,onClick:nt,style:Object(O.a)(Object(O.a)({},_e),gi)},Mn))})});F.displayName="PopupInner";var j=F,W=c.forwardRef(function(oe,ee){var Xe=oe.prefixCls,se=oe.visible,Q=oe.zIndex,G=oe.children,J=oe.mobile;J=J===void 0?{}:J;var ve=J.popupClassName,de=J.popupStyle,Ce=J.popupMotion,Ee=Ce===void 0?{}:Ce,le=J.popupRender,fe=oe.onClick,xe=c.useRef();c.useImperativeHandle(ee,function(){return{forceAlign:function(){},getElement:function(){return xe.current}}});var Qe=Object(O.a)({zIndex:Q},de),ot=G;return c.Children.count(G)>1&&(ot=c.createElement("div",{className:"".concat(Xe,"-content")},G)),le&&(ot=le(ot)),c.createElement(T.b,Object(E.a)({visible:se,ref:xe,removeOnLeave:!0},Ee),function(Je,Te){var et=Je.className,ze=Je.style,nt=u()(Xe,ve,et);return c.createElement("div",{ref:Te,className:nt,onClick:fe,style:Object(O.a)(Object(O.a)({},ze),Qe)},ot)})});W.displayName="MobilePopupInner";var V=W,z=["visible","mobile"],Y=c.forwardRef(function(oe,ee){var Xe=oe.visible,se=oe.mobile,Q=Object(y.a)(oe,z),G=Object(c.useState)(Xe),J=Object(v.a)(G,2),ve=J[0],de=J[1],Ce=Object(c.useState)(!1),Ee=Object(v.a)(Ce,2),le=Ee[0],fe=Ee[1],xe=Object(O.a)(Object(O.a)({},Q),{},{visible:ve});Object(c.useEffect)(function(){de(Xe),Xe&&se&&fe(x())},[Xe,se]);var Qe=le?c.createElement(V,Object(E.a)({},xe,{mobile:se,ref:ee})):c.createElement(j,Object(E.a)({},xe,{ref:ee}));return c.createElement("div",null,c.createElement(b,xe),Qe)});Y.displayName="Popup";var $=Y,ue=c.createContext(null),ne=ue;function ge(){}function Oe(){return""}function De(oe){return oe?oe.ownerDocument:window.document}var He=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function pe(oe){var ee=function(Xe){Object(m.a)(Q,Xe);var se=Object(f.a)(Q);function Q(G){var J;Object(C.a)(this,Q),J=se.call(this,G),J.popupRef=c.createRef(),J.triggerRef=c.createRef(),J.portalContainer=void 0,J.attachId=void 0,J.clickOutsideHandler=void 0,J.touchOutsideHandler=void 0,J.contextMenuOutsideHandler1=void 0,J.contextMenuOutsideHandler2=void 0,J.mouseDownTimeout=void 0,J.focusTime=void 0,J.preClickTime=void 0,J.preTouchTime=void 0,J.delayTimer=void 0,J.hasPopupMouseDown=void 0,J.onMouseEnter=function(de){var Ce=J.props.mouseEnterDelay;J.fireEvents("onMouseEnter",de),J.delaySetPopupVisible(!0,Ce,Ce?null:de)},J.onMouseMove=function(de){J.fireEvents("onMouseMove",de),J.setPoint(de)},J.onMouseLeave=function(de){J.fireEvents("onMouseLeave",de),J.delaySetPopupVisible(!1,J.props.mouseLeaveDelay)},J.onPopupMouseEnter=function(){J.clearDelayTimer()},J.onPopupMouseLeave=function(de){var Ce;if(de.relatedTarget&&!de.relatedTarget.setTimeout&&Object(n.a)((Ce=J.popupRef.current)===null||Ce===void 0?void 0:Ce.getElement(),de.relatedTarget))return;J.delaySetPopupVisible(!1,J.props.mouseLeaveDelay)},J.onFocus=function(de){J.fireEvents("onFocus",de),J.clearDelayTimer(),J.isFocusToShow()&&(J.focusTime=Date.now(),J.delaySetPopupVisible(!0,J.props.focusDelay))},J.onMouseDown=function(de){J.fireEvents("onMouseDown",de),J.preClickTime=Date.now()},J.onTouchStart=function(de){J.fireEvents("onTouchStart",de),J.preTouchTime=Date.now()},J.onBlur=function(de){J.fireEvents("onBlur",de),J.clearDelayTimer(),J.isBlurToHide()&&J.delaySetPopupVisible(!1,J.props.blurDelay)},J.onContextMenu=function(de){de.preventDefault(),J.fireEvents("onContextMenu",de),J.setPopupVisible(!0,de)},J.onContextMenuClose=function(){J.isContextMenuToShow()&&J.close()},J.onClick=function(de){if(J.fireEvents("onClick",de),J.focusTime){var Ce;if(J.preClickTime&&J.preTouchTime?Ce=Math.min(J.preClickTime,J.preTouchTime):J.preClickTime?Ce=J.preClickTime:J.preTouchTime&&(Ce=J.preTouchTime),Math.abs(Ce-J.focusTime)<20)return;J.focusTime=0}J.preClickTime=0,J.preTouchTime=0,J.isClickToShow()&&(J.isClickToHide()||J.isBlurToHide())&&de&&de.preventDefault&&de.preventDefault();var Ee=!J.state.popupVisible;(J.isClickToHide()&&!Ee||Ee&&J.isClickToShow())&&J.setPopupVisible(!J.state.popupVisible,de)},J.onPopupMouseDown=function(){if(J.hasPopupMouseDown=!0,clearTimeout(J.mouseDownTimeout),J.mouseDownTimeout=window.setTimeout(function(){J.hasPopupMouseDown=!1},0),J.context){var de;(de=J.context).onPopupMouseDown.apply(de,arguments)}},J.onDocumentClick=function(de){if(J.props.mask&&!J.props.maskClosable)return;var Ce=de.target,Ee=J.getRootDomNode(),le=J.getPopupDomNode();(!Object(n.a)(Ee,Ce)||J.isContextMenuOnly())&&!Object(n.a)(le,Ce)&&!J.hasPopupMouseDown&&J.close()},J.getRootDomNode=function(){var de=J.props.getTriggerDOMNode;if(de)return de(J.triggerRef.current);try{var Ce=Object(e.a)(J.triggerRef.current);if(Ce)return Ce}catch(Ee){}return r.a.findDOMNode(Object(w.a)(J))},J.getPopupClassNameFromAlign=function(de){var Ce=[],Ee=J.props,le=Ee.popupPlacement,fe=Ee.builtinPlacements,xe=Ee.prefixCls,Qe=Ee.alignPoint,ot=Ee.getPopupClassNameFromAlign;return le&&fe&&Ce.push(g(fe,xe,de,Qe)),ot&&Ce.push(ot(de)),Ce.join(" ")},J.getComponent=function(){var de=J.props,Ce=de.prefixCls,Ee=de.destroyPopupOnHide,le=de.popupClassName,fe=de.onPopupAlign,xe=de.popupMotion,Qe=de.popupAnimation,ot=de.popupTransitionName,Je=de.popupStyle,Te=de.mask,et=de.maskAnimation,ze=de.maskTransitionName,nt=de.maskMotion,Ot=de.zIndex,Ct=de.popup,Tt=de.stretch,Dt=de.alignPoint,Be=de.mobile,ie=de.forceRender,X=de.onPopupClick,Fe=J.state,Ne=Fe.popupVisible,q=Fe.point,ht=J.getPopupAlign(),Rt={};return J.isMouseEnterToShow()&&(Rt.onMouseEnter=J.onPopupMouseEnter),J.isMouseLeaveToHide()&&(Rt.onMouseLeave=J.onPopupMouseLeave),Rt.onMouseDown=J.onPopupMouseDown,Rt.onTouchStart=J.onPopupMouseDown,c.createElement($,Object(E.a)({prefixCls:Ce,destroyPopupOnHide:Ee,visible:Ne,point:Dt&&q,className:le,align:ht,onAlign:fe,animation:Qe,getClassNameFromAlign:J.getPopupClassNameFromAlign},Rt,{stretch:Tt,getRootDomNode:J.getRootDomNode,style:Je,mask:Te,zIndex:Ot,transitionName:ot,maskAnimation:et,maskTransitionName:ze,maskMotion:nt,ref:J.popupRef,motion:xe,mobile:Be,forceRender:ie,onClick:X}),typeof Ct=="function"?Ct():Ct)},J.attachParent=function(de){i.a.cancel(J.attachId);var Ce=J.props,Ee=Ce.getPopupContainer,le=Ce.getDocument,fe=J.getRootDomNode(),xe;Ee?(fe||Ee.length===0)&&(xe=Ee(fe)):xe=le(J.getRootDomNode()).body,xe?xe.appendChild(de):J.attachId=Object(i.a)(function(){J.attachParent(de)})},J.getContainer=function(){if(!J.portalContainer){var de=J.props.getDocument,Ce=de(J.getRootDomNode()).createElement("div");Ce.style.position="absolute",Ce.style.top="0",Ce.style.left="0",Ce.style.width="100%",J.portalContainer=Ce}return J.attachParent(J.portalContainer),J.portalContainer},J.setPoint=function(de){var Ce=J.props.alignPoint;if(!Ce||!de)return;J.setState({point:{pageX:de.pageX,pageY:de.pageY}})},J.handlePortalUpdate=function(){J.state.prevPopupVisible!==J.state.popupVisible&&J.props.afterPopupVisibleChange(J.state.popupVisible)},J.triggerContextValue={onPopupMouseDown:J.onPopupMouseDown};var ve;return"popupVisible"in G?ve=!!G.popupVisible:ve=!!G.defaultPopupVisible,J.state={prevPopupVisible:ve,popupVisible:ve},He.forEach(function(de){J["fire".concat(de)]=function(Ce){J.fireEvents(de,Ce)}}),J}return Object(A.a)(Q,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var J=this.props,ve=this.state;if(ve.popupVisible){var de;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(de=J.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(t.a)(de,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(de=de||J.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(t.a)(de,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(de=de||J.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(t.a)(de,"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 J;return((J=this.popupRef.current)===null||J===void 0?void 0:J.getElement())||null}},{key:"getPopupAlign",value:function(){var J=this.props,ve=J.popupPlacement,de=J.popupAlign,Ce=J.builtinPlacements;return ve&&Ce?p(Ce,ve,de):de}},{key:"setPopupVisible",value:function(J,ve){var de=this.props.alignPoint,Ce=this.state.popupVisible;this.clearDelayTimer(),Ce!==J&&("popupVisible"in this.props||this.setState({popupVisible:J,prevPopupVisible:Ce}),this.props.onPopupVisibleChange(J)),de&&ve&&J&&this.setPoint(ve)}},{key:"delaySetPopupVisible",value:function(J,ve,de){var Ce=this,Ee=ve*1e3;if(this.clearDelayTimer(),Ee){var le=de?{pageX:de.pageX,pageY:de.pageY}:null;this.delayTimer=window.setTimeout(function(){Ce.setPopupVisible(J,le),Ce.clearDelayTimer()},Ee)}else this.setPopupVisible(J,de)}},{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(J){var ve=this.props.children.props,de=this.props;return ve[J]&&de[J]?this["fire".concat(J)]:ve[J]||de[J]}},{key:"isClickToShow",value:function(){var J=this.props,ve=J.action,de=J.showAction;return ve.indexOf("click")!==-1||de.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var J=this.props.action;return J==="contextMenu"||J.length===1&&J[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var J=this.props,ve=J.action,de=J.showAction;return ve.indexOf("contextMenu")!==-1||de.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var J=this.props,ve=J.action,de=J.hideAction;return ve.indexOf("click")!==-1||de.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var J=this.props,ve=J.action,de=J.showAction;return ve.indexOf("hover")!==-1||de.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var J=this.props,ve=J.action,de=J.hideAction;return ve.indexOf("hover")!==-1||de.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var J=this.props,ve=J.action,de=J.showAction;return ve.indexOf("focus")!==-1||de.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var J=this.props,ve=J.action,de=J.hideAction;return ve.indexOf("focus")!==-1||de.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var J;(J=this.popupRef.current)===null||J===void 0||J.forceAlign()}}},{key:"fireEvents",value:function(J,ve){var de=this.props.children.props[J];de&&de(ve);var Ce=this.props[J];Ce&&Ce(ve)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var J=this.state.popupVisible,ve=this.props,de=ve.children,Ce=ve.forceRender,Ee=ve.alignPoint,le=ve.className,fe=ve.autoDestroy,xe=c.Children.only(de),Qe={key:"trigger"};this.isContextMenuToShow()?Qe.onContextMenu=this.onContextMenu:Qe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Qe.onClick=this.onClick,Qe.onMouseDown=this.onMouseDown,Qe.onTouchStart=this.onTouchStart):(Qe.onClick=this.createTwoChains("onClick"),Qe.onMouseDown=this.createTwoChains("onMouseDown"),Qe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Qe.onMouseEnter=this.onMouseEnter,Ee&&(Qe.onMouseMove=this.onMouseMove)):Qe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Qe.onMouseLeave=this.onMouseLeave:Qe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Qe.onFocus=this.onFocus,Qe.onBlur=this.onBlur):(Qe.onFocus=this.createTwoChains("onFocus"),Qe.onBlur=this.createTwoChains("onBlur"));var ot=u()(xe&&xe.props&&xe.props.className,le);ot&&(Qe.className=ot);var Je=Object(O.a)({},Qe);Object(s.c)(xe)&&(Je.ref=Object(s.a)(this.triggerRef,xe.ref));var Te=c.cloneElement(xe,Je),et;return(J||this.popupRef.current||Ce)&&(et=c.createElement(oe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!J&&fe&&(et=null),c.createElement(ne.Provider,{value:this.triggerContextValue},Te,et)}}],[{key:"getDerivedStateFromProps",value:function(J,ve){var de=J.popupVisible,Ce={};return de!==void 0&&ve.popupVisible!==de&&(Ce.popupVisible=de,Ce.prevPopupVisible=ve.popupVisible),Ce}}]),Q}(c.Component);return ee.contextType=ne,ee.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Oe,getDocument:De,onPopupVisibleChange:ge,afterPopupVisibleChange:ge,onPopupAlign:ge,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ee}var Ue=B.a=pe(a.a)},ugBc:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},ulZh:function(H,B,d){typeof window!="undefined"&&function(E,C){H.exports=C()}(this,function(){return function(O){var E={};function C(A){if(E[A])return E[A].exports;var w=E[A]={i:A,l:!1,exports:{}};return O[A].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=O,C.c=E,C.d=function(A,w,m){C.o(A,w)||Object.defineProperty(A,w,{enumerable:!0,get:m})},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,w){if(w&1&&(A=C(A)),w&8)return A;if(w&4&&typeof A=="object"&&A&&A.__esModule)return A;var m=Object.create(null);if(C.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:A}),w&2&&typeof A!="string")for(var f in A)C.d(m,f,function(c){return A[c]}.bind(null,f));return m},C.n=function(A){var w=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(w,"a",w),w},C.o=function(A,w){return Object.prototype.hasOwnProperty.call(A,w)},C.p="/dist/",C(C.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(E,C,A){"use strict";var w=Object.prototype.hasOwnProperty,m="~";function f(){}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(m=!1));function c(n,e,s){this.fn=n,this.context=e,this.once=s||!1}function o(n,e,s,t,a){if(typeof s!="function")throw new TypeError("The listener must be a function");var l=new c(s,t||n,a),u=m?m+e:e;return n._events[u]?n._events[u].fn?n._events[u]=[n._events[u],l]:n._events[u].push(l):(n._events[u]=l,n._eventsCount++),n}function r(n,e){--n._eventsCount===0?n._events=new f:delete n._events[e]}function i(){this._events=new f,this._eventsCount=0}i.prototype.eventNames=function(){var e=[],s,t;if(this._eventsCount===0)return e;for(t in s=this._events)w.call(s,t)&&e.push(m?t.slice(1):t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(s)):e},i.prototype.listeners=function(e){var s=m?m+e:e,t=this._events[s];if(!t)return[];if(t.fn)return[t.fn];for(var a=0,l=t.length,u=new Array(l);a<l;a++)u[a]=t[a].fn;return u},i.prototype.listenerCount=function(e){var s=m?m+e:e,t=this._events[s];return t?t.fn?1:t.length:0},i.prototype.emit=function(e,s,t,a,l,u){var h=m?m+e:e;if(!this._events[h])return!1;var p=this._events[h],g=arguments.length,v,y;if(p.fn){p.once&&this.removeListener(e,p.fn,void 0,!0);switch(g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,s),!0;case 3:return p.fn.call(p.context,s,t),!0;case 4:return p.fn.call(p.context,s,t,a),!0;case 5:return p.fn.call(p.context,s,t,a,l),!0;case 6:return p.fn.call(p.context,s,t,a,l,u),!0}for(y=1,v=new Array(g-1);y<g;y++)v[y-1]=arguments[y];p.fn.apply(p.context,v)}else{var x=p.length,T;for(y=0;y<x;y++){p[y].once&&this.removeListener(e,p[y].fn,void 0,!0);switch(g){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,s);break;case 3:p[y].fn.call(p[y].context,s,t);break;case 4:p[y].fn.call(p[y].context,s,t,a);break;default:if(!v)for(T=1,v=new Array(g-1);T<g;T++)v[T-1]=arguments[T];p[y].fn.apply(p[y].context,v)}}}return!0},i.prototype.on=function(e,s,t){return o(this,e,s,t,!1)},i.prototype.once=function(e,s,t){return o(this,e,s,t,!0)},i.prototype.removeListener=function(e,s,t,a){var l=m?m+e:e;if(!this._events[l])return this;if(!s)return r(this,l),this;var u=this._events[l];if(u.fn)u.fn===s&&(!a||u.once)&&(!t||u.context===t)&&r(this,l);else{for(var h=0,p=[],g=u.length;h<g;h++)(u[h].fn!==s||a&&!u[h].once||t&&u[h].context!==t)&&p.push(u[h]);p.length?this._events[l]=p.length===1?p[0]:p:r(this,l)}return this},i.prototype.removeAllListeners=function(e){var s;return e?(s=m?m+e:e,this._events[s]&&r(this,s)):(this._events=new f,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=m,i.EventEmitter=i,E.exports=i},"./node_modules/url-toolkit/src/url-toolkit.js":function(E,C,A){(function(w){var m=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,f=/^(?=([^\/?#]*))\1([^]*)$/,c=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,r={buildAbsoluteURL:function(n,e,s){if(s=s||{},n=n.trim(),e=e.trim(),!e){if(!s.alwaysNormalize)return n;var t=r.parseURL(n);if(!t)throw new Error("Error trying to parse base URL.");return t.path=r.normalizePath(t.path),r.buildURLFromParts(t)}var a=r.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return s.alwaysNormalize?(a.path=r.normalizePath(a.path),r.buildURLFromParts(a)):e;var l=r.parseURL(n);if(!l)throw new Error("Error trying to parse base URL.");if(!l.netLoc&&l.path&&l.path[0]!=="/"){var u=f.exec(l.path);l.netLoc=u[1],l.path=u[2]}l.netLoc&&!l.path&&(l.path="/");var h={scheme:l.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(h.netLoc=l.netLoc,a.path[0]!=="/"))if(!a.path)h.path=l.path,a.params||(h.params=l.params,a.query||(h.query=l.query));else{var p=l.path,g=p.substring(0,p.lastIndexOf("/")+1)+a.path;h.path=r.normalizePath(g)}return h.path===null&&(h.path=s.alwaysNormalize?r.normalizePath(a.path):a.path),r.buildURLFromParts(h)},parseURL:function(n){var e=m.exec(n);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(n){for(n=n.split("").reverse().join("").replace(c,"");n.length!==(n=n.replace(o,"")).length;);return n.split("").reverse().join("")},buildURLFromParts:function(n){return n.scheme+n.netLoc+n.path+n.params+n.query+n.fragment}};E.exports=r})(this)},"./node_modules/webworkify-webpack/index.js":function(E,C,A){function w(e){var s={};function t(l){if(s[l])return s[l].exports;var u=s[l]={i:l,l:!1,exports:{}};return e[l].call(u.exports,u,u.exports,t),u.l=!0,u.exports}t.m=e,t.c=s,t.i=function(l){return l},t.d=function(l,u,h){t.o(l,u)||Object.defineProperty(l,u,{configurable:!1,enumerable:!0,get:h})},t.r=function(l){Object.defineProperty(l,"__esModule",{value:!0})},t.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return t.d(u,"a",u),u},t.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},t.p="/",t.oe=function(l){throw console.error(l),l};var a=t(t.s=ENTRY_MODULE);return a.default||a}var m="[\\.|\\-|\\+|\\w|/|@]+",f="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+m+").*?\\)";function c(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(e){return!isNaN(1*e)}function r(e,s,t){var a={};a[t]=[];var l=s.toString(),u=l.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!u)return a;for(var h=u[1],p=new RegExp("(\\\\n|\\W)"+c(h)+f,"g"),g;g=p.exec(l);){if(g[3]==="dll-reference")continue;a[t].push(g[3])}for(p=new RegExp("\\("+c(h)+'\\("(dll-reference\\s('+m+'))"\\)\\)'+f,"g");g=p.exec(l);)e[g[2]]||(a[t].push(g[1]),e[g[2]]=A(g[1]).m),a[g[2]]=a[g[2]]||[],a[g[2]].push(g[4]);for(var v=Object.keys(a),y=0;y<v.length;y++)for(var x=0;x<a[v[y]].length;x++)o(a[v[y]][x])&&(a[v[y]][x]=1*a[v[y]][x]);return a}function i(e){var s=Object.keys(e);return s.reduce(function(t,a){return t||e[a].length>0},!1)}function n(e,s){for(var t={main:[s]},a={main:[]},l={main:{}};i(t);)for(var u=Object.keys(t),h=0;h<u.length;h++){var p=u[h],g=t[p],v=g.pop();if(l[p]=l[p]||{},l[p][v]||!e[p][v])continue;l[p][v]=!0,a[p]=a[p]||[],a[p].push(v);for(var y=r(e,e[p][v],p),x=Object.keys(y),T=0;T<x.length;T++)t[x[T]]=t[x[T]]||[],t[x[T]]=t[x[T]].concat(y[x[T]])}return a}E.exports=function(e,s){s=s||{};var t={main:A.m},a=s.all?{main:Object.keys(t.main)}:n(t,e),l="";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__; })",l=l+"var "+v+" = ("+w.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+a[v].map(function(x){return""+JSON.stringify(x)+": "+t[v][x].toString()}).join(",")+`});
|
|
|
`}),l=l+"new (("+w.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([l],{type:"text/javascript"});if(s.bare)return u;var h=window.URL||window.webkitURL||window.mozURL||window.msURL,p=h.createObjectURL(u),g=new window.Worker(p);return g.objectURL=p,g}},"./src/config.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"hlsDefaultConfig",function(){return T}),A.d(C,"mergeConfig",function(){return b}),A.d(C,"enableStreamingMode",function(){return _});var w=A("./src/controller/abr-controller.ts"),m=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"),s=A("./src/controller/eme-controller.ts"),t=A("./src/controller/cmcd-controller.ts"),a=A("./src/utils/xhr-loader.ts"),l=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 g(){return g=Object.assign?Object.assign.bind():function(I){for(var L=1;L<arguments.length;L++){var N=arguments[L];for(var D in N)Object.prototype.hasOwnProperty.call(N,D)&&(I[D]=N[D])}return I},g.apply(this,arguments)}function v(I,L){var N=Object.keys(I);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(I);L&&(D=D.filter(function(R){return Object.getOwnPropertyDescriptor(I,R).enumerable})),N.push.apply(N,D)}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(D){x(I,D,N[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(N)):v(Object(N)).forEach(function(D){Object.defineProperty(I,D,Object.getOwnPropertyDescriptor(N,D))})}return I}function x(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,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:a.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:w.default,bufferController:r.default,capLevelController:n.default,fpsController:e.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:h.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0},S()),{},{subtitleStreamController:c.SubtitleStreamController,subtitleTrackController:o.default,timelineController:i.TimelineController,audioStreamController:m.default,audioTrackController:f.default,emeController:s.default,cmcdController:t.default});function S(){return{cueHandler:u.default,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function b(I,L){if((L.liveSyncDurationCount||L.liveMaxLatencyDurationCount)&&(L.liveSyncDuration||L.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(L.liveMaxLatencyDurationCount!==void 0&&(L.liveSyncDurationCount===void 0||L.liveMaxLatencyDurationCount<=L.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(L.liveMaxLatencyDuration!==void 0&&(L.liveSyncDuration===void 0||L.liveMaxLatencyDuration<=L.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return g({},I,L)}function _(I){var L=I.loader;if(L!==l.default&&L!==a.default)p.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),I.progressive=!1;else{var N=Object(l.fetchSupported)();N&&(I.loader=l.default,I.progressive=!0,I.enableSoftwareAES=!0,p.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/polyfills/number.ts"),m=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 l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function e(t,a,l){return a&&n(t.prototype,a),l&&n(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t}var s=function(){function t(l){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=l;var u=l.config;this.bwEstimator=new m.default(u.abrEwmaSlowVoD,u.abrEwmaFastVoD,u.abrEwmaDefaultEstimate),this.registerListeners()}var a=t.prototype;return a.registerListeners=function(){var u=this.hls;u.on(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 g;this.fragCurrent=p,this.partCurrent=(g=h.part)!=null?g: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,g=p.autoLevelEnabled,v=p.config,y=p.media;if(!u||!y)return;var x=h?h.stats:u.stats,T=h?h.duration:u.duration;if(x.aborted){i.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!g||y.paused||!y.playbackRate||!y.readyState)return;var S=performance.now()-x.loading.start,b=Math.abs(y.playbackRate);if(S<=500*T/b)return;var _=p.levels,I=p.minAutoLevel,L=_[u.level],N=x.total||Math.max(x.loaded,Math.round(T*L.maxBitrate/8)),D=Math.max(1,x.bwEstimate?x.bwEstimate/8:x.loaded*1e3/S),R=(N-x.loaded)/D,P=y.currentTime,M=(c.BufferHelper.bufferInfo(y,P,v.maxBufferHole).end-P)/b;if(M>=2*T/b||R<=M)return;var U=Number.POSITIVE_INFINITY,F;for(F=u.level-1;F>I;F--){var j=_[F].maxBitrate;if(U=T*j/(8*.8*D),U<M)break}if(U>=R)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 "+F+`
|
|
|
Current BW estimate: `+(Object(w.isFiniteNumber)(W)?(W/1024).toFixed(3):"Unknown")+` Kb/s
|
|
|
Estimated load time for current fragment: `+R.toFixed(3)+` s
|
|
|
Estimated load time for the next fragment: `+U.toFixed(3)+` s
|
|
|
Time to underbuffer: `+M.toFixed(3)+" s"),p.nextLoadLevel=F,this.bwEstimator.sample(S,x.loaded),this.clearTimer(),u.loader&&(this.fragCurrent=this.partCurrent=null,u.loader.abort()),p.trigger(f.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:u,part:h,stats:x})},a.onFragLoaded=function(u,h){var p=h.frag,g=h.part;if(p.type===r.PlaylistLevelType.MAIN&&Object(w.isFiniteNumber)(p.sn)){var v=g?g.stats:p.stats,y=g?g.duration:p.duration;if(this.clearTimer(),this.lastLoadedFragLevel=p.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var x=this.hls.levels[p.level],T=(x.loaded?x.loaded.bytes:0)+v.loaded,S=(x.loaded?x.loaded.duration:0)+y;x.loaded={bytes:T,duration:S},x.realBitrate=Math.round(8*T/S)}if(p.bitrateTest){var b={stats:v,frag:p,part:g,id:p.type};this.onFragBuffered(f.Events.FRAG_BUFFERED,b),p.bitrateTest=!1}}},a.onFragBuffered=function(u,h){var p=h.frag,g=h.part,v=g?g.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,g=p.maxAutoLevel,v=p.config,y=p.minAutoLevel,x=p.media,T=h?h.duration:u?u.duration:0,S=x?x.currentTime:0,b=x&&x.playbackRate!==0?Math.abs(x.playbackRate):1,_=this.bwEstimator?this.bwEstimator.getEstimate():v.abrEwmaDefaultEstimate,I=(c.BufferHelper.bufferInfo(x,S,v.maxBufferHole).end-S)/b,L=this.findBestLevel(_,y,g,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,D=v.abrBandWidthFactor,R=v.abrBandWidthUpFactor;if(!I){var P=this.bitrateTestDelay;if(P){var M=T?Math.min(T,v.maxLoadingDelay):v.maxLoadingDelay;N=M-P,i.logger.trace("bitrate test took "+Math.round(1e3*P)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*N)+" ms"),D=R=1}}return L=this.findBestLevel(_,y,g,I+N,D,R),Math.max(L,0)},a.findBestLevel=function(u,h,p,g,v,y){for(var x,T=this.fragCurrent,S=this.partCurrent,b=this.lastLoadedFragLevel,_=this.hls.levels,I=_[b],L=!!(I!=null&&(x=I.details)!==null&&x!==void 0&&x.live),N=I==null?void 0:I.codecSet,D=S?S.duration:T?T.duration:0,R=p;R>=h;R--){var P=_[R];if(!P||N&&P.codecSet!==N)continue;var M=P.details,U=(S?M==null?void 0:M.partTarget:M==null?void 0:M.averagetargetduration)||D,F=void 0;R<=b?F=v*u:F=y*u;var j=_[R].maxBitrate,W=j*U/F;if(i.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+R+"/"+Math.round(F)+"/"+j+"/"+U+"/"+g+"/"+W),F>j&&(!W||L&&!this.bitrateTestDelay||W<g))return R}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=s},"./src/controller/audio-stream-controller.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/polyfills/number.ts"),m=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"),s=A("./src/demux/transmuxer-interface.ts"),t=A("./src/types/transmuxer.ts"),a=A("./src/controller/fragment-finders.ts"),l=A("./src/utils/discontinuities.ts"),u=A("./src/errors.ts");function h(){return h=Object.assign?Object.assign.bind():function(x){for(var T=1;T<arguments.length;T++){var S=arguments[T];for(var b in S)Object.prototype.hasOwnProperty.call(S,b)&&(x[b]=S[b])}return x},h.apply(this,arguments)}function p(x,T){x.prototype=Object.create(T.prototype),x.prototype.constructor=x,g(x,T)}function g(x,T){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,_){return b.__proto__=_,b},g(x,T)}var v=100,y=function(x){p(T,x);function T(b,_){var I;return I=x.call(this,b,_,"[audio-stream-controller]")||this,I.videoBuffer=null,I.videoTrackCC=-1,I.waitingVideoCC=-1,I.audioSwitch=!1,I.trackId=-1,I.waitingData=null,I.mainDetails=null,I.bufferFlushed=!1,I.cachedTrackLoadedData=null,I._registerListeners(),I}var S=T.prototype;return S.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},S._registerListeners=function(){var _=this.hls;_.on(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.on(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.on(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.on(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),_.on(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.on(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),_.on(f.Events.ERROR,this.onError,this),_.on(f.Events.BUFFER_RESET,this.onBufferReset,this),_.on(f.Events.BUFFER_CREATED,this.onBufferCreated,this),_.on(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.on(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),_.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},S._unregisterListeners=function(){var _=this.hls;_.off(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.off(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.off(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.off(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),_.off(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.off(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),_.off(f.Events.ERROR,this.onError,this),_.off(f.Events.BUFFER_RESET,this.onBufferReset,this),_.off(f.Events.BUFFER_CREATED,this.onBufferCreated,this),_.off(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.off(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),_.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},S.onInitPtsFound=function(_,I){var L=I.frag,N=I.id,D=I.initPTS;if(N==="main"){var R=L.cc;this.initPTS[L.cc]=D,this.log("InitPTS for cc: "+R+" found from main: "+D),this.videoTrackCC=R,this.state===m.State.WAITING_INIT_PTS&&this.tick()}},S.startLoad=function(_){if(!this.levels){this.startPosition=_,this.state=m.State.STOPPED;return}var I=this.lastCurrentTime;this.stopLoad(),this.setInterval(v),this.fragLoadError=0,I>0&&_===-1?(this.log("Override startPosition with lastCurrentTime @"+I.toFixed(3)),_=I,this.state=m.State.IDLE):(this.loadedmetadata=!1,this.state=m.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=_,this.tick()},S.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_TRACK:{var _,I=this.levels,L=this.trackId,N=I==null||((_=I[L])===null||_===void 0)?void 0:_.details;if(N){if(this.waitForCdnTuneIn(N))break;this.state=m.State.WAITING_INIT_PTS}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var D,R=performance.now(),P=this.retryDate;(!P||R>=P||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=m.State.IDLE);break}case m.State.WAITING_INIT_PTS:{var M=this.waitingData;if(M){var U=M.frag,F=M.part,j=M.cache,W=M.complete;if(this.initPTS[U.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.FRAG_LOADING;var V=j.flush(),z={frag:U,part:F,payload:V,networkDetails:null};this._handleFragmentLoadProgress(z),W&&x.prototype._handleFragmentLoadComplete.call(this,z)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+U.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Y=this.getLoadPosition(),$=c.BufferHelper.bufferInfo(this.mediaBuffer,Y,this.config.maxBufferHole),ue=Object(a.fragmentWithinToleranceTest)($.end,this.config.maxFragLookUpTolerance,U);ue<0&&(this.log("Waiting fragment cc ("+U.cc+") @ "+U.start+" cancelled because another fragment at "+$.end+" is needed"),this.clearWaitingFragment())}}else this.state=m.State.IDLE}}this.onTickEnd()},S.clearWaitingFragment=function(){var _=this.waitingData;_&&(this.fragmentTracker.removeFragment(_.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.IDLE)},S.resetLoadingState=function(){this.clearWaitingFragment(),x.prototype.resetLoadingState.call(this)},S.onTickEnd=function(){var _=this.media;if(!_||!_.readyState)return;var I=this.mediaBuffer?this.mediaBuffer:_,L=I.buffered;!this.loadedmetadata&&L.length&&(this.loadedmetadata=!0),this.lastCurrentTime=_.currentTime},S.doTickIdle=function(){var _,I,L=this.hls,N=this.levels,D=this.media,R=this.trackId,P=L.config;if(!N||!N[R])return;if(!D&&(this.startFragRequested||!P.startFragPrefetch))return;var M=N[R],U=M.details;if(!U||U.live&&this.levelLastLoaded!==R||this.waitForCdnTuneIn(U)){this.state=m.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,i.PlaylistLevelType.AUDIO));var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,i.PlaylistLevelType.AUDIO);if(F===null)return;var j=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,i.PlaylistLevelType.MAIN),W=F.len,V=this.getMaxBufferLength(j==null?void 0:j.len),z=this.audioSwitch;if(W>=V&&!z)return;if(!z&&this._streamEnded(F,U)){L.trigger(f.Events.BUFFER_EOS,{type:"audio"}),this.state=m.State.ENDED;return}var Y=U.fragments,$=Y[0].start,ue=F.end;if(z){var ne=this.getLoadPosition();ue=ne,U.PTSKnown&&ne<$&&((F.end>$||F.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),D.currentTime=$+.05))}if(j&&ue>j.end+U.targetduration)return;if((!j||!j.len)&&F.len)return;var ge=this.getNextFragment(ue,U);if(!ge){this.bufferFlushed=!0;return}((_=ge.decryptdata)===null||_===void 0?void 0:_.keyFormat)==="identity"&&!((I=ge.decryptdata)!==null&&I!==void 0&&I.key)?this.loadKey(ge,U):this.loadFragment(ge,U,ue)},S.getMaxBufferLength=function(_){var I=x.prototype.getMaxBufferLength.call(this);return _?Math.max(I,_):I},S.onMediaDetaching=function(){this.videoBuffer=null,x.prototype.onMediaDetaching.call(this)},S.onAudioTracksUpdated=function(_,I){var L=I.audioTracks;this.resetTransmuxer(),this.levels=L.map(function(N){return new r.Level(N)})},S.onAudioTrackSwitching=function(_,I){var L=!!I.url;this.trackId=I.id;var N=this.fragCurrent;N!=null&&N.loader&&N.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),L?this.setInterval(v):this.resetTransmuxer(),L?(this.audioSwitch=!0,this.state=m.State.IDLE):this.state=m.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){this.mainDetails=I.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(f.Events.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)},S.onAudioTrackLoaded=function(_,I){var L;if(this.mainDetails==null){this.cachedTrackLoadedData=I;return}var N=this.levels,D=I.details,R=I.id;if(!N){this.warn("Audio tracks were reset while loading level "+R);return}this.log("Track "+R+" loaded ["+D.startSN+","+D.endSN+"],duration:"+D.totalduration);var P=N[R],M=0;if(D.live||(L=P.details)!==null&&L!==void 0&&L.live){var U=this.mainDetails;if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed||!U)return;!P.details&&D.hasProgramDateTime&&U.hasProgramDateTime?(Object(l.alignMediaPlaylistByPDT)(D,U),M=D.fragments[0].start):M=this.alignPlaylists(D,P.details)}P.details=D,this.levelLastLoaded=R,!this.startFragRequested&&(this.mainDetails||!D.live)&&this.setStartPosition(P.details,M),this.state===m.State.WAITING_TRACK&&!this.waitForCdnTuneIn(D)&&(this.state=m.State.IDLE),this.tick()},S._handleFragmentLoadProgress=function(_){var I,L=_.frag,N=_.part,D=_.payload,R=this.config,P=this.trackId,M=this.levels;if(!M){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+L.sn+" of level "+L.level+" will not be buffered");return}var U=M[P];console.assert(U,"Audio track is defined on fragment load progress");var F=U.details;console.assert(F,"Audio track details are defined on fragment load progress");var j=R.defaultAudioCodec||U.audioCodec||"mp4a.40.2",W=this.transmuxer;W||(W=this.transmuxer=new s.default(this.hls,i.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var V=this.initPTS[L.cc],z=(I=L.initSegment)===null||I===void 0?void 0:I.data;if(V!==void 0){var Y=!1,$=N?N.index:-1,ue=$!==-1,ne=new t.ChunkMetadata(L.level,L.sn,L.stats.chunkCount,D.byteLength,$,ue);W.push(D,z,j,"",L,N,F.totalduration,Y,ne,V)}else{this.log("Unknown video PTS for cc "+L.cc+", waiting for video PTS before demuxing audio frag "+L.sn+" of ["+F.startSN+" ,"+F.endSN+"],track "+P);var ge=this.waitingData=this.waitingData||{frag:L,part:N,cache:new e.default,complete:!1},Oe=ge.cache;Oe.push(new Uint8Array(D)),this.waitingVideoCC=this.videoTrackCC,this.state=m.State.WAITING_INIT_PTS}},S._handleFragmentLoadComplete=function(_){if(this.waitingData){this.waitingData.complete=!0;return}x.prototype._handleFragmentLoadComplete.call(this,_)},S.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},S.onBufferCreated=function(_,I){var L=I.tracks.audio;L&&(this.mediaBuffer=L.buffer),I.tracks.video&&(this.videoBuffer=I.tracks.video.buffer)},S.onFragBuffered=function(_,I){var L=I.frag,N=I.part;if(L.type!==i.PlaylistLevelType.AUDIO)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+", audioSwitch: "+this.audioSwitch);return}L.sn!=="initSegment"&&(this.fragPrevious=L,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(f.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(L,N)},S.onError=function(_,I){switch(I.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,I);break;case u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==m.State.ERROR&&this.state!==m.State.STOPPED&&(this.state=I.fatal?m.State.ERROR:m.State.IDLE,this.warn(I.details+" while loading frag, switching to "+this.state+" state"));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(I.parent==="audio"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var L=!0,N=this.getFwdBufferInfo(this.mediaBuffer,i.PlaylistLevelType.AUDIO);N&&N.len>.5&&(L=!this.reduceMaxBufferLength(N.len)),L&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,x.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},S.onBufferFlushed=function(_,I){var L=I.type;L===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},S._handleTransmuxComplete=function(_){var I,L="audio",N=this.hls,D=_.remuxResult,R=_.chunkMeta,P=this.getCurrentContext(R);if(!P){this.warn("The loading context changed while buffering fragment "+R.sn+" of level "+R.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(R.level);return}var M=P.frag,U=P.part,F=P.level.details,j=D.audio,W=D.text,V=D.id3,z=D.initSegment;if(this.fragContextChanged(M)||!F)return;if(this.state=m.State.PARSING,this.audioSwitch&&j&&this.completeAudioSwitch(),z!=null&&z.tracks&&(this._bufferInitSegment(z.tracks,M,R),N.trigger(f.Events.FRAG_PARSING_INIT_SEGMENT,{frag:M,id:L,tracks:z.tracks})),j){var Y=j.startPTS,$=j.endPTS,ue=j.startDTS,ne=j.endDTS;U&&(U.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Y,endPTS:$,startDTS:ue,endDTS:ne}),M.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Y,$,ue,ne),this.bufferFragmentData(j,M,U,R)}if(V!=null&&(I=V.samples)!==null&&I!==void 0&&I.length){var ge=h({id:L,frag:M,details:F},V);N.trigger(f.Events.FRAG_PARSING_METADATA,ge)}if(W){var Oe=h({id:L,frag:M,details:F},W);N.trigger(f.Events.FRAG_PARSING_USERDATA,Oe)}},S._bufferInitSegment=function(_,I,L){if(this.state!==m.State.PARSING)return;_.video&&delete _.video;var N=_.audio;if(!N)return;N.levelCodec=N.codec,N.id="audio",this.log("Init audio buffer, container:"+N.container+", codecs[parsed]=["+N.codec+"]"),this.hls.trigger(f.Events.BUFFER_CODECS,_);var D=N.initSegment;if(D!=null&&D.byteLength){var R={type:"audio",frag:I,part:null,chunkMeta:L,parent:I.type,data:D};this.hls.trigger(f.Events.BUFFER_APPENDING,R)}this.tick()},S.loadFragment=function(_,I,L){var N=this.fragmentTracker.getState(_);this.fragCurrent=_,(this.audioSwitch||N===o.FragmentState.NOT_LOADED||N===o.FragmentState.PARTIAL)&&(_.sn==="initSegment"?this._loadInitSegment(_):I.live&&!Object(w.isFiniteNumber)(this.initPTS[_.cc])?(this.log("Waiting for video PTS in continuity counter "+_.cc+" of live stream before loading audio fragment "+_.sn+" of level "+this.trackId),this.state=m.State.WAITING_INIT_PTS):(this.startFragRequested=!0,x.prototype.loadFragment.call(this,_,I,L)))},S.completeAudioSwitch=function(){var _=this.hls,I=this.media,L=this.trackId;I&&(this.log("Switching audio track : flushing all audio"),x.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,_.trigger(f.Events.AUDIO_TRACK_SWITCHED,{id:L})},T}(m.default);C.default=y},"./src/controller/audio-track-controller.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/events.ts"),m=A("./src/errors.ts"),f=A("./src/controller/base-playlist-controller.ts"),c=A("./src/types/loader.ts");function o(s,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function r(s,t,a){return t&&o(s.prototype,t),a&&o(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}function i(s,t){s.prototype=Object.create(t.prototype),s.prototype.constructor=s,n(s,t)}function n(s,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},n(s,t)}var e=function(s){i(t,s);function t(l){var u;return u=s.call(this,l,"[audio-track-controller]")||this,u.tracks=[],u.groupId=null,u.tracksInGroup=[],u.trackId=-1,u.trackName="",u.selectDefaultTrack=!0,u.registerListeners(),u}var a=t.prototype;return a.registerListeners=function(){var u=this.hls;u.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.on(w.Events.LEVEL_LOADING,this.onLevelLoading,this),u.on(w.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.on(w.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.on(w.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){var u=this.hls;u.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.off(w.Events.LEVEL_LOADING,this.onLevelLoading,this),u.off(w.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.off(w.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.off(w.Events.ERROR,this.onError,this)},a.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,s.prototype.destroy.call(this)},a.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},a.onManifestParsed=function(u,h){this.tracks=h.audioTracks||[]},a.onAudioTrackLoaded=function(u,h){var p=h.id,g=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 ["+g.startSN+"-"+g.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 g=this.tracks.filter(function(y){return!p||y.groupId===p});this.selectDefaultTrack&&!g.some(function(y){return y.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=g;var v={audioTracks:g};this.log("Updating audio tracks, "+g.length+' track(s) found in "'+p+'" group-id'),this.hls.trigger(w.Events.AUDIO_TRACKS_UPDATED,v),this.selectInitialTrack()}},a.onError=function(u,h){if(s.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 g=h[u],v=g.id,y=g.groupId,x=y===void 0?"":y,T=g.name,S=g.type,b=g.url;if(this.trackId=u,this.trackName=T,this.selectDefaultTrack=!1,this.hls.trigger(w.Events.AUDIO_TRACK_SWITCHING,{id:v,groupId:x,name:T,type:S,url:b}),g.details&&!g.details.live)return;var _=this.switchParams(g.url,p==null?void 0:p.details);this.loadPlaylist(_)},a.selectInitialTrack=function(){var u=this.tracksInGroup;console.assert(u.length,"Initial audio track should be selected when tracks are known");var 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(w.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},a.findTrackId=function(u){for(var h=this.tracksInGroup,p=0;p<h.length;p++){var g=h[p];if((!this.selectDefaultTrack||g.default)&&(!u||u===g.name))return g.id}return-1},a.loadPlaylist=function(u){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var p=h.id,g=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(w.Events.AUDIO_TRACK_LOADING,{url:v,id:p,groupId:g,deliveryDirectives:u||null})}},r(t,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(u){this.selectDefaultTrack=!1,this.setAudioTrack(u)}}]),t}(f.default);C.default=e},"./src/controller/base-playlist-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var w=A("./src/polyfills/number.ts"),m=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,s){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=c.logger.log.bind(c.logger,s+":"),this.warn=c.logger.warn.bind(c.logger,s+":"),this.hls=e}var n=i.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(s,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(s,t){var a=t==null?void 0:t.renditionReports;if(a)for(var l=0;l<a.length;l++){var u=a[l],h=""+u.URI;if(h===s.slice(-h.length)){var p=parseInt(u["LAST-MSN"]),g=parseInt(u["LAST-PART"]);if(t&&this.hls.config.lowLatencyMode){var v=Math.min(t.age-t.partTarget,t.targetduration);g!==void 0&&v>t.partTarget&&(g+=1)}if(Object(w.isFiniteNumber)(p))return new m.HlsUrlParameters(p,Object(w.isFiniteNumber)(g)?g:void 0,m.HlsSkip.No)}}},n.loadPlaylist=function(s){},n.shouldLoadTrack=function(s){return this.canLoad&&s&&!!s.url&&(!s.details||s.details.live)},n.playlistLoaded=function(s,t,a){var l=this,u=t.details,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 "+s+" "+(u.advanced?"REFRESHED "+u.lastPartSn+"-"+u.lastPartIndex:"MISSED")),a&&u.fragments.length>0&&Object(f.mergeDetails)(a,u),!this.canLoad||!u.live)return;var g,v=void 0,y=void 0;if(u.canBlockReload&&u.endSN&&u.advanced){var x=this.hls.config.lowLatencyMode,T=u.lastPartSn,S=u.endSN,b=u.lastPartIndex,_=b!==-1,I=T===S,L=x?0:b;_?(v=I?S+1:T,y=I?L:b+1):v=S+1;var N=u.age,D=N+u.ageHeader,R=Math.min(D-u.partTarget,u.targetduration*1.5);if(R>0){if(a&&R>a.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+a.tuneInGoal+" to: "+R+" with playlist age: "+u.age),R=0;else{var P=Math.floor(R/u.targetduration);if(v+=P,y!==void 0){var M=Math.round(R%u.targetduration/u.partTarget);y+=M}this.log("CDN Tune-in age: "+u.ageHeader+"s last advanced "+N.toFixed(2)+"s goal: "+R+" skip sn "+P+" to part "+y)}u.tuneInGoal=R}if(g=this.getDeliveryDirectives(u,t.deliveryDirectives,v,y),x||!I){this.loadPlaylist(g);return}}else g=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 "+s+" in "+Math.round(U)+" ms"),this.timer=self.setTimeout(function(){return l.loadPlaylist(g)},U)}else this.clearTimer()},n.getDeliveryDirectives=function(s,t,a,l){var u=Object(m.getSkipValue)(s,a);return t!=null&&t.skip&&s.deltaUpdateFailed&&(a=t.msn,l=t.part,u=m.HlsSkip.No),new m.HlsUrlParameters(a,l,u)},n.retryLoadingOrFail=function(s){var t=this,a=this.hls.config,l=this.retryCount<a.levelLoadingMaxRetry;if(l){var u;if(this.retryCount++,s.details.indexOf("LoadTimeOut")>-1&&(u=s.context)!==null&&u!==void 0&&u.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+s.details+'"'),this.loadPlaylist();else{var 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 "'+s.details+'"')}}else this.warn('cannot recover from error "'+s.details+'"'),this.clearTimer(),s.fatal=!0;return l},i}()},"./src/controller/base-stream-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"State",function(){return S}),A.d(C,"default",function(){return b});var w=A("./src/polyfills/number.ts"),m=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"),s=A("./src/utils/discontinuities.ts"),t=A("./src/controller/fragment-finders.ts"),a=A("./src/controller/level-helper.ts"),l=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 g(_,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&&g(_.prototype,I),L&&g(_,L),Object.defineProperty(_,"prototype",{writable:!1}),_}function y(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function x(_,I){_.prototype=Object.create(I.prototype),_.prototype.constructor=_,T(_,I)}function T(_,I){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,D){return N.__proto__=D,N},T(_,I)}var S={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},b=function(_){x(I,_);function I(N,D,R){var P;return P=_.call(this)||this,P.hls=void 0,P.fragPrevious=null,P.fragCurrent=null,P.fragmentTracker=void 0,P.transmuxer=null,P._state=S.STOPPED,P.media=void 0,P.mediaBuffer=void 0,P.config=void 0,P.bitrateTest=!1,P.lastCurrentTime=0,P.nextLoadPosition=0,P.startPosition=0,P.loadedmetadata=!1,P.fragLoadError=0,P.retryDate=0,P.levels=null,P.fragmentLoader=void 0,P.levelLastLoaded=null,P.startFragRequested=!1,P.decrypter=void 0,P.initPTS=[],P.onvseeking=null,P.onvended=null,P.logPrefix="",P.log=void 0,P.warn=void 0,P.logPrefix=R,P.log=o.logger.log.bind(o.logger,R+":"),P.warn=o.logger.warn.bind(o.logger,R+":"),P.hls=N,P.fragmentLoader=new l.default(N.config),P.fragmentTracker=D,P.config=N.config,P.decrypter=new u.default(N,N.config),N.on(r.Events.KEY_LOADED,P.onKeyLoaded,y(P)),P}var L=I.prototype;return L.doTick=function(){this.onTickEnd()},L.onTickEnd=function(){},L.startLoad=function(D){},L.stopLoad=function(){this.fragmentLoader.abort();var D=this.fragCurrent;D&&this.fragmentTracker.removeFragment(D),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=S.STOPPED},L._streamEnded=function(D,R){var P=this.fragCurrent,M=this.fragmentTracker;if(!R.live&&P&&P.sn>=R.endSN&&!D.nextStart){var U=R.partList;if(U!=null&&U.length){var F=U[U.length-1],j=c.BufferHelper.isBuffered(this.media,F.start+F.duration/2);return j}var W=M.getState(P);return W===f.FragmentState.PARTIAL||W===f.FragmentState.OK}return!1},L.onMediaAttached=function(D,R){var P=this.media=this.mediaBuffer=R.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),P.addEventListener("seeking",this.onvseeking),P.addEventListener("ended",this.onvended);var M=this.config;this.levels&&M.autoStartLoad&&this.state===S.STOPPED&&this.startLoad(M.startPosition)},L.onMediaDetaching=function(){var D=this.media;D!=null&&D.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),D&&(D.removeEventListener("seeking",this.onvseeking),D.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 D=this.config,R=this.fragCurrent,P=this.media,M=this.mediaBuffer,U=this.state,F=P?P.currentTime:0,j=c.BufferHelper.bufferInfo(M||P,F,D.maxBufferHole);if(this.log("media seeking to "+(Object(w.isFiniteNumber)(F)?F.toFixed(3):F)+", state: "+U),U===S.ENDED)this.resetLoadingState();else if(R&&!j.len){var W=D.maxFragLookUpTolerance,V=R.start-W,z=R.start+R.duration+W,Y=F>z;(F<V||Y)&&(Y&&R.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),R.loader.abort()),this.resetLoadingState())}P&&(this.lastCurrentTime=F),!this.loadedmetadata&&!j.len&&(this.nextLoadPosition=this.startPosition=F),this.tickImmediate()},L.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},L.onKeyLoaded=function(D,R){if(this.state!==S.KEY_LOADING||R.frag!==this.fragCurrent||!this.levels)return;this.state=S.IDLE;var P=this.levels[R.frag.level].details;P&&this.loadFragment(R.frag,P,R.frag.start)},L.onHandlerDestroying=function(){this.stopLoad(),_.prototype.onHandlerDestroying.call(this)},L.onHandlerDestroyed=function(){this.state=S.STOPPED,this.hls.off(r.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,_.prototype.onHandlerDestroyed.call(this)},L.loadKey=function(D,R){this.log("Loading key for "+D.sn+" of ["+R.startSN+"-"+R.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level),this.state=S.KEY_LOADING,this.fragCurrent=D,this.hls.trigger(r.Events.KEY_LOADING,{frag:D})},L.loadFragment=function(D,R,P){this._loadFragForPlayback(D,R,P)},L._loadFragForPlayback=function(D,R,P){var M=this,U=function(j){if(M.fragContextChanged(D)){M.warn("Fragment "+D.sn+(j.part?" p: "+j.part.index:"")+" of level "+D.level+" was dropped during download."),M.fragmentTracker.removeFragment(D);return}D.stats.chunkCount++,M._handleFragmentLoadProgress(j)};this._doFragLoad(D,R,P,U).then(function(F){if(!F)return;M.fragLoadError=0;var j=M.state;if(M.fragContextChanged(D)){(j===S.FRAG_LOADING||!M.fragCurrent&&j===S.PARSING)&&(M.fragmentTracker.removeFragment(D),M.state=S.IDLE);return}"payload"in F&&(M.log("Loaded fragment "+D.sn+" of level "+D.level),M.hls.trigger(r.Events.FRAG_LOADED,F)),M._handleFragmentLoadComplete(F)}).catch(function(F){if(M.state===S.STOPPED)return;M.warn(F),M.resetFragmentLoading(D)})},L.flushMainBuffer=function(D,R,P){if(P===void 0&&(P=null),!(D-R))return;var M={startOffset:D,endOffset:R,type:P};this.fragLoadError=0,this.hls.trigger(r.Events.BUFFER_FLUSHING,M)},L._loadInitSegment=function(D){var R=this;this._doFragLoad(D).then(function(P){if(!P||R.fragContextChanged(D)||!R.levels)throw new Error("init load aborted");return P}).then(function(P){var M=R.hls,U=P.payload,F=D.decryptdata;if(U&&U.byteLength>0&&F&&F.key&&F.iv&&F.method==="AES-128"){var j=self.performance.now();return R.decrypter.webCryptoDecrypt(new Uint8Array(U),F.key.buffer,F.iv.buffer).then(function(W){var V=self.performance.now();return M.trigger(r.Events.FRAG_DECRYPTED,{frag:D,payload:W,stats:{tstart:j,tdecrypt:V}}),P.payload=W,P})}return P}).then(function(P){var M=R.fragCurrent,U=R.hls,F=R.levels;if(!F)throw new Error("init load aborted, missing levels");var j=F[D.level].details;console.assert(j,"Level details are defined when init segment is loaded");var W=D.stats;R.state=S.IDLE,R.fragLoadError=0,D.data=new Uint8Array(P.payload),W.parsing.start=W.buffering.start=self.performance.now(),W.parsing.end=W.buffering.end=self.performance.now(),P.frag===M&&U.trigger(r.Events.FRAG_BUFFERED,{stats:W,frag:M,part:null,id:D.type}),R.tick()}).catch(function(P){R.warn(P),R.resetFragmentLoading(D)})},L.fragContextChanged=function(D){var R=this.fragCurrent;return!D||!R||D.level!==R.level||D.sn!==R.sn||D.urlId!==R.urlId},L.fragBufferedComplete=function(D,R){var P=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+D.type+" sn: "+D.sn+(R?" part: "+R.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level+" "+h.default.toString(c.BufferHelper.getBuffered(P))),this.state=S.IDLE,this.tick()},L._handleFragmentLoadComplete=function(D){var R=this.transmuxer;if(!R)return;var P=D.frag,M=D.part,U=D.partsLoaded,F=!U||U.length===0||U.some(function(W){return!W}),j=new n.ChunkMetadata(P.level,P.sn,P.stats.chunkCount+1,0,M?M.index:-1,!F);R.flush(j)},L._handleFragmentLoadProgress=function(D){},L._doFragLoad=function(D,R,P,M){var U=this;if(P===void 0&&(P=null),!this.levels)throw new Error("frag load aborted, missing levels");if(P=Math.max(D.start,P||0),this.config.lowLatencyMode&&R){var F=R.partList;if(F&&M){P>D.end&&R.fragmentHint&&(D=R.fragmentHint);var j=this.getNextPart(F,D,P);if(j>-1){var W=F[j];return this.log("Loading part sn: "+D.sn+" p: "+W.index+" cc: "+D.cc+" of playlist ["+R.startSN+"-"+R.endSN+"] parts [0-"+j+"-"+(F.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(P.toFixed(3))),this.nextLoadPosition=W.start+W.duration,this.state=S.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:D,part:F[j],targetBufferTime:P}),this.doFragPartsLoad(D,F,j,M).catch(function(V){return U.handleFragLoadError(V)})}else if(!D.url||this.loadedEndOfParts(F,P))return Promise.resolve(null)}}return this.log("Loading fragment "+D.sn+" cc: "+D.cc+" "+(R?"of ["+R.startSN+"-"+R.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(P.toFixed(3))),Object(w.isFiniteNumber)(D.sn)&&!this.bitrateTest&&(this.nextLoadPosition=D.start+D.duration),this.state=S.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:D,targetBufferTime:P}),this.fragmentLoader.load(D,M).catch(function(V){return U.handleFragLoadError(V)})},L.doFragPartsLoad=function(D,R,P,M){var U=this;return new Promise(function(F,j){var W=[],V=function z(Y){var $=R[Y];U.fragmentLoader.loadPart(D,$,M).then(function(ue){W[$.index]=ue;var ne=ue.part;U.hls.trigger(r.Events.FRAG_LOADED,ue);var ge=R[Y+1];if(ge&&ge.fragment===D)z(Y+1);else return F({frag:D,part:ne,partsLoaded:W})}).catch(j)};V(P)})},L.handleFragLoadError=function(D){var R=D.data;return R&&R.details===i.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(R.frag,R.part):this.hls.trigger(r.Events.ERROR,R),null},L._handleTransmuxerFlush=function(D){var R=this.getCurrentContext(D);if(!R||this.state!==S.PARSING){this.fragCurrent||(this.state=S.IDLE);return}var P=R.frag,M=R.part,U=R.level,F=self.performance.now();P.stats.parsing.end=F,M&&(M.stats.parsing.end=F),this.updateLevelTiming(P,M,U,D.partial)},L.getCurrentContext=function(D){var R=this.levels,P=D.level,M=D.sn,U=D.part;if(!R||!R[P])return this.warn("Levels object was unset while buffering fragment "+M+" of level "+P+". The current chunk will not be buffered."),null;var F=R[P],j=U>-1?Object(a.getPartWith)(F,M,U):null,W=j?j.fragment:Object(a.getFragmentWithSN)(F,M,this.fragCurrent);return W?{frag:W,part:j,level:F}:null},L.bufferFragmentData=function(D,R,P,M){if(!D||this.state!==S.PARSING)return;var U=D.data1,F=D.data2,j=U;if(U&&F&&(j=Object(e.appendUint8Array)(U,F)),!j||!j.length)return;var W={type:D.type,frag:R,part:P,chunkMeta:M,parent:R.type,data:j};this.hls.trigger(r.Events.BUFFER_APPENDING,W),D.dropped&&D.independent&&!P&&this.flushBufferGap(R)},L.flushBufferGap=function(D){var R=this.media;if(!R)return;if(!c.BufferHelper.isBuffered(R,R.currentTime)){this.flushMainBuffer(0,D.start);return}var P=R.currentTime,M=c.BufferHelper.bufferInfo(R,P,0),U=D.duration,F=Math.min(this.config.maxFragLookUpTolerance*2,U*.25),j=Math.max(Math.min(D.start-F,M.end-F),P+F);D.start-j>F&&this.flushMainBuffer(j,D.start)},L.getFwdBufferInfo=function(D,R){var P=this.config,M=this.getLoadPosition();if(!Object(w.isFiniteNumber)(M))return null;var U=c.BufferHelper.bufferInfo(D,M,P.maxBufferHole);if(U.len===0&&U.nextStart!==void 0){var F=this.fragmentTracker.getBufferedFrag(M,R);if(F&&U.nextStart<F.end)return c.BufferHelper.bufferInfo(D,M,Math.max(U.nextStart,P.maxBufferHole))}return U},L.getMaxBufferLength=function(D){var R=this.config,P;return D?P=Math.max(8*R.maxBufferSize/D,R.maxBufferLength):P=R.maxBufferLength,Math.min(P,R.maxMaxBufferLength)},L.reduceMaxBufferLength=function(D){var R=this.config,P=D||R.maxBufferLength;return R.maxMaxBufferLength>=P?(R.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+R.maxMaxBufferLength+"s"),!0):!1},L.getNextFragment=function(D,R){var P=R.fragments,M=P.length;if(!M)return null;var U=this.config,F=P[0].start,j;if(R.live){var W=U.initialLiveManifestSize;if(M<W)return this.warn("Not enough fragments to start playback (have: "+M+", need: "+W+")"),null;!R.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(j=this.getInitialLiveFragment(R,P),this.startPosition=j?this.hls.liveSyncPosition||j.start:D)}else D<=F&&(j=P[0]);if(!j){var V=U.lowLatencyMode?R.partEnd:R.fragmentEnd;j=this.getFragmentAtPosition(D,V,R)}return this.mapToInitFragWhenRequired(j)},L.mapToInitFragWhenRequired=function(D){return D!=null&&D.initSegment&&!(D!=null&&D.initSegment.data)&&!this.bitrateTest?D.initSegment:D},L.getNextPart=function(D,R,P){for(var M=-1,U=!1,F=!0,j=0,W=D.length;j<W;j++){var V=D[j];if(F=F&&!V.independent,M>-1&&P<V.start)break;var z=V.loaded;!z&&(U||V.independent||F)&&V.fragment===R&&(M=j),U=z}return M},L.loadedEndOfParts=function(D,R){var P=D[D.length-1];return P&&R>P.start&&P.loaded},L.getInitialLiveFragment=function(D,R){var P=this.fragPrevious,M=null;if(P){if(D.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+P.programDateTime),M=Object(t.findFragmentByPDT)(R,P.endProgramDateTime,this.config.maxFragLookUpTolerance)),!M){var U=P.sn+1;if(U>=D.startSN&&U<=D.endSN){var F=R[U-D.startSN];P.cc===F.cc&&(M=F,this.log("Live playlist, switching playlist, load frag with next SN: "+M.sn))}M||(M=Object(t.findFragWithCC)(R,P.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?D.fragmentEnd:D.edge,D))}return M},L.getFragmentAtPosition=function(D,R,P){var M=this.config,U=this.fragPrevious,F=P.fragments,j=P.endSN,W=P.fragmentHint,V=M.maxFragLookUpTolerance,z=!!(M.lowLatencyMode&&P.partList&&W);z&&W&&!this.bitrateTest&&(F=F.concat(W),j=W.sn);var Y;if(D<R){var $=D>R-V?0:V;Y=Object(t.findFragmentByPTS)(U,F,D,$)}else Y=F[F.length-1];if(Y){var ue=Y.sn-P.startSN,ne=U&&Y.level===U.level,ge=F[ue+1];U&&Y.sn===U.sn&&!z&&(ne&&(Y.sn<j&&this.fragmentTracker.getState(ge)!==f.FragmentState.OK?(this.log("SN "+Y.sn+" just loaded, load next one: "+ge.sn),Y=ge):Y=null))}return Y},L.synchronizeToLiveEdge=function(D){var R=this.config,P=this.media;if(!P)return;var M=this.hls.liveSyncPosition,U=P.currentTime,F=D.fragments[0].start,j=D.edge,W=U>=F-R.maxFragLookUpTolerance&&U<=j;if(M!==null&&P.duration>M&&(U<M||!W)){var V=R.liveMaxLatencyDuration!==void 0?R.liveMaxLatencyDuration:R.liveMaxLatencyDurationCount*D.targetduration;(!W&&P.readyState<4||U<j-V)&&(this.loadedmetadata||(this.nextLoadPosition=M),P.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)),P.currentTime=M))}},L.alignPlaylists=function(D,R){var P=this.levels,M=this.levelLastLoaded,U=this.fragPrevious,F=M!==null?P[M]:null,j=D.fragments.length;if(!j)return this.warn("No fragments in live playlist"),0;var W=D.fragments[0].start,V=!R,z=D.alignedSliding&&Object(w.isFiniteNumber)(W);if(V||!z&&!W){Object(s.alignStream)(U,F,D);var Y=D.fragments[0].start;return this.log("Live playlist sliding: "+Y.toFixed(2)+" start-sn: "+(R?R.startSN:"na")+"->"+D.startSN+" prev-sn: "+(U?U.sn:"na")+" fragments: "+j),Y}return W},L.waitForCdnTuneIn=function(D){var R=3;return D.live&&D.canBlockReload&&D.partTarget&&D.tuneInGoal>Math.max(D.partHoldBack,D.partTarget*R)},L.setStartPosition=function(D,R){var P=this.startPosition;if(P<R&&(P=-1),P===-1||this.lastCurrentTime===-1){var M=D.startTimeOffset;Object(w.isFiniteNumber)(M)?(P=R+M,M<0&&(P+=D.totalduration),P=Math.min(Math.max(R,P),R+D.totalduration),this.log("Start time offset "+M+" found in playlist, adjust startPosition to "+P),this.startPosition=P):D.live?P=this.hls.liveSyncPosition||R:this.startPosition=P=0,this.lastCurrentTime=P}this.nextLoadPosition=P},L.getLoadPosition=function(){var D=this.media,R=0;return this.loadedmetadata&&D?R=D.currentTime:this.nextLoadPosition&&(R=this.nextLoadPosition),R},L.handleFragLoadAborted=function(D,R){this.transmuxer&&D.sn!=="initSegment"&&D.stats.aborted&&(this.warn("Fragment "+D.sn+(R?" part"+R.index:"")+" of level "+D.level+" was aborted"),this.resetFragmentLoading(D))},L.resetFragmentLoading=function(D){(!this.fragCurrent||!this.fragContextChanged(D))&&(this.state=S.IDLE)},L.onFragmentOrKeyLoadError=function(D,R){if(R.fatal)return;var P=R.frag;if(!P||P.type!==D)return;var M=this.fragCurrent;console.assert(M&&P.sn===M.sn&&P.level===M.level&&P.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(P.level))return;var F=Math.min(Math.pow(2,this.fragLoadError)*U.fragLoadingRetryDelay,U.fragLoadingMaxRetryTimeout);this.warn("Fragment "+P.sn+" of "+D+" "+P.level+" failed to load, retrying in "+F+"ms"),this.retryDate=self.performance.now()+F,this.fragLoadError++,this.state=S.FRAG_LOADING_WAITING_RETRY}else R.levelRetry?(D===p.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=S.IDLE):(o.logger.error(R.details+" reaches max retry, redispatch as fatal ..."),R.fatal=!0,this.hls.stopLoad(),this.state=S.ERROR)},L.afterBufferFlushed=function(D,R,P){if(!D)return;var M=c.BufferHelper.getBuffered(D);this.fragmentTracker.detectEvictedFragments(R,M,P),this.state===S.ENDED&&this.resetLoadingState()},L.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=S.IDLE},L.resetLiveStartWhenNotLoaded=function(D){if(!this.loadedmetadata){this.startFragRequested=!1;var R=this.levels?this.levels[D].details:null;if(R!=null&&R.live)return this.startPosition=-1,this.setStartPosition(R,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},L.updateLevelTiming=function(D,R,P,M){var U=this,F=P.details;console.assert(!!F,"level.details must be defined");var j=Object.keys(D.elementaryStreams).reduce(function(W,V){var z=D.elementaryStreams[V];if(z){var Y=z.endPTS-z.startPTS;if(Y<=0)return U.warn("Could not parse fragment "+D.sn+" "+V+" duration reliably ("+Y+")"),W||!1;var $=M?0:Object(a.updateFragPTSDTS)(F,D,z.startPTS,z.endPTS,z.startDTS,z.endDTS);return U.hls.trigger(r.Events.LEVEL_PTS_UPDATED,{details:F,level:P,drift:$,type:V,frag:D,start:z.startPTS,end:z.endPTS}),!0}return W},!1);j||(this.warn("Found no media in fragment "+D.sn+" of level "+P.id+" resetting transmuxer to fallback to playlist timing"),this.resetTransmuxer()),this.state=S.PARSED,this.hls.trigger(r.Events.FRAG_PARSED,{frag:D,part:R})},L.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},v(I,[{key:"state",get:function(){return this._state},set:function(D){var R=this._state;R!==D&&(this._state=D,this.log(R+"->"+D))}}]),I}(m.default)},"./src/controller/buffer-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var w=A("./src/polyfills/number.ts"),m=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)(),s=/([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,g=h.media,v=h.mediaSource;f.logger.log("[buffer-controller]: Media source opened"),g&&(h.updateMediaElementDuration(),p.trigger(m.Events.MEDIA_ATTACHED,{media:g})),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 l=a.prototype;return l.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},l.destroy=function(){this.unregisterListeners(),this.details=null},l.registerListeners=function(){var h=this.hls;h.on(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(m.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(m.Events.BUFFER_RESET,this.onBufferReset,this),h.on(m.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.on(m.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.on(m.Events.BUFFER_EOS,this.onBufferEos,this),h.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.on(m.Events.FRAG_PARSED,this.onFragParsed,this),h.on(m.Events.FRAG_CHANGED,this.onFragChanged,this)},l.unregisterListeners=function(){var h=this.hls;h.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(m.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(m.Events.BUFFER_RESET,this.onBufferReset,this),h.off(m.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.off(m.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.off(m.Events.BUFFER_EOS,this.onBufferEos,this),h.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.off(m.Events.FRAG_PARSED,this.onFragParsed,this),h.off(m.Events.FRAG_CHANGED,this.onFragChanged,this)},l._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},l.onManifestParsed=function(h,p){var g=2;(p.audio&&!p.video||!p.altAudio)&&(g=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=g,this.details=null,f.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},l.onMediaAttaching=function(h,p){var g=this.media=p.media;if(g&&e){var v=this.mediaSource=new e;v.addEventListener("sourceopen",this._onMediaSourceOpen),v.addEventListener("sourceended",this._onMediaSourceEnded),v.addEventListener("sourceclose",this._onMediaSourceClose),g.src=self.URL.createObjectURL(v),this._objectUrl=g.src}},l.onMediaDetaching=function(){var h=this.media,p=this.mediaSource,g=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&&(g&&self.URL.revokeObjectURL(g),h.src===g?(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(m.Events.MEDIA_DETACHED,void 0)},l.onBufferReset=function(){var h=this;this.getSourceBufferTypes().forEach(function(p){var g=h.sourceBuffer[p];try{g&&(h.removeBufferListeners(p),h.mediaSource&&h.mediaSource.removeSourceBuffer(g),h.sourceBuffer[p]=void 0)}catch(v){f.logger.warn("[buffer-controller]: Failed to reset the "+p+" buffer",v)}}),this._initSourceBuffer()},l.onBufferCodecs=function(h,p){var g=this,v=this.getSourceBufferTypes().length;if(Object.keys(p).forEach(function(y){if(v){var x=g.tracks[y];if(x&&typeof x.buffer.changeType=="function"){var T=p[y],S=T.id,b=T.codec,_=T.levelCodec,I=T.container,L=T.metadata,N=(x.levelCodec||x.codec).replace(s,"$1"),D=(_||b).replace(s,"$1");if(N!==D){var R=I+";codecs="+(_||b);g.appendChangeType(y,R),f.logger.log("[buffer-controller]: switching codec "+N+" to "+D),g.tracks[y]={buffer:x.buffer,codec:b,container:I,levelCodec:_,metadata:L,id:S}}}}else g.pendingTracks[y]=p[y]}),v)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},l.appendChangeType=function(h,p){var g=this,v=this.operationQueue,y={execute:function(){var T=g.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)},l.onBufferAppending=function(h,p){var g=this,v=this.hls,y=this.operationQueue,x=this.tracks,T=p.data,S=p.type,b=p.frag,_=p.part,I=p.chunkMeta,L=I.buffering[S],N=self.performance.now();L.start=N;var D=b.stats.buffering,R=_?_.stats.buffering:null;D.start===0&&(D.start=N),R&&R.start===0&&(R.start=N);var P=x.audio,M=S==="audio"&&I.id===1&&(P==null?void 0:P.container)==="audio/mpeg",U={execute:function(){if(L.executeStart=self.performance.now(),M){var j=g.sourceBuffer[S];if(j){var W=b.start-j.timestampOffset;Math.abs(W)>=.1&&(f.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+b.start+" (delta: "+W+") sn: "+b.sn+")"),j.timestampOffset=b.start)}}g.appendExecutor(T,S)},onStart:function(){},onComplete:function(){var j=self.performance.now();L.executeEnd=L.end=j,D.first===0&&(D.first=j),R&&R.first===0&&(R.first=j);var W=g.sourceBuffer,V={};for(var z in W)V[z]=o.BufferHelper.getBuffered(W[z]);g.appendError=0,g.hls.trigger(m.Events.BUFFER_APPENDED,{type:S,frag:b,part:_,chunkMeta:I,parent:b.type,timeRanges:V})},onError:function(j){f.logger.error("[buffer-controller]: Error encountered while trying to append to the "+S+" SourceBuffer",j);var W={type:c.ErrorTypes.MEDIA_ERROR,parent:b.type,details:c.ErrorDetails.BUFFER_APPEND_ERROR,err:j,fatal:!1};j.code===DOMException.QUOTA_EXCEEDED_ERR?W.details=c.ErrorDetails.BUFFER_FULL_ERROR:(g.appendError++,W.details=c.ErrorDetails.BUFFER_APPEND_ERROR,g.appendError>v.config.appendErrorMaxRetry&&(f.logger.error("[buffer-controller]: Failed "+v.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),W.fatal=!0)),v.trigger(m.Events.ERROR,W)}};y.append(U,S)},l.onBufferFlushing=function(h,p){var g=this,v=this.operationQueue,y=function(T){return{execute:g.removeExecutor.bind(g,T,p.startOffset,p.endOffset),onStart:function(){},onComplete:function(){g.hls.trigger(m.Events.BUFFER_FLUSHED,{type:T})},onError:function(b){f.logger.warn("[buffer-controller]: Failed to remove from "+T+" SourceBuffer",b)}}};p.type?v.append(y(p.type),p.type):this.getSourceBufferTypes().forEach(function(x){v.append(y(x),x)})},l.onFragParsed=function(h,p){var g=this,v=p.frag,y=p.part,x=[],T=y?y.elementaryStreams:v.elementaryStreams;T[i.ElementaryStreamTypes.AUDIOVIDEO]?x.push("audiovideo"):(T[i.ElementaryStreamTypes.AUDIO]&&x.push("audio"),T[i.ElementaryStreamTypes.VIDEO]&&x.push("video"));var S=function(){var _=self.performance.now();v.stats.buffering.end=_,y&&(y.stats.buffering.end=_);var I=y?y.stats:v.stats;g.hls.trigger(m.Events.FRAG_BUFFERED,{frag:v,part:y,stats:I,id:v.type})};x.length===0&&f.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+v.type+" level: "+v.level+" sn: "+v.sn),this.blockBuffers(S,x)},l.onFragChanged=function(h,p){this.flushBackBuffer()},l.onBufferEos=function(h,p){var g=this,v=this.getSourceBufferTypes().reduce(function(y,x){var T=g.sourceBuffer[x];return(!p.type||p.type===x)&&(T&&!T.ended&&(T.ended=!0,f.logger.log("[buffer-controller]: "+x+" sourceBuffer now EOS"))),y&&!!(!T||T.ended)},!0);v&&this.blockBuffers(function(){var y=g.mediaSource;if(!y||y.readyState!=="open")return;y.endOfStream()})},l.onLevelUpdated=function(h,p){var g=p.details;if(!g.fragments.length)return;this.details=g,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},l.flushBackBuffer=function(){var h=this.hls,p=this.details,g=this.media,v=this.sourceBuffer;if(!g||p===null)return;var y=this.getSourceBufferTypes();if(!y.length)return;var x=p.live&&h.config.liveBackBufferLength!==null?h.config.liveBackBufferLength:h.config.backBufferLength;if(!Object(w.isFiniteNumber)(x)||x<0)return;var T=g.currentTime,S=p.levelTargetDuration,b=Math.max(x,S),_=Math.floor(T/S)*S-b;y.forEach(function(I){var L=v[I];if(L){var N=o.BufferHelper.getBuffered(L);N.length>0&&_>N.start(0)&&(h.trigger(m.Events.BACK_BUFFER_REACHED,{bufferEnd:_}),p.live&&h.trigger(m.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:_}),h.trigger(m.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:_,type:I}))}})},l.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var h=this.details,p=this.hls,g=this.media,v=this.mediaSource,y=h.fragments[0].start+h.totalduration,x=g.duration,T=Object(w.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>x||!Object(w.isFiniteNumber)(x))&&(f.logger.log("[buffer-controller]: Updating Media Source duration to "+y.toFixed(3)),v.duration=y)},l.updateSeekableRange=function(h){var p=this.mediaSource,g=h.fragments,v=g.length;if(v&&h.live&&p!==null&&p!==void 0&&p.setLiveSeekableRange){var y=Math.max(0,g[0].start),x=Math.max(y,y+h.totalduration);p.setLiveSeekableRange(y,x)}},l.checkPendingTracks=function(){var h=this.bufferCodecEventsExpected,p=this.operationQueue,g=this.pendingTracks,v=Object.keys(g).length;if(v&&!h||v===2){this.createSourceBuffers(g),this.pendingTracks={};var y=this.getSourceBufferTypes();if(y.length===0){this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}y.forEach(function(x){p.executeNext(x)})}},l.createSourceBuffers=function(h){var p=this.sourceBuffer,g=this.mediaSource;if(!g)throw Error("createSourceBuffers called when mediaSource was null");var v=0;for(var y in h)if(!p[y]){var x=h[y];if(!x)throw Error("source buffer exists for track "+y+", however track does not");var T=x.levelCodec||x.codec,S=x.container+";codecs="+T;f.logger.log("[buffer-controller]: creating sourceBuffer("+S+")");try{var b=p[y]=g.addSourceBuffer(S),_=y;this.addBufferListener(_,"updatestart",this._onSBUpdateStart),this.addBufferListener(_,"updateend",this._onSBUpdateEnd),this.addBufferListener(_,"error",this._onSBUpdateError),this.tracks[y]={buffer:b,codec:T,container:x.container,levelCodec:x.levelCodec,metadata:x.metadata,id:x.id},v++}catch(I){f.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+I.message),this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:I,mimeType:S})}}v&&this.hls.trigger(m.Events.BUFFER_CREATED,{tracks:this.tracks})},l._onSBUpdateStart=function(h){var p=this.operationQueue,g=p.current(h);g.onStart()},l._onSBUpdateEnd=function(h){var p=this.operationQueue,g=p.current(h);g.onComplete(),p.shiftAndExecuteNext(h)},l._onSBUpdateError=function(h,p){f.logger.error("[buffer-controller]: "+h+" SourceBuffer error",p),this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var g=this.operationQueue.current(h);g&&g.onError(p)},l.removeExecutor=function(h,p,g){var v=this.media,y=this.mediaSource,x=this.operationQueue,T=this.sourceBuffer,S=T[h];if(!v||!y||!S){f.logger.warn("[buffer-controller]: Attempting to remove from the "+h+" SourceBuffer, but it does not exist"),x.shiftAndExecuteNext(h);return}var b=Object(w.isFiniteNumber)(v.duration)?v.duration:Infinity,_=Object(w.isFiniteNumber)(y.duration)?y.duration:Infinity,I=Math.max(0,p),L=Math.min(g,b,_);L>I?(f.logger.log("[buffer-controller]: Removing ["+I+","+L+"] from the "+h+" SourceBuffer"),console.assert(!S.updating,h+" sourceBuffer must not be updating"),S.remove(I,L)):x.shiftAndExecuteNext(h)},l.appendExecutor=function(h,p){var g=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"),g.shiftAndExecuteNext(p);return}y.ended=!1,console.assert(!y.updating,p+" sourceBuffer must not be updating"),y.appendBuffer(h)},l.blockBuffers=function(h,p){var g=this;if(p===void 0&&(p=this.getSourceBufferTypes()),!p.length){f.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(h);return}var v=this.operationQueue,y=p.map(function(x){return v.appendBlocker(x)});Promise.all(y).then(function(){h(),p.forEach(function(x){var T=g.sourceBuffer[x];(!T||!T.updating)&&v.shiftAndExecuteNext(x)})})},l.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},l.addBufferListener=function(h,p,g){var v=this.sourceBuffer[h];if(!v)return;var y=g.bind(this,h);this.listeners[h].push({event:p,listener:y}),v.addEventListener(p,y)},l.removeBufferListeners=function(h){var p=this.sourceBuffer[h];if(!p)return;this.listeners[h].forEach(function(g){p.removeEventListener(g.event,g.listener)})},a}()},"./src/controller/buffer-operation-queue.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return m});var w=A("./src/utils/logger.ts"),m=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(s){i=s}),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],s=n[r];if(s.length){var t=s[0];try{t.execute()}catch(a){w.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),t.onError(a),(!e||!e.updating)&&(s.shift(),this.executeNext(r))}}},c.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},c.current=function(r){return this.queues[r][0]},f}()},"./src/controller/cap-level-controller.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/events.ts");function m(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&&m(o.prototype,r),i&&m(o,i),Object.defineProperty(o,"prototype",{writable:!1}),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(w.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(w.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(w.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.unregisterListener=function(){var n=this.hls;n.off(w.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(w.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(w.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.onFpsDropLevelCapping=function(n,e){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 s=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onBufferCodecs=function(n,e){var s=this.hls;s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onMediaDetaching=function(){this.stopCapping()},r.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(n.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},r.getMaxLevel=function(n){var e=this,s=this.hls.levels;if(!s.length)return-1;var t=s.filter(function(a,l){return o.isLevelAllowed(l,e.restrictedLevels)&&l<=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 s=n.getBoundingClientRect();e.width=s.width,e.height=s.height,!e.width&&!e.height&&(e.width=s.right-s.left||n.width||0,e.height=s.bottom-s.top||n.height||0)}return this.clientRect=e,e},o.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},o.getMaxLevelByMediaSize=function(n,e,s){if(!n||!n.length)return-1;for(var t=function(p,g){return g?p.width!==g.width||p.height!==g.height:!0},a=n.length-1,l=0;l<n.length;l+=1){var u=n[l];if((u.width>=e||u.height>=s)&&t(u,n[l+1])){a=l;break}}return a},f(o,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var n=1;if(!this.hls.config.ignoreDevicePixelRatio)try{n=self.devicePixelRatio}catch(e){}return n}}]),o}();C.default=c},"./src/controller/cmcd-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var w=A("./src/events.ts"),m=A("./src/types/cmcd.ts"),f=A("./src/utils/buffer-helper.ts"),c=A("./src/utils/logger.ts");function o(a,l){for(var u=0;u<l.length;u++){var h=l[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}function r(a,l,u){return l&&o(a.prototype,l),u&&o(a,u),Object.defineProperty(a,"prototype",{writable:!1}),a}function i(a,l){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(u)return(u=u.call(a)).next.bind(u);if(Array.isArray(a)||(u=n(a))||l&&a&&typeof a.length=="number"){u&&(a=u);var 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,l){if(!a)return;if(typeof a=="string")return e(a,l);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return e(a,l)}function e(a,l){(l==null||l>a.length)&&(l=a.length);for(var u=0,h=new Array(l);u<l;u++)h[u]=a[u];return h}function s(){return s=Object.assign?Object.assign.bind():function(a){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(a[h]=u[h])}return a},s.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:m.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,x=h.hls.levels[y.level],T=h.getObjectType(y),S={d:y.duration*1e3,ot:T};(T===m.CMCDObjectType.VIDEO||T===m.CMCDObjectType.AUDIO||T==m.CMCDObjectType.MUXED)&&(S.br=x.bitrate/1e3,S.tb=h.getTopBandwidth(T)/1e3,S.bl=h.getBufferLength(T)),h.apply(v,S)}catch(b){c.logger.warn("Could not generate segment CMCD data.",b)}},this.hls=u;var p=this.config=u.config,g=p.cmcd;g!=null&&(p.pLoader=this.createPlaylistLoader(),p.fLoader=this.createFragmentLoader(),this.sid=g.sessionId||a.uuid(),this.cid=g.contentId,this.useHeaders=g.useHeaders===!0,this.registerListeners())}var l=a.prototype;return l.registerListeners=function(){var h=this.hls;h.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(w.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.on(w.Events.BUFFER_CREATED,this.onBufferCreated,this)},l.unregisterListeners=function(){var h=this.hls;h.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(w.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.off(w.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},l.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},l.onMediaAttached=function(h,p){this.media=p.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},l.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},l.onBufferCreated=function(h,p){var g,v;this.audioBuffer=(g=p.tracks.audio)===null||g===void 0?void 0:g.buffer,this.videoBuffer=(v=p.tracks.video)===null||v===void 0?void 0:v.buffer},l.createData=function(){var h;return{v:m.CMCDVersion,sf:m.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}},l.apply=function(h,p){p===void 0&&(p={}),s(p,this.createData());var g=p.ot===m.CMCDObjectType.INIT||p.ot===m.CMCDObjectType.VIDEO||p.ot===m.CMCDObjectType.MUXED;if(this.starved&&g&&(p.bs=!0,p.su=!0,this.starved=!1),p.su==null&&(p.su=this.buffering),this.useHeaders){var v=a.toHeaders(p);if(!Object.keys(v).length)return;h.headers||(h.headers={}),s(h.headers,v)}else{var y=a.toQuery(p);if(!y)return;h.url=a.appendQueryToUri(h.url,y)}},l.getObjectType=function(h){var p=h.type;return p==="subtitle"?m.CMCDObjectType.TIMED_TEXT:h.sn==="initSegment"?m.CMCDObjectType.INIT:p==="audio"?m.CMCDObjectType.AUDIO:p==="main"?this.hls.audioTracks.length?m.CMCDObjectType.VIDEO:m.CMCDObjectType.MUXED:void 0},l.getTopBandwidth=function(h){var p=0,g,v=this.hls;if(h===m.CMCDObjectType.AUDIO)g=v.audioTracks;else{var y=v.maxAutoLevel,x=y>-1?y+1:v.levels.length;g=v.levels.slice(0,x)}for(var T=i(g),S;!(S=T()).done;){var b=S.value;b.bitrate>p&&(p=b.bitrate)}return p>0?p:NaN},l.getBufferLength=function(h){var p=this.hls.media,g=h===m.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!g||!p)return NaN;var v=f.BufferHelper.bufferInfo(g,p.currentTime,this.config.maxBufferHole);return v.len*1e3},l.createPlaylistLoader=function(){var h=this.config.pLoader,p=this.applyPlaylistData,g=h||this.config.loader;return function(){function v(x){this.loader=void 0,this.loader=new g(x)}var y=v.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,S,b){p(T),this.loader.load(T,S,b)},r(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},l.createFragmentLoader=function(){var h=this.config.fLoader,p=this.applyFragmentData,g=h||this.config.loader;return function(){function v(x){this.loader=void 0,this.loader=new g(x)}var y=v.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,S,b){p(T),this.loader.load(T,S,b)},r(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.slice(p.lastIndexOf("/")+1)},a.serialize=function(h){for(var p=[],g=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},x=function(M){return encodeURIComponent(M)},T={br:v,d:v,bl:y,dl:y,mtp:y,nor:x,rtp:y,tb:v},S=Object.keys(h||{}).sort(),b=i(S),_;!(_=b()).done;){var I=_.value,L=h[I];if(!g(L))continue;if(I==="v"&&L===1)continue;if(I=="pr"&&L===1)continue;var N=T[I];N&&(L=N(L));var D=typeof L,R=void 0;I==="ot"||I==="sf"||I==="st"?R=I+"="+L:D==="boolean"?R=I:D==="number"?R=I+"="+L:R=I+"="+JSON.stringify(L),p.push(R)}return p.join(",")},a.toHeaders=function(h){for(var p=Object.keys(h),g={},v=["Object","Request","Session","Status"],y=[{},{},{},{}],x={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},T=0,S=p;T<S.length;T++){var b=S[T],_=x[b]!=null?x[b]:1;y[_][b]=h[b]}for(var I=0;I<y.length;I++){var L=a.serialize(y[I]);L&&(g["CMCD-"+v[I]]=L)}return g},a.toQuery=function(h){return"CMCD="+encodeURIComponent(a.serialize(h))},a.appendQueryToUri=function(h,p){if(!p)return h;var g=h.includes("?")?"&":"?";return""+h+g+p},a}()},"./src/controller/eme-controller.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/events.ts"),m=A("./src/errors.ts"),f=A("./src/utils/logger.ts"),c=A("./src/utils/mediakeys-helper.ts");function o(t,a){for(var l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,l){return a&&o(t.prototype,a),l&&o(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t}var i=3,n=function(a,l,u){var h={audioCapabilities:[],videoCapabilities:[]};return a.forEach(function(p){h.audioCapabilities.push({contentType:'audio/mp4; codecs="'+p+'"',robustness:u.audioRobustness||""})}),l.forEach(function(p){h.videoCapabilities.push({contentType:'video/mp4; codecs="'+p+'"',robustness:u.videoRobustness||""})}),[h]},e=function(a,l,u,h){switch(a){case c.KeySystems.WIDEVINE:return n(l,u,h);default:throw new Error("Unknown key-system: "+a)}},s=function(){function t(l){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=l,this._config=l.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var a=t.prototype;return a.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},a._registerListeners=function(){this.hls.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a._unregisterListeners=function(){this.hls.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a.getLicenseServerUrl=function(u){switch(u){case c.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+u+'"')},a._attemptKeySystemAccess=function(u,h,p){var g=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(x){return g._onMediaKeySystemAccessObtained(u,x)}),y.catch(function(x){f.logger.error('Failed to obtain key-system "'+u+'" access:',x)})},a._onMediaKeySystemAccessObtained=function(u,h){var p=this;f.logger.log('Access for key-system "'+u+'" obtained');var g={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:h,mediaKeySystemDomain:u};this._mediaKeysList.push(g);var v=Promise.resolve().then(function(){return h.createMediaKeys()}).then(function(y){return g.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).catch(function(g){f.logger.warn("Updating key-session failed: "+g)})})},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(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.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(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.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,g=this._mediaKeysList[0];if(!g){f.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(g.mediaKeysSessionInitialized){f.logger.warn("Key-Session already initialized but requested again");return}var v=g.mediaKeysSession;if(!v){f.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!h){f.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}f.logger.log('Generating key-session request for "'+u+'" init data type'),g.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(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},a._createLicenseXhr=function(u,h,p){var g=new XMLHttpRequest;g.responseType="arraybuffer",g.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,g,u,h,p);var v=this._licenseXhrSetup;if(v)try{v.call(this.hls,g,u),v=void 0}catch(y){f.logger.error(y)}try{g.readyState||g.open("POST",u,!0),v&&v.call(this.hls,g,u)}catch(y){throw new Error("issue setting up KeySystem license XHR "+y)}return g},a._onLicenseRequestReadyStageChange=function(u,h,p,g){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)}g(v)}else{if(f.logger.error("License Request XHR failed ("+h+"). Status: "+u.status+" ("+u.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>i){this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var x=i-this._requestLicenseFailureCount+1;f.logger.warn("Retrying license request, "+x+" attempts left"),this._requestLicense(p,g)}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(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var g=this.getLicenseServerUrl(p.mediaKeySystemDomain),v=this._createLicenseXhr(g,u,h);f.logger.log("Sending license request to URL: "+g);var y=this._generateLicenseRequestChallenge(p,u);v.send(y)}catch(x){f.logger.error("Failure requesting DRM license: "+x),this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},a.onMediaAttached=function(u,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}),g=h.levels.map(function(v){return v.videoCodec}).filter(function(v){return!!v});this._attemptKeySystemAccess(c.KeySystems.WIDEVINE,p,g)},r(t,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),t}();C.default=s},"./src/controller/fps-controller.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/events.ts"),m=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(w.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},o.unregisterListeners=function(){this.hls.off(w.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 s=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=s,s&&typeof s.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},o.checkFPS=function(i,n,e){var s=performance.now();if(n){if(this.lastTime){var t=s-this.lastTime,a=e-this.lastDroppedFrames,l=n-this.lastDecodedFrames,u=1e3*a/t,h=this.hls;if(h.trigger(w.Events.FPS_DROP,{currentDropped:a,currentDecoded:l,totalDroppedFrames:e}),u>0&&a>h.config.fpsDroppedMonitoringThreshold*l){var p=h.currentLevel;m.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(w.Events.FPS_DROP_LEVEL_CAPPING,{level:p,droppedLevel:h.currentLevel}),h.autoLevelCapping=p,this.streamController.nextLevelSwitch())}}this.lastTime=s,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(E,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 w=A("./src/polyfills/number.ts"),m=A("./src/utils/binary-search.ts");function f(n,e,s){if(e===null||!Array.isArray(n)||!n.length||!Object(w.isFiniteNumber)(e))return null;var t=n[0].programDateTime;if(e<(t||0))return null;var a=n[n.length-1].endProgramDateTime;if(e>=(a||0))return null;s=s||0;for(var l=0;l<n.length;++l){var u=n[l];if(r(e,s,u))return u}return null}function c(n,e,s,t){s===void 0&&(s=0),t===void 0&&(t=0);var a=null;if(n?a=e[n.sn-e[0].sn+1]||null:s===0&&e[0].start===0&&(a=e[0]),a&&o(s,t,a)===0)return a;var l=m.default.search(e,o.bind(null,s,t));return l||a}function o(n,e,s){n===void 0&&(n=0),e===void 0&&(e=0);var t=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0));return s.start+s.duration-t<=n?1:s.start-t>n&&s.start?-1:0}function r(n,e,s){var t=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0))*1e3,a=s.endProgramDateTime||0;return a-t>n}function i(n,e){return m.default.search(n,function(s){return s.cc<e?1:s.cc>e?-1:0})}},"./src/controller/fragment-tracker.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"FragmentState",function(){return f}),A.d(C,"FragmentTracker",function(){return c});var w=A("./src/events.ts"),m=A("./src/types/loader.ts"),f;(function(i){i.NOT_LOADED="NOT_LOADED",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 s=this.hls;s.on(w.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.on(w.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(w.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var s=this.hls;s.off(w.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.off(w.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(w.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(s,t){if(t===m.PlaylistLevelType.MAIN){var a=this.activeFragment,l=this.activeParts;if(!a)return null;if(l)for(var u=l.length;u--;){var h=l[u],p=h?h.end:a.appendedPTS;if(h.start<=s&&p!==void 0&&s<=p)return u>9&&(this.activeParts=l.slice(u-9)),h}else if(a.start<=s&&a.appendedPTS!==void 0&&s<=a.appendedPTS)return a}return this.getBufferedFrag(s,t)},n.getBufferedFrag=function(s,t){for(var a=this.fragments,l=Object.keys(a),u=l.length;u--;){var h=a[l[u]];if((h==null?void 0:h.body.type)===t&&h.buffered){var p=h.body;if(p.start<=s&&s<=p.end)return p}}return null},n.detectEvictedFragments=function(s,t,a){var l=this;Object.keys(this.fragments).forEach(function(u){var h=l.fragments[u];if(!h)return;if(!h.buffered){h.body.type===a&&l.removeFragment(h.body);return}var p=h.range[s];if(!p)return;p.time.some(function(g){var v=!l.isTimeBuffered(g.startPTS,g.endPTS,t);return v&&l.removeFragment(h.body),v})})},n.detectPartialFragments=function(s){var t=this,a=this.timeRanges,l=s.frag,u=s.part;if(!a||l.sn==="initSegment")return;var h=r(l),p=this.fragments[h];if(!p)return;Object.keys(a).forEach(function(g){var v=l.elementaryStreams[g];if(!v)return;var y=a[g],x=u!==null||v.partial===!0;p.range[g]=t.getBufferedTimes(l,u,x,y)}),p.loaded=null,Object.keys(p.range).length?p.buffered=!0:this.removeFragment(p.body)},n.fragBuffered=function(s){var t=r(s),a=this.fragments[t];a&&(a.loaded=null,a.buffered=!0)},n.getBufferedTimes=function(s,t,a,l){for(var u={time:[],partial:a},h=t?t.start:s.start,p=t?t.end:s.end,g=s.minEndPTS||p,v=s.maxStartPTS||h,y=0;y<l.length;y++){var x=l.start(y)-this.bufferPadding,T=l.end(y)+this.bufferPadding;if(v>=x&&g<=T){u.time.push({startPTS:Math.max(h,l.start(y)),endPTS:Math.min(p,l.end(y))});break}else if(h<T&&p>x)u.partial=!0,u.time.push({startPTS:Math.max(h,l.start(y)),endPTS:Math.min(p,l.end(y))});else if(p<=x)break}return u},n.getPartialFragment=function(s){var t=null,a,l,u,h=0,p=this.bufferPadding,g=this.fragments;return Object.keys(g).forEach(function(v){var y=g[v];if(!y)return;o(y)&&(l=y.body.start-p,u=y.body.end+p,s>=l&&s<=u&&(a=Math.min(s-l,u-s),h<=a&&(t=y.body,h=a)))}),t},n.getState=function(s){var t=r(s),a=this.fragments[t];return a?a.buffered?o(a)?f.PARTIAL:f.OK:f.APPENDING:f.NOT_LOADED},n.isTimeBuffered=function(s,t,a){for(var l,u,h=0;h<a.length;h++){if(l=a.start(h)-this.bufferPadding,u=a.end(h)+this.bufferPadding,s>=l&&t<=u)return!0;if(t<=l)return!1}return!1},n.onFragLoaded=function(s,t){var a=t.frag,l=t.part;if(a.sn==="initSegment"||a.bitrateTest||l)return;var u=r(a);this.fragments[u]={body:a,loaded:t,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(s,t){var a=this,l=t.frag,u=t.part,h=t.timeRanges;if(l.type===m.PlaylistLevelType.MAIN)if(this.activeFragment=l,u){var p=this.activeParts;p||(this.activeParts=p=[]),p.push(u)}else this.activeParts=null;this.timeRanges=h,Object.keys(h).forEach(function(g){var v=h[g];if(a.detectEvictedFragments(g,v),!u)for(var y=0;y<v.length;y++)l.appendedPTS=Math.max(v.end(y),l.appendedPTS||0)})},n.onFragBuffered=function(s,t){this.detectPartialFragments(t)},n.hasFragment=function(s){var t=r(s);return!!this.fragments[t]},n.removeFragmentsInRange=function(s,t,a){var l=this;Object.keys(this.fragments).forEach(function(u){var h=l.fragments[u];if(!h)return;if(h.buffered){var p=h.body;p.type===a&&p.start<t&&p.end>s&&l.removeFragment(p)}})},n.removeFragment=function(s){var t=r(s);s.stats.loaded=0,s.clearElementaryStreamInfo(),delete this.fragments[t]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},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(E,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 w=A("./src/utils/buffer-helper.ts"),m=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 s(a,l,u,h){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=a,this.media=l,this.fragmentTracker=u,this.hls=h}var t=s.prototype;return t.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},t.poll=function(l,u){var h=this.config,p=this.media,g=this.stalled;if(p===null)return;var v=p.currentTime,y=p.seeking,x=this.seeking&&!y,T=!this.seeking&&y;if(this.seeking=y,v!==l){if(this.moved=!0,g!==null){if(this.stallReported){var S=self.performance.now()-g;c.logger.warn("playback not stuck anymore @"+v+", after "+Math.round(S)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((T||x)&&(this.stalled=null),p.paused&&!y||p.ended||p.playbackRate===0||!w.BufferHelper.getBuffered(p).length)return;var b=w.BufferHelper.bufferInfo(p,v,0),_=b.len>0,I=b.nextStart||0;if(!_&&!I)return;if(y){var L=b.len>r,N=!I||u&&u.start<=v||I-v>r&&!this.fragmentTracker.getPartialFragment(v);if(L||N)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,R=Math.max(I,b.start||0)-v,P=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,M=P==null||((D=P.details)===null||D===void 0)?void 0:D.live,U=M?P.details.targetduration*2:r;if(R>0&&R<=U){this._trySkipBufferHole(null);return}}var F=self.performance.now();if(g===null){this.stalled=F;return}var j=F-g;if(!y&&j>=o&&(this._reportStall(b),!this.media))return;var W=w.BufferHelper.bufferInfo(p,v,h.maxBufferHole);this._tryFixBufferStall(W,j)},t._tryFixBufferStall=function(l,u){var h=this.config,p=this.fragmentTracker,g=this.media;if(g===null)return;var v=g.currentTime,y=p.getPartialFragment(v);if(y){var x=this._trySkipBufferHole(y);if(x||!this.media)return}l.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(l){var u=this.hls,h=this.media,p=this.stallReported;!p&&h&&(this.stallReported=!0,c.logger.warn("Playback stalling at @"+h.currentTime+" due to low buffer ("+JSON.stringify(l)+")"),u.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:l.len}))},t._trySkipBufferHole=function(l){var u=this.config,h=this.hls,p=this.media;if(p===null)return 0;for(var g=p.currentTime,v=0,y=w.BufferHelper.getBuffered(p),x=0;x<y.length;x++){var T=y.start(x);if(g+u.maxBufferHole>=v&&g<T){var S=Math.max(T+n,p.currentTime+i);return c.logger.warn("skipping hole, adjusting currentTime from "+g+" to "+S),this.moved=!0,this.stalled=null,p.currentTime=S,l&&h.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+g+" to "+S,frag:l}),S}v=y.end(x)}return 0},t._tryNudgeBuffer=function(){var l=this.config,u=this.hls,h=this.media,p=this.nudgeRetry;if(h===null)return;var g=h.currentTime;if(this.nudgeRetry++,p<l.nudgeMaxRetry){var v=g+(p+1)*l.nudgeOffset;c.logger.warn("Nudging 'currentTime' from "+g+" to "+v),h.currentTime=v,u.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else c.logger.error("Playhead still not moving while enough data buffered @"+g+" after "+l.nudgeMaxRetry+" nudges"),u.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},s}()},"./src/controller/id3-track-controller.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/polyfills/number.ts"),m=A("./src/events.ts"),f=A("./src/utils/texttrack-utils.ts"),c=A("./src/demux/id3.ts"),o=A("./src/loader/date-range.ts"),r=A("./src/types/demuxer.ts"),i=.25;function n(){return self.WebKitDataCue||self.VTTCue||self.TextTrackCue}function e(a,l){return a.getTime()/1e3-l}function s(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var t=function(){function a(u){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=u,this._registerListeners()}var l=a.prototype;return l.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},l._registerListeners=function(){var h=this.hls;h.on(m.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(m.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),h.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this)},l._unregisterListeners=function(){var h=this.hls;h.off(m.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(m.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),h.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this)},l.onMediaAttached=function(h,p){this.media=p.media},l.onMediaDetaching=function(){if(!this.id3Track)return;Object(f.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}},l.onManifestLoading=function(){this.dateRangeCuesAppended={}},l.createTrack=function(h){var p=this.getID3Track(h.textTracks);return p.mode="hidden",p},l.getID3Track=function(h){if(!this.media)return;for(var p=0;p<h.length;p++){var g=h[p];if(g.kind==="metadata"&&g.label==="id3")return Object(f.sendAddTrackEvent)(g,this.media),g}return this.media.addTextTrack("metadata","id3")},l.onFragParsingMetadata=function(h,p){if(!this.media)return;var g=this.hls.config,v=g.enableEmsgMetadataCues,y=g.enableID3MetadataCues;if(!v&&!y)return;var x=p.frag,T=p.samples,S=p.details;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var b=S.edge||x.end,_=n(),I=!1,L={},N=0;N<T.length;N++){var D=T[N].type;if(D===r.MetadataSchema.emsg&&!v||!y)continue;var R=c.getID3Frames(T[N].data);if(R){var P=T[N].pts,M=b,U=M-P;U<=0&&(M=P+i);for(var F=0;F<R.length;F++){var j=R[F];if(!c.isTimeStampFrame(j)){var W=new _(P,M,"");W.value=j,D&&(W.type=D),this.id3Track.addCue(W),L[j.key]=null,I=!0}}}}I&&this.updateId3CueEnds(L)},l.updateId3CueEnds=function(h){var p,g=(p=this.id3Track)===null||p===void 0?void 0:p.cues;if(g)for(var v=g.length;v--;){var y,x=g[v],T=(y=x.value)===null||y===void 0?void 0:y.key;if(T&&T in h){var S=h[T];S&&x.endTime!==S&&(x.endTime=S),h[T]=x.startTime}}},l.onBufferFlushing=function(h,p){var g=p.startOffset,v=p.endOffset,y=p.type,x=this.id3Track,T=this.hls;if(!T)return;var S=T.config,b=S.enableEmsgMetadataCues,_=S.enableID3MetadataCues;if(x&&(b||_)){var I;y==="audio"?I=function(N){return N.type===r.MetadataSchema.audioId3&&_}:y==="video"?I=function(N){return N.type===r.MetadataSchema.emsg&&b}:I=function(N){return N.type===r.MetadataSchema.audioId3&&_||N.type===r.MetadataSchema.emsg&&b},Object(f.removeCuesInRange)(x,g,v,I)}},l.onLevelUpdated=function(h,p){var g=this,v=p.details;if(!this.media||!v.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var y=this.dateRangeCuesAppended,x=this.id3Track,T=v.dateRanges,S=Object.keys(T);if(x)for(var b=Object.keys(y).filter(function(U){return!S.includes(U)}),_=function(F){var j=b[F];Object.keys(y[j].cues).forEach(function(W){x.removeCue(y[j].cues[W])}),delete y[j]},I=b.length;I--;)_(I);var L=v.fragments[v.fragments.length-1];if(S.length===0||!Object(w.isFiniteNumber)(L==null?void 0:L.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var N=L.programDateTime/1e3-L.start,D=v.edge||L.end,R=n(),P=function(F){var j=S[F],W=T[j],V=y[j],z=(V==null?void 0:V.cues)||{},Y=(V==null?void 0:V.durationKnown)||!1,$=e(W.startDate,N),ue=D,ne=W.endDate;if(ne)ue=e(ne,N),Y=!0;else if(W.endOnNext&&!Y){var ge=S.reduce(function(oe,ee){var Xe=T[ee];return Xe.class===W.class&&Xe.id!==ee&&Xe.startDate>W.startDate&&oe.push(Xe),oe},[]).sort(function(oe,ee){return oe.startDate.getTime()-ee.startDate.getTime()})[0];ge&&(ue=e(ge.startDate,N),Y=!0)}for(var Oe=Object.keys(W.attr),De=0;De<Oe.length;De++){var He=Oe[De];if(He===o.DateRangeAttribute.ID||He===o.DateRangeAttribute.CLASS||He===o.DateRangeAttribute.START_DATE||He===o.DateRangeAttribute.DURATION||He===o.DateRangeAttribute.END_DATE||He===o.DateRangeAttribute.END_ON_NEXT)continue;var pe=z[He];if(pe)Y&&!V.durationKnown&&(pe.endTime=ue);else{var Ue=W.attr[He];pe=new R($,ue,""),(He===o.DateRangeAttribute.SCTE35_OUT||He===o.DateRangeAttribute.SCTE35_IN)&&(Ue=s(Ue)),pe.value={key:He,data:Ue},pe.type=r.MetadataSchema.dateRange,g.id3Track.addCue(pe),z[He]=pe}}y[j]={cues:z,dateRange:W,durationKnown:Y}},M=0;M<S.length;M++)P(M)},a}();C.default=t},"./src/controller/latency-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var w=A("./src/errors.ts"),m=A("./src/events.ts"),f=A("./src/utils/logger.ts");function c(i,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function o(i,n,e){return n&&c(i.prototype,n),e&&c(i,e),Object.defineProperty(i,"prototype",{writable:!1}),i}var r=function(){function i(e){var s=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return s.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var n=i.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(m.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(m.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){this.hls.off(m.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(m.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(m.Events.ERROR,this.onError)},n.onMediaAttached=function(s,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},n.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},n.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},n.onLevelUpdated=function(s,t){var a=t.details;this.levelDetails=a,a.advanced&&this.timeupdate(),!a.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(s,t){if(t.details!==w.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,f.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var s=this.media,t=this.levelDetails;if(!s||!t)return;this.currentTime=s.currentTime;var a=this.computeLatency();if(a===null)return;this._latency=a;var l=this.config,u=l.lowLatencyMode,h=l.maxLiveSyncPlaybackRate;if(!u||h===1)return;var p=this.targetLatency;if(p===null)return;var g=a-p,v=Math.min(this.maxLatency,p+t.targetduration),y=g<v;if(t.live&&y&&g>.05&&this.forwardBufferLength>1){var x=Math.min(2,Math.max(1,h)),T=Math.round(2/(1+Math.exp(-.75*g-this.edgeStalled))*20)/20;s.playbackRate=Math.min(x,Math.max(1,T))}else s.playbackRate!==1&&s.playbackRate!==0&&(s.playbackRate=1)},n.estimateLiveEdge=function(){var s=this.levelDetails;return s===null?null:s.edge+s.age},n.computeLatency=function(){var s=this.estimateLiveEdge();return s===null?null:s-this.currentTime},o(i,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var s=this.config,t=this.levelDetails;return s.liveMaxLatencyDuration!==void 0?s.liveMaxLatencyDuration:t?s.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var s=this.levelDetails;if(s===null)return null;var t=s.holdBack,a=s.partHoldBack,l=s.targetduration,u=this.config,h=u.liveSyncDuration,p=u.liveSyncDurationCount,g=u.lowLatencyMode,v=this.hls.userConfig,y=g&&a||t;(v.liveSyncDuration||v.liveSyncDurationCount||y===0)&&(y=h!==void 0?h:p*l);var x=l,T=1;return y+Math.min(this.stallCount*T,x)}},{key:"liveSyncPosition",get:function(){var s=this.estimateLiveEdge(),t=this.targetLatency,a=this.levelDetails;if(s===null||t===null||a===null)return null;var l=a.edge,u=s-t-this.edgeStalled,h=l-a.totalduration,p=l-(this.config.lowLatencyMode&&a.partTarget||a.targetduration);return Math.min(Math.max(h,u),p)}},{key:"drift",get:function(){var s=this.levelDetails;return s===null?1:s.drift}},{key:"edgeStalled",get:function(){var s=this.levelDetails;if(s===null)return 0;var t=(this.config.lowLatencyMode&&s.partTarget||s.targetduration)*3;return Math.max(s.age-t,0)}},{key:"forwardBufferLength",get:function(){var s=this.media,t=this.levelDetails;if(!s||!t)return 0;var a=s.buffered.length;return(a?s.buffered.end(a-1):t.edge)-this.currentTime}}]),i}()},"./src/controller/level-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return u});var w=A("./src/types/level.ts"),m=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?Object.assign.bind():function(h){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(h[v]=g[v])}return h},n.apply(this,arguments)}function e(h,p){for(var g=0;g<p.length;g++){var v=p[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function s(h,p,g){return p&&e(h.prototype,p),g&&e(h,g),Object.defineProperty(h,"prototype",{writable:!1}),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?Object.setPrototypeOf.bind():function(v,y){return v.__proto__=y,v},a(h,p)}var l=/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 g=p.prototype;return g._registerListeners=function(){var y=this.hls;y.on(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.on(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.on(m.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),y.on(m.Events.ERROR,this.onError,this)},g._unregisterListeners=function(){var y=this.hls;y.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.off(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.off(m.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),y.off(m.Events.ERROR,this.onError,this)},g.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,h.prototype.destroy.call(this)},g.startLoad=function(){var y=this._levels;y.forEach(function(x){x.loadError=0}),h.prototype.startLoad.call(this)},g.onManifestLoaded=function(y,x){var T=[],S=[],b=[],_,I={},L,N=!1,D=!1,R=!1;if(x.levels.forEach(function(F){var j=F.attrs;N=N||!!(F.width&&F.height),D=D||!!F.videoCodec,R=R||!!F.audioCodec,l&&F.audioCodec&&F.audioCodec.indexOf("mp4a.40.34")!==-1&&(F.audioCodec=void 0);var W=F.bitrate+"-"+F.attrs.RESOLUTION+"-"+F.attrs.CODECS;L=I[W],L?L.url.push(F.url):(L=new w.Level(F),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||D)&&R&&(T=T.filter(function(F){var j=F.videoCodec,W=F.width,V=F.height;return!!j||!!(W&&V)})),T=T.filter(function(F){var j=F.audioCodec,W=F.videoCodec;return(!j||Object(c.isCodecSupportedInMp4)(j,"audio"))&&(!W||Object(c.isCodecSupportedInMp4)(W,"video"))}),x.audioTracks&&(S=x.audioTracks.filter(function(F){return!F.audioCodec||Object(c.isCodecSupportedInMp4)(F.audioCodec,"audio")}),Object(o.assignTrackIdsByGroup)(S)),x.subtitles&&(b=x.subtitles,Object(o.assignTrackIdsByGroup)(b)),T.length>0){_=T[0].bitrate,T.sort(function(F,j){return F.bitrate-j.bitrate}),this._levels=T;for(var P=0;P<T.length;P++)if(T[P].bitrate===_){this._firstLevel=P,this.log("manifest loaded, "+T.length+" level(s) found, first bitrate: "+_);break}var M=R&&!D,U={levels:T,audioTracks:S,subtitleTracks:b,firstLevel:this._firstLevel,stats:x.stats,audio:R,video:D,altAudio:!M&&S.some(function(F){return!!F.url})};this.hls.trigger(m.Events.MANIFEST_PARSED,U),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(m.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:x.url,reason:"no level with compatible codecs found in manifest"})},g.onError=function(y,x){if(h.prototype.onError.call(this,y,x),x.fatal)return;var T=x.context,S=this._levels[this.currentLevelIndex];if(T&&(T.type===i.PlaylistContextType.AUDIO_TRACK&&S.audioGroupIds&&T.groupId===S.audioGroupIds[S.urlId]||T.type===i.PlaylistContextType.SUBTITLE_TRACK&&S.textGroupIds&&T.groupId===S.textGroupIds[S.urlId])){this.redundantFailover(this.currentLevelIndex);return}var b=!1,_=!0,I;switch(x.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:if(x.frag){var L=this._levels[x.frag.level];L?(L.fragmentError++,L.fragmentError>this.hls.config.fragLoadingMaxRetry&&(I=x.frag.level)):I=x.frag.level}break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:T&&(T.deliveryDirectives&&(_=!1),I=T.level),b=!0;break;case f.ErrorDetails.REMUX_ALLOC_ERROR:I=x.level,b=!0;break}I!==void 0&&this.recoverLevel(x,I,b,_)},g.recoverLevel=function(y,x,T,S){var b=y.details,_=this._levels[x];if(_.loadError++,T){var I=this.retryLoadingOrFail(y);if(I)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(S){var L=_.url.length;if(L>1&&_.loadError<L)y.levelRetry=!0,this.redundantFailover(x);else if(this.manualLevelIndex===-1){var N=x===0?this._levels.length-1:x-1;this.currentLevelIndex!==N&&this._levels[N].loadError===0&&(this.warn(b+": switch to "+N),y.levelRetry=!0,this.hls.nextAutoLevel=N)}}},g.redundantFailover=function(y){var x=this._levels[y],T=x.url.length;if(T>1){var S=(x.urlId+1)%T;this.warn("Switching to redundant URL-id "+S),this._levels.forEach(function(b){b.urlId=S}),this.level=y}},g.onFragLoaded=function(y,x){var T=x.frag;if(T!==void 0&&T.type===i.PlaylistLevelType.MAIN){var S=this._levels[T.level];S!==void 0&&(S.fragmentError=0,S.loadError=0)}},g.onLevelLoaded=function(y,x){var T,S=x.level,b=x.details,_=this._levels[S];if(!_){var I;this.warn("Invalid level index "+S),(I=x.deliveryDirectives)!==null&&I!==void 0&&I.skip&&(b.deltaUpdateFailed=!0);return}S===this.currentLevelIndex?(_.fragmentError===0&&(_.loadError=0,this.retryCount=0),this.playlistLoaded(S,x,_.details)):(T=x.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(b.deltaUpdateFailed=!0)},g.onAudioTrackSwitched=function(y,x){var T=this.hls.levels[this.currentLevelIndex];if(!T)return;if(T.audioGroupIds){for(var S=-1,b=this.hls.audioTracks[x.id].groupId,_=0;_<T.audioGroupIds.length;_++)if(T.audioGroupIds[_]===b){S=_;break}S!==T.urlId&&(T.urlId=S,this.startLoad())}},g.loadPlaylist=function(y){var x=this.currentLevelIndex,T=this._levels[x];if(this.canLoad&&T&&T.url.length>0){var S=T.urlId,b=T.url[S];if(y)try{b=y.addDirectives(b)}catch(_){this.warn("Could not construct new URL with HLS Delivery Directives: "+_)}this.log("Attempt loading level index "+x+(y?" at sn "+y.msn+" part "+y.part:"")+" with URL-id "+S+" "+b),this.clearTimer(),this.hls.trigger(m.Events.LEVEL_LOADING,{url:b,level:x,id:S,deliveryDirectives:y||null})}},g.removeLevel=function(y,x){var T=function(_,I){return I!==x},S=this._levels.filter(function(b,_){return _!==y?!0:b.url.length>1&&x!==void 0?(b.url=b.url.filter(T),b.audioGroupIds&&(b.audioGroupIds=b.audioGroupIds.filter(T)),b.textGroupIds&&(b.textGroupIds=b.textGroupIds.filter(T)),b.urlId=0,!0):!1}).map(function(b,_){var I=b.details;return I!=null&&I.fragments&&I.fragments.forEach(function(L){L.level=_}),b});this._levels=S,this.hls.trigger(m.Events.LEVELS_UPDATED,{levels:S})},s(p,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(y){var x,T=this._levels;if(T.length===0)return;if(this.currentLevelIndex===y&&(x=T[y])!==null&&x!==void 0&&x.details)return;if(y<0||y>=T.length){var S=y<0;if(this.hls.trigger(m.Events.ERROR,{type:f.ErrorTypes.OTHER_ERROR,details:f.ErrorDetails.LEVEL_SWITCH_ERROR,level:y,fatal:S,reason:"invalid level idx"}),S)return;y=Math.min(y,T.length-1)}this.clearTimer();var b=this.currentLevelIndex,_=T[b],I=T[y];this.log("switching to level "+y+" from "+b),this.currentLevelIndex=y;var L=n({},I,{level:y,maxBitrate:I.maxBitrate,uri:I.uri,urlId:I.urlId});delete L._urlId,this.hls.trigger(m.Events.LEVEL_SWITCHING,L);var N=I.details;if(!N||N.live){var D=this.switchParams(I.uri,_==null?void 0:_.details);this.loadPlaylist(D)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(y){this.manualLevelIndex=y,this._startLevel===void 0&&(this._startLevel=y),y!==-1&&(this.level=y)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(y){this._firstLevel=y}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var y=this.hls.config.startLevel;return y!==void 0?y:this._firstLevel}else return this._startLevel},set:function(y){this._startLevel=y}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(y){this.level=y,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=y)}}]),p}(r.default)},"./src/controller/level-helper.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"addGroupId",function(){return o}),A.d(C,"assignTrackIdsByGroup",function(){return r}),A.d(C,"updatePTS",function(){return i}),A.d(C,"updateFragPTSDTS",function(){return e}),A.d(C,"mergeDetails",function(){return s}),A.d(C,"mapPartIntersection",function(){return a}),A.d(C,"mapFragmentIntersection",function(){return l}),A.d(C,"adjustSliding",function(){return u}),A.d(C,"addSliding",function(){return h}),A.d(C,"computeReloadInterval",function(){return p}),A.d(C,"getFragmentWithSN",function(){return g}),A.d(C,"getPartWith",function(){return v});var w=A("./src/polyfills/number.ts"),m=A("./src/utils/logger.ts"),f=A("./src/loader/date-range.ts");function c(){return c=Object.assign?Object.assign.bind():function(y){for(var x=1;x<arguments.length;x++){var T=arguments[x];for(var S in T)Object.prototype.hasOwnProperty.call(T,S)&&(y[S]=T[S])}return y},c.apply(this,arguments)}function o(y,x,T){switch(x){case"audio":y.audioGroupIds||(y.audioGroupIds=[]),y.audioGroupIds.push(T);break;case"text":y.textGroupIds||(y.textGroupIds=[]),y.textGroupIds.push(T);break}}function r(y){var x={};y.forEach(function(T){var S=T.groupId||"";T.id=x[S]=x[S]||0,x[S]++})}function i(y,x,T){var S=y[x],b=y[T];n(S,b)}function n(y,x){var T=x.startPTS;if(Object(w.isFiniteNumber)(T)){var S=0,b;x.sn>y.sn?(S=T-y.start,b=y):(S=y.start-T,b=x),b.duration!==S&&(b.duration=S)}else if(x.sn>y.sn){var _=y.cc===x.cc;_&&y.minEndPTS?x.start=y.start+(y.minEndPTS-y.start):x.start=y.start+y.duration}else x.start=Math.max(y.start-x.duration,0)}function e(y,x,T,S,b,_){var I=S-T;I<=0&&(m.logger.warn("Fragment should have a positive duration",x),S=T+x.duration,_=b+x.duration);var L=T,N=S,D=x.startPTS,R=x.endPTS;if(Object(w.isFiniteNumber)(D)){var P=Math.abs(D-T);Object(w.isFiniteNumber)(x.deltaPTS)?x.deltaPTS=Math.max(P,x.deltaPTS):x.deltaPTS=P,L=Math.max(T,D),T=Math.min(T,D),b=Math.min(b,x.startDTS),N=Math.min(S,R),S=Math.max(S,R),_=Math.max(_,x.endDTS)}x.duration=S-T;var M=T-x.start;x.appendedPTS=S,x.start=x.startPTS=T,x.maxStartPTS=L,x.startDTS=b,x.endPTS=S,x.minEndPTS=N,x.endDTS=_;var U=x.sn;if(!y||U<y.startSN||U>y.endSN)return 0;var F,j=U-y.startSN,W=y.fragments;for(W[j]=x,F=j;F>0;F--)n(W[F],W[F-1]);for(F=j;F<W.length-1;F++)n(W[F],W[F+1]);return y.fragmentHint&&n(W[W.length-1],y.fragmentHint),y.PTSKnown=y.alignedSliding=!0,M}function s(y,x){for(var T=null,S=y.fragments,b=S.length-1;b>=0;b--){var _=S[b].initSegment;if(_){T=_;break}}y.fragmentHint&&delete y.fragmentHint.endPTS;var I=0,L;if(l(y,x,function(F,j){F.relurl&&(I=F.cc-j.cc),Object(w.isFiniteNumber)(F.startPTS)&&Object(w.isFiniteNumber)(F.endPTS)&&(j.start=j.startPTS=F.startPTS,j.startDTS=F.startDTS,j.appendedPTS=F.appendedPTS,j.maxStartPTS=F.maxStartPTS,j.endPTS=F.endPTS,j.endDTS=F.endDTS,j.minEndPTS=F.minEndPTS,j.duration=F.endPTS-F.startPTS,j.duration&&(L=j),x.PTSKnown=x.alignedSliding=!0),j.elementaryStreams=F.elementaryStreams,j.loader=F.loader,j.stats=F.stats,j.urlId=F.urlId,F.initSegment&&(j.initSegment=F.initSegment,T=F.initSegment)}),T){var N=x.fragmentHint?x.fragments.concat(x.fragmentHint):x.fragments;N.forEach(function(F){var j;(!F.initSegment||F.initSegment.relurl===((j=T)===null||j===void 0?void 0:j.relurl))&&(F.initSegment=T)})}if(x.skippedSegments)if(x.deltaUpdateFailed=x.fragments.some(function(F){return!F}),x.deltaUpdateFailed){m.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var D=x.skippedSegments;D--;)x.fragments.shift();x.startSN=x.fragments[0].sn,x.startCC=x.fragments[0].cc}else x.canSkipDateRanges&&(x.dateRanges=t(y.dateRanges,x.dateRanges,x.recentlyRemovedDateranges));var R=x.fragments;if(I){m.logger.warn("discontinuity sliding from playlist, take drift into account");for(var P=0;P<R.length;P++)R[P].cc+=I}x.skippedSegments&&(x.startCC=x.fragments[0].cc),a(y.partList,x.partList,function(F,j){j.elementaryStreams=F.elementaryStreams,j.stats=F.stats}),L?e(x,L,L.startPTS,L.endPTS,L.startDTS,L.endDTS):u(y,x),R.length&&(x.totalduration=x.edge-R[0].start),x.driftStartTime=y.driftStartTime,x.driftStart=y.driftStart;var M=x.advancedDateTime;if(x.advanced&&M){var U=x.edge;x.driftStart||(x.driftStartTime=M,x.driftStart=U),x.driftEndTime=M,x.driftEnd=U}else x.driftEndTime=y.driftEndTime,x.driftEnd=y.driftEnd,x.advancedDateTime=y.advancedDateTime}function t(y,x,T){var S=c({},y);return T&&T.forEach(function(b){delete S[b]}),Object.keys(x).forEach(function(b){var _=new f.DateRange(x[b].attr,S[b]);_.isValid?S[b]=_:m.logger.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+JSON.stringify(x[b].attr)+'"')}),S}function a(y,x,T){if(y&&x)for(var S=0,b=0,_=y.length;b<=_;b++){var I=y[b],L=x[b+S];I&&L&&I.index===L.index&&I.fragment.sn===L.fragment.sn?T(I,L):S--}}function l(y,x,T){for(var S=x.skippedSegments,b=Math.max(y.startSN,x.startSN)-x.startSN,_=(y.fragmentHint?1:0)+(S?x.endSN:Math.min(y.endSN,x.endSN))-x.startSN,I=x.startSN-y.startSN,L=x.fragmentHint?x.fragments.concat(x.fragmentHint):x.fragments,N=y.fragmentHint?y.fragments.concat(y.fragmentHint):y.fragments,D=b;D<=_;D++){var R=N[I+D],P=L[D];S&&!P&&D<S&&(P=x.fragments[D]=R),R&&P&&T(R,P)}}function u(y,x){var T=x.startSN+x.skippedSegments-y.startSN,S=y.fragments;if(T<0||T>=S.length)return;h(x,S[T].start)}function h(y,x){if(x){for(var T=y.fragments,S=y.skippedSegments;S<T.length;S++)T[S].start+=x;y.fragmentHint&&(y.fragmentHint.start+=x)}}function p(y,x){var T=1e3*y.levelTargetDuration,S=T/2,b=y.age,_=b>0&&b<T*3,I=x.loading.end-x.loading.start,L,N=y.availabilityDelay;if(y.updated===!1)if(_){var D=333*y.misses;L=Math.max(Math.min(S,I*2),D),y.availabilityDelay=(y.availabilityDelay||0)+L}else L=S;else _?(N=Math.min(N||T/2,b),y.availabilityDelay=N,L=N+T-b):L=T-I;return Math.round(L)}function g(y,x,T){if(!y||!y.details)return null;var S=y.details,b=S.fragments[x-S.startSN];return b||(b=S.fragmentHint,b&&b.sn===x?b:x<S.startSN&&T&&T.sn===x?T:null)}function v(y,x,T){if(!y||!y.details)return null;var S=y.details.partList;if(S)for(var b=S.length;b--;){var _=S[b];if(_.index===T&&_.fragment.sn===x)return _}return null}},"./src/controller/stream-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return v});var w=A("./src/polyfills/number.ts"),m=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"),s=A("./src/types/transmuxer.ts"),t=A("./src/controller/gap-controller.ts"),a=A("./src/errors.ts");function l(y,x){for(var T=0;T<x.length;T++){var S=x[T];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}function u(y,x,T){return x&&l(y.prototype,x),T&&l(y,T),Object.defineProperty(y,"prototype",{writable:!1}),y}function h(y,x){y.prototype=Object.create(x.prototype),y.prototype.constructor=y,p(y,x)}function p(y,x){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,b){return S.__proto__=b,S},p(y,x)}var g=100,v=function(y){h(x,y);function x(S,b){var _;return _=y.call(this,S,b,"[stream-controller]")||this,_.audioCodecSwap=!1,_.gapController=null,_.level=-1,_._forceStartLoad=!1,_.altAudio=!1,_.audioOnly=!1,_.fragPlaying=null,_.onvplaying=null,_.onvseeked=null,_.fragLastKbps=0,_.couldBacktrack=!1,_.backtrackFragment=null,_.audioCodecSwitch=!1,_.videoBuffer=null,_._registerListeners(),_}var T=x.prototype;return T._registerListeners=function(){var b=this.hls;b.on(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),b.on(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),b.on(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),b.on(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),b.on(c.Events.LEVEL_LOADING,this.onLevelLoading,this),b.on(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),b.on(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),b.on(c.Events.ERROR,this.onError,this),b.on(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),b.on(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),b.on(c.Events.BUFFER_CREATED,this.onBufferCreated,this),b.on(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),b.on(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),b.on(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},T._unregisterListeners=function(){var b=this.hls;b.off(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),b.off(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),b.off(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),b.off(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),b.off(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),b.off(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),b.off(c.Events.ERROR,this.onError,this),b.off(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),b.off(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),b.off(c.Events.BUFFER_CREATED,this.onBufferCreated,this),b.off(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),b.off(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),b.off(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},T.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},T.startLoad=function(b){if(this.levels){var _=this.lastCurrentTime,I=this.hls;if(this.stopLoad(),this.setInterval(g),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var L=I.startLevel;L===-1&&(I.config.testBandwidth?(L=0,this.bitrateTest=!0):L=I.nextAutoLevel),this.level=I.nextLoadLevel=L,this.loadedmetadata=!1}_>0&&b===-1&&(this.log("Override startPosition with lastCurrentTime @"+_.toFixed(3)),b=_),this.state=m.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=b,this.tick()}else this._forceStartLoad=!0,this.state=m.State.STOPPED},T.stopLoad=function(){this._forceStartLoad=!1,y.prototype.stopLoad.call(this)},T.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_LEVEL:{var b,_=this.levels,I=this.level,L=_==null||((b=_[I])===null||b===void 0)?void 0:b.details;if(L&&(!L.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(L))break;this.state=m.State.IDLE;break}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var N,D=self.performance.now(),R=this.retryDate;(!R||D>=R||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=m.State.IDLE)}break;default:break}this.onTickEnd()},T.onTickEnd=function(){y.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},T.doTickIdle=function(){var b,_,I=this.hls,L=this.levelLastLoaded,N=this.levels,D=this.media,R=I.config,P=I.nextLoadLevel;if(L===null||!D&&(this.startFragRequested||!R.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!N||!N[P])return;var M=N[P];this.level=I.nextLoadLevel=P;var U=M.details;if(!U||this.state===m.State.WAITING_LEVEL||U.live&&this.levelLastLoaded!==P){this.state=m.State.WAITING_LEVEL;return}var F=this.getMainFwdBufferInfo();if(F===null)return;var j=F.len,W=this.getMaxBufferLength(M.maxBitrate);if(j>=W)return;if(this._streamEnded(F,U)){var V={};this.altAudio&&(V.type="video"),this.hls.trigger(c.Events.BUFFER_EOS,V),this.state=m.State.ENDED;return}this.backtrackFragment&&this.backtrackFragment.start>F.end&&(this.backtrackFragment=null);var z=this.backtrackFragment?this.backtrackFragment.start:F.end,Y=this.getNextFragment(z,U);if(this.couldBacktrack&&!this.fragPrevious&&Y&&Y.sn!=="initSegment"&&this.fragmentTracker.getState(Y)!==r.FragmentState.OK){var $,ue=(($=this.backtrackFragment)!=null?$:Y).sn,ne=ue-U.startSN,ge=U.fragments[ne-1];ge&&Y.cc===ge.cc&&(Y=ge,this.fragmentTracker.removeFragment(ge))}else this.backtrackFragment&&F.len&&(this.backtrackFragment=null);if(Y&&this.fragmentTracker.getState(Y)===r.FragmentState.OK&&this.nextLoadPosition>z){var Oe=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(D,Oe,i.PlaylistLevelType.MAIN),Y=this.getNextFragment(this.nextLoadPosition,U)}if(!Y)return;Y.initSegment&&!Y.initSegment.data&&!this.bitrateTest&&(Y=Y.initSegment),((b=Y.decryptdata)===null||b===void 0?void 0:b.keyFormat)==="identity"&&!((_=Y.decryptdata)!==null&&_!==void 0&&_.key)?this.loadKey(Y,U):this.loadFragment(Y,U,z)},T.loadFragment=function(b,_,I){var L,N=this.fragmentTracker.getState(b);this.fragCurrent=b,N===r.FragmentState.NOT_LOADED||N===r.FragmentState.PARTIAL?b.sn==="initSegment"?this._loadInitSegment(b):this.bitrateTest?(b.bitrateTest=!0,this.log("Fragment "+b.sn+" of level "+b.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(b)):(this.startFragRequested=!0,y.prototype.loadFragment.call(this,b,_,I)):N===r.FragmentState.APPENDING?this.reduceMaxBufferLength(b.duration)&&this.fragmentTracker.removeFragment(b):((L=this.media)===null||L===void 0?void 0:L.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},T.getAppendedFrag=function(b){var _=this.fragmentTracker.getAppendedFrag(b,i.PlaylistLevelType.MAIN);return _&&"fragment"in _?_.fragment:_},T.getBufferedFrag=function(b){return this.fragmentTracker.getBufferedFrag(b,i.PlaylistLevelType.MAIN)},T.followingBufferedFrag=function(b){return b?this.getBufferedFrag(b.end+.5):null},T.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},T.nextLevelSwitch=function(){var b=this.levels,_=this.media;if(_!=null&&_.readyState){var I,L=this.getAppendedFrag(_.currentTime);if(L&&L.start>1&&this.flushMainBuffer(0,L.start-1),!_.paused&&b){var N=this.hls.nextLoadLevel,D=b[N],R=this.fragLastKbps;R&&this.fragCurrent?I=this.fragCurrent.duration*D.maxBitrate/(1e3*R)+1:I=0}else I=0;var P=this.getBufferedFrag(_.currentTime+I);if(P){var M=this.followingBufferedFrag(P);if(M){this.abortCurrentFrag();var U=M.maxStartPTS?M.maxStartPTS:M.start,F=M.duration,j=Math.max(P.end,U+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(j,Number.POSITIVE_INFINITY)}}}},T.abortCurrentFrag=function(){var b=this.fragCurrent;this.fragCurrent=null,this.backtrackFragment=null,b!=null&&b.loader&&b.loader.abort();switch(this.state){case m.State.KEY_LOADING:case m.State.FRAG_LOADING:case m.State.FRAG_LOADING_WAITING_RETRY:case m.State.PARSING:case m.State.PARSED:this.state=m.State.IDLE;break}this.nextLoadPosition=this.getLoadPosition()},T.flushMainBuffer=function(b,_){y.prototype.flushMainBuffer.call(this,b,_,this.altAudio?"video":null)},T.onMediaAttached=function(b,_){y.prototype.onMediaAttached.call(this,b,_);var I=_.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),I.addEventListener("playing",this.onvplaying),I.addEventListener("seeked",this.onvseeked),this.gapController=new t.default(this.config,I,this.fragmentTracker,this.hls)},T.onMediaDetaching=function(){var b=this.media;b&&(b.removeEventListener("playing",this.onvplaying),b.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),y.prototype.onMediaDetaching.call(this)},T.onMediaPlaying=function(){this.tick()},T.onMediaSeeked=function(){var b=this.media,_=b?b.currentTime:null;Object(w.isFiniteNumber)(_)&&this.log("Media seeked to "+_.toFixed(3)),this.tick()},T.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(c.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null,this.backtrackFragment=null},T.onManifestParsed=function(b,_){var I=!1,L=!1,N;_.levels.forEach(function(D){N=D.audioCodec,N&&(N.indexOf("mp4a.40.2")!==-1&&(I=!0),N.indexOf("mp4a.40.5")!==-1&&(L=!0))}),this.audioCodecSwitch=I&&L&&!Object(f.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=_.levels,this.startFragRequested=!1},T.onLevelLoading=function(b,_){var I=this.levels;if(!I||this.state!==m.State.IDLE)return;var L=I[_.level];(!L.details||L.details.live&&this.levelLastLoaded!==_.level||this.waitForCdnTuneIn(L.details))&&(this.state=m.State.WAITING_LEVEL)},T.onLevelLoaded=function(b,_){var I,L=this.levels,N=_.level,D=_.details,R=D.totalduration;if(!L){this.warn("Levels were reset while loading level "+N);return}this.log("Level "+N+" loaded ["+D.startSN+","+D.endSN+"], cc ["+D.startCC+", "+D.endCC+"] duration:"+R);var P=this.fragCurrent;P&&(this.state===m.State.FRAG_LOADING||this.state===m.State.FRAG_LOADING_WAITING_RETRY)&&(P.level!==_.level&&P.loader&&(this.state=m.State.IDLE,this.backtrackFragment=null,P.loader.abort()));var M=L[N],U=0;if(D.live||(I=M.details)!==null&&I!==void 0&&I.live){if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed)return;U=this.alignPlaylists(D,M.details)}if(M.details=D,this.levelLastLoaded=N,this.hls.trigger(c.Events.LEVEL_UPDATED,{details:D,level:N}),this.state===m.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(D))return;this.state=m.State.IDLE}this.startFragRequested?D.live&&this.synchronizeToLiveEdge(D):this.setStartPosition(D,U),this.tick()},T._handleFragmentLoadProgress=function(b){var _,I=b.frag,L=b.part,N=b.payload,D=this.levels;if(!D){this.warn("Levels were reset while fragment load was in progress. Fragment "+I.sn+" of level "+I.level+" will not be buffered");return}var R=D[I.level],P=R.details;if(!P){this.warn("Dropping fragment "+I.sn+" of level "+I.level+" after level details were reset");return}var M=R.videoCodec,U=P.PTSKnown||!P.live,F=(_=I.initSegment)===null||_===void 0?void 0:_.data,j=this._getAudioCodec(R),W=this.transmuxer=this.transmuxer||new e.default(this.hls,i.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),V=L?L.index:-1,z=V!==-1,Y=new s.ChunkMetadata(I.level,I.sn,I.stats.chunkCount,N.byteLength,V,z),$=this.initPTS[I.cc];W.push(N,F,j,M,I,L,P.totalduration,U,Y,$)},T.onAudioTrackSwitching=function(b,_){var I=this.altAudio,L=!!_.url,N=_.id;if(!L){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 R=this.hls;I&&R.trigger(c.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),R.trigger(c.Events.AUDIO_TRACK_SWITCHED,{id:N})}},T.onAudioTrackSwitched=function(b,_){var I=_.id,L=!!this.hls.audioTracks[I].url;if(L){var N=this.videoBuffer;N&&this.mediaBuffer!==N&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=N)}this.altAudio=L,this.tick()},T.onBufferCreated=function(b,_){var I=_.tracks,L,N,D=!1;for(var R in I){var P=I[R];if(P.id==="main"){if(N=R,L=P,R==="video"){var M=I[R];M&&(this.videoBuffer=M.buffer)}}else D=!0}D&&L?(this.log("Alternate track found, use "+N+".buffered to schedule main fragment loading"),this.mediaBuffer=L.buffer):this.mediaBuffer=this.media},T.onFragBuffered=function(b,_){var I=_.frag,L=_.part;if(I&&I.type!==i.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(I)){this.warn("Fragment "+I.sn+(L?" p: "+L.index:"")+" of level "+I.level+" finished buffering, but was aborted. state: "+this.state),this.state===m.State.PARSED&&(this.state=m.State.IDLE);return}var N=L?L.stats:I.stats;this.fragLastKbps=Math.round(8*N.total/(N.buffering.end-N.loading.first)),I.sn!=="initSegment"&&(this.fragPrevious=I),this.fragBufferedComplete(I,L)},T.onError=function(b,_){switch(_.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,_);break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==m.State.ERROR&&(_.fatal?(this.warn(""+_.details),this.state=m.State.ERROR):!_.levelRetry&&this.state===m.State.WAITING_LEVEL&&(this.state=m.State.IDLE));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(_.parent==="main"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var I=!0,L=this.getFwdBufferInfo(this.media,i.PlaylistLevelType.MAIN);L&&L.len>.5&&(I=!this.reduceMaxBufferLength(L.len)),I&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},T.checkBuffer=function(){var b=this.media,_=this.gapController;if(!b||!_||!b.readyState)return;var I=o.BufferHelper.getBuffered(b);if(!this.loadedmetadata&&I.length)this.loadedmetadata=!0,this.seekToStartPos();else{var L=this.state!==m.State.IDLE?this.fragCurrent:null;_.poll(this.lastCurrentTime,L)}this.lastCurrentTime=b.currentTime},T.onFragLoadEmergencyAborted=function(){this.state=m.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},T.onBufferFlushed=function(b,_){var I=_.type;if(I!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var L=(I===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(L,I,i.PlaylistLevelType.MAIN)}},T.onLevelsUpdated=function(b,_){this.levels=_.levels},T.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},T.seekToStartPos=function(){var b=this.media,_=b.currentTime,I=this.startPosition;if(I>=0&&_<I){if(b.seeking){this.log("could not seek to "+I+", already seeking at "+_);return}var L=o.BufferHelper.getBuffered(b),N=L.length?L.start(0):0,D=N-I;D>0&&(D<this.config.maxBufferHole||D<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by "+D+" to match buffer start"),I+=D,this.startPosition=I),this.log("seek to target start position "+I+" from current time "+_),b.currentTime=I}},T._getAudioCodec=function(b){var _=this.config.defaultAudioCodec||b.audioCodec;return this.audioCodecSwap&&_&&(this.log("Swapping audio codec"),_.indexOf("mp4a.40.5")!==-1?_="mp4a.40.2":_="mp4a.40.5"),_},T._loadBitrateTestFrag=function(b){var _=this;this._doFragLoad(b).then(function(I){var L=_.hls;if(!I||L.nextLoadLevel||_.fragContextChanged(b))return;_.fragLoadError=0,_.state=m.State.IDLE,_.startFragRequested=!1,_.bitrateTest=!1;var N=b.stats;N.parsing.start=N.parsing.end=N.buffering.start=N.buffering.end=self.performance.now(),L.trigger(c.Events.FRAG_LOADED,I)})},T._handleTransmuxComplete=function(b){var _,I="main",L=this.hls,N=b.remuxResult,D=b.chunkMeta,R=this.getCurrentContext(D);if(!R){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 P=R.frag,M=R.part,U=R.level,F=N.video,j=N.text,W=N.id3,V=N.initSegment,z=U.details,Y=this.altAudio?void 0:N.audio;if(this.fragContextChanged(P))return;if(this.state=m.State.PARSING,V){V.tracks&&(this._bufferInitSegment(U,V.tracks,P,D),L.trigger(c.Events.FRAG_PARSING_INIT_SEGMENT,{frag:P,id:I,tracks:V.tracks}));var $=V.initPTS,ue=V.timescale;Object(w.isFiniteNumber)($)&&(this.initPTS[P.cc]=$,L.trigger(c.Events.INIT_PTS_FOUND,{frag:P,id:I,initPTS:$,timescale:ue}))}if(F&&N.independent!==!1){if(z){var ne=F.startPTS,ge=F.endPTS,Oe=F.startDTS,De=F.endDTS;if(M)M.elementaryStreams[F.type]={startPTS:ne,endPTS:ge,startDTS:Oe,endDTS:De};else if(F.firstKeyFrame&&F.independent&&(this.couldBacktrack=!0),F.dropped&&F.independent){var He=this.getMainFwdBufferInfo(),pe=(He?He.end:this.getLoadPosition())+this.config.maxBufferHole,Ue=F.firstKeyFramePTS?F.firstKeyFramePTS:ne;if(pe<Ue-this.config.maxBufferHole){this.backtrack(P);return}P.setElementaryStreamInfo(F.type,P.start,ge,P.start,De,!0)}P.setElementaryStreamInfo(F.type,ne,ge,Oe,De),this.backtrackFragment&&(this.backtrackFragment=P),this.bufferFragmentData(F,P,M,D)}}else if(N.independent===!1){this.backtrack(P);return}if(Y){var oe=Y.startPTS,ee=Y.endPTS,Xe=Y.startDTS,se=Y.endDTS;M&&(M.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:oe,endPTS:ee,startDTS:Xe,endDTS:se}),P.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,oe,ee,Xe,se),this.bufferFragmentData(Y,P,M,D)}if(z&&W!==null&&W!==void 0&&(_=W.samples)!==null&&_!==void 0&&_.length){var Q={id:I,frag:P,details:z,samples:W.samples};L.trigger(c.Events.FRAG_PARSING_METADATA,Q)}if(z&&j){var G={id:I,frag:P,details:z,samples:j.samples};L.trigger(c.Events.FRAG_PARSING_USERDATA,G)}},T._bufferInitSegment=function(b,_,I,L){var N=this;if(this.state!==m.State.PARSING)return;this.audioOnly=!!_.audio&&!_.video,this.altAudio&&!this.audioOnly&&delete _.audio;var D=_.audio,R=_.video,P=_.audiovideo;if(D){var M=b.audioCodec,U=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(M&&(M.indexOf("mp4a.40.5")!==-1?M="mp4a.40.2":M="mp4a.40.5"),D.metadata.channelCount!==1&&U.indexOf("firefox")===-1&&(M="mp4a.40.5")),U.indexOf("android")!==-1&&D.container!=="audio/mpeg"&&(M="mp4a.40.2",this.log("Android: force audio codec to "+M)),b.audioCodec&&b.audioCodec!==M&&this.log('Swapping manifest audio codec "'+b.audioCodec+'" for "'+M+'"'),D.levelCodec=M,D.id="main",this.log("Init audio buffer, container:"+D.container+", codecs[selected/level/parsed]=["+(M||"")+"/"+(b.audioCodec||"")+"/"+D.codec+"]")}R&&(R.levelCodec=b.videoCodec,R.id="main",this.log("Init video buffer, container:"+R.container+", codecs[level/parsed]=["+(b.videoCodec||"")+"/"+R.codec+"]")),P&&this.log("Init audiovideo buffer, container:"+P.container+", codecs[level/parsed]=["+(b.attrs.CODECS||"")+"/"+P.codec+"]"),this.hls.trigger(c.Events.BUFFER_CODECS,_),Object.keys(_).forEach(function(F){var j=_[F],W=j.initSegment;W!=null&&W.byteLength&&N.hls.trigger(c.Events.BUFFER_APPENDING,{type:F,data:W,frag:I,part:null,chunkMeta:L,parent:I.type})}),this.tick()},T.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,i.PlaylistLevelType.MAIN)},T.backtrack=function(b){this.couldBacktrack=!0,this.backtrackFragment=b,this.resetTransmuxer(),this.flushBufferGap(b),this.fragmentTracker.removeFragment(b),this.fragPrevious=null,this.nextLoadPosition=b.start,this.state=m.State.IDLE},T.checkFragmentChanged=function(){var b=this.media,_=null;if(b&&b.readyState>1&&b.seeking===!1){var I=b.currentTime;if(o.BufferHelper.isBuffered(b,I)?_=this.getAppendedFrag(I):o.BufferHelper.isBuffered(b,I+.1)&&(_=this.getAppendedFrag(I+.1)),_){this.backtrackFragment=null;var L=this.fragPlaying,N=_.level;(!L||_.sn!==L.sn||L.level!==N||_.urlId!==L.urlId)&&(this.hls.trigger(c.Events.FRAG_CHANGED,{frag:_}),(!L||L.level!==N)&&this.hls.trigger(c.Events.LEVEL_SWITCHED,{level:N}),this.fragPlaying=_)}}},u(x,[{key:"nextLevel",get:function(){var b=this.nextBufferedFrag;return b?b.level:-1}},{key:"currentFrag",get:function(){var b=this.media;return b?this.fragPlaying||this.getAppendedFrag(b.currentTime):null}},{key:"currentProgramDateTime",get:function(){var b=this.media;if(b){var _=b.currentTime,I=this.currentFrag;if(I&&Object(w.isFiniteNumber)(_)&&Object(w.isFiniteNumber)(I.programDateTime)){var L=I.programDateTime+(_-I.start)*1e3;return new Date(L)}}return null}},{key:"currentLevel",get:function(){var b=this.currentFrag;return b?b.level:-1}},{key:"nextBufferedFrag",get:function(){var b=this.currentFrag;return b?this.followingBufferedFrag(b):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),x}(m.default)},"./src/controller/subtitle-stream-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"SubtitleStreamController",function(){return h});var w=A("./src/events.ts"),m=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 s(p,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function t(p,g,v){return g&&s(p.prototype,g),v&&s(p,v),Object.defineProperty(p,"prototype",{writable:!1}),p}function a(p,g){p.prototype=Object.create(g.prototype),p.prototype.constructor=p,l(p,g)}function l(p,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,x){return y.__proto__=x,y},l(p,g)}var u=500,h=function(p){a(g,p);function g(y,x){var T;return T=p.call(this,y,x,"[subtitle-stream-controller]")||this,T.levels=[],T.currentTrackId=-1,T.tracksBuffered=[],T.mainDetails=null,T._registerListeners(),T}var v=g.prototype;return v.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},v._registerListeners=function(){var x=this.hls;x.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.on(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.on(w.Events.ERROR,this.onError,this),x.on(w.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),x.on(w.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),x.on(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),x.on(w.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),x.on(w.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},v._unregisterListeners=function(){var x=this.hls;x.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.off(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.off(w.Events.ERROR,this.onError,this),x.off(w.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),x.off(w.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),x.off(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),x.off(w.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),x.off(w.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(x,T){this.mainDetails=T.details},v.onSubtitleFragProcessed=function(x,T){var S=T.frag,b=T.success;if(this.fragPrevious=S,this.state=i.State.IDLE,!b)return;var _=this.tracksBuffered[this.currentTrackId];if(!_)return;for(var I,L=S.start,N=0;N<_.length;N++)if(L>=_[N].start&&L<=_[N].end){I=_[N];break}var D=S.start+S.duration;I?I.end=D:(I={start:L,end:D},_.push(I)),this.fragmentTracker.fragBuffered(S)},v.onBufferFlushing=function(x,T){var S=T.startOffset,b=T.endOffset;if(S===0&&b!==Number.POSITIVE_INFINITY){var _=this.currentTrackId,I=this.levels;if(!I.length||!I[_]||!I[_].details)return;var L=I[_].details,N=L.targetduration,D=b-N;if(D<=0)return;T.endOffsetSubtitles=Math.max(0,D),this.tracksBuffered.forEach(function(R){for(var P=0;P<R.length;){if(R[P].end<=D){R.shift();continue}else if(R[P].start<D)R[P].start=D;else break;P++}}),this.fragmentTracker.removeFragmentsInRange(S,D,n.PlaylistLevelType.SUBTITLE)}},v.onError=function(x,T){var S,b=T.frag;if(!b||b.type!==n.PlaylistLevelType.SUBTITLE)return;(S=this.fragCurrent)!==null&&S!==void 0&&S.loader&&this.fragCurrent.loader.abort(),this.state=i.State.IDLE},v.onSubtitleTracksUpdated=function(x,T){var S=this,b=T.subtitleTracks;this.tracksBuffered=[],this.levels=b.map(function(_){return new e.Level(_)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(_){S.tracksBuffered[_.id]=[]}),this.mediaBuffer=null},v.onSubtitleTrackSwitch=function(x,T){if(this.currentTrackId=T.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var S=this.levels[this.currentTrackId];S!=null&&S.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,S&&this.setInterval(u)},v.onSubtitleTrackLoaded=function(x,T){var S,b=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,b.live||(S=N.details)!==null&&S!==void 0&&S.live){var D=this.mainDetails;if(b.deltaUpdateFailed||!D)return;var R=D.fragments[0];if(!N.details)b.hasProgramDateTime&&D.hasProgramDateTime?Object(c.alignMediaPlaylistByPDT)(b,D):R&&Object(o.addSliding)(b,R.start);else{var P=this.alignPlaylists(b,N.details);P===0&&R&&Object(o.addSliding)(b,R.start)}}if(N.details=b,this.levelLastLoaded=_,this.tick(),b.live&&!this.fragCurrent&&this.media&&this.state===i.State.IDLE){var M=Object(f.findFragmentByPTS)(null,b.fragments,this.media.currentTime,0);M||(this.warn("Subtitle playlist not aligned with playback"),N.details=void 0)}},v._handleFragmentLoadComplete=function(x){var T=x.frag,S=x.payload,b=T.decryptdata,_=this.hls;if(this.fragContextChanged(T))return;if(S&&S.byteLength>0&&b&&b.key&&b.iv&&b.method==="AES-128"){var I=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(S),b.key.buffer,b.iv.buffer).then(function(L){var N=performance.now();_.trigger(w.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 x=this.currentTrackId,T=this.levels;if(!T.length||!T[x]||!T[x].details)return;var S=T[x].details,b=S.targetduration,_=this.config,I=this.media,L=m.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,I.currentTime-b,_.maxBufferHole),N=L.end,D=L.len,R=this.getMaxBufferLength()+b;if(D>R)return;console.assert(S,"Subtitle track details are defined on idle subtitle stream controller tick");var P=S.fragments,M=P.length,U=S.edge,F,j=this.fragPrevious;if(N<U){var W=_.maxFragLookUpTolerance;F=Object(f.findFragmentByPTS)(j,P,Math.max(P[0].start,N),W),!F&&j&&j.start<P[0].start&&(F=P[0])}else F=P[M-1];if(F=this.mapToInitFragWhenRequired(F),!F)return;F.encrypted?this.loadKey(F,S):this.fragmentTracker.getState(F)===r.FragmentState.NOT_LOADED&&this.loadFragment(F,S,N)}},v.loadFragment=function(x,T,S){this.fragCurrent=x,x.sn==="initSegment"?this._loadInitSegment(x):p.prototype.loadFragment.call(this,x,T,S)},t(g,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),g}(i.default)},"./src/controller/subtitle-track-controller.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/events.ts"),m=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 l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,l){return a&&o(t.prototype,a),l&&o(t,l),Object.defineProperty(t,"prototype",{writable:!1}),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?Object.setPrototypeOf.bind():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 l=a.prototype;return l.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},l.registerListeners=function(){var h=this.hls;h.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(w.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(w.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.on(w.Events.ERROR,this.onError,this)},l.unregisterListeners=function(){var h=this.hls;h.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(w.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(w.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.off(w.Events.ERROR,this.onError,this)},l.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)},l.pollTrackChange=function(h){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,h)},l.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var h=s(this.media.textTracks);h.forEach(function(p){Object(m.clearCurrentCues)(p)}),this.subtitleTrack=-1,this.media=null},l.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},l.onManifestParsed=function(h,p){this.tracks=p.subtitleTracks},l.onSubtitleTrackLoaded=function(h,p){var g=p.id,v=p.details,y=this.trackId,x=this.tracksInGroup[y];if(!x){this.warn("Invalid subtitle track id "+g);return}var T=x.details;x.details=p.details,this.log("subtitle track "+g+" loaded ["+v.startSN+"-"+v.endSN+"]"),g===this.trackId&&(this.retryCount=0,this.playlistLoaded(g,p,T))},l.onLevelLoading=function(h,p){this.switchLevel(p.level)},l.onLevelSwitching=function(h,p){this.switchLevel(p.level)},l.switchLevel=function(h){var p=this.hls.levels[h];if(!(p!=null&&p.textGroupIds))return;var g=p.textGroupIds[p.urlId];if(this.groupId!==g){var v=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,y=this.tracks.filter(function(S){return!g||S.groupId===g});this.tracksInGroup=y;var x=this.findTrackId(v==null?void 0:v.name)||this.findTrackId();this.groupId=g;var T={subtitleTracks:y};this.log("Updating subtitle tracks, "+y.length+' track(s) found in "'+g+'" group-id'),this.hls.trigger(w.Events.SUBTITLE_TRACKS_UPDATED,T),x!==-1&&this.setSubtitleTrack(x,v)}},l.findTrackId=function(h){for(var p=this.tracksInGroup,g=0;g<p.length;g++){var v=p[g];if((!this.selectDefaultTrack||v.default)&&(!h||h===v.name))return v.id}return-1},l.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)},l.loadPlaylist=function(h){var p=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(p)){var g=p.id,v=p.groupId,y=p.url;if(h)try{y=h.addDirectives(y)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("Loading subtitle playlist for id "+g),this.hls.trigger(w.Events.SUBTITLE_TRACK_LOADING,{url:y,id:g,groupId:v,deliveryDirectives:h||null})}},l.toggleTrackModes=function(h){var p=this,g=this.media,v=this.trackId;if(!g)return;var y=s(g.textTracks),x=y.filter(function(b){return b.groupId===p.groupId});if(h===-1)[].slice.call(y).forEach(function(b){b.mode="disabled"});else{var T=x[v];T&&(T.mode="disabled")}var S=x[h];S&&(S.mode=this.subtitleDisplay?"showing":"hidden")},l.setSubtitleTrack=function(h,p){var g,v=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=h;return}if(this.trackId!==h&&this.toggleTrackModes(h),this.trackId===h&&(h===-1||(g=v[h])!==null&&g!==void 0&&g.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 x=y.id,T=y.groupId,S=T===void 0?"":T,b=y.name,_=y.type,I=y.url;this.hls.trigger(w.Events.SUBTITLE_TRACK_SWITCH,{id:x,groupId:S,name:b,type:_,url:I});var L=this.switchParams(y.url,p==null?void 0:p.details);this.loadPlaylist(L)}else this.hls.trigger(w.Events.SUBTITLE_TRACK_SWITCH,{id:h})},l.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var h=-1,p=s(this.media.textTracks),g=0;g<p.length;g++)if(p[g].mode==="hidden")h=g;else if(p[g].mode==="showing"){h=g;break}this.subtitleTrack!==h&&(this.subtitleTrack=h)},r(a,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(h){this._subtitleDisplay=h,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{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 s(t){for(var a=[],l=0;l<t.length;l++){var u=t[l];u.kind==="subtitles"&&u.label&&a.push(t[l])}return a}C.default=e},"./src/controller/timeline-controller.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"TimelineController",function(){return t});var w=A("./src/polyfills/number.ts"),m=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/utils/mp4-tools.ts"),e=A("./src/types/loader.ts"),s=A("./src/utils/logger.ts"),t=function(){function h(g){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=u(),this.captionsProperties=void 0,this.hls=g,this.config=g.config,this.Cues=g.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var v=new c.default(this,"textTrack1"),y=new c.default(this,"textTrack2"),x=new c.default(this,"textTrack3"),T=new c.default(this,"textTrack4");this.cea608Parser1=new f.default(1,v,y),this.cea608Parser2=new f.default(3,x,T)}g.on(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),g.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),g.on(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),g.on(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),g.on(m.Events.FRAG_LOADING,this.onFragLoading,this),g.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),g.on(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),g.on(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),g.on(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),g.on(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),g.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var p=h.prototype;return p.destroy=function(){var v=this.hls;v.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),v.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),v.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),v.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),v.off(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),v.off(m.Events.FRAG_LOADING,this.onFragLoading,this),v.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),v.off(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),v.off(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),v.off(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),v.off(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),v.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},p.addCues=function(v,y,x,T,S){for(var b=!1,_=S.length;_--;){var I=S[_],L=l(I[0],I[1],y,x);if(L>=0&&(I[0]=Math.min(I[0],y),I[1]=Math.max(I[1],x),b=!0,L/(x-y)>.5))return}if(b||S.push([y,x]),this.config.renderTextTracksNatively){var N=this.captionsTracks[v];this.Cues.newCue(N,y,x,T)}else{var D=this.Cues.newCue(null,y,x,T);this.hls.trigger(m.Events.CUES_PARSED,{type:"captions",cues:D,track:v})}},p.onInitPtsFound=function(v,y){var x=this,T=y.frag,S=y.id,b=y.initPTS,_=y.timescale,I=this.unparsedVttFrags;S==="main"&&(this.initPTS[T.cc]=b,this.timescale[T.cc]=_),I.length&&(this.unparsedVttFrags=[],I.forEach(function(L){x.onFragLoaded(m.Events.FRAG_LOADED,L)}))},p.getExistingTrack=function(v){var y=this.media;if(y)for(var x=0;x<y.textTracks.length;x++){var T=y.textTracks[x];if(T[v])return T}return null},p.createCaptionsTrack=function(v){this.config.renderTextTracksNatively?this.createNativeTrack(v):this.createNonNativeTrack(v)},p.createNativeTrack=function(v){if(this.captionsTracks[v])return;var y=this.captionsProperties,x=this.captionsTracks,T=this.media,S=y[v],b=S.label,_=S.languageCode,I=this.getExistingTrack(v);if(I)x[v]=I,Object(r.clearCurrentCues)(x[v]),Object(r.sendAddTrackEvent)(x[v],T);else{var L=this.createTextTrack("captions",b,_);L&&(L[v]=!0,x[v]=L)}},p.createNonNativeTrack=function(v){if(this.nonNativeCaptionsTracks[v])return;var y=this.captionsProperties[v];if(!y)return;var x=y.label,T={_id:v,label:x,kind:"captions",default:y.media?!!y.media.default:!1,closedCaptions:y.media};this.nonNativeCaptionsTracks[v]=T,this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[T]})},p.createTextTrack=function(v,y,x){var T=this.media;return T?T.addTextTrack(v,y,x):void 0},p.onMediaAttaching=function(v,y){this.media=y.media,this._cleanTracks()},p.onMediaDetaching=function(){var v=this.captionsTracks;Object.keys(v).forEach(function(y){Object(r.clearCurrentCues)(v[y]),delete v[y]}),this.nonNativeCaptionsTracks={}},p.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=u(),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())},p._cleanTracks=function(){var v=this.media;if(!v)return;var y=v.textTracks;if(y)for(var x=0;x<y.length;x++)Object(r.clearCurrentCues)(y[x])},p.onSubtitleTracksUpdated=function(v,y){var x=this;this.textTracks=[];var T=y.subtitleTracks||[],S=T.some(function(L){return L.textCodec===i.IMSC1_CODEC});if(this.config.enableWebVTT||S&&this.config.enableIMSC1){var b=this.tracks&&T&&this.tracks.length===T.length;if(this.tracks=T||[],this.config.renderTextTracksNatively){var _=this.media?this.media.textTracks:[];this.tracks.forEach(function(L,N){var D;if(N<_.length){for(var R=null,P=0;P<_.length;P++)if(a(_[P],L)){R=_[P];break}R&&(D=R)}if(D)Object(r.clearCurrentCues)(D);else{var M=x._captionsOrSubtitlesFromCharacteristics(L);D=x.createTextTrack(M,L.name,L.lang),D&&(D.mode="disabled")}D&&(D.groupId=L.groupId,x.textTracks.push(D))})}else if(!b&&this.tracks&&this.tracks.length){var I=this.tracks.map(function(L){return{label:L.name,kind:L.type.toLowerCase(),default:L.default,subtitleTrack:L}});this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:I})}}},p._captionsOrSubtitlesFromCharacteristics=function(v){var y;if((y=v.attrs)!==null&&y!==void 0&&y.CHARACTERISTICS){var x=/transcribes-spoken-dialog/gi.test(v.attrs.CHARACTERISTICS),T=/describes-music-and-sound/gi.test(v.attrs.CHARACTERISTICS);if(x&&T)return"captions"}return"subtitles"},p.onManifestLoaded=function(v,y){var x=this;this.config.enableCEA708Captions&&y.captions&&y.captions.forEach(function(T){var S=/(?:CC|SERVICE)([1-4])/.exec(T.instreamId);if(!S)return;var b="textTrack"+S[1],_=x.captionsProperties[b];if(!_)return;_.label=T.name,T.lang&&(_.languageCode=T.lang),_.media=T})},p.onFragLoading=function(v,y){var x=this.cea608Parser1,T=this.cea608Parser2,S=this.lastSn,b=this.lastPartIndex;if(!this.enabled||!(x&&T))return;if(y.frag.type===e.PlaylistLevelType.MAIN){var _,I,L=y.frag.sn,N=(_=y==null||((I=y.part)===null||I===void 0)?void 0:I.index)!=null?_:-1;L===S+1||L===S&&N===b+1||(x.reset(),T.reset()),this.lastSn=L,this.lastPartIndex=N}},p.onFragLoaded=function(v,y){var x=y.frag,T=y.payload,S=this.initPTS,b=this.unparsedVttFrags;if(x.type===e.PlaylistLevelType.SUBTITLE)if(T.byteLength){if(!Object(w.isFiniteNumber)(S[x.cc])){b.push(y),S.length&&this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:x,error:new Error("Missing initial subtitle PTS")});return}var _=x.decryptdata,I="stats"in y;if(_==null||_.key==null||_.method!=="AES-128"||I){var L=this.tracks[x.level],N=this.vttCCs;N[x.cc]||(N[x.cc]={start:x.start,prevCC:this.prevCC,new:!0},this.prevCC=x.cc),L&&L.textCodec===i.IMSC1_CODEC?this._parseIMSC1(x,T):this._parseVTTs(x,T,N)}}else this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:x,error:new Error("Empty subtitle payload")})},p._parseIMSC1=function(v,y){var x=this,T=this.hls;Object(i.parseIMSC1)(y,this.initPTS[v.cc],this.timescale[v.cc],function(S){x._appendCues(S,v.level),T.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:v})},function(S){s.logger.log("Failed to parse IMSC1: "+S),T.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:v,error:S})})},p._parseVTTs=function(v,y,x){var T,S=this,b=this.hls,_=(T=v.initSegment)!==null&&T!==void 0&&T.data?Object(n.appendUint8Array)(v.initSegment.data,new Uint8Array(y)):y;Object(o.parseWebVTT)(_,this.initPTS[v.cc],this.timescale[v.cc],x,v.cc,v.start,function(I){S._appendCues(I,v.level),b.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:v})},function(I){S._fallbackToIMSC1(v,y),s.logger.log("Failed to parse VTT cue: "+I),b.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:v,error:I})})},p._fallbackToIMSC1=function(v,y){var x=this,T=this.tracks[v.level];T.textCodec||Object(i.parseIMSC1)(y,this.initPTS[v.cc],this.timescale[v.cc],function(){T.textCodec=i.IMSC1_CODEC,x._parseIMSC1(v,y)},function(){T.textCodec="wvtt"})},p._appendCues=function(v,y){var x=this.hls;if(this.config.renderTextTracksNatively){var T=this.textTracks[y];if(!T||T.mode==="disabled")return;v.forEach(function(_){return Object(r.addCueToTrack)(T,_)})}else{var S=this.tracks[y];if(!S)return;var b=S.default?"default":"subtitles"+y;x.trigger(m.Events.CUES_PARSED,{type:"subtitles",cues:v,track:b})}},p.onFragDecrypted=function(v,y){var x=y.frag;if(x.type===e.PlaylistLevelType.SUBTITLE){if(!Object(w.isFiniteNumber)(this.initPTS[x.cc])){this.unparsedVttFrags.push(y);return}this.onFragLoaded(m.Events.FRAG_LOADED,y)}},p.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},p.onFragParsingUserdata=function(v,y){var x=this.cea608Parser1,T=this.cea608Parser2;if(!this.enabled||!(x&&T))return;for(var S=0;S<y.samples.length;S++){var b=y.samples[S].bytes;if(b){var _=this.extractCea608Data(b);x.addData(y.samples[S].pts,_[0]),T.addData(y.samples[S].pts,_[1])}}},p.onBufferFlushing=function(v,y){var x=y.startOffset,T=y.endOffset,S=y.endOffsetSubtitles,b=y.type,_=this.media;if(!_||_.currentTime<T)return;if(!b||b==="video"){var I=this.captionsTracks;Object.keys(I).forEach(function(N){return Object(r.removeCuesInRange)(I[N],x,T)})}if(this.config.renderTextTracksNatively&&(x===0&&S!==void 0)){var L=this.textTracks;Object.keys(L).forEach(function(N){return Object(r.removeCuesInRange)(L[N],x,S)})}},p.extractCea608Data=function(v){for(var y=[[],[]],x=v[0]&31,T=2,S=0;S<x;S++){var b=v[T++],_=127&v[T++],I=127&v[T++];if(_===0&&I===0)continue;var L=(4&b)!==0;if(L){var N=3&b;(N===0||N===1)&&(y[N].push(_),y[N].push(I))}}return y},h}();function a(h,p){return h&&h.label===p.name&&!(h.textTrack1||h.textTrack2)}function l(h,p,g,v){return Math.min(p,v)-Math.max(h,g)}function u(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return w});var w=function(){function m(c,o){this.subtle=void 0,this.aesIV=void 0,this.subtle=c,this.aesIV=o}var f=m.prototype;return f.decrypt=function(o,r){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},r,o)},m}()},"./src/crypt/aes-decryptor.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"removePadding",function(){return m}),A.d(C,"default",function(){return f});var w=A("./src/utils/typed-array.ts");function m(c){var o=c.byteLength,r=o&&new DataView(c.buffer).getUint8(o-1);return r?Object(w.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),s=0;s<4;s++)e[s]=n.getUint32(s*4);return e},o.initTable=function(){var i=this.sBox,n=this.invSBox,e=this.subMix,s=e[0],t=e[1],a=e[2],l=e[3],u=this.invSubMix,h=u[0],p=u[1],g=u[2],v=u[3],y=new Uint32Array(256),x=0,T=0,S=0;for(S=0;S<256;S++)S<128?y[S]=S<<1:y[S]=S<<1^283;for(S=0;S<256;S++){var b=T^T<<1^T<<2^T<<3^T<<4;b=b>>>8^b&255^99,i[x]=b,n[b]=x;var _=y[x],I=y[_],L=y[I],N=y[b]*257^b*16843008;s[x]=N<<24|N>>>8,t[x]=N<<16|N>>>16,a[x]=N<<8|N>>>24,l[x]=N,N=L*16843009^I*65537^_*257^x*16843008,h[b]=N<<24|N>>>8,p[b]=N<<16|N>>>16,g[b]=N<<8|N>>>24,v[b]=N,x?(x=_^y[y[y[L^_]]],T^=y[y[T]]):x=T=1}},o.expandKey=function(i){for(var n=this.uint8ArrayToUint32Array_(i),e=!0,s=0;s<n.length&&e;)e=n[s]===this.key[s],s++;if(e)return;this.key=n;var t=this.keySize=n.length;if(t!==4&&t!==6&&t!==8)throw new Error("Invalid aes key size="+t);var a=this.ksRows=(t+6+1)*4,l,u,h=this.keySchedule=new Uint32Array(a),p=this.invKeySchedule=new Uint32Array(a),g=this.sBox,v=this.rcon,y=this.invSubMix,x=y[0],T=y[1],S=y[2],b=y[3],_,I;for(l=0;l<a;l++){if(l<t){_=h[l]=n[l];continue}I=_,l%t===0?(I=I<<8|I>>>24,I=g[I>>>24]<<24|g[I>>>16&255]<<16|g[I>>>8&255]<<8|g[I&255],I^=v[l/t|0]<<24):t>6&&l%t===4&&(I=g[I>>>24]<<24|g[I>>>16&255]<<16|g[I>>>8&255]<<8|g[I&255]),h[l]=_=(h[l-t]^I)>>>0}for(u=0;u<a;u++)l=a-u,u&3?I=h[l]:I=h[l-4],u<4||l<=4?p[u]=I:p[u]=x[g[I>>>24]]^T[g[I>>>16&255]]^S[g[I>>>8&255]]^b[g[I&255]],p[u]=p[u]>>>0},o.networkToHostOrderSwap=function(i){return i<<24|(i&65280)<<8|(i&16711680)>>8|i>>>24},o.decrypt=function(i,n,e){for(var s=this.keySize+6,t=this.invKeySchedule,a=this.invSBox,l=this.invSubMix,u=l[0],h=l[1],p=l[2],g=l[3],v=this.uint8ArrayToUint32Array_(e),y=v[0],x=v[1],T=v[2],S=v[3],b=new Int32Array(i),_=new Int32Array(b.length),I,L,N,D,R,P,M,U,F,j,W,V,z,Y,$=this.networkToHostOrderSwap;n<b.length;){for(F=$(b[n]),j=$(b[n+1]),W=$(b[n+2]),V=$(b[n+3]),R=F^t[0],P=V^t[1],M=W^t[2],U=j^t[3],z=4,Y=1;Y<s;Y++)I=u[R>>>24]^h[P>>16&255]^p[M>>8&255]^g[U&255]^t[z],L=u[P>>>24]^h[M>>16&255]^p[U>>8&255]^g[R&255]^t[z+1],N=u[M>>>24]^h[U>>16&255]^p[R>>8&255]^g[P&255]^t[z+2],D=u[U>>>24]^h[R>>16&255]^p[P>>8&255]^g[M&255]^t[z+3],R=I,P=L,M=N,U=D,z=z+4;I=a[R>>>24]<<24^a[P>>16&255]<<16^a[M>>8&255]<<8^a[U&255]^t[z],L=a[P>>>24]<<24^a[M>>16&255]<<16^a[U>>8&255]<<8^a[R&255]^t[z+1],N=a[M>>>24]<<24^a[U>>16&255]<<16^a[R>>8&255]<<8^a[P&255]^t[z+2],D=a[U>>>24]<<24^a[R>>16&255]<<16^a[P>>8&255]<<8^a[M&255]^t[z+3],_[n]=$(I^y),_[n+1]=$(D^x),_[n+2]=$(N^T),_[n+3]=$(L^S),y=F,x=j,T=W,S=V,n=n+4}return _.buffer},c}()},"./src/crypt/decrypter.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return n});var w=A("./src/crypt/aes-crypto.ts"),m=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,l){var u=l===void 0?{}:l,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 g=self.crypto;g&&(this.subtle=g.subtle||g.webkitSubtle)}catch(v){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var s=e.prototype;return s.destroy=function(){this.observer=null},s.isSync=function(){return this.config.enableSoftwareAES},s.flush=function(){var a=this.currentResult;if(!a){this.reset();return}var l=new Uint8Array(a);return this.reset(),this.removePKCS7Padding?Object(f.removePadding)(l):l},s.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},s.decrypt=function(a,l,u,h){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(a),l,u);var p=this.flush();p&&h(p.buffer)}else this.webCryptoDecrypt(new Uint8Array(a),l,u).then(h)},s.softwareDecrypt=function(a,l,u){var h=this.currentIV,p=this.currentResult,g=this.remainderData;this.logOnce("JS AES decrypt"),g&&(a=Object(o.appendUint8Array)(g,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(l);var x=p;return this.currentResult=y.decrypt(v.buffer,0,u),this.currentIV=Object(r.sliceUint8)(v,-16).buffer,x||null},s.webCryptoDecrypt=function(a,l,u){var h=this,p=this.subtle;return(this.key!==l||!this.fastAesKey)&&(this.key=l,this.fastAesKey=new m.default(p,l)),this.fastAesKey.expandKey().then(function(g){if(!p)return Promise.reject(new Error("web crypto not initialized"));var v=new w.default(p,u);return v.decrypt(a.buffer,g)}).catch(function(g){return h.onWebCryptoError(g,a,l,u)})},s.onWebCryptoError=function(a,l,u,h){return c.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",a),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(l,u,h)},s.getValidChunk=function(a){var l=a,u=a.length-a.length%i;return u!==a.length&&(l=Object(r.sliceUint8)(a,0,u),this.remainderData=Object(r.sliceUint8)(a,u)),l},s.logOnce=function(a){if(!this.logEnabled)return;c.logger.log("[decrypter.ts]: "+a),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return w});var w=function(){function m(c,o){this.subtle=void 0,this.key=void 0,this.subtle=c,this.key=o}var f=m.prototype;return f.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},m}()},"./src/demux/aacdemuxer.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/demux/base-audio-demuxer.ts"),m=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?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},r(n,e)}var i=function(n){o(e,n);function e(t,a){var l;return l=n.call(this)||this,l.observer=void 0,l.config=void 0,l.observer=t,l.config=a,l}var s=e.prototype;return s.resetInitSegment=function(a,l,u,h){n.prototype.resetInitSegment.call(this,a,l,u,h),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:l,duration:h,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var l=c.getID3Data(a,0)||[],u=l.length,h=a.length;u<h;u++)if(m.probe(a,u))return f.logger.log("ADTS sync word found !"),!0;return!1},s.canParse=function(a,l){return m.canParse(a,l)},s.appendFrame=function(a,l,u){m.initTrackConfig(a,this.observer,l,u,a.manifestCodec);var h=m.appendFrame(a,l,u,this.basePTS,this.frameIndex);if(h&&h.missing===0)return h},e}(w.default);i.minProbeByteLength=9,C.default=i},"./src/demux/adts.ts":function(E,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 s}),A.d(C,"probe",function(){return t}),A.d(C,"initTrackConfig",function(){return a}),A.d(C,"getFrameDuration",function(){return l}),A.d(C,"parseFrameHeader",function(){return u}),A.d(C,"appendFrame",function(){return h});var w=A("./src/utils/logger.ts"),m=A("./src/errors.ts"),f=A("./src/events.ts");function c(p,g,v,y){var x,T,S,b,_=navigator.userAgent.toLowerCase(),I=y,L=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];x=((g[v+2]&192)>>>6)+1;var N=(g[v+2]&60)>>>2;if(N>L.length-1){p.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+N});return}return S=(g[v+2]&1)<<2,S|=(g[v+3]&192)>>>6,w.logger.log("manifest codec:"+y+", ADTS type:"+x+", samplingIndex:"+N),/firefox/i.test(_)?N>=6?(x=5,b=new Array(4),T=N-3):(x=2,b=new Array(2),T=N):_.indexOf("android")!==-1?(x=2,b=new Array(2),T=N):(x=5,b=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&&S===1||/vivaldi/i.test(_))||!y&&S===1)&&(x=2,b=new Array(2)),T=N)),b[0]=x<<3,b[0]|=(N&14)>>1,b[1]|=(N&1)<<7,b[1]|=S<<3,x===5&&(b[1]|=(T&14)>>1,b[2]=(T&1)<<7,b[2]|=2<<2,b[3]=0),{config:b,samplerate:L[N],channelCount:S,codec:"mp4a.40."+x,manifestCodec:I}}function o(p,g){return p[g]===255&&(p[g+1]&246)===240}function r(p,g){return p[g+1]&1?7:9}function i(p,g){return(p[g+3]&3)<<11|p[g+4]<<3|(p[g+5]&224)>>>5}function n(p,g){return g+5<p.length}function e(p,g){return g+1<p.length&&o(p,g)}function s(p,g){return n(p,g)&&o(p,g)&&i(p,g)<=p.length-g}function t(p,g){if(e(p,g)){var v=r(p,g);if(g+v>=p.length)return!1;var y=i(p,g);if(y<=v)return!1;var x=g+y;return x===p.length||e(p,x)}return!1}function a(p,g,v,y,x){if(!p.samplerate){var T=c(g,v,y,x);if(!T)return;p.config=T.config,p.samplerate=T.samplerate,p.channelCount=T.channelCount,p.codec=T.codec,p.manifestCodec=T.manifestCodec,w.logger.log("parsed codec:"+p.codec+", rate:"+T.samplerate+", channels:"+T.channelCount)}}function l(p){return 1024*9e4/p}function u(p,g){var v=r(p,g);if(g+v<=p.length){var y=i(p,g)-v;if(y>0)return{headerLength:v,frameLength:y}}}function h(p,g,v,y,x){var T=l(p.samplerate),S=y+x*T,b=u(g,v),_;if(b){var I=b.frameLength,L=b.headerLength,N=L+I,D=Math.max(0,v+N-g.length);D?(_=new Uint8Array(N-L),_.set(g.subarray(v+L,g.length),0)):_=g.subarray(v+L,v+N);var R={unit:_,pts:S};return D||p.samples.push(R),{sample:R,length:N,missing:D}}var P=g.length-v;_=new Uint8Array(P),_.set(g.subarray(v,g.length),0);var M={unit:_,pts:S};return{sample:M,length:P,missing:-1}}},"./src/demux/base-audio-demuxer.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"initPTSFn",function(){return n});var w=A("./src/polyfills/number.ts"),m=A("./src/demux/id3.ts"),f=A("./src/types/demuxer.ts"),c=A("./src/demux/dummy-demuxed-track.ts"),o=A("./src/utils/mp4-tools.ts"),r=A("./src/utils/typed-array.ts"),i=function(){function e(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null}var s=e.prototype;return s.resetInitSegment=function(a,l,u,h){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},s.resetTimeStamp=function(a){this.initPTS=a,this.resetContiguity()},s.resetContiguity=function(){this.basePTS=null,this.frameIndex=0},s.canParse=function(a,l){return!1},s.appendFrame=function(a,l,u){},s.demux=function(a,l){this.cachedData&&(a=Object(o.appendUint8Array)(this.cachedData,a),this.cachedData=null);var u=m.getID3Data(a,0),h=u?u.length:0,p,g,v=this._audioTrack,y=this._id3Track,x=u?m.getTimeStamp(u):void 0,T=a.length;for((this.basePTS===null||this.frameIndex===0&&Object(w.isFiniteNumber)(x))&&(this.basePTS=n(x,l,this.initPTS)),u&&u.length>0&&y.samples.push({pts:this.basePTS,dts:this.basePTS,data:u,type:f.MetadataSchema.audioId3}),g=this.basePTS;h<T;){if(this.canParse(a,h)){var S=this.appendFrame(v,a,h);S?(this.frameIndex++,g=S.sample.pts,h+=S.length,p=h):h=T}else m.canParse(a,h)?(u=m.getID3Data(a,h),y.samples.push({pts:g,dts:g,data:u,type:f.MetadataSchema.audioId3}),h+=u.length,p=h):h++;if(h===T&&p!==T){var b=Object(r.sliceUint8)(a,p);this.cachedData?this.cachedData=Object(o.appendUint8Array)(this.cachedData,b):this.cachedData=b}}return{audioTrack:v,videoTrack:Object(c.dummyTrack)(),id3Track:y,textTrack:Object(c.dummyTrack)()}},s.demuxSampleAes=function(a,l,u){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},s.flush=function(a){var l=this.cachedData;return l&&(this.cachedData=null,this.demux(l,0)),{audioTrack:this._audioTrack,videoTrack:Object(c.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(c.dummyTrack)()}},s.destroy=function(){},e}(),n=function(s,t,a){return Object(w.isFiniteNumber)(s)?s*90:t*9e4+(a||0)};C.default=i},"./src/demux/chunk-cache.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return w});var w=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=m(r,i);else return new Uint8Array(0);return this.reset(),n},c.reset=function(){this.chunks.length=0,this.dataLength=0},f}();function m(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(E,C,A){"use strict";A.r(C),A.d(C,"dummyTrack",function(){return w});function w(m,f){return m===void 0&&(m=""),f===void 0&&(f=9e4),{type:m,id:-1,pid:-1,inputTimeScale:f,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/utils/logger.ts"),m=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),s=Math.min(4,i);if(s===0)throw new Error("no bytes available");e.set(r.subarray(n,n+s)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s},c.skipBits=function(r){var 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&&w.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,s=0;s<r;s++)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,s,t,a,l=this.readUByte.bind(this),u=this.readBits.bind(this),h=this.readUEG.bind(this),p=this.readBoolean.bind(this),g=this.skipBits.bind(this),v=this.skipEG.bind(this),y=this.skipUEG.bind(this),x=this.skipScalingList.bind(this);l();var T=l();if(u(5),g(3),l(),y(),T===100||T===110||T===122||T===244||T===44||T===83||T===86||T===118||T===128){var S=h();if(S===3&&g(1),y(),y(),g(1),p())for(t=S!==3?8:12,a=0;a<t;a++)p()&&(a<6?x(16):x(64))}y();var b=h();if(b===0)h();else if(b===1)for(g(1),v(),v(),s=h(),a=0;a<s;a++)v();y(),g(1);var _=h(),I=h(),L=u(1);L===0&&g(1),g(1),p()&&(r=h(),i=h(),n=h(),e=h());var N=[1,1];if(p()&&p()){var D=l();switch(D){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=[l()<<8|l(),l()<<8|l()];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=m},"./src/demux/id3.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"isHeader",function(){return w}),A.d(C,"isFooter",function(){return m}),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 s}),A.d(C,"utf8ArrayToStr",function(){return h}),A.d(C,"testables",function(){return p});var w=function(x,T){return T+10<=x.length&&(x[T]===73&&x[T+1]===68&&x[T+2]===51&&(x[T+3]<255&&x[T+4]<255&&(x[T+6]<128&&x[T+7]<128&&x[T+8]<128&&x[T+9]<128)))},m=function(x,T){return T+10<=x.length&&(x[T]===51&&x[T+1]===68&&x[T+2]===73&&(x[T+3]<255&&x[T+4]<255&&(x[T+6]<128&&x[T+7]<128&&x[T+8]<128&&x[T+9]<128)))},f=function(x,T){for(var S=T,b=0;w(x,T);){b+=10;var _=c(x,T+6);b+=_,m(x,T+10)&&(b+=10),T+=b}return b>0?x.subarray(S,S+b):void 0},c=function(x,T){var S=0;return S=(x[T]&127)<<21,S|=(x[T+1]&127)<<14,S|=(x[T+2]&127)<<7,S|=x[T+3]&127,S},o=function(x,T){return w(x,T)&&c(x,T+6)+10<=x.length-T},r=function(x){for(var T=e(x),S=0;S<T.length;S++){var b=T[S];if(i(b))return u(b)}return},i=function(x){return x&&x.key==="PRIV"&&x.info==="com.apple.streaming.transportStreamTimestamp"},n=function(x){var T=String.fromCharCode(x[0],x[1],x[2],x[3]),S=c(x,4),b=10;return{type:T,size:S,data:x.subarray(b,b+S)}},e=function(x){for(var T=0,S=[];w(x,T);){var b=c(x,T+6);T+=10;for(var _=T+b;T+8<_;){var I=n(x.subarray(T)),L=s(I);L&&S.push(L),T+=I.size+10}m(x,T)&&(T+=10)}return S},s=function(x){return x.type==="PRIV"?t(x):x.type[0]==="W"?l(x):a(x)},t=function(x){if(x.size<2)return;var T=h(x.data,!0),S=new Uint8Array(x.data.subarray(T.length+1));return{key:x.type,info:T,data:S.buffer}},a=function(x){if(x.size<2)return;if(x.type==="TXXX"){var T=1,S=h(x.data.subarray(T),!0);T+=S.length+1;var b=h(x.data.subarray(T));return{key:x.type,info:S,data:b}}var _=h(x.data.subarray(1));return{key:x.type,data:_}},l=function(x){if(x.type==="WXXX"){if(x.size<2)return;var T=1,S=h(x.data.subarray(T),!0);T+=S.length+1;var b=h(x.data.subarray(T));return{key:x.type,info:S,data:b}}var _=h(x.data);return{key:x.type,data:_}},u=function(x){if(x.data.byteLength===8){var T=new Uint8Array(x.data),S=T[3]&1,b=(T[4]<<23)+(T[5]<<15)+(T[6]<<7)+T[7];return b/=45,S&&(b+=4772185884e-2),Math.round(b)}return},h=function(x,T){T===void 0&&(T=!1);var S=v();if(S){var b=S.decode(x);if(T){var _=b.indexOf("\0");return _!==-1?b.substring(0,_):b}return b.replace(/\0/g,"")}for(var I=x.length,L,N,D,R="",P=0;P<I;){if(L=x[P++],L===0&&T)return R;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:R+=String.fromCharCode(L);break;case 12:case 13:N=x[P++],R+=String.fromCharCode((L&31)<<6|N&63);break;case 14:N=x[P++],D=x[P++],R+=String.fromCharCode((L&15)<<12|(N&63)<<6|(D&63)<<0);break;default:}}return R},p={decodeTextFrame:a},g;function v(){return!g&&typeof self.TextDecoder!="undefined"&&(g=new self.TextDecoder("utf-8")),g}},"./src/demux/mp3demuxer.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/demux/base-audio-demuxer.ts"),m=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?Object.setPrototypeOf.bind():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 s=e.prototype;return s.resetInitSegment=function(a,l,u,h){n.prototype.resetInitSegment.call(this,a,l,u,h),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:l,duration:h,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var l=m.getID3Data(a,0)||[],u=l.length,h=a.length;u<h;u++)if(c.probe(a,u))return f.logger.log("MPEG Audio sync word found !"),!0;return!1},s.canParse=function(a,l){return c.canParse(a,l)},s.appendFrame=function(a,l,u){return this.basePTS===null?void 0:c.appendFrame(a,l,u,this.basePTS,this.frameIndex)},e}(w.default);i.minProbeByteLength=4,C.default=i},"./src/demux/mp4demuxer.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/polyfills/number.ts"),m=A("./src/types/demuxer.ts"),f=A("./src/utils/mp4-tools.ts"),c=A("./src/demux/dummy-demuxed-track.ts"),o=/\/emsg[-/]ID3/i,r=function(){function i(e,s){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=s}var n=i.prototype;return n.resetTimeStamp=function(){},n.resetInitSegment=function(s,t,a,l){var u=Object(f.parseInitSegment)(s),h=this.videoTrack=Object(c.dummyTrack)("video",1),p=this.audioTrack=Object(c.dummyTrack)("audio",1),g=this.txtTrack=Object(c.dummyTrack)("text",1);if(this.id3Track=Object(c.dummyTrack)("id3",1),this.timeOffset=0,u.video){var v=u.video,y=v.id,x=v.timescale,T=v.codec;h.id=y,h.timescale=g.timescale=x,h.codec=T}if(u.audio){var S=u.audio,b=S.id,_=S.timescale,I=S.codec;p.id=b,p.timescale=_,p.codec=I}g.id=f.RemuxerTrackIdConfig.text,h.sampleDuration=0,h.duration=p.duration=l},n.resetContiguity=function(){},i.probe=function(s){return s=s.length>16384?s.subarray(0,16384):s,Object(f.findBox)(s,["moof"]).length>0},n.demux=function(s,t){this.timeOffset=t;var a=s,l=this.videoTrack,u=this.txtTrack;if(this.config.progressive){this.remainderData&&(a=Object(f.appendUint8Array)(this.remainderData,s));var h=Object(f.segmentValidRange)(a);this.remainderData=h.remainder,l.samples=h.valid||new Uint8Array}else l.samples=a;var p=this.extractID3Track(l,t);return u.samples=Object(f.parseSamples)(t,l),{videoTrack:l,audioTrack:this.audioTrack,id3Track:p,textTrack:this.txtTrack}},n.flush=function(){var s=this.timeOffset,t=this.videoTrack,a=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var l=this.extractID3Track(t,this.timeOffset);return a.samples=Object(f.parseSamples)(s,t),{videoTrack:t,audioTrack:Object(c.dummyTrack)(),id3Track:l,textTrack:Object(c.dummyTrack)()}},n.extractID3Track=function(s,t){var a=this.id3Track;if(s.samples.length){var l=Object(f.findBox)(s.samples,["emsg"]);l&&l.forEach(function(u){var h=Object(f.parseEmsg)(u);if(o.test(h.schemeIdUri)){var p=Object(w.isFiniteNumber)(h.presentationTime)?h.presentationTime/h.timeScale:t+h.presentationTimeDelta/h.timeScale,g=h.payload;a.samples.push({data:g,len:g.byteLength,dts:p,pts:p,type:m.MetadataSchema.emsg})}})}return a},n.demuxSampleAes=function(s,t,a){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},n.destroy=function(){},i}();r.minProbeByteLength=1024,C.default=r},"./src/demux/mpegaudio.ts":function(E,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 s}),A.d(C,"probe",function(){return t});var w=null,m=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],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,l,u,h,p){if(u+24>l.length)return;var g=i(l,u);if(g&&u+g.frameLength<=l.length){var v=g.samplesPerFrame*9e4/g.sampleRate,y=h+p*v,x={unit:l.subarray(u,u+g.frameLength),pts:y,dts:y};return a.config=[],a.channelCount=g.channelCount,a.samplerate=g.sampleRate,a.samples.push(x),{sample:x,length:g.frameLength,missing:0}}}function i(a,l){var u=a[l+1]>>3&3,h=a[l+1]>>1&3,p=a[l+2]>>4&15,g=a[l+2]>>2&3;if(u!==1&&p!==0&&p!==15&&g!==3){var v=a[l+2]>>1&1,y=a[l+3]>>6,x=u===3?3-h:h===3?3:4,T=m[x*14+p-1]*1e3,S=u===3?0:u===2?1:2,b=f[S*3+g],_=y===3?1:2,I=c[u][h],L=o[h],N=I*8*L,D=Math.floor(I*T/b+v)*L;if(w===null){var R=navigator.userAgent||"",P=R.match(/Chrome\/(\d+)/i);w=P?parseInt(P[1]):0}var M=!!w&&w<=87;return M&&h===2&&T>=224e3&&y===0&&(a[l+3]=a[l+3]|128),{sampleRate:b,channelCount:_,frameLength:D,samplesPerFrame:N}}}function n(a,l){return a[l]===255&&(a[l+1]&224)===224&&(a[l+1]&6)!==0}function e(a,l){return l+1<a.length&&n(a,l)}function s(a,l){var u=4;return n(a,l)&&u<=a.length-l}function t(a,l){if(l+1<a.length&&n(a,l)){var u=4,h=i(a,l),p=u;h!=null&&h.frameLength&&(p=h.frameLength);var g=l+p;return g===a.length||e(a,g)}return!1}},"./src/demux/sample-aes.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/crypt/decrypter.ts"),m=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 w.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,s){var t=i[n].unit;if(t.length<=16)return;var a=t.subarray(16,t.length-t.length%16),l=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),u=this;this.decryptBuffer(l,function(h){var p=new Uint8Array(h);t.set(p,16),s||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 s=this.decrypter.isSync();if(this.decryptAacSample(i,n,e,s),!s)return}},o.getAvcEncryptedData=function(i){for(var n=Math.floor((i.length-48)/160)*16+16,e=new Int8Array(n),s=0,t=32;t<i.length-16;t+=160,s+=16)e.set(i.subarray(t,t+16),s);return e},o.getAvcDecryptedUnit=function(i,n){for(var e=new Uint8Array(n),s=0,t=32;t<i.length-16;t+=160,s+=16)i.set(e.subarray(s,s+16),t);return i},o.decryptAvcSample=function(i,n,e,s,t,a){var l=Object(m.discardEPB)(t.data),u=this.getAvcEncryptedData(l),h=this;this.decryptBuffer(u.buffer,function(p){t.data=h.getAvcDecryptedUnit(l,p),a||h.decryptAvcSamples(i,n,e+1,s)})},o.decryptAvcSamples=function(i,n,e,s){if(i instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=i.length){s();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 l=this.decrypter.isSync();if(this.decryptAvcSample(i,n,e,s,a,l),!l)return}}},c}();C.default=f},"./src/demux/transmuxer-interface.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var w=A("./node_modules/webworkify-webpack/index.js"),m=A.n(w),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),s=Object(i.getMediaSource)()||{isTypeSupported:function(){return!1}},t=function(){function a(u,h,p,g){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=g;var y=u.config,x=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,x),this.observer.on(f.Events.ERROR,x);var T={mp4:s.isTypeSupported("video/mp4"),mpeg:s.isTypeSupported("audio/mpeg"),mp3:s.isTypeSupported('audio/mp4; codecs="mp3"')},S=navigator.vendor;if(y.enableWorker&&typeof Worker!="undefined"){o.logger.log("demuxing in webworker");var b;try{b=this.worker=w("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),b.addEventListener("message",this.onwmsg),b.onerror=function(_){u.trigger(f.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(_.message+" ("+_.filename+":"+_.lineno+")")})},b.postMessage({cmd:"init",typeSupported:T,vendor:S,id:h,config:JSON.stringify(y)})}catch(_){o.logger.warn("Error in worker:",_),o.logger.error("Error while initializing DemuxerWorker, fallback to inline"),b&&self.URL.revokeObjectURL(b.objectURL),this.transmuxer=new c.default(this.observer,T,y,S,h),this.worker=null}}else this.transmuxer=new c.default(this.observer,T,y,S,h)}var l=a.prototype;return l.destroy=function(){var h=this.worker;if(h)h.removeEventListener("message",this.onwmsg),h.terminate(),this.worker=null,this.onwmsg=void 0;else{var p=this.transmuxer;p&&(p.destroy(),this.transmuxer=null)}var g=this.observer;g&&g.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null},l.push=function(h,p,g,v,y,x,T,S,b,_){var I,L,N=this;b.transmuxing.start=self.performance.now();var D=this.transmuxer,R=this.worker,P=x?x.start:y.start,M=y.decryptdata,U=this.frag,F=!(U&&y.cc===U.cc),j=!(U&&b.level===U.level),W=U?b.sn-U.sn:-1,V=this.part?b.part-this.part.index:-1,z=W===0&&b.id>1&&b.id===(U==null?void 0:U.stats.chunkCount),Y=!j&&(W===1||W===0&&(V===1||z&&V<=0)),$=self.performance.now();(j||W||y.stats.parsing.start===0)&&(y.stats.parsing.start=$),x&&(V||!Y)&&(x.stats.parsing.start=$);var ue=!(U&&((I=y.initSegment)===null||I===void 0?void 0:I.url)===((L=U.initSegment)===null||L===void 0?void 0:L.url)),ne=new c.TransmuxState(F,Y,S,j,P,ue);if(!Y||F||ue){o.logger.log("[transmuxer-interface, "+y.type+"]: Starting new transmux session for sn: "+b.sn+" p: "+b.part+" level: "+b.level+" id: "+b.id+`
|
|
|
discontinuity: `+F+`
|
|
|
trackSwitch: `+j+`
|
|
|
contiguous: `+Y+`
|
|
|
accurateTimeOffset: `+S+`
|
|
|
timeOffset: `+P+`
|
|
|
initSegmentChange: `+ue);var ge=new c.TransmuxConfig(g,v,p,T,_);this.configureTransmuxer(ge)}if(this.frag=y,this.part=x,R)R.postMessage({cmd:"demux",data:h,decryptdata:M,chunkMeta:b,state:ne},h instanceof ArrayBuffer?[h]:[]);else if(D){var Oe=D.push(h,M,b,ne);Object(c.isPromise)(Oe)?Oe.then(function(De){N.handleTransmuxComplete(De)}):this.handleTransmuxComplete(Oe)}},l.flush=function(h){var p=this;h.transmuxing.start=self.performance.now();var g=this.transmuxer,v=this.worker;if(v)v.postMessage({cmd:"flush",chunkMeta:h});else if(g){var y=g.flush(h);Object(c.isPromise)(y)?y.then(function(x){p.handleFlushResult(x,h)}):this.handleFlushResult(y,h)}},l.handleFlushResult=function(h,p){var g=this;h.forEach(function(v){g.handleTransmuxComplete(v)}),this.onFlush(p)},l.onWorkerMessage=function(h){var p=h.data,g=this.hls;switch(p.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(p.data);break}case"flush":{this.onFlush(p.data);break}case"workerLog":o.logger[p.data.logType]&&o.logger[p.data.logType](p.data.message);break;default:{p.data=p.data||{},p.data.frag=this.frag,p.data.id=this.id,g.trigger(p.event,p.data);break}}},l.configureTransmuxer=function(h){var p=this.worker,g=this.transmuxer;p?p.postMessage({cmd:"configure",config:h}):g&&g.configure(h)},l.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},a}()},"./src/demux/transmuxer-worker.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var w=A("./src/demux/transmuxer.ts"),m=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,l=function(p,g){t.postMessage({event:p,data:g})};a.on(m.Events.FRAG_DECRYPTED,l),a.on(m.Events.ERROR,l);var u=function(){var p=function(y){var x=function(S){l("workerLog",{logType:y,message:S})};f.logger[y]=x};for(var g in f.logger)p(g)};t.addEventListener("message",function(h){var p=h.data;switch(p.cmd){case"init":{var g=JSON.parse(p.config);t.transmuxer=new w.default(a,p.typeSupported,g,p.vendor,p.id),Object(f.enableLogs)(g.debug),u(),l("init",null);break}case"configure":{t.transmuxer.configure(p.config);break}case"demux":{var v=t.transmuxer.push(p.data,p.decryptdata,p.chunkMeta,p.state);Object(w.isPromise)(v)?v.then(function(T){i(t,T)}):i(t,v);break}case"flush":{var y=p.chunkMeta,x=t.transmuxer.flush(y);Object(w.isPromise)(x)?x.then(function(T){e(t,T,y)}):e(t,x,y);break}default:break}})}function i(t,a){if(s(a.remuxResult))return!1;var l=[],u=a.remuxResult,h=u.audio,p=u.video;return h&&n(l,h),p&&n(l,p),t.postMessage({event:"transmuxComplete",data:a},l),!0}function n(t,a){a.data1&&t.push(a.data1.buffer),a.data2&&t.push(a.data2.buffer)}function e(t,a,l){var u=a.reduce(function(h,p){return i(t,p)||h},!1);u||t.postMessage({event:"transmuxComplete",data:a[0]}),t.postMessage({event:"flush",data:l})}function s(t){return!t.audio&&!t.video&&!t.text&&!t.id3&&!t.initSegment}},"./src/demux/transmuxer.ts":function(E,C,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 x}),A.d(C,"TransmuxState",function(){return T});var w=A("./src/events.ts"),m=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"),s=A("./src/demux/chunk-cache.ts"),t=A("./src/utils/mp4-tools.ts"),a=A("./src/utils/logger.ts"),l;try{l=self.performance.now.bind(self.performance)}catch(S){a.logger.debug("Unable to use Performance API on this environment"),l=self.Date.now}var u=[{demux:r.default,remux:n.default},{demux:o.default,remux:e.default},{demux:c.default,remux:n.default},{demux:i.default,remux:n.default}],h=1024;u.forEach(function(S){var b=S.demux;h=Math.max(h,b.minProbeByteLength)});var p=function(){function S(_,I,L,N,D){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new s.default,this.observer=_,this.typeSupported=I,this.config=L,this.vendor=N,this.id=D}var b=S.prototype;return b.configure=function(I){this.transmuxConfig=I,this.decrypter&&this.decrypter.reset()},b.push=function(I,L,N,D){var R=this,P=N.transmuxing;P.executeStart=l();var M=new Uint8Array(I),U=this.cache,F=this.config,j=this.currentTransmuxState,W=this.transmuxConfig;D&&(this.currentTransmuxState=D);var V=g(M,L);if(V&&V.method==="AES-128"){var z=this.getDecrypter();if(F.enableSoftwareAES){var Y=z.softwareDecrypt(M,V.key.buffer,V.iv.buffer);if(!Y)return P.executeEnd=l(),v(N);M=new Uint8Array(Y)}else return this.decryptionPromise=z.webCryptoDecrypt(M,V.key.buffer,V.iv.buffer).then(function(J){var ve=R.push(J,null,N);return R.decryptionPromise=null,ve}),this.decryptionPromise}var $=D||j,ue=$.contiguous,ne=$.discontinuity,ge=$.trackSwitch,Oe=$.accurateTimeOffset,De=$.timeOffset,He=$.initSegmentChange,pe=W.audioCodec,Ue=W.videoCodec,oe=W.defaultInitPts,ee=W.duration,Xe=W.initSegmentData;if((ne||ge||He)&&this.resetInitSegment(Xe,pe,Ue,ee),(ne||He)&&this.resetInitialTimestamp(oe),ue||this.resetContiguity(),this.needsProbing(M,ne,ge)){if(U.dataLength){var se=U.flush();M=Object(t.appendUint8Array)(se,M)}this.configureTransmuxer(M,W)}var Q=this.transmux(M,V,De,Oe,N),G=this.currentTransmuxState;return G.contiguous=!0,G.discontinuity=!1,G.trackSwitch=!1,P.executeEnd=l(),Q},b.flush=function(I){var L=this,N=I.transmuxing;N.executeStart=l();var D=this.decrypter,R=this.cache,P=this.currentTransmuxState,M=this.decryptionPromise;if(M)return M.then(function(){return L.flush(I)});var U=[],F=P.timeOffset;if(D){var j=D.flush();j&&U.push(this.push(j,null,I))}var W=R.dataLength;R.reset();var V=this.demuxer,z=this.remuxer;if(!V||!z)return W>=h&&this.observer.emit(w.Events.ERROR,w.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),N.executeEnd=l(),[v(I)];var Y=V.flush(F);return y(Y)?Y.then(function($){return L.flushRemux(U,$,I),U}):(this.flushRemux(U,Y,I),U)},b.flushRemux=function(I,L,N){var D=L.audioTrack,R=L.videoTrack,P=L.id3Track,M=L.textTrack,U=this.currentTransmuxState,F=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(D,R,P,M,j,F,!0,this.id);I.push({remuxResult:W,chunkMeta:N}),N.transmuxing.executeEnd=l()},b.resetInitialTimestamp=function(I){var L=this.demuxer,N=this.remuxer;if(!L||!N)return;L.resetTimeStamp(I),N.resetTimeStamp(I)},b.resetContiguity=function(){var I=this.demuxer,L=this.remuxer;if(!I||!L)return;I.resetContiguity(),L.resetNextTimestamp()},b.resetInitSegment=function(I,L,N,D){var R=this.demuxer,P=this.remuxer;if(!R||!P)return;R.resetInitSegment(I,L,N,D),P.resetInitSegment(I,L,N)},b.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},b.transmux=function(I,L,N,D,R){var P;return L&&L.method==="SAMPLE-AES"?P=this.transmuxSampleAes(I,L,N,D,R):P=this.transmuxUnencrypted(I,N,D,R),P},b.transmuxUnencrypted=function(I,L,N,D){var R=this.demuxer.demux(I,L,!1,!this.config.progressive),P=R.audioTrack,M=R.videoTrack,U=R.id3Track,F=R.textTrack,j=this.remuxer.remux(P,M,U,F,L,N,!1,this.id);return{remuxResult:j,chunkMeta:D}},b.transmuxSampleAes=function(I,L,N,D,R){var P=this;return this.demuxer.demuxSampleAes(I,L,N).then(function(M){var U=P.remuxer.remux(M.audioTrack,M.videoTrack,M.id3Track,M.textTrack,N,D,!1,P.id);return{remuxResult:U,chunkMeta:R}})},b.configureTransmuxer=function(I,L){for(var N=this.config,D=this.observer,R=this.typeSupported,P=this.vendor,M=L.audioCodec,U=L.defaultInitPts,F=L.duration,j=L.initSegmentData,W=L.videoCodec,V,z=0,Y=u.length;z<Y;z++)if(u[z].demux.probe(I)){V=u[z];break}V||(a.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),V={demux:o.default,remux:e.default});var $=this.demuxer,ue=this.remuxer,ne=V.remux,ge=V.demux;(!ue||!(ue instanceof ne))&&(this.remuxer=new ne(D,N,R,P)),(!$||!($ instanceof ge))&&(this.demuxer=new ge(D,N,R),this.probe=ge.probe),this.resetInitSegment(j,M,W,F),this.resetInitialTimestamp(U)},b.needsProbing=function(I,L,N){return!this.demuxer||!this.remuxer||L||N},b.getDecrypter=function(){var I=this.decrypter;return I||(I=this.decrypter=new f.default(this.observer,this.config)),I},S}();function g(S,b){var _=null;return S.byteLength>0&&b!=null&&b.key!=null&&b.iv!==null&&b.method!=null&&(_=b),_}var v=function(b){return{remuxResult:{},chunkMeta:b}};function y(S){return"then"in S&&S.then instanceof Function}var x=function(b,_,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=b,this.videoCodec=_,this.initSegmentData=I,this.duration=L,this.defaultInitPts=N},T=function(b,_,I,L,N,D){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=b,this.contiguous=_,this.accurateTimeOffset=I,this.trackSwitch=L,this.timeOffset=N,this.initSegmentChange=D}},"./src/demux/tsdemuxer.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"discardEPB",function(){return g});var w=A("./src/demux/adts.ts"),m=A("./src/demux/mpegaudio.ts"),f=A("./src/demux/exp-golomb.ts"),c=A("./src/demux/sample-aes.ts"),o=A("./src/events.ts"),r=A("./src/utils/mp4-tools.ts"),i=A("./src/utils/logger.ts"),n=A("./src/errors.ts"),e=A("./src/types/demuxer.ts");function s(){return s=Object.assign?Object.assign.bind():function(v){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(v[T]=x[T])}return v},s.apply(this,arguments)}var t=function(){function v(x,T,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._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=x,this.config=T,this.typeSupported=S}v.probe=function(T){var S=v.syncOffset(T);return S<0?!1:(S&&i.logger.warn("MPEG2-TS detected but first sync word found @ offset "+S+", junk ahead ?"),!0)},v.syncOffset=function(T){for(var S=Math.min(1e3,T.length-3*188),b=0;b<S;){if(T[b]===71&&T[b+188]===71&&T[b+2*188]===71)return b;b++}return-1},v.createTrack=function(T,S){return{container:T==="video"||T==="audio"?"video/mp2t":void 0,type:T,id:r.RemuxerTrackIdConfig[T],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:T==="audio"?S:void 0}};var y=v.prototype;return y.resetInitSegment=function(T,S,b,_){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=v.createTrack("video"),this._audioTrack=v.createTrack("audio",_),this._id3Track=v.createTrack("id3"),this._txtTrack=v.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.audioCodec=S,this.videoCodec=b,this._duration=_},y.resetTimeStamp=function(){},y.resetContiguity=function(){var T=this._audioTrack,S=this._avcTrack,b=this._id3Track;T&&(T.pesData=null),S&&(S.pesData=null),b&&(b.pesData=null),this.aacOverFlow=null},y.demux=function(T,S,b,_){b===void 0&&(b=!1),_===void 0&&(_=!1),b||(this.sampleAes=null);var I,L=this._avcTrack,N=this._audioTrack,D=this._id3Track,R=this._txtTrack,P=L.pid,M=L.pesData,U=N.pid,F=D.pid,j=N.pesData,W=D.pesData,V=!1,z=this.pmtParsed,Y=this._pmtId,$=T.length;if(this.remainderData&&(T=Object(r.appendUint8Array)(this.remainderData,T),$=T.length,this.remainderData=null),$<188&&!_)return this.remainderData=T,{audioTrack:N,videoTrack:L,id3Track:D,textTrack:R};var ue=Math.max(0,v.syncOffset(T));$-=($+ue)%188,$<T.byteLength&&!_&&(this.remainderData=new Uint8Array(T.buffer,$,T.buffer.byteLength-$));for(var ne=0,ge=ue;ge<$;ge+=188)if(T[ge]===71){var Oe=!!(T[ge+1]&64),De=((T[ge+1]&31)<<8)+T[ge+2],He=(T[ge+3]&48)>>4,pe=void 0;if(He>1){if(pe=ge+5+T[ge+4],pe===ge+188)continue}else pe=ge+4;switch(De){case P:Oe&&(M&&(I=h(M))&&this.parseAVCPES(L,R,I,!1),M={data:[],size:0}),M&&(M.data.push(T.subarray(pe,ge+188)),M.size+=ge+188-pe);break;case U:if(Oe){if(j&&(I=h(j)))switch(N.segmentCodec){case"aac":this.parseAACPES(N,I);break;case"mp3":this.parseMPEGPES(N,I);break}j={data:[],size:0}}j&&(j.data.push(T.subarray(pe,ge+188)),j.size+=ge+188-pe);break;case F:Oe&&(W&&(I=h(W))&&this.parseID3PES(D,I),W={data:[],size:0}),W&&(W.data.push(T.subarray(pe,ge+188)),W.size+=ge+188-pe);break;case 0:Oe&&(pe+=T[pe]+1),Y=this._pmtId=l(T,pe);break;case Y:{Oe&&(pe+=T[pe]+1);var Ue=u(T,pe,this.typeSupported,b);P=Ue.avc,P>0&&(L.pid=P),U=Ue.audio,U>0&&(N.pid=U,N.segmentCodec=Ue.segmentCodec),F=Ue.id3,F>0&&(D.pid=F),V&&!z&&(i.logger.log("reparse from beginning"),V=!1,ge=ue-188),z=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=!0;break}}else ne++;ne>0&&this.observer.emit(o.Events.ERROR,o.Events.ERROR,{type:n.ErrorTypes.MEDIA_ERROR,details:n.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"Found "+ne+" TS packet/s that do not start with 0x47"}),L.pesData=M,N.pesData=j,D.pesData=W;var oe={audioTrack:N,videoTrack:L,id3Track:D,textTrack:R};return _&&this.extractRemainingSamples(oe),oe},y.flush=function(){var T=this.remainderData;this.remainderData=null;var S;return T?S=this.demux(T,-1,!1,!0):S={videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(S),this.sampleAes?this.decrypt(S,this.sampleAes):S},y.extractRemainingSamples=function(T){var S=T.audioTrack,b=T.videoTrack,_=T.id3Track,I=T.textTrack,L=b.pesData,N=S.pesData,D=_.pesData,R;if(L&&(R=h(L))?(this.parseAVCPES(b,I,R,!0),b.pesData=null):b.pesData=L,N&&(R=h(N))){switch(S.segmentCodec){case"aac":this.parseAACPES(S,R);break;case"mp3":this.parseMPEGPES(S,R);break}S.pesData=null}else N!=null&&N.size&&i.logger.log("last AAC PES packet truncated,might overlap between fragments"),S.pesData=N;D&&(R=h(D))?(this.parseID3PES(_,R),_.pesData=null):_.pesData=D},y.demuxSampleAes=function(T,S,b){var _=this.demux(T,b,!0,!this.config.progressive),I=this.sampleAes=new c.default(this.observer,this.config,S);return this.decrypt(_,I)},y.decrypt=function(T,S){return new Promise(function(b){var _=T.audioTrack,I=T.videoTrack;_.samples&&_.segmentCodec==="aac"?S.decryptAacSamples(_.samples,0,function(){I.samples?S.decryptAvcSamples(I.samples,0,0,function(){b(T)}):b(T)}):I.samples&&S.decryptAvcSamples(I.samples,0,0,function(){b(T)})})},y.destroy=function(){this._duration=0},y.parseAVCPES=function(T,S,b,_){var I=this,L=this.parseAVCNALu(T,b.data),N=!1,D=this.avcSample,R,P=!1;b.data=null,D&&L.length&&!T.audFound&&(p(D,T),D=this.avcSample=a(!1,b.pts,b.dts,"")),L.forEach(function(M){switch(M.type){case 1:{R=!0,D||(D=I.avcSample=a(!0,b.pts,b.dts,"")),N&&(D.debug+="NDR "),D.frame=!0;var U=M.data;if(P&&U.length>4){var F=new f.default(U).readSliceType();(F===2||F===4||F===7||F===9)&&(D.key=!0)}break}case 5:R=!0,D||(D=I.avcSample=a(!0,b.pts,b.dts,"")),N&&(D.debug+="IDR "),D.key=!0,D.frame=!0;break;case 6:{R=!0,N&&D&&(D.debug+="SEI "),Object(r.parseSEIMessageFromNALu)(g(M.data),b.pts,S.samples);break}case 7:if(R=!0,P=!0,N&&D&&(D.debug+="SPS "),!T.sps){var j=new f.default(M.data),W=j.readSPS();T.width=W.width,T.height=W.height,T.pixelRatio=W.pixelRatio,T.sps=[M.data],T.duration=I._duration;for(var V=M.data.subarray(1,4),z="avc1.",Y=0;Y<3;Y++){var $=V[Y].toString(16);$.length<2&&($="0"+$),z+=$}T.codec=z}break;case 8:R=!0,N&&D&&(D.debug+="PPS "),T.pps||(T.pps=[M.data]);break;case 9:R=!1,T.audFound=!0,D&&p(D,T),D=I.avcSample=a(!1,b.pts,b.dts,N?"AUD ":"");break;case 12:R=!0;break;default:R=!1,D&&(D.debug+="unknown NAL "+M.type+" ");break}if(D&&R){var ue=D.units;ue.push(M)}}),_&&D&&(p(D,T),this.avcSample=null)},y.getLastNalUnit=function(T){var S,b=this.avcSample,_;if((!b||b.units.length===0)&&(b=T[T.length-1]),(S=b)!==null&&S!==void 0&&S.units){var I=b.units;_=I[I.length-1]}return _},y.parseAVCNALu=function(T,S){var b=S.byteLength,_=T.naluState||0,I=_,L=[],N=0,D,R,P,M=-1,U=0;for(_===-1&&(M=0,U=S[0]&31,_=0,N=1);N<b;){if(D=S[N++],!_){_=D?0:1;continue}if(_===1){_=D?0:2;continue}if(!D)_=3;else if(D===1){if(M>=0){var F={data:S.subarray(M,N-_-1),type:U};L.push(F)}else{var j=this.getLastNalUnit(T.samples);if(j&&(I&&N<=4-I&&(j.state&&(j.data=j.data.subarray(0,j.data.byteLength-I))),R=N-_-1,R>0)){var W=new Uint8Array(j.data.byteLength+R);W.set(j.data,0),W.set(S.subarray(0,R),j.data.byteLength),j.data=W,j.state=0}}N<b?(P=S[N]&31,M=N,U=P,_=0):_=-1}else _=0}if(M>=0&&_>=0){var V={data:S.subarray(M,b),type:U,state:_};L.push(V)}if(L.length===0){var z=this.getLastNalUnit(T.samples);if(z){var Y=new Uint8Array(z.data.byteLength+S.byteLength);Y.set(z.data,0),Y.set(S,z.data.byteLength),z.data=Y}}return T.naluState=_,L},y.parseAACPES=function(T,S){var b=0,_=this.aacOverFlow,I=S.data;if(_){this.aacOverFlow=null;var L=_.missing,N=_.sample.unit.byteLength;if(L===-1){var D=new Uint8Array(N+I.byteLength);D.set(_.sample.unit,0),D.set(I,N),I=D}else{var R=N-L;_.sample.unit.set(I.subarray(0,L),R),T.samples.push(_.sample),b=_.missing}}var P,M;for(P=b,M=I.length;P<M-1&&!w.isHeader(I,P);P++);if(P!==b){var U,F;if(P<M-1?(U="AAC PES did not start with ADTS header,offset:"+P,F=!1):(U="no ADTS header found in AAC PES",F=!0),i.logger.warn("parsing error:"+U),this.observer.emit(o.Events.ERROR,o.Events.ERROR,{type:n.ErrorTypes.MEDIA_ERROR,details:n.ErrorDetails.FRAG_PARSING_ERROR,fatal:F,reason:U}),F)return}w.initTrackConfig(T,this.observer,I,P,this.audioCodec);var j;if(S.pts!==void 0)j=S.pts;else if(_){var W=w.getFrameDuration(T.samplerate);j=_.sample.pts+W}else{i.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var V=0,z;P<M;)if(z=w.appendFrame(T,I,P,j,V),P+=z.length,z.missing){this.aacOverFlow=z;break}else for(V++;P<M-1&&!w.isHeader(I,P);P++);},y.parseMPEGPES=function(T,S){var b=S.data,_=b.length,I=0,L=0,N=S.pts;if(N===void 0){i.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;L<_;)if(m.isHeader(b,L)){var D=m.appendFrame(T,b,L,N,I);if(D)L+=D.length,I++;else break}else L++},y.parseID3PES=function(T,S){if(S.pts===void 0){i.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var b=s({},S,{type:this._avcTrack?e.MetadataSchema.emsg:e.MetadataSchema.audioId3});T.samples.push(b)},v}();t.minProbeByteLength=188;function a(v,y,x,T){return{key:v,frame:!1,pts:y,dts:x,units:[],debug:T,length:0}}function l(v,y){return(v[y+10]&31)<<8|v[y+11]}function u(v,y,x,T){var S={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},b=(v[y+1]&15)<<8|v[y+2],_=y+3+b-4,I=(v[y+10]&15)<<8|v[y+11];for(y+=12+I;y<_;){var L=(v[y+1]&31)<<8|v[y+2];switch(v[y]){case 207:if(!T){i.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:S.audio===-1&&(S.audio=L);break;case 21:S.id3===-1&&(S.id3=L);break;case 219:if(!T){i.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:S.avc===-1&&(S.avc=L);break;case 3:case 4:x.mpeg!==!0&&x.mp3!==!0?i.logger.log("MPEG audio found, not supported in this browser"):S.audio===-1&&(S.audio=L,S.segmentCodec="mp3");break;case 36:i.logger.warn("Unsupported HEVC stream type found");break;default:break}y+=((v[y+3]&15)<<8|v[y+4])+5}return S}function h(v){var y=0,x,T,S,b,_,I=v.data;if(!v||v.size===0)return null;for(;I[0].length<19&&I.length>1;){var L=new Uint8Array(I[0].length+I[1].length);L.set(I[0]),L.set(I[1],I[0].length),I[0]=L,I.splice(1,1)}x=I[0];var N=(x[0]<<16)+(x[1]<<8)+x[2];if(N===1){if(T=(x[4]<<8)+x[5],T&&T>v.size-6)return null;var D=x[7];D&192&&(b=(x[9]&14)*536870912+(x[10]&255)*4194304+(x[11]&254)*16384+(x[12]&255)*128+(x[13]&254)/2,D&64?(_=(x[14]&14)*536870912+(x[15]&255)*4194304+(x[16]&254)*16384+(x[17]&255)*128+(x[18]&254)/2,b-_>60*9e4&&(i.logger.warn(Math.round((b-_)/9e4)+"s delta between PTS and DTS, align them"),b=_)):_=b),S=x[8];var R=S+9;if(v.size<=R)return null;v.size-=R;for(var P=new Uint8Array(v.size),M=0,U=I.length;M<U;M++){x=I[M];var F=x.byteLength;if(R)if(R>F){R-=F;continue}else x=x.subarray(R),F-=R,R=0;P.set(x,y),y+=F}return T&&(T-=S+3),{data:P,pts:b,dts:_,len:T}}return null}function p(v,y){if(v.units.length&&v.frame){if(v.pts===void 0){var x=y.samples,T=x.length;if(T){var S=x[T-1];v.pts=S.pts,v.dts=S.dts}else{y.dropped++;return}}y.samples.push(v)}v.debug.length&&i.logger.log(v.pts+"/"+v.dts+":"+v.debug)}function g(v){for(var y=v.byteLength,x=[],T=1;T<y-2;)v[T]===0&&v[T+1]===0&&v[T+2]===3?(x.push(T+2),T+=2):T++;if(x.length===0)return v;var S=y-x.length,b=new Uint8Array(S),_=0;for(T=0;T<S;_++,T++)_===x[0]&&(_++,x.shift()),b[T]=v[_];return b}C.default=t},"./src/errors.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"ErrorTypes",function(){return w}),A.d(C,"ErrorDetails",function(){return m});var w;(function(f){f.NETWORK_ERROR="networkError",f.MEDIA_ERROR="mediaError",f.KEY_SYSTEM_ERROR="keySystemError",f.MUX_ERROR="muxError",f.OTHER_ERROR="otherError"})(w||(w={}));var m;(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"})(m||(m={}))},"./src/events.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"Events",function(){return w});var w;(function(m){m.MEDIA_ATTACHING="hlsMediaAttaching",m.MEDIA_ATTACHED="hlsMediaAttached",m.MEDIA_DETACHING="hlsMediaDetaching",m.MEDIA_DETACHED="hlsMediaDetached",m.BUFFER_RESET="hlsBufferReset",m.BUFFER_CODECS="hlsBufferCodecs",m.BUFFER_CREATED="hlsBufferCreated",m.BUFFER_APPENDING="hlsBufferAppending",m.BUFFER_APPENDED="hlsBufferAppended",m.BUFFER_EOS="hlsBufferEos",m.BUFFER_FLUSHING="hlsBufferFlushing",m.BUFFER_FLUSHED="hlsBufferFlushed",m.MANIFEST_LOADING="hlsManifestLoading",m.MANIFEST_LOADED="hlsManifestLoaded",m.MANIFEST_PARSED="hlsManifestParsed",m.LEVEL_SWITCHING="hlsLevelSwitching",m.LEVEL_SWITCHED="hlsLevelSwitched",m.LEVEL_LOADING="hlsLevelLoading",m.LEVEL_LOADED="hlsLevelLoaded",m.LEVEL_UPDATED="hlsLevelUpdated",m.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",m.LEVELS_UPDATED="hlsLevelsUpdated",m.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",m.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",m.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",m.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",m.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",m.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",m.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",m.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",m.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",m.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",m.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",m.CUES_PARSED="hlsCuesParsed",m.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",m.INIT_PTS_FOUND="hlsInitPtsFound",m.FRAG_LOADING="hlsFragLoading",m.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",m.FRAG_LOADED="hlsFragLoaded",m.FRAG_DECRYPTED="hlsFragDecrypted",m.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",m.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",m.FRAG_PARSING_METADATA="hlsFragParsingMetadata",m.FRAG_PARSED="hlsFragParsed",m.FRAG_BUFFERED="hlsFragBuffered",m.FRAG_CHANGED="hlsFragChanged",m.FPS_DROP="hlsFpsDrop",m.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",m.ERROR="hlsError",m.DESTROYING="hlsDestroying",m.KEY_LOADING="hlsKeyLoading",m.KEY_LOADED="hlsKeyLoaded",m.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",m.BACK_BUFFER_REACHED="hlsBackBufferReached"})(w||(w={}))},"./src/hls.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return y});var w=A("./node_modules/url-toolkit/src/url-toolkit.js"),m=A.n(w),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"),s=A("./src/is-supported.ts"),t=A("./src/utils/logger.ts"),a=A("./src/config.ts"),l=A("./node_modules/eventemitter3/index.js"),u=A.n(l),h=A("./src/events.ts"),p=A("./src/errors.ts");function g(x,T){for(var S=0;S<T.length;S++){var b=T[S];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,b.key,b)}}function v(x,T,S){return T&&g(x.prototype,T),S&&g(x,S),Object.defineProperty(x,"prototype",{writable:!1}),x}var y=function(){x.isSupported=function(){return Object(s.isSupported)()};function x(S){S===void 0&&(S={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new l.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var b=this.config=Object(a.mergeConfig)(x.DefaultConfig,S);this.userConfig=S,Object(t.enableLogs)(b.debug),this._autoLevelCapping=-1,b.progressive&&Object(a.enableStreamingMode)(b);var _=b.abrController,I=b.bufferController,L=b.capLevelController,N=b.fpsController,D=this.abrController=new _(this),R=this.bufferController=new I(this),P=this.capLevelController=new L(this),M=new N(this),U=new f.default(this),F=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);P.setStreamController(z),M.setStreamController(z);var Y=[W,z];this.networkControllers=Y;var $=[U,F,D,R,P,M,j,V];this.audioTrackController=this.createController(b.audioTrackController,null,Y),this.createController(b.audioStreamController,V,Y),this.subtitleTrackController=this.createController(b.subtitleTrackController,null,Y),this.createController(b.subtitleStreamController,V,Y),this.createController(b.timelineController,null,$),this.emeController=this.createController(b.emeController,null,$),this.cmcdController=this.createController(b.cmcdController,null,$),this.latencyController=this.createController(r.default,null,$),this.coreComponents=$}var T=x.prototype;return T.createController=function(b,_,I){if(b){var L=_?new b(this,_):new b(this);return I&&I.push(L),L}return null},T.on=function(b,_,I){I===void 0&&(I=this),this._emitter.on(b,_,I)},T.once=function(b,_,I){I===void 0&&(I=this),this._emitter.once(b,_,I)},T.removeAllListeners=function(b){this._emitter.removeAllListeners(b)},T.off=function(b,_,I,L){I===void 0&&(I=this),this._emitter.off(b,_,I,L)},T.listeners=function(b){return this._emitter.listeners(b)},T.emit=function(b,_,I){return this._emitter.emit(b,_,I)},T.trigger=function(b,_){if(this.config.debug)return this.emit(b,b,_);try{return this.emit(b,b,_)}catch(I){t.logger.error("An internal error happened while handling event "+b+'. Error message: "'+I.message+'". Here is a stacktrace:',I),this.trigger(h.Events.ERROR,{type:p.ErrorTypes.OTHER_ERROR,details:p.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:b,error:I})}return!1},T.listenerCount=function(b){return this._emitter.listenerCount(b)},T.destroy=function(){t.logger.log("destroy"),this.trigger(h.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(b){return b.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(b){return b.destroy()}),this.coreComponents.length=0},T.attachMedia=function(b){t.logger.log("attachMedia"),this._media=b,this.trigger(h.Events.MEDIA_ATTACHING,{media:b})},T.detachMedia=function(){t.logger.log("detachMedia"),this.trigger(h.Events.MEDIA_DETACHING,void 0),this._media=null},T.loadSource=function(b){this.stopLoad();var _=this.media,I=this.url,L=this.url=w.buildAbsoluteURL(self.location.href,b,{alwaysNormalize:!0});t.logger.log("loadSource:"+L),_&&I&&I!==L&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(_)),this.trigger(h.Events.MANIFEST_LOADING,{url:b})},T.startLoad=function(b){b===void 0&&(b=-1),t.logger.log("startLoad("+b+")"),this.networkControllers.forEach(function(_){_.startLoad(b)})},T.stopLoad=function(){t.logger.log("stopLoad"),this.networkControllers.forEach(function(b){b.stopLoad()})},T.swapAudioCodec=function(){t.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},T.recoverMediaError=function(){t.logger.log("recoverMediaError");var b=this._media;this.detachMedia(),b&&this.attachMedia(b)},T.removeLevel=function(b,_){_===void 0&&(_=0),this.levelController.removeLevel(b,_)},v(x,[{key:"levels",get:function(){var b=this.levelController.levels;return b||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(b){t.logger.log("set currentLevel:"+b),this.loadLevel=b,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(b){t.logger.log("set nextLevel:"+b),this.levelController.manualLevel=b,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(b){t.logger.log("set loadLevel:"+b),this.levelController.manualLevel=b}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(b){this.levelController.nextLoadLevel=b}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(b){t.logger.log("set firstLevel:"+b),this.levelController.firstLevel=b}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(b){t.logger.log("set startLevel:"+b),b!==-1&&(b=Math.max(b,this.minAutoLevel)),this.levelController.startLevel=b}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(b){var _=!!b;_!==this.config.capLevelToPlayerSize&&(_?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=_)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(b){this._autoLevelCapping!==b&&(t.logger.log("set autoLevelCapping:"+b),this._autoLevelCapping=b)}},{key:"bandwidthEstimate",get:function(){var b=this.abrController.bwEstimator;return b?b.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var b=this.levels,_=this.config.minAutoBitrate;if(!b)return 0;for(var I=b.length,L=0;L<I;L++)if(b[L].maxBitrate>=_)return L;return 0}},{key:"maxAutoLevel",get:function(){var b=this.levels,_=this.autoLevelCapping,I;return _===-1&&b&&b.length?I=b.length-1:I=_,I}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(b){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,b)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"audioTracks",get:function(){var b=this.audioTrackController;return b?b.audioTracks:[]}},{key:"audioTrack",get:function(){var b=this.audioTrackController;return b?b.audioTrack:-1},set:function(b){var _=this.audioTrackController;_&&(_.audioTrack=b)}},{key:"subtitleTracks",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTrack:-1},set:function(b){var _=this.subtitleTrackController;_&&(_.subtitleTrack=b)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var b=this.subtitleTrackController;return b?b.subtitleDisplay:!1},set:function(b){var _=this.subtitleTrackController;_&&(_.subtitleDisplay=b)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(b){this.config.lowLatencyMode=b}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.2.1"}},{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 x.defaultConfig?x.defaultConfig:a.hlsDefaultConfig},set:function(b){x.defaultConfig=b}}]),x}();y.defaultConfig=void 0},"./src/is-supported.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"isSupported",function(){return f}),A.d(C,"changeTypeSupported",function(){return c});var w=A("./src/utils/mediasource-helper.ts");function m(){return self.SourceBuffer||self.WebKitSourceBuffer}function f(){var o=Object(w.getMediaSource)();if(!o)return!1;var r=m(),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=m();return typeof(r==null||((o=r.prototype)===null||o===void 0)?void 0:o.changeType)=="function"}},"./src/loader/date-range.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"DateRangeAttribute",function(){return i}),A.d(C,"DateRange",function(){return n});var w=A("./src/polyfills/number.ts"),m=A("./src/utils/attr-list.ts"),f=A("./src/utils/logger.ts");function c(){return c=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(this,arguments)}function o(e,s){for(var t=0;t<s.length;t++){var a=s[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,s,t){return s&&o(e.prototype,s),t&&o(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var i;(function(e){e.ID="ID",e.CLASS="CLASS",e.START_DATE="START-DATE",e.DURATION="DURATION",e.END_DATE="END-DATE",e.END_ON_NEXT="END-ON-NEXT",e.PLANNED_DURATION="PLANNED-DURATION",e.SCTE35_OUT="SCTE35-OUT",e.SCTE35_IN="SCTE35-IN"})(i||(i={}));var n=function(){function e(s,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){var a=t.attr;for(var l in a)if(Object.prototype.hasOwnProperty.call(s,l)&&s[l]!==a[l]){f.logger.warn('DATERANGE tag attribute: "'+l+'" does not match for tags with ID: "'+s.ID+'"'),this._badValueForSameId=l;break}s=c(new m.AttrList({}),a,s)}if(this.attr=s,this._startDate=new Date(s[i.START_DATE]),i.END_DATE in this.attr){var u=new Date(this.attr[i.END_DATE]);Object(w.isFiniteNumber)(u.getTime())&&(this._endDate=u)}}return r(e,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var t=this.duration;return t!==null?new Date(this._startDate.getTime()+t*1e3):null}},{key:"duration",get:function(){if(i.DURATION in this.attr){var t=this.attr.decimalFloatingPoint(i.DURATION);if(Object(w.isFiniteNumber)(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return i.PLANNED_DURATION in this.attr?this.attr.decimalFloatingPoint(i.PLANNED_DURATION):null}},{key:"endOnNext",get:function(){return this.attr.bool(i.END_ON_NEXT)}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&Object(w.isFiniteNumber)(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),e}()},"./src/loader/fragment-loader.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t}),A.d(C,"LoadError",function(){return l});var w=A("./src/polyfills/number.ts"),m=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(g){if(g===null||!i(g))return g;if(typeof g!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(g))return h.get(g);h.set(g,v)}function v(){return o(g,arguments,e(this).constructor)}return v.prototype=Object.create(g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),n(v,g)},c(u)}function o(u,h,p){return r()?o=Reflect.construct.bind():o=function(v,y,x){var T=[null];T.push.apply(T,y);var S=Function.bind.apply(v,T),b=new S;return x&&n(b,x.prototype),b},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?Object.setPrototypeOf.bind():function(g,v){return g.__proto__=v,g},n(u,h)}function e(u){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},e(u)}var s=Math.pow(2,17),t=function(){function u(p){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=p}var 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(g,v){var y=this,x=g.url;if(!x)return Promise.reject(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,networkDetails:null},"Fragment does not have a "+(x?"part list":"url")));this.abort();var T=this.config,S=T.fLoader,b=T.loader;return new Promise(function(_,I){y.loader&&y.loader.destroy();var L=y.loader=g.loader=S?new S(T):new b(T),N=a(g),D={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:g.sn==="initSegment"?Infinity:s};g.stats=L.stats,L.load(N,D,{onSuccess:function(P,M,U,F){y.resetLoader(g,L),_({frag:g,part:null,payload:P.data,networkDetails:F})},onError:function(P,M,U){y.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,response:P,networkDetails:U}))},onAbort:function(P,M,U){y.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,networkDetails:U}))},onTimeout:function(P,M,U){y.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,networkDetails:U}))},onProgress:function(P,M,U,F){v&&v({frag:g,part:null,payload:U,networkDetails:F})}})})},h.loadPart=function(g,v,y){var x=this;this.abort();var T=this.config,S=T.fLoader,b=T.loader;return new Promise(function(_,I){x.loader&&x.loader.destroy();var L=x.loader=g.loader=S?new S(T):new b(T),N=a(g,v),D={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:s};v.stats=L.stats,L.load(N,D,{onSuccess:function(P,M,U,F){x.resetLoader(g,L),x.updateStatsFromPart(g,v);var j={frag:g,part:v,payload:P.data,networkDetails:F};y(j),_(j)},onError:function(P,M,U){x.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,part:v,response:P,networkDetails:U}))},onAbort:function(P,M,U){g.stats.aborted=v.stats.aborted,x.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,part:v,networkDetails:U}))},onTimeout:function(P,M,U){x.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,part:v,networkDetails:U}))}})})},h.updateStatsFromPart=function(g,v){var y=g.stats,x=v.stats,T=x.total;if(y.loaded+=x.loaded,T){var S=Math.round(g.duration/v.duration),b=Math.min(Math.round(y.loaded/T),S),_=S-b,I=_*Math.round(y.loaded/b);y.total=y.loaded+I}else y.total=Math.max(y.loaded,y.total);var L=y.loading,N=x.loading;L.start?L.first+=N.first-N.start:(L.start=N.start,L.first=N.first),L.end=N.end},h.resetLoader=function(g,v){g.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,g={frag:u,part:h,responseType:"arraybuffer",url:p.url,headers:{},rangeStart:0,rangeEnd:0},v=p.byteRangeStartOffset,y=p.byteRangeEndOffset;return Object(w.isFiniteNumber)(v)&&Object(w.isFiniteNumber)(y)&&(g.rangeStart=v,g.rangeEnd=y),g}var l=function(u){f(h,u);function h(p){for(var g,v=arguments.length,y=new Array(v>1?v-1:0),x=1;x<v;x++)y[x-1]=arguments[x];return g=u.call.apply(u,[this].concat(y))||this,g.data=void 0,g.data=p,g}return h}(c(Error))},"./src/loader/fragment.ts":function(E,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 l}),A.d(C,"Part",function(){return u});var w=A("./src/polyfills/number.ts"),m=A("./node_modules/url-toolkit/src/url-toolkit.js"),f=A.n(m),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?Object.setPrototypeOf.bind():function(v,y){return v.__proto__=y,v},n(h,p)}function e(h,p){for(var g=0;g<p.length;g++){var v=p[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function s(h,p,g){return p&&e(h.prototype,p),g&&e(h,g),Object.defineProperty(h,"prototype",{writable:!1}),h}var t;(function(h){h.AUDIO="audio",h.VIDEO="video",h.AUDIOVIDEO="audiovideo"})(t||(t={}));var a=function(){function h(g){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=g}var p=h.prototype;return p.setByteRange=function(v,y){var x=v.split("@",2),T=[];x.length===1?T[0]=y?y.byteRangeEndOffset:0:T[0]=parseInt(x[1]),T[1]=parseInt(x[0])+T[0],this._byteRange=T},s(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(m.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(v){this._url=v}}]),h}(),l=function(h){i(p,h);function p(v,y){var x;return x=h.call(this,y)||this,x._decryptdata=null,x.rawProgramDateTime=null,x.programDateTime=null,x.tagList=[],x.duration=0,x.sn=0,x.levelkey=void 0,x.type=void 0,x.loader=null,x.level=-1,x.cc=0,x.startPTS=void 0,x.endPTS=void 0,x.appendedPTS=void 0,x.startDTS=void 0,x.endDTS=void 0,x.start=0,x.deltaPTS=void 0,x.maxStartPTS=void 0,x.minEndPTS=void 0,x.stats=new r.LoadStats,x.urlId=0,x.data=void 0,x.bitrateTest=!1,x.title=null,x.initSegment=null,x.type=v,x}var g=p.prototype;return g.createInitializationVector=function(y){for(var x=new Uint8Array(16),T=12;T<16;T++)x[T]=y>>8*(15-T)&255;return x},g.setDecryptDataFromLevelKey=function(y,x){var T=y;return(y==null?void 0:y.method)==="AES-128"&&y.uri&&!y.iv&&(T=o.LevelKey.fromURI(y.uri),T.method=y.method,T.iv=this.createInitializationVector(x),T.keyFormat="identity"),T},g.setElementaryStreamInfo=function(y,x,T,S,b,_){_===void 0&&(_=!1);var I=this.elementaryStreams,L=I[y];if(!L){I[y]={startPTS:x,endPTS:T,startDTS:S,endDTS:b,partial:_};return}L.startPTS=Math.min(L.startPTS,x),L.endPTS=Math.max(L.endPTS,T),L.startDTS=Math.min(L.startDTS,S),L.endDTS=Math.max(L.endDTS,b)},g.clearElementaryStreamInfo=function(){var y=this.elementaryStreams;y[t.AUDIO]=null,y[t.VIDEO]=null,y[t.AUDIOVIDEO]=null},s(p,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var y=this.sn;typeof y!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&c.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),y=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,y)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(w.isFiniteNumber)(this.programDateTime))return null;var y=Object(w.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+y*1e3}},{key:"encrypted",get:function(){var y;return!!((y=this.decryptdata)!==null&&y!==void 0&&y.keyFormat&&this.decryptdata.uri)}}]),p}(a),u=function(h){i(p,h);function p(g,v,y,x,T){var S;S=h.call(this,y)||this,S.fragOffset=0,S.duration=0,S.gap=!1,S.independent=!1,S.relurl=void 0,S.fragment=void 0,S.index=void 0,S.stats=new r.LoadStats,S.duration=g.decimalFloatingPoint("DURATION"),S.gap=g.bool("GAP"),S.independent=g.bool("INDEPENDENT"),S.relurl=g.enumeratedString("URI"),S.fragment=v,S.index=x;var b=g.enumeratedString("BYTERANGE");return b&&S.setByteRange(b,T),T&&(S.fragOffset=T.fragOffset+T.duration),S}return s(p,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var v=this.elementaryStreams;return!!(v.audio||v.video||v.audiovideo)}}]),p}(a)},"./src/loader/key-loader.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return c});var w=A("./src/events.ts"),m=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(w.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(w.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},r.onKeyLoading=function(n,e){var s=e.frag,t=s.type,a=this.loaders[t];if(!s.decryptdata){f.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var l=s.decryptdata.uri;if(l!==this.decrypturl||this.decryptkey===null){var u=this.hls.config;if(a&&(f.logger.warn("abort previous key loader for type:"+t),a.abort()),!l){f.logger.warn("key uri is falsy");return}var h=u.loader,p=s.loader=this.loaders[t]=new h(u);this.decrypturl=l,this.decryptkey=null;var g={url:l,frag:s,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(g,v,y)}else this.decryptkey&&(s.decryptdata.key=this.decryptkey,this.hls.trigger(w.Events.KEY_LOADED,{frag:s}))},r.loadsuccess=function(n,e,s){var t=s.frag;if(!t.decryptdata){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(w.Events.KEY_LOADED,{frag:t})},r.loaderror=function(n,e){var s=e.frag,t=s.loader;t&&t.abort(),delete this.loaders[s.type],this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:s,response:n})},r.loadtimeout=function(n,e){var s=e.frag,t=s.loader;t&&t.abort(),delete this.loaders[s.type],this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:s})},o}()},"./src/loader/level-details.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"LevelDetails",function(){return o});var w=A("./src/polyfills/number.ts");function m(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&&m(r.prototype,i),n&&m(r,n),Object.defineProperty(r,"prototype",{writable:!1}),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.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.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.dateRanges={},this.url=n}var i=r.prototype;return i.reloaded=function(e){if(!e){this.advanced=!0,this.updated=!0;return}var s=this.lastPartSn-e.lastPartSn,t=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!t||!!s,this.advanced=this.endSN>e.endSN||s>0||s===0&&t>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},f(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(w.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||c}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;if(e>0){var s=this.driftEnd-this.driftStart;return s*1e3/e}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return(e=this.fragments)!==null&&e!==void 0&&e.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"LevelKey",function(){return o});var w=A("./node_modules/url-toolkit/src/url-toolkit.js"),m=A.n(w);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),Object.defineProperty(r,"prototype",{writable:!1}),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(w.buildAbsoluteURL)(i,n,{alwaysNormalize:!0}):this._uri=i}return c(r,[{key:"uri",get:function(){return this._uri}}]),r}()},"./src/loader/load-stats.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"LoadStats",function(){return w});var w=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return g});var w=A("./src/polyfills/number.ts"),m=A("./node_modules/url-toolkit/src/url-toolkit.js"),f=A.n(m),c=A("./src/loader/date-range.ts"),o=A("./src/loader/fragment.ts"),r=A("./src/loader/level-details.ts"),i=A("./src/loader/level-key.ts"),n=A("./src/utils/attr-list.ts"),e=A("./src/utils/logger.ts"),s=A("./src/utils/codecs.ts"),t=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,a=/#EXT-X-MEDIA:(.*)/g,l=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),u=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),h=/\.(mp4|m4s|m4v|m4a)$/i;function p(b){var _,I;return h.test((_=(I=m.parseURL(b))===null||I===void 0?void 0:I.path)!=null?_:"")}var g=function(){function b(){}return b.findGroup=function(I,L){for(var N=0;N<I.length;N++){var D=I[N];if(D.id===L)return D}},b.convertAVC1ToAVCOTI=function(I){var L=I.split(".");if(L.length>2){var N=L.shift()+".";return N+=parseInt(L.shift()).toString(16),N+=("000"+parseInt(L.shift()).toString(16)).slice(-4),N}return I},b.resolve=function(I,L){return m.buildAbsoluteURL(L,I,{alwaysNormalize:!0})},b.parseMasterPlaylist=function(I,L){var N=[],D={},R=!1;t.lastIndex=0;for(var P;(P=t.exec(I))!=null;)if(P[1]){var M=new n.AttrList(P[1]),U={attrs:M,bitrate:M.decimalInteger("AVERAGE-BANDWIDTH")||M.decimalInteger("BANDWIDTH"),name:M.NAME,url:b.resolve(P[2],L)},F=M.decimalResolution("RESOLUTION");F&&(U.width=F.width,U.height=F.height),v((M.CODECS||"").split(/[ ,]+/).filter(function(W){return W}),U),U.videoCodec&&U.videoCodec.indexOf("avc1")!==-1&&(U.videoCodec=b.convertAVC1ToAVCOTI(U.videoCodec)),N.push(U)}else if(P[3]){var j=new n.AttrList(P[3]);j["DATA-ID"]&&(R=!0,D[j["DATA-ID"]]=j)}return{levels:N,sessionData:R?D:null}},b.parseMasterPlaylistMedia=function(I,L,N,D){D===void 0&&(D=[]);var R,P=[],M=0;for(a.lastIndex=0;(R=a.exec(I))!==null;){var U=new n.AttrList(R[1]);if(U.TYPE===N){var F={attrs:U,bitrate:0,id:M++,groupId:U["GROUP-ID"],instreamId:U["INSTREAM-ID"],name:U.NAME||U.LANGUAGE||"",type:N,default:U.bool("DEFAULT"),autoselect:U.bool("AUTOSELECT"),forced:U.bool("FORCED"),lang:U.LANGUAGE,url:U.URI?b.resolve(U.URI,L):""};if(D.length){var j=b.findGroup(D,F.groupId)||D[0];y(F,j,"audioCodec"),y(F,j,"textCodec")}P.push(F)}}return P},b.parseLevelPlaylist=function(I,L,N,D,R){var P=new r.LevelDetails(L),M=P.fragments,U=null,F=0,j=0,W=0,V=0,z=null,Y=new o.Fragment(D,L),$,ue,ne,ge=-1,Oe=!1;for(l.lastIndex=0,P.m3u8=I;($=l.exec(I))!==null;){Oe&&(Oe=!1,Y=new o.Fragment(D,L),Y.start=W,Y.sn=F,Y.cc=V,Y.level=N,U&&(Y.initSegment=U,Y.rawProgramDateTime=U.rawProgramDateTime,U.rawProgramDateTime=null));var De=$[1];if(De){Y.duration=parseFloat(De);var He=(" "+$[2]).slice(1);Y.title=He||null,Y.tagList.push(He?["INF",De,He]:["INF",De])}else if($[3])Object(w.isFiniteNumber)(Y.duration)&&(Y.start=W,ne&&(Y.levelkey=ne),Y.sn=F,Y.level=N,Y.cc=V,Y.urlId=R,M.push(Y),Y.relurl=(" "+$[3]).slice(1),T(Y,z),z=Y,W+=Y.duration,F++,j=0,Oe=!0);else if($[4]){var pe=(" "+$[4]).slice(1);z?Y.setByteRange(pe,z):Y.setByteRange(pe)}else if($[5])Y.rawProgramDateTime=(" "+$[5]).slice(1),Y.tagList.push(["PROGRAM-DATE-TIME",Y.rawProgramDateTime]),ge===-1&&(ge=M.length);else{if($=$[0].match(u),!$){e.logger.warn("No matches on slow regex match for level playlist!");continue}for(ue=1;ue<$.length&&!(typeof $[ue]!="undefined");ue++);var Ue=(" "+$[ue]).slice(1),oe=(" "+$[ue+1]).slice(1),ee=$[ue+2]?(" "+$[ue+2]).slice(1):"";switch(Ue){case"PLAYLIST-TYPE":P.type=oe.toUpperCase();break;case"MEDIA-SEQUENCE":F=P.startSN=parseInt(oe);break;case"SKIP":{var Xe=new n.AttrList(oe),se=Xe.decimalInteger("SKIPPED-SEGMENTS");if(Object(w.isFiniteNumber)(se)){P.skippedSegments=se;for(var Q=se;Q--;)M.unshift(null);F+=se}var G=Xe.enumeratedString("RECENTLY-REMOVED-DATERANGES");G&&(P.recentlyRemovedDateranges=G.split(" "));break}case"TARGETDURATION":P.targetduration=parseFloat(oe);break;case"VERSION":P.version=parseInt(oe);break;case"EXTM3U":break;case"ENDLIST":P.live=!1;break;case"#":(oe||ee)&&Y.tagList.push(ee?[oe,ee]:[oe]);break;case"DISCONTINUITY":V++,Y.tagList.push(["DIS"]);break;case"GAP":Y.tagList.push([Ue]);break;case"BITRATE":Y.tagList.push([Ue,oe]);break;case"DATERANGE":{var J=new n.AttrList(oe),ve=new c.DateRange(J,P.dateRanges[J.ID]);ve.isValid||P.skippedSegments?P.dateRanges[ve.id]=ve:e.logger.warn('Ignoring invalid DATERANGE tag: "'+oe+'"'),Y.tagList.push(["EXT-X-DATERANGE",oe]);break}case"DISCONTINUITY-SEQUENCE":V=parseInt(oe);break;case"KEY":{var de,Ce=new n.AttrList(oe),Ee=Ce.enumeratedString("METHOD"),le=Ce.URI,fe=Ce.hexadecimalInteger("IV"),xe=Ce.enumeratedString("KEYFORMATVERSIONS"),Qe=Ce.enumeratedString("KEYID"),ot=(de=Ce.enumeratedString("KEYFORMAT"))!=null?de:"identity",Je=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Je.indexOf(ot)>-1){e.logger.warn("Keyformat "+ot+" is not supported from the manifest");continue}else if(ot!=="identity")continue;Ee&&(ne=i.LevelKey.fromURL(L,le),le&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Ee)>=0&&(ne.method=Ee,ne.keyFormat=ot,Qe&&(ne.keyID=Qe),xe&&(ne.keyFormatVersions=xe),ne.iv=fe));break}case"START":{var Te=new n.AttrList(oe),et=Te.decimalFloatingPoint("TIME-OFFSET");Object(w.isFiniteNumber)(et)&&(P.startTimeOffset=et);break}case"MAP":{var ze=new n.AttrList(oe);if(Y.duration){var nt=new o.Fragment(D,L);S(nt,ze,N,ne),U=nt,Y.initSegment=U,U.rawProgramDateTime&&!Y.rawProgramDateTime&&(Y.rawProgramDateTime=U.rawProgramDateTime)}else S(Y,ze,N,ne),U=Y,Oe=!0;break}case"SERVER-CONTROL":{var Ot=new n.AttrList(oe);P.canBlockReload=Ot.bool("CAN-BLOCK-RELOAD"),P.canSkipUntil=Ot.optionalFloat("CAN-SKIP-UNTIL",0),P.canSkipDateRanges=P.canSkipUntil>0&&Ot.bool("CAN-SKIP-DATERANGES"),P.partHoldBack=Ot.optionalFloat("PART-HOLD-BACK",0),P.holdBack=Ot.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ct=new n.AttrList(oe);P.partTarget=Ct.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Tt=P.partList;Tt||(Tt=P.partList=[]);var Dt=j>0?Tt[Tt.length-1]:void 0,Be=j++,ie=new o.Part(new n.AttrList(oe),Y,L,Be,Dt);Tt.push(ie),Y.duration+=ie.duration;break}case"PRELOAD-HINT":{var X=new n.AttrList(oe);P.preloadHint=X;break}case"RENDITION-REPORT":{var Fe=new n.AttrList(oe);P.renditionReports=P.renditionReports||[],P.renditionReports.push(Fe);break}default:e.logger.warn("line parsed but not handled: "+$);break}}}z&&!z.relurl?(M.pop(),W-=z.duration,P.partList&&(P.fragmentHint=z)):P.partList&&(T(Y,z),Y.cc=V,P.fragmentHint=Y);var Ne=M.length,q=M[0],ht=M[Ne-1];if(W+=P.skippedSegments*P.targetduration,W>0&&Ne&&ht){P.averagetargetduration=W/Ne;var Rt=ht.sn;P.endSN=Rt!=="initSegment"?Rt:0,q&&(P.startCC=q.cc,q.initSegment||P.fragments.every(function(ut){return ut.relurl&&p(ut.relurl)})&&(e.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Y=new o.Fragment(D,L),Y.relurl=ht.relurl,Y.level=N,Y.sn="initSegment",q.initSegment=Y,P.needSidxRanges=!0))}else P.endSN=0,P.startCC=0;return P.fragmentHint&&(W+=P.fragmentHint.duration),P.totalduration=W,P.endCC=V,ge>0&&x(M,ge),P},b}();function v(b,_){["video","audio","text"].forEach(function(I){var L=b.filter(function(D){return Object(s.isCodecType)(D,I)});if(L.length){var N=L.filter(function(D){return D.lastIndexOf("avc1",0)===0||D.lastIndexOf("mp4a",0)===0});_[I+"Codec"]=N.length>0?N[0]:L[0],b=b.filter(function(D){return L.indexOf(D)===-1})}}),_.unknownCodecs=b}function y(b,_,I){var L=_[I];L&&(b[I]=L)}function x(b,_){for(var I=b[_],L=_;L--;){var N=b[L];if(!N)return;N.programDateTime=I.programDateTime-N.duration*1e3,I=N}}function T(b,_){b.rawProgramDateTime?b.programDateTime=Date.parse(b.rawProgramDateTime):_!=null&&_.programDateTime&&(b.programDateTime=_.endProgramDateTime),Object(w.isFiniteNumber)(b.programDateTime)||(b.programDateTime=null,b.rawProgramDateTime=null)}function S(b,_,I,L){b.relurl=_.URI,_.BYTERANGE&&b.setByteRange(_.BYTERANGE),b.level=I,b.sn="initSegment",L&&(b.levelkey=L),b.initSegment=null}},"./src/loader/playlist-loader.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/polyfills/number.ts"),m=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 l=a.type;switch(l){case i.PlaylistContextType.AUDIO_TRACK:return i.PlaylistLevelType.AUDIO;case i.PlaylistContextType.SUBTITLE_TRACK:return i.PlaylistLevelType.SUBTITLE;default:return i.PlaylistLevelType.MAIN}}function s(a,l){var u=a.url;return(u===void 0||u.indexOf("data:")===0)&&(u=l.url),u}var t=function(){function a(u){this.hls=void 0,this.loaders=Object.create(null),this.hls=u,this.registerListeners()}var l=a.prototype;return l.registerListeners=function(){var h=this.hls;h.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(m.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(m.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(m.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.unregisterListeners=function(){var h=this.hls;h.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(m.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(m.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(m.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.createInternalLoader=function(h){var p=this.hls.config,g=p.pLoader,v=p.loader,y=g||v,x=new y(p);return h.loader=x,this.loaders[h.type]=x,x},l.getInternalLoader=function(h){return this.loaders[h.type]},l.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},l.destroyInternalLoaders=function(){for(var h in this.loaders){var p=this.loaders[h];p&&p.destroy(),this.resetInternalLoader(h)}},l.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},l.onManifestLoading=function(h,p){var g=p.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:i.PlaylistContextType.MANIFEST,url:g,deliveryDirectives:null})},l.onLevelLoading=function(h,p){var g=p.id,v=p.level,y=p.url,x=p.deliveryDirectives;this.load({id:g,groupId:null,level:v,responseType:"text",type:i.PlaylistContextType.LEVEL,url:y,deliveryDirectives:x})},l.onAudioTrackLoading=function(h,p){var g=p.id,v=p.groupId,y=p.url,x=p.deliveryDirectives;this.load({id:g,groupId:v,level:null,responseType:"text",type:i.PlaylistContextType.AUDIO_TRACK,url:y,deliveryDirectives:x})},l.onSubtitleTrackLoading=function(h,p){var g=p.id,v=p.groupId,y=p.url,x=p.deliveryDirectives;this.load({id:g,groupId:v,level:null,responseType:"text",type:i.PlaylistContextType.SUBTITLE_TRACK,url:y,deliveryDirectives:x})},l.load=function(h){var p,g=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 x,T,S,b;switch(h.type){case i.PlaylistContextType.MANIFEST:x=g.manifestLoadingMaxRetry,T=g.manifestLoadingTimeOut,S=g.manifestLoadingRetryDelay,b=g.manifestLoadingMaxRetryTimeout;break;case i.PlaylistContextType.LEVEL:case i.PlaylistContextType.AUDIO_TRACK:case i.PlaylistContextType.SUBTITLE_TRACK:x=0,T=g.levelLoadingTimeOut;break;default:x=g.levelLoadingMaxRetry,T=g.levelLoadingTimeOut,S=g.levelLoadingRetryDelay,b=g.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:x,retryDelay:S,maxRetryDelay:b,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};v.load(h,N,D)},l.loadsuccess=function(h,p,g,v){if(v===void 0&&(v=null),g.isSidxRequest){this.handleSidxRequest(h,g),this.handlePlaylistLoaded(h,p,g,v);return}this.resetInternalLoader(g.type);var y=h.data;if(y.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,g,"no EXTM3U delimiter",v);return}p.parsing.start=performance.now(),y.indexOf("#EXTINF:")>0||y.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,p,g,v):this.handleMasterPlaylist(h,p,g,v)},l.loaderror=function(h,p,g){g===void 0&&(g=null),this.handleNetworkError(p,g,!1,h)},l.loadtimeout=function(h,p,g){g===void 0&&(g=null),this.handleNetworkError(p,g,!0)},l.handleMasterPlaylist=function(h,p,g,v){var y=this.hls,x=h.data,T=s(h,g),S=r.default.parseMasterPlaylist(x,T),b=S.levels,_=S.sessionData;if(!b.length){this.handleManifestParsingError(h,g,"no level found in manifest",v);return}var I=b.map(function(M){return{id:M.attrs.AUDIO,audioCodec:M.audioCodec}}),L=b.map(function(M){return{id:M.attrs.SUBTITLES,textCodec:M.textCodec}}),N=r.default.parseMasterPlaylistMedia(x,T,"AUDIO",I),D=r.default.parseMasterPlaylistMedia(x,T,"SUBTITLES",L),R=r.default.parseMasterPlaylistMedia(x,T,"CLOSED-CAPTIONS");if(N.length){var P=N.some(function(M){return!M.url});!P&&b[0].audioCodec&&!b[0].attrs.AUDIO&&(c.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),N.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}y.trigger(m.Events.MANIFEST_LOADED,{levels:b,audioTracks:N,subtitles:D,captions:R,url:T,stats:p,networkDetails:v,sessionData:_})},l.handleTrackOrLevelPlaylist=function(h,p,g,v){var y=this.hls,x=g.id,T=g.level,S=g.type,b=s(h,g),_=Object(w.isFiniteNumber)(x)?x:0,I=Object(w.isFiniteNumber)(T)?T:_,L=e(g),N=r.default.parseLevelPlaylist(h.data,b,I,L,_);if(!N.fragments.length){y.trigger(m.Events.ERROR,{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:b,reason:"no fragments found in level",level:typeof g.level=="number"?g.level:void 0});return}if(S===i.PlaylistContextType.MANIFEST){var D={attrs:new n.AttrList({}),bitrate:0,details:N,name:"",url:b};y.trigger(m.Events.MANIFEST_LOADED,{levels:[D],audioTracks:[],url:b,stats:p,networkDetails:v,sessionData:null})}if(p.parsing.end=performance.now(),N.needSidxRanges){var R,P=(R=N.fragments[0].initSegment)===null||R===void 0?void 0:R.url;this.load({url:P,isSidxRequest:!0,type:S,level:T,levelDetails:N,id:x,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}g.levelDetails=N,this.handlePlaylistLoaded(h,p,g,v)},l.handleSidxRequest=function(h,p){var g=new Uint8Array(h.data),v=Object(o.findBox)(g,["sidx"])[0];if(!v)return;var y=Object(o.parseSegmentIndex)(v);if(!y)return;var x=y.references,T=p.levelDetails;x.forEach(function(S,b){var _=S.info,I=T.fragments[b];if(I.byteRange.length===0&&I.setByteRange(String(1+_.end-_.start)+"@"+String(_.start)),I.initSegment){var L=Object(o.findBox)(g,["moov"])[0],N=L?L.length:null;I.initSegment.setByteRange(String(N)+"@0")}})},l.handleManifestParsingError=function(h,p,g,v){this.hls.trigger(m.Events.ERROR,{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:p.type===i.PlaylistContextType.MANIFEST,url:h.url,reason:g,response:h,context:p,networkDetails:v})},l.handleNetworkError=function(h,p,g,v){g===void 0&&(g=!1),c.logger.warn("[playlist-loader]: A network "+(g?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var y=f.ErrorDetails.UNKNOWN,x=!1,T=this.getInternalLoader(h);switch(h.type){case i.PlaylistContextType.MANIFEST:y=g?f.ErrorDetails.MANIFEST_LOAD_TIMEOUT:f.ErrorDetails.MANIFEST_LOAD_ERROR,x=!0;break;case i.PlaylistContextType.LEVEL:y=g?f.ErrorDetails.LEVEL_LOAD_TIMEOUT:f.ErrorDetails.LEVEL_LOAD_ERROR,x=!1;break;case i.PlaylistContextType.AUDIO_TRACK:y=g?f.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:f.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,x=!1;break;case i.PlaylistContextType.SUBTITLE_TRACK:y=g?f.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:f.ErrorDetails.SUBTITLE_LOAD_ERROR,x=!1;break}T&&this.resetInternalLoader(h.type);var S={type:f.ErrorTypes.NETWORK_ERROR,details:y,fatal:x,url:h.url,loader:T,context:h,networkDetails:p};v&&(S.response=v),this.hls.trigger(m.Events.ERROR,S)},l.handlePlaylistLoaded=function(h,p,g,v){var y=g.type,x=g.level,T=g.id,S=g.groupId,b=g.loader,_=g.levelDetails,I=g.deliveryDirectives;if(!(_!=null&&_.targetduration)){this.handleManifestParsingError(h,g,"invalid target duration",v);return}if(!b)return;_.live&&(b.getCacheAge&&(_.ageHeader=b.getCacheAge()||0),(!b.getCacheAge||isNaN(_.ageHeader))&&(_.ageHeader=0));switch(y){case i.PlaylistContextType.MANIFEST:case i.PlaylistContextType.LEVEL:this.hls.trigger(m.Events.LEVEL_LOADED,{details:_,level:x||0,id:T||0,stats:p,networkDetails:v,deliveryDirectives:I});break;case i.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(m.Events.AUDIO_TRACK_LOADED,{details:_,id:T||0,groupId:S||"",stats:p,networkDetails:v,deliveryDirectives:I});break;case i.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(m.Events.SUBTITLE_TRACK_LOADED,{details:_,id:T||0,groupId:S||"",stats:p,networkDetails:v,deliveryDirectives:I});break}},a}();C.default=t},"./src/polyfills/number.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"isFiniteNumber",function(){return w}),A.d(C,"MAX_SAFE_INTEGER",function(){return m});var w=Number.isFinite||function(f){return typeof f=="number"&&isFinite(f)},m=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(E,C,A){"use strict";A.r(C);var w=function(){function m(){}return m.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},m}();C.default=w},"./src/remux/mp4-generator.ts":function(E,C,A){"use strict";A.r(C);var w=Math.pow(2,32)-1,m=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 s=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,s,a,s,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 s=n.length,t=s;s--;)r+=n[s].byteLength;var a=new Uint8Array(r);for(a[0]=r>>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(o,4),s=0,r=8;s<t;s++)a.set(n[s],r),r+=n[s].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/(w+1)),n=Math.floor(r%(w+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/(w+1)),n=Math.floor(r%(w+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,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,s;for(n=0;n<o.sps.length;n++)e=o.sps[n],s=e.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(e));for(n=0;n<o.pps.length;n++)e=o.pps[n],s=e.byteLength,i.push(s>>>8&255),i.push(s&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,l=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,l>>8&255,l&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t,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.segmentCodec==="mp3"&&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,s=Math.floor(i/(w+1)),t=Math.floor(i%(w+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,s>>24,s>>16&255,s>>8&255,s&255,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,n&255,0,0,e>>8&255,e&255,0,0]))},f.traf=function(o,r){var i=f.sdtp(o),n=o.id,e=Math.floor(r/(w+1)),s=Math.floor(r%(w+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,s>>24,s>>16&255,s>>8&255,s&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,s=new Uint8Array(e),t,a,l,u,h,p;for(r+=8+e,s.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),t=0;t<n;t++)a=i[t],l=a.duration,u=a.size,h=a.flags,p=a.cts,s.set([l>>>24&255,l>>>16&255,l>>>8&255,l&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,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,s)},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}();m.types=void 0,m.HDLR_TYPES=void 0,m.STTS=void 0,m.STSC=void 0,m.STCO=void 0,m.STSZ=void 0,m.VMHD=void 0,m.SMHD=void 0,m.STSD=void 0,m.FTYP=void 0,m.DINF=void 0,C.default=m},"./src/remux/mp4-remuxer.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return p}),A.d(C,"normalizePts",function(){return g}),A.d(C,"flushTextTrackMetadataCueSamples",function(){return y}),A.d(C,"flushTextTrackUserdataCueSamples",function(){return x});var w=A("./src/polyfills/number.ts"),m=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?Object.assign.bind():function(b){for(var _=1;_<arguments.length;_++){var I=arguments[_];for(var L in I)Object.prototype.hasOwnProperty.call(I,L)&&(b[L]=I[L])}return b},e.apply(this,arguments)}var s=10*1e3,t=1024,a=1152,l=null,u=null,h=!1,p=function(){function b(I,L,N,D){if(D===void 0&&(D=""),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.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=I,this.config=L,this.typeSupported=N,this.ISGenerated=!1,l===null){var R=navigator.userAgent||"",P=R.match(/Chrome\/(\d+)/i);l=P?parseInt(P[1]):0}if(u===null){var M=navigator.userAgent.match(/Safari\/(\d+)/i);u=M?parseInt(M[1]):0}h=!(!!l&&l>=75||!!u&&u>=600)}var _=b.prototype;return _.destroy=function(){},_.resetTimeStamp=function(L){r.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=L},_.resetNextTimestamp=function(){r.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},_.resetInitSegment=function(){r.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},_.getVideoStartPts=function(L){var N=!1,D=L.reduce(function(R,P){var M=P.pts-R;return M<-4294967296?(N=!0,g(R,P.pts)):M>0?R:P.pts},L[0].pts);return N&&r.logger.debug("PTS rollover detected"),D},_.remux=function(L,N,D,R,P,M,U,F){var j,W,V,z,Y,$,ue=P,ne=P,ge=L.pid>-1,Oe=N.pid>-1,De=N.samples.length,He=L.samples.length>0,pe=U&&De>0||De>1,Ue=(!ge||He)&&(!Oe||pe)||this.ISGenerated||U;if(Ue){this.ISGenerated||(V=this.generateIS(L,N,P));var oe=this.isVideoContiguous,ee=-1,Xe;if(pe&&(ee=v(N.samples),!oe&&this.config.forceKeyFrameOnDiscontinuity))if($=!0,ee>0){r.logger.warn("[mp4-remuxer]: Dropped "+ee+" out of "+De+" video samples due to a missing keyframe");var se=this.getVideoStartPts(N.samples);N.samples=N.samples.slice(ee),N.dropped+=ee,ne+=(N.samples[0].pts-se)/N.inputTimeScale,Xe=ne}else ee===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+De+" video samples"),$=!1);if(this.ISGenerated){if(He&&pe){var Q=this.getVideoStartPts(N.samples),G=g(L.samples[0].pts,Q)-Q,J=G/N.inputTimeScale;ue+=Math.max(0,J),ne+=Math.max(0,-J)}if(He){if(L.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),V=this.generateIS(L,N,P)),W=this.remuxAudio(L,ue,this.isAudioContiguous,M,Oe||pe||F===i.PlaylistLevelType.AUDIO?ne:void 0),pe){var ve=W?W.endPTS-W.startPTS:0;N.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),V=this.generateIS(L,N,P)),j=this.remuxVideo(N,ne,oe,ve)}}else pe&&(j=this.remuxVideo(N,ne,oe,0));j&&(j.firstKeyFrame=ee,j.independent=ee!==-1,j.firstKeyFramePTS=Xe)}}return this.ISGenerated&&(D.samples.length&&(Y=y(D,P,this._initPTS,this._initDTS)),R.samples.length&&(z=x(R,P,this._initPTS))),{audio:W,video:j,initSegment:V,independent:$,text:z,id3:Y}},_.generateIS=function(L,N,D){var R=L.samples,P=N.samples,M=this.typeSupported,U={},F=!Object(w.isFiniteNumber)(this._initPTS),j="audio/mp4",W,V,z;if(F&&(W=V=Infinity),L.config&&R.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":M.mpeg?(j="audio/mpeg",L.codec=""):M.mp3&&(L.codec="mp3");break}U.audio={id:"audio",container:j,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&M.mpeg?new Uint8Array(0):f.default.initSegment([L]),metadata:{channelCount:L.channelCount}},F&&(z=L.inputTimeScale,W=V=R[0].pts-Math.round(z*D))}if(N.sps&&N.pps&&P.length&&(N.timescale=N.inputTimeScale,U.video={id:"main",container:"video/mp4",codec:N.codec,initSegment:f.default.initSegment([N]),metadata:{width:N.width,height:N.height}},F)){z=N.inputTimeScale;var Y=this.getVideoStartPts(P),$=Math.round(z*D);V=Math.min(V,g(P[0].dts,Y)-$),W=Math.min(W,Y-$)}if(Object.keys(U).length)return this.ISGenerated=!0,F&&(this._initPTS=W,this._initDTS=V),{tracks:U,initPTS:W,timescale:z}},_.remuxVideo=function(L,N,D,R){var P=L.inputTimeScale,M=L.samples,U=[],F=M.length,j=this._initPTS,W=this.nextAvcDts,V=8,z=this.videoSampleDuration,Y,$,ue=Number.POSITIVE_INFINITY,ne=Number.NEGATIVE_INFINITY,ge=0,Oe=!1;if(!D||W===null){var De=N*P,He=M[0].pts-g(M[0].dts,M[0].pts);W=De-He}for(var pe=0;pe<F;pe++){var Ue=M[pe];if(Ue.pts=g(Ue.pts-j,W),Ue.dts=g(Ue.dts-j,W),Ue.dts>Ue.pts){var oe=9e4*.2;ge=Math.max(Math.min(ge,Ue.pts-Ue.dts),-1*oe)}Ue.dts<M[pe>0?pe-1:pe].dts&&(Oe=!0)}Oe&&M.sort(function(Ht,dt){var Hr=Ht.dts-dt.dts,dn=Ht.pts-dt.pts;return Hr||dn}),Y=M[0].dts,$=M[M.length-1].dts;var ee=$-Y,Xe=ee?Math.round(ee/(F-1)):z||L.inputTimeScale/30;if(ge<0){if(ge<Xe*-2){r.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-Xe,!0)+" ms");for(var se=ge,Q=0;Q<F;Q++)M[Q].dts=se=Math.max(se,M[Q].pts-Xe),M[Q].pts=Math.max(se,M[Q].pts)}else{r.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(ge,!0)+" ms to overcome this issue");for(var G=0;G<F;G++)M[G].dts=M[G].dts+ge}Y=M[0].dts}if(D){var J=Y-W,ve=J>Xe,de=J<-1;if(ve||de){ve?r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(J,!0)+" ms ("+J+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-J,!0)+" ms ("+J+"dts) overlapping between fragments detected"),Y=W;var Ce=M[0].pts-J;M[0].dts=Y,M[0].pts=Ce,r.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(Ce,!0)+"/"+Object(n.toMsFromMpegTsClock)(Y,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(J,!0)+" ms")}}h&&(Y=Math.max(0,Y));for(var Ee=0,le=0,fe=0;fe<F;fe++){for(var xe=M[fe],Qe=xe.units,ot=Qe.length,Je=0,Te=0;Te<ot;Te++)Je+=Qe[Te].data.length;le+=Je,Ee+=ot,xe.length=Je,xe.dts=Math.max(xe.dts,Y),xe.pts=Math.max(xe.pts,xe.dts,0),ue=Math.min(xe.pts,ue),ne=Math.max(xe.pts,ne)}$=M[F-1].dts;var et=le+4*Ee+8,ze;try{ze=new Uint8Array(et)}catch(Ht){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:et,reason:"fail allocating video mdat "+et});return}var nt=new DataView(ze.buffer);nt.setUint32(0,et),ze.set(f.default.types.mdat,4);for(var Ot=!1,Ct=0;Ct<F;Ct++){for(var Tt=M[Ct],Dt=Tt.units,Be=0,ie=0,X=Dt.length;ie<X;ie++){var Fe=Dt[ie],Ne=Fe.data,q=Fe.data.byteLength;nt.setUint32(V,q),V+=4,ze.set(Ne,V),V+=q,Be+=4+q}if(Ct<F-1)z=M[Ct+1].dts-Tt.dts;else{var ht=this.config,Rt=Ct>0?Tt.dts-M[Ct-1].dts:Xe;if(ht.stretchShortVideoTrack&&this.nextAudioPts!==null){var ut=Math.floor(ht.maxBufferHole*P),Xt=(R?ue+R*P:this.nextAudioPts)-Tt.pts;Xt>ut?(z=Xt-Rt,z<0?z=Rt:Ot=!0,r.logger.log("[mp4-remuxer]: It is approximately "+Xt/90+" ms to the next segment; using duration "+z/90+" ms for the last video frame.")):z=Rt}else z=Rt}var or=Math.round(Tt.pts-Tt.dts);U.push(new T(Tt.key,z,Be,or))}if(U.length&&l&&l<70){var Zr=U[0].flags;Zr.dependsOn=2,Zr.isNonSync=0}console.assert(z!==null,"mp4SampleDuration must be computed"),z=Ot||!z?Xe:z,this.nextAvcDts=W=$+z,this.videoSampleDuration=z,this.isVideoContiguous=!0;var ar=f.default.moof(L.sequenceNumber++,Y,e({},L,{samples:U})),dr="video",er={data1:ar,data2:ze,startPTS:ue/P,endPTS:(ne+z)/P,startDTS:Y/P,endDTS:W/P,type:dr,hasAudio:!1,hasVideo:!0,nb:U.length,dropped:L.dropped};return L.samples=[],L.dropped=0,console.assert(ze.length,"MDAT length must not be zero"),er},_.remuxAudio=function(L,N,D,R,P){var M=L.inputTimeScale,U=L.samplerate?L.samplerate:M,F=M/U,j=L.segmentCodec==="aac"?t:a,W=j*F,V=this._initPTS,z=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,Y=[],$=P!==void 0,ue=L.samples,ne=z?0:8,ge=this.nextAudioPts||-1,Oe=N*M;if(this.isAudioContiguous=D=D||ue.length&&ge>0&&(R&&Math.abs(Oe-ge)<9e3||Math.abs(g(ue[0].pts-V,Oe)-ge)<20*W),ue.forEach(function(X){X.pts=g(X.pts-V,Oe)}),!D||ge<0){if(ue=ue.filter(function(X){return X.pts>=0}),!ue.length)return;P===0?ge=0:R&&!$?ge=Math.max(0,Oe):ge=ue[0].pts}if(L.segmentCodec==="aac")for(var De=this.config.maxAudioFramesDrift,He=0,pe=ge;He<ue.length;He++){var Ue=ue[He],oe=Ue.pts,ee=oe-pe,Xe=Math.abs(1e3*ee/M);if(ee<=-De*W&&$)He===0&&(r.logger.warn("Audio frame @ "+(oe/M).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*ee/M)+" ms."),this.nextAudioPts=ge=pe=oe);else if(ee>=De*W&&Xe<s&&$){var se=Math.round(ee/W);pe=oe-se*W,pe<0&&(se--,pe+=W),He===0&&(this.nextAudioPts=ge=pe),r.logger.warn("[mp4-remuxer]: Injecting "+se+" audio frame @ "+(pe/M).toFixed(3)+"s due to "+Math.round(1e3*ee/M)+" ms gap.");for(var Q=0;Q<se;Q++){var G=Math.max(pe,0),J=m.default.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);J||(r.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),J=Ue.unit.subarray()),ue.splice(He,0,{unit:J,pts:G}),pe+=W,He++}}Ue.pts=pe,pe+=W}for(var ve=null,de=null,Ce,Ee=0,le=ue.length;le--;)Ee+=ue[le].unit.byteLength;for(var fe=0,xe=ue.length;fe<xe;fe++){var Qe=ue[fe],ot=Qe.unit,Je=Qe.pts;if(de!==null){var Te=Y[fe-1];Te.duration=Math.round((Je-de)/F)}else if(D&&L.segmentCodec==="aac"&&(Je=ge),ve=Je,Ee>0){Ee+=ne;try{Ce=new Uint8Array(Ee)}catch(X){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ee,reason:"fail allocating audio mdat "+Ee});return}if(!z){var et=new DataView(Ce.buffer);et.setUint32(0,Ee),Ce.set(f.default.types.mdat,4)}}else return;Ce.set(ot,ne);var ze=ot.byteLength;ne+=ze,Y.push(new T(!0,j,ze,0)),de=Je}var nt=Y.length;if(!nt)return;var Ot=Y[Y.length-1];this.nextAudioPts=ge=de+F*Ot.duration;var Ct=z?new Uint8Array(0):f.default.moof(L.sequenceNumber++,ve/F,e({},L,{samples:Y}));L.samples=[];var Tt=ve/M,Dt=ge/M,Be="audio",ie={data1:Ct,data2:Ce,startPTS:Tt,endPTS:Dt,startDTS:Tt,endDTS:Dt,type:Be,hasAudio:!0,hasVideo:!1,nb:nt};return this.isAudioContiguous=!0,console.assert(Ce.length,"MDAT length must not be zero"),ie},_.remuxEmptyAudio=function(L,N,D,R){var P=L.inputTimeScale,M=L.samplerate?L.samplerate:P,U=P/M,F=this.nextAudioPts,j=(F!==null?F:R.startDTS*P)+this._initDTS,W=R.endDTS*P+this._initDTS,V=U*t,z=Math.ceil((W-j)/V),Y=m.default.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!Y){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var $=[],ue=0;ue<z;ue++){var ne=j+ue*V;$.push({unit:Y,pts:ne,dts:ne})}return L.samples=$,this.remuxAudio(L,N,D,!1)},b}();function g(b,_){var I;if(_===null)return b;for(_<b?I=-8589934592:I=8589934592;Math.abs(b-_)>4294967296;)b+=I;return b}function v(b){for(var _=0;_<b.length;_++)if(b[_].key)return _;return-1}function y(b,_,I,L){var N=b.samples.length;if(!N)return;for(var D=b.inputTimeScale,R=0;R<N;R++){var P=b.samples[R];P.pts=g(P.pts-I,_*D)/D,P.dts=g(P.dts-L,_*D)/D}var M=b.samples;return b.samples=[],{samples:M}}function x(b,_,I){var L=b.samples.length;if(!L)return;for(var N=b.inputTimeScale,D=0;D<L;D++){var R=b.samples[D];R.pts=g(R.pts-I,_*N)/N}b.samples.sort(function(M,U){return M.pts-U.pts});var P=b.samples;return b.samples=[],{samples:P}}var T=function(_,I,L,N){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=I,this.size=L,this.cts=N,this.flags=new S(_)},S=function(_){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=_?2:1,this.isNonSync=_?0:1}},"./src/remux/passthrough-remuxer.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/polyfills/number.ts"),m=A("./src/remux/mp4-remuxer.ts"),f=A("./src/utils/mp4-tools.ts"),c=A("./src/loader/fragment.ts"),o=A("./src/utils/logger.ts"),r=function(){function e(){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 s=e.prototype;return s.destroy=function(){},s.resetTimeStamp=function(a){this.initPTS=a,this.lastEndDTS=null},s.resetNextTimestamp=function(){this.lastEndDTS=null},s.resetInitSegment=function(a,l,u){this.audioCodec=l,this.videoCodec=u,this.generateInitSegment(a),this.emitInitSegment=!0},s.generateInitSegment=function(a){var l=this.audioCodec,u=this.videoCodec;if(!a||!a.byteLength){this.initTracks=void 0,this.initData=void 0;return}var h=this.initData=Object(f.parseInitSegment)(a);l||(l=n(h.audio,c.ElementaryStreamTypes.AUDIO)),u||(u=n(h.video,c.ElementaryStreamTypes.VIDEO));var p={};h.audio&&h.video?p.audiovideo={container:"video/mp4",codec:l+","+u,initSegment:a,id:"main"}:h.audio?p.audio={container:"audio/mp4",codec:l,initSegment:a,id:"audio"}:h.video?p.video={container:"video/mp4",codec:u,initSegment:a,id:"main"}:o.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=p},s.remux=function(a,l,u,h,p){var g,v=this.initPTS,y=this.lastEndDTS,x={audio:void 0,video:void 0,text:h,id3:u,initSegment:void 0};Object(w.isFiniteNumber)(y)||(y=this.lastEndDTS=p||0);var T=l.samples;if(!T||!T.length)return x;var S={initPTS:void 0,timescale:1},b=this.initData;if((!b||!b.length)&&(this.generateInitSegment(T),b=this.initData),!b||!b.length)return o.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),x;this.emitInitSegment&&(S.tracks=this.initTracks,this.emitInitSegment=!1),Object(w.isFiniteNumber)(v)||(this.initPTS=S.initPTS=v=i(b,T,y));var _=Object(f.getDuration)(T,b),I=y,L=_+I;Object(f.offsetStartDTS)(b,T,v),_>0?this.lastEndDTS=L:(o.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var N=!!b.audio,D=!!b.video,R="";N&&(R+="audio"),D&&(R+="video");var P={data1:T,startPTS:I,startDTS:I,endPTS:L,endDTS:L,type:R,hasAudio:N,hasVideo:D,nb:1,dropped:0};x.audio=P.type==="audio"?P:void 0,x.video=P.type!=="audio"?P:void 0,x.initSegment=S;var M=(g=this.initPTS)!=null?g:0;return x.id3=Object(m.flushTextTrackMetadataCueSamples)(u,p,M,M),h.samples.length&&(x.text=Object(m.flushTextTrackUserdataCueSamples)(h,p,M)),x},e}(),i=function(s,t,a){return Object(f.getStartDTS)(s,t)-a};function n(e,s){var t=e==null?void 0:e.codec;return t&&t.length>4?t:t==="hvc1"||t==="hev1"?"hvc1.1.c.L120.90":t==="av01"?"av01.0.04M.08":t==="avc1"||s===c.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}C.default=r},"./src/task-loop.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return w});var w=function(){function m(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var f=m.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(){},m}()},"./src/types/cmcd.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"CMCDVersion",function(){return w}),A.d(C,"CMCDObjectType",function(){return m}),A.d(C,"CMCDStreamingFormat",function(){return f}),A.d(C,"CMCDStreamType",function(){return c});var w=1,m;(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"})(m||(m={}));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/demuxer.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"MetadataSchema",function(){return w});var w;(function(m){m.audioId3="org.id3",m.dateRange="com.apple.quicktime.HLS",m.emsg="https://aomedia.org/emsg/ID3"})(w||(w={}))},"./src/types/level.ts":function(E,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 w(i,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function m(i,n,e){return n&&w(i.prototype,n),e&&w(i,e),Object.defineProperty(i,"prototype",{writable:!1}),i}var f;(function(i){i.No="",i.Yes="YES",i.v2="v2"})(f||(f={}));function c(i,n){var e=i.canSkipUntil,s=i.canSkipDateRanges,t=i.endSN,a=n!==void 0?n-t:0;return e&&a<e?s?f.v2:f.Yes:f.No}var o=function(){function i(e,s,t){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=s,this.skip=t}var n=i.prototype;return n.addDirectives=function(s){var t=new self.URL(s);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.toString()},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 m(i,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(e){var s=e%this.url.length;this._urlId!==s&&(this.details=void 0,this._urlId=s)}}]),i}()},"./src/types/loader.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"PlaylistContextType",function(){return w}),A.d(C,"PlaylistLevelType",function(){return m});var w;(function(f){f.MANIFEST="manifest",f.LEVEL="level",f.AUDIO_TRACK="audioTrack",f.SUBTITLE_TRACK="subtitleTrack"})(w||(w={}));var m;(function(f){f.MAIN="main",f.AUDIO="audio",f.SUBTITLE="subtitle"})(m||(m={}))},"./src/types/transmuxer.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"ChunkMetadata",function(){return w});var w=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=m(),this.buffering={audio:m(),video:m(),audiovideo:m()},this.level=c,this.sn=o,this.id=r,this.size=i,this.part=n,this.partial=e};function m(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"AttrList",function(){return f});var w=/^(\d+)x(\d+)$/,m=/\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),s=0;s<n.length/2;s++)e[s]=parseInt(n.slice(s*2,s*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=w.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={},s='"';for(m.lastIndex=0;(n=m.exec(i))!==null;){var t=n[2];t.indexOf(s)===0&&t.lastIndexOf(s)===t.length-1&&(t=t.slice(1,-1)),e[n[1]]=t}return e},c}()},"./src/utils/binary-search.ts":function(E,C,A){"use strict";A.r(C);var w={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=w},"./src/utils/buffer-helper.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"BufferHelper",function(){return f});var w=A("./src/utils/logger.ts"),m={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(s){}return!1},c.bufferInfo=function(r,i,n){try{if(r){var e=c.getBuffered(r),s=[],t;for(t=0;t<e.length;t++)s.push({start:e.start(t),end:e.end(t)});return this.bufferedInfo(s,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(x,T){var S=x.start-T.start;return S||T.end-x.end});var e=[];if(n)for(var s=0;s<r.length;s++){var t=e.length;if(t){var a=e[t-1].end;r[s].start-a<n?r[s].end>a&&(e[t-1].end=r[s].end):e.push(r[s])}else e.push(r[s])}else e=r;for(var l=0,u,h=i,p=i,g=0;g<e.length;g++){var v=e[g].start,y=e[g].end;if(i+n>=v&&i<y)h=v,p=y,l=p-i;else if(i+n<v){u=v;break}}return{len:l,start:h||0,end:p||0,nextStart:u}},c.getBuffered=function(r){try{return r.buffered}catch(i){return w.logger.log("failed to get media.buffered",i),m}},c}()},"./src/utils/cea-608-parser.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"Row",function(){return p}),A.d(C,"CaptionScreen",function(){return g});var w=A("./src/utils/logger.ts"),m={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},f=function(_){var I=_;return m.hasOwnProperty(_)&&(I=m[_]),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},s=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],t;(function(b){b[b.ERROR=0]="ERROR",b[b.TEXT=1]="TEXT",b[b.WARNING=2]="WARNING",b[b.INFO=2]="INFO",b[b.DEBUG=3]="DEBUG",b[b.DATA=3]="DATA"})(t||(t={}));var a=function(){function b(){this.time=null,this.verboseLevel=t.ERROR}var _=b.prototype;return _.log=function(L,N){this.verboseLevel>=L&&w.logger.log(this.time+" ["+L+"] "+N)},b}(),l=function(_){for(var I=[],L=0;L<_.length;L++)I.push(_[L].toString(16));return I},u=function(){function b(I,L,N,D,R){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=D||"black",this.flash=R||!1}var _=b.prototype;return _.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},_.setStyles=function(L){for(var N=["foreground","underline","italics","background","flash"],D=0;D<N.length;D++){var R=N[D];L.hasOwnProperty(R)&&(this[R]=L[R])}},_.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},_.equals=function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash},_.copy=function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash},_.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},b}(),h=function(){function b(I,L,N,D,R,P){this.uchar=void 0,this.penState=void 0,this.uchar=I||" ",this.penState=new u(L,N,D,R,P)}var _=b.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()},b}(),p=function(){function b(I){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var L=0;L<o;L++)this.chars.push(new h);this.logger=I,this.pos=0,this.currPenState=new u}var _=b.prototype;return _.equals=function(L){for(var N=!0,D=0;D<o;D++)if(!this.chars[D].equals(L.chars[D])){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 D=this.pos+1;D<N+1;D++)this.chars[D].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,D=0;D<o;D++){var R=this.chars[D].uchar;R!==" "&&(N=!1),L.push(R)}return N?"":L.join("")},_.setPenStyles=function(L){this.currPenState.setStyles(L);var N=this.chars[this.pos];N.setPenState(this.currPenState)},b}(),g=function(){function b(I){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var L=0;L<c;L++)this.rows.push(new p(I));this.logger=I,this.currRow=c-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var _=b.prototype;return _.reset=function(){for(var L=0;L<c;L++)this.rows[L].clear();this.currRow=c-1},_.equals=function(L){for(var N=!0,D=0;D<c;D++)if(!this.rows[D].equals(L.rows[D])){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 D=0;D<c;D++)this.rows[D].clear();var R=this.currRow+1-this.nrRollUpRows,P=this.lastOutputScreen;if(P){var M=P.rows[R].cueStartTime,U=this.logger.time;if(M&&U!==null&&M<U)for(var F=0;F<this.nrRollUpRows;F++)this.rows[N-this.nrRollUpRows+F+1].copy(P.rows[R+F])}}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=[],D="",R=-1,P=0;P<c;P++){var M=this.rows[P].getTextString();M&&(R=P+1,L?N.push("Row "+R+": '"+M+"'"):N.push(M.trim()))}return N.length>0&&(L?D="["+N.join(" | ")+"]":D=N.join(`
|
|
|
`)),D},_.getTextAndFormat=function(){return this.rows},b}(),v=function(){function b(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 g(N),this.nonDisplayedMemory=new g(N),this.lastOutputScreen=new g(N),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=N}var _=b.prototype;return _.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},_.getHandler=function(){return this.outputFilter},_.setHandler=function(L){this.outputFilter=L},_.setPAC=function(L){this.writeScreen.setPAC(L)},_.setBkgData=function(L){this.writeScreen.setBkgData(L)},_.setMode=function(L){if(L===this.mode)return;this.mode=L,this.logger.log(t.INFO,"MODE="+L),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=L},_.insertChars=function(L){for(var N=0;N<L.length;N++)this.writeScreen.insertChar(L[N]);var D=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(t.INFO,D+": "+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 D=Math.floor(L/2)-16,R=["white","green","blue","cyan","red","yellow","magenta"];N.foreground=R[D]}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))},b}(),y=function(){function b(I,L,N){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var D=new a;this.channels=[null,new v(I,L,D),new v(I+1,N,D)],this.cmdHistory=S(),this.logger=D}var _=b.prototype;return _.getHandler=function(L){return this.channels[L].getHandler()},_.setHandler=function(L,N){this.channels[L].setHandler(N)},_.addData=function(L,N){var D,R,P,M=!1;this.logger.time=L;for(var U=0;U<N.length;U+=2){if(R=N[U]&127,P=N[U+1]&127,R===0&&P===0)continue;if(this.logger.log(t.DATA,"["+l([N[U],N[U+1]])+"] -> ("+l([R,P])+")"),D=this.parseCmd(R,P),D||(D=this.parseMidrow(R,P)),D||(D=this.parsePAC(R,P)),D||(D=this.parseBackgroundAttributes(R,P)),!D&&(M=this.parseChars(R,P),M)){var F=this.currentChannel;if(F&&F>0){var j=this.channels[F];j.insertChars(M)}else this.logger.log(t.WARNING,"No channel found yet. TEXT-MODE?")}!D&&!M&&this.logger.log(t.WARNING,"Couldn't parse cleaned data "+l([R,P])+" orig: "+l([N[U],N[U+1]]))}},_.parseCmd=function(L,N){var D=this.cmdHistory,R=(L===20||L===28||L===21||L===29)&&N>=32&&N<=47,P=(L===23||L===31)&&N>=33&&N<=35;if(!(R||P))return!1;if(T(L,N,D))return x(null,null,D),this.logger.log(t.DEBUG,"Repeated command ("+l([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),x(L,N,D),this.currentChannel=M,!0},_.parseMidrow=function(L,N){var D=0;if((L===17||L===25)&&N>=32&&N<=47){if(L===17?D=1:D=2,D!==this.currentChannel)return this.logger.log(t.ERROR,"Mismatch channel in midrow parsing"),!1;var R=this.channels[D];return R?(R.ccMIDROW(N),this.logger.log(t.DEBUG,"MIDROW ("+l([L,N])+")"),!0):!1}return!1},_.parsePAC=function(L,N){var D,R=this.cmdHistory,P=(L>=17&&L<=23||L>=25&&L<=31)&&N>=64&&N<=127,M=(L===16||L===24)&&N>=64&&N<=95;if(!(P||M))return!1;if(T(L,N,R))return x(null,null,R),!0;var U=L<=23?1:2;N>=64&&N<=95?D=U===1?r[L]:n[L]:D=U===1?i[L]:e[L];var F=this.channels[U];return F?(F.setPAC(this.interpretPAC(D,N)),x(L,N,R),this.currentChannel=U,!0):!1},_.interpretPAC=function(L,N){var D,R={color:null,italics:!1,indent:null,underline:!1,row:L};return N>95?D=N-96:D=N-64,R.underline=(D&1)===1,D<=13?R.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(D/2)]:D<=15?(R.italics=!0,R.color="white"):R.indent=Math.floor((D-16)/2)*4,R},_.parseChars=function(L,N){var D,R=null,P=null;if(L>=25?(D=2,P=L-8):(D=1,P=L),P>=17&&P<=19){var M;P===17?M=N+80:P===18?M=N+112:M=N+144,this.logger.log(t.INFO,"Special char '"+f(M)+"' in channel "+D),R=[M]}else L>=32&&L<=127&&(R=N===0?[L]:[L,N]);if(R){var U=l(R);this.logger.log(t.DEBUG,"Char codes = "+U.join(",")),x(L,N,this.cmdHistory)}return R},_.parseBackgroundAttributes=function(L,N){var D=(L===16||L===24)&&N>=32&&N<=47,R=(L===23||L===31)&&N>=45&&N<=47;if(!(D||R))return!1;var P,M={};L===16||L===24?(P=Math.floor((N-32)/2),M.background=s[P],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,F=this.channels[U];return F.setBkgData(M),x(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=S()},_.cueSplitAtTime=function(L){for(var N=0;N<this.channels.length;N++){var D=this.channels[N];D&&D.cueSplitAtTime(L)}},b}();function x(b,_,I){I.a=b,I.b=_}function T(b,_,I){return I.a===b&&I.b===_}function S(){return{a:null,b:null}}C.default=y},"./src/utils/codecs.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"isCodecType",function(){return m}),A.d(C,"isCodecSupportedInMp4",function(){return f});var w={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function m(c,o){var r=w[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(E,C,A){"use strict";A.r(C);var w=A("./src/utils/vttparser.ts"),m=A("./src/utils/webvtt-parser.ts"),f=A("./src/utils/texttrack-utils.ts"),c=/\s/,o={newCue:function(i,n,e,s){for(var t=[],a,l,u,h,p,g=self.VTTCue||self.TextTrackCue,v=0;v<s.rows.length;v++)if(a=s.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 x=Object(w.fixLineBreaks)(p.trim()),T=Object(m.generateCueId)(n,e,x);(!i||!i.cues||!i.cues.getCueById(T))&&(l=new g(n,e,x),l.id=T,l.line=v+1,l.align="left",l.position=10+Math.min(80,Math.floor(h*8/32)*10),t.push(l))}return i&&t.length&&(t.sort(function(S,b){return S.line==="auto"||b.line==="auto"?0:S.line>8&&b.line>8?b.line-S.line:S.line-b.line}),t.forEach(function(S){return Object(f.addCueToTrack)(i,S)})),t}};C.default=o},"./src/utils/discontinuities.ts":function(E,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 l});var w=A("./src/polyfills/number.ts"),m=A("./src/utils/logger.ts"),f=A("./src/controller/level-helper.ts");function c(u,h){for(var p=null,g=0,v=u.length;g<v;g++){var y=u[g];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,g=h.fragments;if(!g.length||!p.length){m.logger.log("No fragments to align");return}var v=c(p,g[0].cc);if(!v||v&&!v.startPTS){m.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,g=0,v=p.length;g<v;g++)i(p[g],u);h.fragmentHint&&i(h.fragmentHint,u),h.alignedSliding=!0}function e(u,h,p){if(!h)return;s(u,p,h),!p.alignedSliding&&h.details&&t(p,h.details),!p.alignedSliding&&h.details&&!p.skippedSegments&&Object(f.adjustSliding)(h.details,p)}function s(u,h,p){if(o(u,p,h)){var g=r(p.details,h);g&&Object(w.isFiniteNumber)(g.start)&&(m.logger.log("Adjusting PTS using last level due to CC increase within current level "+h.url),n(g.start,h))}}function t(u,h){if(!h.fragments.length||!u.hasProgramDateTime||!h.hasProgramDateTime)return;var p=h.fragments[0].programDateTime,g=u.fragments[0].programDateTime,v=(g-p)/1e3+h.fragments[0].start;v&&Object(w.isFiniteNumber)(v)&&(m.logger.log("Adjusting PTS using programDateTime delta "+(g-p)+"ms, sliding:"+v.toFixed(3)+" "+u.url+" "),n(v,u))}function a(u,h){var p=u.programDateTime;if(!p)return;var g=(p-h)/1e3;u.start=u.startPTS=g,u.endPTS=g+u.duration}function l(u,h){if(!h.fragments.length||!u.hasProgramDateTime||!h.hasProgramDateTime)return;var p=h.fragments[0].programDateTime,g=h.fragments[0].start,v=p-g*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(E,C,A){"use strict";A.r(C);var w=A("./src/utils/ewma.ts"),m=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 w.default(o),this.fast_=new w.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 w.default(r,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==i&&(this.fast_=new w.default(i,e.getEstimate(),e.getTotalWeight()))},c.sample=function(r,i){r=Math.max(r,this.minDelayMs_);var n=8*i,e=r/1e3,s=n/e;this.fast_.sample(e,s),this.slow_.sample(e,s)},c.canEstimate=function(){var r=this.fast_;return r&&r.getTotalWeight()>=this.minWeight_},c.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},c.destroy=function(){},f}();C.default=m},"./src/utils/ewma.ts":function(E,C,A){"use strict";A.r(C);var w=function(){function m(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=m.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_},m}();C.default=w},"./src/utils/fetch-loader.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"fetchSupported",function(){return a});var w=A("./src/polyfills/number.ts"),m=A("./src/loader/load-stats.ts"),f=A("./src/demux/chunk-cache.ts");function c(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,e(g,v)}function o(g){var v=typeof Map=="function"?new Map:void 0;return o=function(x){if(x===null||!n(x))return x;if(typeof x!="function")throw new TypeError("Super expression must either be null or a function");if(typeof v!="undefined"){if(v.has(x))return v.get(x);v.set(x,T)}function T(){return r(x,arguments,s(this).constructor)}return T.prototype=Object.create(x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),e(T,x)},o(g)}function r(g,v,y){return i()?r=Reflect.construct.bind():r=function(T,S,b){var _=[null];_.push.apply(_,S);var I=Function.bind.apply(T,_),L=new I;return b&&e(L,b.prototype),L},r.apply(null,arguments)}function 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(g){return!1}}function n(g){return Function.toString.call(g).indexOf("[native code]")!==-1}function e(g,v){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,T){return x.__proto__=T,x},e(g,v)}function s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},s(g)}function t(){return t=Object.assign?Object.assign.bind():function(g){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(g[x]=y[x])}return g},t.apply(this,arguments)}function a(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(g){}return!1}var l=function(){function g(y){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=y.fetchSetup||h,this.controller=new self.AbortController,this.stats=new m.LoadStats}var v=g.prototype;return v.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},v.abortInternal=function(){var x=this.response;(!x||!x.ok)&&(this.stats.aborted=!0,this.controller.abort())},v.abort=function(){var x;this.abortInternal(),(x=this.callbacks)!==null&&x!==void 0&&x.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},v.load=function(x,T,S){var b=this,_=this.stats;if(_.loading.start)throw new Error("Loader can only be used once.");_.loading.start=self.performance.now();var I=u(x,this.controller.signal),L=S.onProgress,N=x.responseType==="arraybuffer",D=N?"byteLength":"length";this.context=x,this.config=T,this.callbacks=S,this.request=this.fetchSetup(x,I),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){b.abortInternal(),S.onTimeout(_,x,b.response)},T.timeout),self.fetch(this.request).then(function(R){if(b.response=b.loader=R,!R.ok){var P=R.status,M=R.statusText;throw new p(M||"fetch, bad network response",P,R)}return _.loading.first=Math.max(self.performance.now(),_.loading.start),_.total=parseInt(R.headers.get("Content-Length")||"0"),L&&Object(w.isFiniteNumber)(T.highWaterMark)?b.loadProgressively(R,_,x,T.highWaterMark,L):N?R.arrayBuffer():R.text()}).then(function(R){var P=b.response;self.clearTimeout(b.requestTimeout),_.loading.end=Math.max(self.performance.now(),_.loading.first),_.loaded=_.total=R[D];var M={url:P.url,data:R};L&&!Object(w.isFiniteNumber)(T.highWaterMark)&&L(_,x,R,P),S.onSuccess(M,_,x,P)}).catch(function(R){if(self.clearTimeout(b.requestTimeout),_.aborted)return;var P=R&&R.code||0,M=R?R.message:null;S.onError({code:P,text:M},x,R?R.details:null)})},v.getCacheAge=function(){var x=null;if(this.response){var T=this.response.headers.get("age");x=T?parseFloat(T):null}return x},v.loadProgressively=function(x,T,S,b,_){b===void 0&&(b=0);var I=new f.default,L=x.body.getReader(),N=function D(){return L.read().then(function(R){if(R.done)return I.dataLength&&_(T,S,I.flush(),x),Promise.resolve(new ArrayBuffer(0));var P=R.value,M=P.length;return T.loaded+=M,M<b||I.dataLength?(I.push(P),I.dataLength>=b&&_(T,S,I.flush(),x)):_(T,S,P,x),D()}).catch(function(){return Promise.reject()})};return N()},g}();function u(g,v){var y={method:"GET",mode:"cors",credentials:"same-origin",signal:v,headers:new self.Headers(t({},g.headers))};return g.rangeEnd&&y.headers.set("Range","bytes="+g.rangeStart+"-"+String(g.rangeEnd-1)),y}function h(g,v){return new self.Request(g.url,v)}var p=function(g){c(v,g);function v(y,x,T){var S;return S=g.call(this,y)||this,S.code=void 0,S.details=void 0,S.code=x,S.details=T,S}return v}(o(Error));C.default=l},"./src/utils/imsc1-ttml-parser.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"IMSC1_CODEC",function(){return n}),A.d(C,"parseIMSC1",function(){return a});var w=A("./src/utils/mp4-tools.ts"),m=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?Object.assign.bind():function(b){for(var _=1;_<arguments.length;_++){var I=arguments[_];for(var L in I)Object.prototype.hasOwnProperty.call(I,L)&&(b[L]=I[L])}return b},i.apply(this,arguments)}var n="stpp.ttml.im1t",e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,s=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,t={left:"start",center:"center",right:"end",start:"start",end:"end"};function a(b,_,I,L,N){var D=Object(w.findBox)(new Uint8Array(b),["mdat"]);if(D.length===0){N(new Error("Could not parse IMSC1 mdat"));return}var R=D.map(function(M){return Object(c.utf8ArrayToStr)(M)}),P=Object(o.toTimescaleFromScale)(_,1,I);try{R.forEach(function(M){return L(l(M,P))})}catch(M){N(M)}}function l(b,_){var I=new DOMParser,L=I.parseFromString(b,"text/xml"),N=L.getElementsByTagName("tt")[0];if(!N)throw new Error("Invalid ttml");var D={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},R=Object.keys(D).reduce(function(j,W){return j[W]=N.getAttribute("ttp:"+W)||D[W],j},{}),P=N.getAttribute("xml:space")!=="preserve",M=h(u(N,"styling","style")),U=h(u(N,"layout","region")),F=u(N,"body","[begin]");return[].map.call(F,function(j){var W=p(j,P);if(!W||!j.hasAttribute("begin"))return null;var V=x(j.getAttribute("begin"),R),z=x(j.getAttribute("dur"),R),Y=x(j.getAttribute("end"),R);if(V===null)throw y(j);if(Y===null){if(z===null)throw y(j);Y=V+z}var $=new f.default(V-_,Y-_,W);$.id=Object(r.generateCueId)($.startTime,$.endTime,$.text);var ue=U[j.getAttribute("region")],ne=M[j.getAttribute("style")];$.position=10,$.size=80;var ge=g(ue,ne,M),Oe=ge.textAlign;if(Oe){var De=t[Oe];De&&($.lineAlign=De),$.align=Oe}return i($,ge),$}).filter(function(j){return j!==null})}function u(b,_,I){var L=b.getElementsByTagName(_)[0];return L?[].slice.call(L.querySelectorAll(I)):[]}function h(b){return b.reduce(function(_,I){var L=I.getAttribute("xml:id");return L&&(_[L]=I),_},{})}function p(b,_){return[].slice.call(b.childNodes).reduce(function(I,L,N){var D;return L.nodeName==="br"&&N?I+`
|
|
|
`:(D=L.childNodes)!==null&&D!==void 0&&D.length?p(L,_):_?I+L.textContent.trim().replace(/\s+/g," "):I+L.textContent},"")}function g(b,_,I){var L="http://www.w3.org/ns/ttml#styling",N=null,D=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],R=b!=null&&b.hasAttribute("style")?b.getAttribute("style"):null;return R&&I.hasOwnProperty(R)&&(N=I[R]),D.reduce(function(P,M){var U=v(_,L,M)||v(b,L,M)||v(N,L,M);return U&&(P[M]=U),P},{})}function v(b,_,I){return b&&b.hasAttributeNS(_,I)?b.getAttributeNS(_,I):null}function y(b){return new Error("Could not parse ttml timestamp "+b)}function x(b,_){if(!b)return null;var I=Object(m.parseTimeStamp)(b);return I===null&&(e.test(b)?I=T(b,_):s.test(b)&&(I=S(b,_))),I}function T(b,_){var I=e.exec(b),L=(I[4]|0)+(I[5]|0)/_.subFrameRate;return(I[1]|0)*3600+(I[2]|0)*60+(I[3]|0)+L/_.frameRate}function S(b,_){var I=s.exec(b),L=Number(I[1]),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(E,C,A){"use strict";A.r(C),A.d(C,"enableLogs",function(){return r}),A.d(C,"logger",function(){return i});var w=function(){},m={trace:w,debug:w,log:w,warn:w,info:w,error:w},f=m;function c(n){var e=self.console[n];return e?e.bind(self.console,"["+n+"] >"):w}function o(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),t=1;t<e;t++)s[t-1]=arguments[t];s.forEach(function(a){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=m}}else f=m}var i=f},"./src/utils/mediakeys-helper.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"KeySystems",function(){return w}),A.d(C,"requestMediaKeySystemAccess",function(){return m});var w;(function(f){f.WIDEVINE="com.widevine.alpha",f.PLAYREADY="com.microsoft.playready"})(w||(w={}));var m=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"getMediaSource",function(){return w});function w(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"RemuxerTrackIdConfig",function(){return r}),A.d(C,"bin2str",function(){return i}),A.d(C,"readUint16",function(){return n}),A.d(C,"readUint32",function(){return e}),A.d(C,"readSint32",function(){return s}),A.d(C,"writeUint32",function(){return t}),A.d(C,"findBox",function(){return a}),A.d(C,"parseSegmentIndex",function(){return l}),A.d(C,"parseInitSegment",function(){return u}),A.d(C,"getStartDTS",function(){return h}),A.d(C,"getDuration",function(){return p}),A.d(C,"computeRawDurationFromSamples",function(){return g}),A.d(C,"offsetStartDTS",function(){return v}),A.d(C,"segmentValidRange",function(){return y}),A.d(C,"appendUint8Array",function(){return x}),A.d(C,"parseSamples",function(){return T}),A.d(C,"parseSEIMessageFromNALu",function(){return _}),A.d(C,"parseEmsg",function(){return L});var w=A("./src/utils/typed-array.ts"),m=A("./src/loader/fragment.ts"),f=A("./src/demux/id3.ts"),c=Math.pow(2,32)-1,o=[].push,r={video:1,audio:2,id3:3,text:4};function i(N){return String.fromCharCode.apply(null,N)}function n(N,D){var R=N[D]<<8|N[D+1];return R<0?65536+R:R}function e(N,D){var R=s(N,D);return R<0?4294967296+R:R}function s(N,D){return N[D]<<24|N[D+1]<<16|N[D+2]<<8|N[D+3]}function t(N,D,R){N[D]=R>>24,N[D+1]=R>>16&255,N[D+2]=R>>8&255,N[D+3]=R&255}function a(N,D){var R=[];if(!D.length)return R;for(var P=N.byteLength,M=0;M<P;){var U=e(N,M),F=i(N.subarray(M+4,M+8)),j=U>1?M+U:P;if(F===D[0])if(D.length===1)R.push(N.subarray(M+8,j));else{var W=a(N.subarray(M+8,j),D.slice(1));W.length&&o.apply(R,W)}M=j}return R}function l(N){var D=[],R=N[0],P=8,M=e(N,P);P+=4;var U=0,F=0;R===0?P+=8:P+=16,P+=2;var j=N.length+F,W=n(N,P);P+=2;for(var V=0;V<W;V++){var z=P,Y=e(N,z);z+=4;var $=Y&2147483647,ue=(Y&2147483648)>>>31;if(ue===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ne=e(N,z);z+=4,D.push({referenceSize:$,subsegmentDuration:ne,info:{duration:ne/M,start:j,end:j+$-1}}),j+=$,z+=4,P=z}return{earliestPresentationTime:U,timescale:M,version:R,referencesCount:W,references:D}}function u(N){for(var D=[],R=a(N,["moov","trak"]),P=0;P<R.length;P++){var M=R[P],U=a(M,["tkhd"])[0];if(U){var F=U[0],j=F===0?12:20,W=e(U,j),V=a(M,["mdia","mdhd"])[0];if(V){F=V[0],j=F===0?12:20;var z=e(V,j),Y=a(M,["mdia","hdlr"])[0];if(Y){var $=i(Y.subarray(8,12)),ue={soun:m.ElementaryStreamTypes.AUDIO,vide:m.ElementaryStreamTypes.VIDEO}[$];if(ue){var ne=a(M,["mdia","minf","stbl","stsd"])[0],ge=void 0;ne&&(ge=i(ne.subarray(12,16))),D[W]={timescale:z,type:ue},D[ue]={timescale:z,id:W,codec:ge}}}}}}var Oe=a(N,["moov","mvex","trex"]);return Oe.forEach(function(De){var He=e(De,4),pe=D[He];pe&&(pe.default={duration:e(De,12),flags:e(De,20)})}),D}function h(N,D){return a(D,["moof","traf"]).reduce(function(R,P){var M=a(P,["tfdt"])[0],U=M[0],F=a(P,["tfhd"]).reduce(function(j,W){var V=e(W,4),z=N[V];if(z){var Y=e(M,4);U===1&&(Y*=Math.pow(2,32),Y+=e(M,8));var $=z.timescale||9e4,ue=Y/$;if(isFinite(ue)&&(j===null||ue<j))return ue}return j},null);return F!==null&&isFinite(F)&&(R===null||F<R)?F:R},null)||0}function p(N,D){for(var R=0,P=0,M=0,U=a(N,["moof","traf"]),F=0;F<U.length;F++){var j=U[F],W=a(j,["tfhd"])[0],V=e(W,4),z=D[V];if(!z)continue;var Y=z.default,$=e(W,0)|(Y==null?void 0:Y.flags),ue=Y==null?void 0:Y.duration;$&8&&($&2?ue=e(W,12):ue=e(W,8));for(var ne=z.timescale||9e4,ge=a(j,["trun"]),Oe=0;Oe<ge.length;Oe++){if(R=g(ge[Oe]),!R&&ue){var De=e(ge[Oe],4);R=ue*De}z.type===m.ElementaryStreamTypes.VIDEO?P+=R/ne:z.type===m.ElementaryStreamTypes.AUDIO&&(M+=R/ne)}}if(P===0&&M===0){for(var He=0,pe=a(N,["sidx"]),Ue=0;Ue<pe.length;Ue++){var oe=l(pe[Ue]);oe!=null&&oe.references&&(He+=oe.references.reduce(function(ee,Xe){return ee+Xe.info.duration||0},0))}return He}return P||M}function g(N){var D=e(N,0),R=8;D&1&&(R+=4),D&4&&(R+=4);for(var P=0,M=e(N,4),U=0;U<M;U++){if(D&256){var F=e(N,R);P+=F,R+=4}D&512&&(R+=4),D&1024&&(R+=4),D&2048&&(R+=4)}return P}function v(N,D,R){a(D,["moof","traf"]).forEach(function(P){a(P,["tfhd"]).forEach(function(M){var U=e(M,4),F=N[U];if(!F)return;var j=F.timescale||9e4;a(P,["tfdt"]).forEach(function(W){var V=W[0],z=e(W,4);if(V===0)z-=R*j,z=Math.max(z,0),t(W,4,z);else{z*=Math.pow(2,32),z+=e(W,8),z-=R*j,z=Math.max(z,0);var Y=Math.floor(z/(c+1)),$=Math.floor(z%(c+1));t(W,4,Y),t(W,8,$)}})})})}function y(N){var D={valid:null,remainder:null},R=a(N,["moof"]);if(R){if(R.length<2)return D.remainder=N,D}else return D;var P=R[R.length-1];return D.valid=Object(w.sliceUint8)(N,0,P.byteOffset-8),D.remainder=Object(w.sliceUint8)(N,P.byteOffset-8),D}function x(N,D){var R=new Uint8Array(N.length+D.length);return R.set(N),R.set(D,N.length),R}function T(N,D){var R=[],P=D.samples,M=D.timescale,U=D.id,F=!1,j=a(P,["moof"]);return j.map(function(W){var V=W.byteOffset-8,z=a(W,["traf"]);z.map(function(Y){var $=a(Y,["tfdt"]).map(function(ue){var ne=ue[0],ge=e(ue,4);return ne===1&&(ge*=Math.pow(2,32),ge+=e(ue,8)),ge/M})[0];return $!==void 0&&(N=$),a(Y,["tfhd"]).map(function(ue){var ne=e(ue,4),ge=e(ue,0)&16777215,Oe=(ge&1)!==0,De=(ge&2)!==0,He=(ge&8)!==0,pe=0,Ue=(ge&16)!==0,oe=0,ee=(ge&32)!==0,Xe=8;ne===U&&(Oe&&(Xe+=8),De&&(Xe+=4),He&&(pe=e(ue,Xe),Xe+=4),Ue&&(oe=e(ue,Xe),Xe+=4),ee&&(Xe+=4),D.type==="video"&&(F=S(D.codec)),a(Y,["trun"]).map(function(se){var Q=se[0],G=e(se,0)&16777215,J=(G&1)!==0,ve=0,de=(G&4)!==0,Ce=(G&256)!==0,Ee=0,le=(G&512)!==0,fe=0,xe=(G&1024)!==0,Qe=(G&2048)!==0,ot=0,Je=e(se,4),Te=8;J&&(ve=e(se,Te),Te+=4),de&&(Te+=4);for(var et=ve+V,ze=0;ze<Je;ze++){if(Ce?(Ee=e(se,Te),Te+=4):Ee=pe,le?(fe=e(se,Te),Te+=4):fe=oe,xe&&(Te+=4),Qe&&(Q===0?ot=e(se,Te):ot=s(se,Te),Te+=4),D.type===m.ElementaryStreamTypes.VIDEO)for(var nt=0;nt<fe;){var Ot=e(P,et);et+=4;var Ct=P[et]&31;if(b(F,Ct)){var Tt=P.subarray(et,et+Ot);_(Tt,N+ot/M,R)}et+=Ot,nt+=Ot+4}N+=Ee/M}}))})})}),R}function S(N){if(!N)return!1;var D=N.indexOf("."),R=D<0?N:N.substring(0,D);return R==="hvc1"||R==="hev1"||R==="dvh1"||R==="dvhe"}function b(N,D){return N?D===39||D===40:D===6}function _(N,D,R){var P=I(N),M=0;M++;for(var U=0,F=0,j=!1,W=0;M<P.length;){U=0;do{if(M>=P.length)break;W=P[M++],U+=W}while(W===255);F=0;do{if(M>=P.length)break;W=P[M++],F+=W}while(W===255);var V=P.length-M;if(!j&&U===4&&M<P.length){j=!0;var z=P[M++];if(z===181){var Y=n(P,M);if(M+=2,Y===49){var $=e(P,M);if(M+=4,$===1195456820){var ue=P[M++];if(ue===3){var ne=P[M++],ge=31&ne,Oe=64&ne,De=Oe?2+ge*3:0,He=new Uint8Array(De);if(Oe){He[0]=ne;for(var pe=1;pe<De;pe++)He[pe]=P[M++]}R.push({type:ue,payloadType:U,pts:D,bytes:He})}}}}}else if(U===5&&F<V){if(j=!0,F>16){for(var Ue=[],oe=0;oe<16;oe++){var ee=P[M++].toString(16);Ue.push(ee.length==1?"0"+ee:ee),(oe===3||oe===5||oe===7||oe===9)&&Ue.push("-")}for(var Xe=F-16,se=new Uint8Array(Xe),Q=0;Q<Xe;Q++)se[Q]=P[M++];R.push({payloadType:U,pts:D,uuid:Ue.join(""),userData:Object(f.utf8ArrayToStr)(se),userDataBytes:se})}}else if(F<V)M+=F;else if(F>V)break}}function I(N){for(var D=N.byteLength,R=[],P=1;P<D-2;)N[P]===0&&N[P+1]===0&&N[P+2]===3?(R.push(P+2),P+=2):P++;if(R.length===0)return N;var M=D-R.length,U=new Uint8Array(M),F=0;for(P=0;P<M;F++,P++)F===R[0]&&(F++,R.shift()),U[P]=N[F];return U}function L(N){var D=N[0],R="",P="",M=0,U=0,F=0,j=0,W=0,V=0;if(D===0){for(;i(N.subarray(V,V+1))!=="\0";)R+=i(N.subarray(V,V+1)),V+=1;for(R+=i(N.subarray(V,V+1)),V+=1;i(N.subarray(V,V+1))!=="\0";)P+=i(N.subarray(V,V+1)),V+=1;P+=i(N.subarray(V,V+1)),V+=1,M=e(N,12),U=e(N,16),j=e(N,20),W=e(N,24),V=28}else if(D===1){V+=4,M=e(N,V),V+=4;var z=e(N,V);V+=4;var Y=e(N,V);for(V+=4,F=Math.pow(2,32)*z+Y,Number.isSafeInteger(F)||(F=Number.MAX_SAFE_INTEGER,console.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),j=e(N,V),V+=4,W=e(N,V),V+=4;i(N.subarray(V,V+1))!=="\0";)R+=i(N.subarray(V,V+1)),V+=1;for(R+=i(N.subarray(V,V+1)),V+=1;i(N.subarray(V,V+1))!=="\0";)P+=i(N.subarray(V,V+1)),V+=1;P+=i(N.subarray(V,V+1)),V+=1}var $=N.subarray(V,N.byteLength);return{schemeIdUri:R,value:P,timeScale:M,presentationTime:F,presentationTimeDelta:U,eventDuration:j,id:W,payload:$}}},"./src/utils/output-filter.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"default",function(){return w});var w=function(){function m(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=m.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},m}()},"./src/utils/texttrack-utils.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"sendAddTrackEvent",function(){return m}),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 w=A("./src/utils/logger.ts");function m(n,e){var s;try{s=new Event("addtrack")}catch(t){s=document.createEvent("Event"),s.initEvent("addtrack",!1,!1)}s.track=n,e.dispatchEvent(s)}function f(n,e){var s=n.mode;if(s==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(e.id))try{if(n.addCue(e),!n.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(a){w.logger.debug("[texttrack-utils]: "+a);var t=new self.TextTrackCue(e.startTime,e.endTime,e.text);t.id=e.id,n.addCue(t)}s==="disabled"&&(n.mode=s)}function c(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var s=n.cues.length;s--;)n.removeCue(n.cues[s]);e==="disabled"&&(n.mode=e)}function o(n,e,s,t){var a=n.mode;if(a==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var l=i(n.cues,e,s),u=0;u<l.length;u++)(!t||t(l[u]))&&n.removeCue(l[u]);a==="disabled"&&(n.mode=a)}function r(n,e){if(e<n[0].startTime)return 0;var s=n.length-1;if(e>n[s].endTime)return-1;for(var t=0,a=s;t<=a;){var l=Math.floor((a+t)/2);if(e<n[l].startTime)a=l-1;else if(e>n[l].startTime&&t<s)t=l+1;else return l}return n[t].startTime-e<e-n[a].startTime?t:a}function i(n,e,s){var t=[],a=r(n,e);if(a>-1)for(var l=a,u=n.length;l<u;l++){var h=n[l];if(h.startTime>=e&&h.endTime<=s)t.push(h);else if(h.startTime>s)return t}return t}},"./src/utils/time-ranges.ts":function(E,C,A){"use strict";A.r(C);var w={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=w},"./src/utils/timescale-conversion.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"toTimescaleFromBase",function(){return m}),A.d(C,"toTimescaleFromScale",function(){return f}),A.d(C,"toMsFromMpegTsClock",function(){return c}),A.d(C,"toMpegTsClockFromTimescale",function(){return o});var w=9e4;function m(r,i,n,e){n===void 0&&(n=1),e===void 0&&(e=!1);var s=r*i*n;return e?Math.round(s):s}function f(r,i,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),m(r,i,1/n,e)}function c(r,i){return i===void 0&&(i=!1),m(r,1e3,1/w,i)}function o(r,i){return i===void 0&&(i=1),m(r,w,1/i)}},"./src/utils/typed-array.ts":function(E,C,A){"use strict";A.r(C),A.d(C,"sliceUint8",function(){return w});function w(m,f,c){return Uint8Array.prototype.slice?m.slice(f,c):new Uint8Array(Array.prototype.slice.call(m,f,c))}},"./src/utils/vttcue.ts":function(E,C,A){"use strict";A.r(C),C.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var w=["","lr","rl"],m=["start","middle","end","left","right"];function f(n,e){if(typeof e!="string")return!1;if(!Array.isArray(n))return!1;var s=e.toLowerCase();return~n.indexOf(s)?s:!1}function c(n){return f(w,n)}function o(n){return f(m,n)}function r(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),t=1;t<e;t++)s[t-1]=arguments[t];for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var u in l)n[u]=l[u]}return n}function i(n,e,s){var t=this,a={enumerable:!0};t.hasBeenReset=!1;var l="",u=!1,h=n,p=e,g=s,v=null,y="",x=!0,T="auto",S="start",b=50,_="middle",I=50,L="middle";Object.defineProperty(t,"id",r({},a,{get:function(){return l},set:function(D){l=""+D}})),Object.defineProperty(t,"pauseOnExit",r({},a,{get:function(){return u},set:function(D){u=!!D}})),Object.defineProperty(t,"startTime",r({},a,{get:function(){return h},set:function(D){if(typeof D!="number")throw new TypeError("Start time must be set to a number.");h=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"endTime",r({},a,{get:function(){return p},set:function(D){if(typeof D!="number")throw new TypeError("End time must be set to a number.");p=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"text",r({},a,{get:function(){return g},set:function(D){g=""+D,this.hasBeenReset=!0}})),Object.defineProperty(t,"region",r({},a,{get:function(){return v},set:function(D){v=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"vertical",r({},a,{get:function(){return y},set:function(D){var R=c(D);if(R===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"snapToLines",r({},a,{get:function(){return x},set:function(D){x=!!D,this.hasBeenReset=!0}})),Object.defineProperty(t,"line",r({},a,{get:function(){return T},set:function(D){if(typeof D!="number"&&D!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");T=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"lineAlign",r({},a,{get:function(){return S},set:function(D){var R=o(D);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");S=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"position",r({},a,{get:function(){return b},set:function(D){if(D<0||D>100)throw new Error("Position must be between 0 and 100.");b=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"positionAlign",r({},a,{get:function(){return _},set:function(D){var R=o(D);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");_=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"size",r({},a,{get:function(){return I},set:function(D){if(D<0||D>100)throw new Error("Size must be between 0 and 100.");I=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"align",r({},a,{get:function(){return L},set:function(D){var R=o(D);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");L=R,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(E,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 s});var w=A("./src/utils/vttcue.ts"),m=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,g){return(u|0)*3600+(h|0)*60+(p|0)+parseFloat(g||0)}var l=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return l?parseFloat(l[2])>59?a(l[2],l[3],0,l[4]):a(l[1],l[2],l[3],l[4]):null}var c=function(){function t(){this.values=Object.create(null)}var a=t.prototype;return a.set=function(u,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 g=0;g<p.length;++g)if(h===p[g]){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,l,u){var h=u?t.split(u):[t];for(var p in h){if(typeof h[p]!="string")continue;var g=h[p].split(l);if(g.length!==2)continue;var v=g[0],y=g[1];a(v,y)}}var r=new w.default(0,0,""),i=r.align==="middle"?"middle":"center";function n(t,a,l){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 x=new c;o(v,function(b,_){var I;switch(b){case"region":for(var L=l.length-1;L>=0;L--)if(l[L].id===_){x.set(b,l[L].region);break}break;case"vertical":x.alt(b,_,["rl","lr"]);break;case"line":I=_.split(","),x.integer(b,I[0]),x.percent(b,I[0])&&x.set("snapToLines",!1),x.alt(b,I[0],["auto"]),I.length===2&&x.alt("lineAlign",I[1],["start",i,"end"]);break;case"position":I=_.split(","),x.percent(b,I[0]),I.length===2&&x.alt("positionAlign",I[1],["start",i,"end","line-left","line-right","auto"]);break;case"size":x.percent(b,_);break;case"align":x.alt(b,_,["start",i,"end","left","right"]);break}},/:/,/\s/),y.region=x.get("region",null),y.vertical=x.get("vertical","");var T=x.get("line","auto");T==="auto"&&r.line===-1&&(T=-1),y.line=T,y.lineAlign=x.get("lineAlign","start"),y.snapToLines=x.get("snapToLines",!0),y.size=x.get("size",100),y.align=x.get("align",i);var S=x.get("position","auto");S==="auto"&&r.position===50&&(S=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=S}function g(){t=t.replace(/^\s+/,"")}if(g(),a.startTime=h(),g(),t.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+u);t=t.slice(3),g(),a.endTime=h(),g(),p(t,a)}function e(t){return t.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var s=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new m,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var a=t.prototype;return a.parse=function(u){var h=this;u&&(h.buffer+=h.decoder.decode(u,{stream:!0}));function p(){var S=h.buffer,b=0;for(S=e(S);b<S.length&&S[b]!=="\r"&&S[b]!==`
|
|
|
`;)++b;var _=S.slice(0,b);return S[b]==="\r"&&++b,S[b]===`
|
|
|
`&&++b,h.buffer=S.slice(b),_}function g(S){o(S,function(b,_){},/:/)}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 x=!1;h.buffer;){if(!/\r\n|\n/.test(h.buffer))return this;x?x=!1:v=p();switch(h.state){case"HEADER":/:/.test(v)?g(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 w.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(S){h.cue=null,h.state="BADCUE";continue}h.state="CUETEXT";continue;case"CUETEXT":{var T=v.indexOf("-->")!==-1;if(!v||T&&(x=!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(S){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(E,C,A){"use strict";A.r(C),A.d(C,"generateCueId",function(){return s}),A.d(C,"parseWebVTT",function(){return a});var w=A("./src/polyfills/number.ts"),m=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.slice(p,p+h.length)===h},n=function(u){var h=parseInt(u.slice(-3)),p=parseInt(u.slice(-6,-4)),g=parseInt(u.slice(-9,-7)),v=u.length>9?parseInt(u.substring(0,u.indexOf(":"))):0;if(!Object(w.isFiniteNumber)(h)||!Object(w.isFiniteNumber)(p)||!Object(w.isFiniteNumber)(g)||!Object(w.isFiniteNumber)(v))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+u);return h+=1e3*p,h+=60*1e3*g,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 s(l,u,h){return e(l.toString())+e(u.toString())+e(h)}var t=function(u,h,p){var g=u[h],v=u[g.prevCC];if(!v||!v.new&&g.new){u.ccOffset=u.presentationOffset=g.start,g.new=!1;return}for(;(y=v)!==null&&y!==void 0&&y.new;){var y;u.ccOffset+=g.start-v.start,g.new=!1,g=v,v=u[g.prevCC]}u.presentationOffset=p};function a(l,u,h,p,g,v,y,x){var T=new m.VTTParser,S=Object(f.utf8ArrayToStr)(new Uint8Array(l)).trim().replace(r,`
|
|
|
`).split(`
|
|
|
`),b=[],_=Object(c.toMpegTsClockFromTimescale)(u,h),I="00:00.000",L=0,N=0,D,R=!0;T.oncue=function(P){var M=p[g],U=p.ccOffset,F=(L-_)/9e4;M!=null&&M.new&&(N!==void 0?U=p.ccOffset=M.start:t(p,g,F)),F&&(U=F-p.presentationOffset);var j=P.endTime-P.startTime,W=Object(o.normalizePts)((P.startTime+U-N)*9e4,v*9e4)/9e4;P.startTime=Math.max(W,0),P.endTime=Math.max(W+j,0);var V=P.text.trim();P.text=decodeURIComponent(encodeURIComponent(V)),P.id||(P.id=s(P.startTime,P.endTime,V)),P.endTime>0&&b.push(P)},T.onparsingerror=function(P){D=P},T.onflush=function(){if(D){x(D);return}y(b)},S.forEach(function(P){if(R)if(i(P,"X-TIMESTAMP-MAP=")){R=!1,P.slice(16).split(",").forEach(function(M){i(M,"LOCAL:")?I=M.slice(6):i(M,"MPEGTS:")&&(L=parseInt(M.slice(7)))});try{N=n(I)/1e3}catch(M){D=M}return}else P===""&&(R=!1);T.parse(P+`
|
|
|
`)}),T.flush()}},"./src/utils/xhr-loader.ts":function(E,C,A){"use strict";A.r(C);var w=A("./src/utils/logger.ts"),m=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 m.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,s){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=e,this.callbacks=s,this.retryDelay=e.retryDelay,this.loadInternal()},r.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var s=this.loader=new self.XMLHttpRequest,t=this.stats;t.loading.first=0,t.loaded=0;var a=this.xhrSetup;try{if(a)try{a(s,e.url)}catch(h){s.open("GET",e.url,!0),a(s,e.url)}s.readyState||s.open("GET",e.url,!0);var l=this.context.headers;if(l)for(var u in l)s.setRequestHeader(u,l[u])}catch(h){this.callbacks.onError({code:s.status,text:h.message},e,s);return}e.rangeEnd&&s.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),s.onreadystatechange=this.readystatechange.bind(this),s.onprogress=this.loadprogress.bind(this),s.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),s.send()},r.readystatechange=function(){var n=this.context,e=this.loader,s=this.stats;if(!n||!e)return;var t=e.readyState,a=this.config;if(s.aborted)return;if(t>=2)if(self.clearTimeout(this.requestTimeout),s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start)),t===4){e.onreadystatechange=null,e.onprogress=null;var l=e.status;if(l>=200&&l<300){s.loading.end=Math.max(self.performance.now(),s.loading.first);var u,h;if(n.responseType==="arraybuffer"?(u=e.response,h=u.byteLength):(u=e.responseText,h=u.length),s.loaded=s.total=h,!this.callbacks)return;var p=this.callbacks.onProgress;if(p&&p(s,n,u,e),!this.callbacks)return;var g={url:e.responseURL,data:u};this.callbacks.onSuccess(g,s,n,e)}else s.retry>=a.maxRetry||l>=400&&l<499?(w.logger.error(l+" while loading "+n.url),this.callbacks.onError({code:l,text:e.statusText},n,e)):(w.logger.warn(l+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),s.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)},r.loadtimeout=function(){w.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},r.loadprogress=function(n){var e=this.stats;e.loaded=n.loaded,n.lengthComputable&&(e.total=n.total)},r.getCacheAge=function(){var n=null;if(this.loader&&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,B,d){},v5uJ:function(H,B,d){var O=d("ProS"),E=d("2B6p"),C=E.updateCenterAndZoom;O.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(A,w){w.eachComponent({mainType:"series",subType:"tree",query:A},function(m){var f=A.dataIndex,c=m.getData().tree,o=c.getNodeByDataIndex(f);o.isExpand=!o.isExpand})}),O.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(A,w){w.eachComponent({mainType:"series",subType:"tree",query:A},function(m){var f=m.coordinateSystem,c=C(f,A);m.setCenter&&m.setCenter(c.center),m.setZoom&&m.setZoom(c.zoom)})})},"vF/C":function(H,B,d){var O=d("bLfw");O.registerSubTypeDefaulter("visualMap",function(E){return!E.categories&&(!(E.pieces?E.pieces.length>0:E.splitNumber>0)||E.calculable)?"continuous":"piecewise"})},vKoX:function(H,B,d){var O=d("SrGk"),E=d("bYtY");function C(m,f){O.call(this,m,f,["filter"],"__filter_in_use__","_shadowDom")}E.inherits(C,O),C.prototype.addWithoutUpdate=function(m,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");m.style.filter="url(#"+r+")"}},C.prototype.add=function(m){var f=this.createElement("filter");return m._shadowDomId=m._shadowDomId||this.nextId++,f.setAttribute("id","zr"+this._zrId+"-shadow-"+m._shadowDomId),this.updateDom(m,f),this.addDom(f),f},C.prototype.update=function(m,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(m,f)},C.prototype.remove=function(m,f){f._shadowDomId!=null&&(this.removeDom(m),m.style.filter="")},C.prototype.updateDom=function(m,f){var c=f.getElementsByTagName("feDropShadow");c.length===0?c=this.createElement("feDropShadow"):c=c[0];var o=m.style,r=m.scale&&m.scale[0]||1,i=m.scale&&m.scale[1]||1,n,e,s,t;if(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)n=o.shadowOffsetX||0,e=o.shadowOffsetY||0,s=o.shadowBlur,t=o.shadowColor;else if(o.textShadowBlur)n=o.textShadowOffsetX||0,e=o.textShadowOffsetY||0,s=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=s/2/r,l=s/2/i,u=a+" "+l;c.setAttribute("stdDeviation",u),f.setAttribute("x","-100%"),f.setAttribute("y","-100%"),f.setAttribute("width",Math.ceil(s/2*200)+"%"),f.setAttribute("height",Math.ceil(s/2*200)+"%"),f.appendChild(c),m._shadowDom=f},C.prototype.markUsed=function(m){m._shadowDom&&O.prototype.markUsed.call(this,m._shadowDom)};function A(m){return m&&(m.shadowBlur||m.shadowOffsetX||m.shadowOffsetY||m.textShadowBlur||m.textShadowOffsetX||m.textShadowOffsetY)}var w=C;H.exports=w},vL6D:function(H,B,d){var O=d("bYtY"),E=d("+rIm"),C=d("IwbS"),A=d("7bkD"),w=d("Znkb"),m=d("WN+l"),f=m.rectCoordAxisBuildSplitArea,c=m.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine"],i=w.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,s,t,a){var l=this.group;l.removeAll();var u=this._axisGroup;this._axisGroup=new C.Group;var h=A.layout(e),p=new E(e,h);O.each(o,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),O.each(r,function(g){e.get(g+".show")&&this["_"+g](e)},this),C.groupTransition(u,this._axisGroup,e),i.superCall(this,"render",e,s,t,a)},remove:function(){c(this)},_splitLine:function(e){var s=e.axis;if(s.scale.isBlank())return;var t=e.getModel("splitLine"),a=t.getModel("lineStyle"),l=a.get("width"),u=a.get("color");u=u instanceof Array?u:[u];for(var h=e.coordinateSystem.getRect(),p=s.isHorizontal(),g=[],v=0,y=s.getTicksCoords({tickModel:t}),x=[],T=[],S=0;S<y.length;++S){var b=s.toGlobalCoord(y[S].coord);p?(x[0]=b,x[1]=h.y,T[0]=b,T[1]=h.y+h.height):(x[0]=h.x,x[1]=b,T[0]=h.x+h.width,T[1]=b);var _=v++%u.length;g[_]=g[_]||[],g[_].push(new C.Line({subPixelOptimize:!0,shape:{x1:x[0],y1:x[1],x2:T[0],y2:T[1]},style:{lineWidth:l},silent:!0}))}for(var S=0;S<g.length;++S)this.group.add(C.mergePath(g[S],{style:{stroke:u[S%u.length],lineDash:a.getLineDash(l),lineWidth:l},silent:!0}))},_splitArea:function(e){f(this,this._axisGroup,e,e)}}),n=i;H.exports=n},vWvF:function(H,B,d){var O=d("Bq2U"),E=d("SUKs"),C=d("bYtY"),A=C.isString,w=C.isFunction,m=C.isObject,f=C.isArrayLike,c=C.indexOf,o=function(){this.animators=[]};o.prototype={constructor:o,animate:function(t,a){var l,u=!1,h=this,p=this.__zr;if(t){var g=t.split("."),v=h;u=g[0]==="shape";for(var y=0,x=g.length;y<x;y++){if(!v)continue;v=v[g[y]]}v&&(l=v)}else l=h;if(!l){E('Property "'+t+'" is not existed in element '+h.id);return}var T=h.animators,S=new O(l,a);return S.during(function(b){h.dirty(u)}).done(function(){T.splice(c(T,S),1)}),T.push(S),p&&p.animation.addAnimator(S),S},stopAnimation:function(t){for(var a=this.animators,l=a.length,u=0;u<l;u++)a[u].stop(t);return a.length=0,this},animateTo:function(t,a,l,u,h,p){r(this,t,a,l,u,h,p)},animateFrom:function(t,a,l,u,h,p){r(this,t,a,l,u,h,p,!0)}};function r(s,t,a,l,u,h,p,g){A(l)?(h=u,u=l,l=0):w(u)?(h=u,u="linear",l=0):w(l)?(h=l,l=0):w(a)?(h=a,a=500):a||(a=500),s.stopAnimation(),i(s,"",s,t,a,l,g);var v=s.animators.slice(),y=v.length;function x(){y--,y||h&&h()}y||h&&h();for(var T=0;T<v.length;T++)v[T].done(x).start(u,p)}function i(s,t,a,l,u,h,p){var g={},v=0;for(var y in l){if(!l.hasOwnProperty(y))continue;a[y]!=null?m(l[y])&&!f(l[y])?i(s,t?t+"."+y:y,a[y],l[y],u,h,p):(p?(g[y]=a[y],n(s,t,y,l[y])):g[y]=l[y],v++):l[y]!=null&&!p&&n(s,t,y,l[y])}v>0&&s.animate(t,!1).when(u==null?500:u,g).delay(h||0)}function n(s,t,a,l){if(!t)s.attr(a,l);else{var u={};u[t]={},u[t][a]=l,s.attr(u)}}var e=o;H.exports=e},vZ6x:function(H,B,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),A=d("IwbS"),w=d("4NO4"),m=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(S,b,_){var I=this._targetInfoList=[],L={},N=t(b,S);f(a,function(D,R){(!_||!_.include||c(_.include,R)>=0)&&D(N,I,L)})}var e=n.prototype;e.setOutputRanges=function(S,b){this.matchOutputRanges(S,b,function(_,I,L){if((_.coordRanges||(_.coordRanges=[])).push(I),!_.coordRange){_.coordRange=I;var N=h[_.brushType](0,L,I);_.__rangeOffset={offset:g[_.brushType](N.values,_.range,[1,1]),xyMinMax:N.xyMinMax}}})},e.matchOutputRanges=function(S,b,_){f(S,function(I){var L=this.findTargetInfo(I,b);L&&L!==!0&&C.each(L.coordSyses,function(N){var D=h[I.brushType](1,N,I.range);_(I,D.values,N,b)})},this)},e.setInputRanges=function(S,b){f(S,function(_){var I=this.findTargetInfo(_,b);if(_.range=_.range||[],I&&I!==!0){_.panelId=I.panelId;var L=h[_.brushType](0,I.coordSys,_.coordRange),N=_.__rangeOffset;_.range=N?g[_.brushType](L.values,N.offset,y(L.xyMinMax,N.xyMinMax)):L.values}},this)},e.makePanelOpts=function(S,b){return C.map(this._targetInfoList,function(_){var I=_.getPanelRect();return{panelId:_.panelId,defaultBrushType:b&&b(_),clipPath:m.makeRectPanelClipPath(I),isTargetByCursor:m.makeRectIsTargetByCursor(I,S,_.coordSysModel),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(S,b,_){var I=this.findTargetInfo(S,_);return I===!0||I&&c(I.coordSyses,b.coordinateSystem)>=0},e.findTargetInfo=function(S,b){for(var _=this._targetInfoList,I=t(b,S),L=0;L<_.length;L++){var N=_[L],D=S.panelId;if(D){if(N.panelId===D)return N}else for(var L=0;L<l.length;L++)if(l[L](I,N))return N}return!0};function s(S){return S[0]>S[1]&&S.reverse(),S}function t(S,b){return w.parseFinder(S,b,{includeMainTypes:i})}var a={grid:function(S,b){var _=S.xAxisModels,I=S.yAxisModels,L=S.gridModels,N=C.createHashMap(),D={},R={};if(!_&&!I&&!L)return;f(_,function(P){var M=P.axis.grid.model;N.set(M.id,M),D[M.id]=!0}),f(I,function(P){var M=P.axis.grid.model;N.set(M.id,M),R[M.id]=!0}),f(L,function(P){N.set(P.id,P),D[P.id]=!0,R[P.id]=!0}),N.each(function(P){var M=P.coordinateSystem,U=[];f(M.getCartesians(),function(F,j){(c(_,F.getAxis("x").model)>=0||c(I,F.getAxis("y").model)>=0)&&U.push(F)}),b.push({panelId:"grid--"+P.id,gridModel:P,coordSysModel:P,coordSys:U[0],coordSyses:U,getPanelRect:u.grid,xAxisDeclared:D[P.id],yAxisDeclared:R[P.id]})})},geo:function(S,b){f(S.geoModels,function(_){var I=_.coordinateSystem;b.push({panelId:"geo--"+_.id,geoModel:_,coordSysModel:_,coordSys:I,coordSyses:[I],getPanelRect:u.geo})})}},l=[function(S,b){var _=S.xAxisModel,I=S.yAxisModel,L=S.gridModel;return!L&&_&&(L=_.axis.grid.model),!L&&I&&(L=I.axis.grid.model),L&&L===b.gridModel},function(S,b){var _=S.geoModel;return _&&_===b.geoModel}],u={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var S=this.coordSys,b=S.getBoundingRect().clone();return b.applyTransform(A.getTransform(S)),b}},h={lineX:o(p,0),lineY:o(p,1),rect:function(S,b,_){var I=b[r[S]]([_[0][0],_[1][0]]),L=b[r[S]]([_[0][1],_[1][1]]),N=[s([I[0],L[0]]),s([I[1],L[1]])];return{values:N,xyMinMax:N}},polygon:function(S,b,_){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],L=C.map(_,function(N){var D=b[r[S]](N);return I[0][0]=Math.min(I[0][0],D[0]),I[1][0]=Math.min(I[1][0],D[1]),I[0][1]=Math.max(I[0][1],D[0]),I[1][1]=Math.max(I[1][1],D[1]),D});return{values:L,xyMinMax:I}}};function p(S,b,_,I){var L=_.getAxis(["x","y"][S]),N=s(C.map([0,1],function(R){return b?L.coordToData(L.toLocalCoord(I[R])):L.toGlobalCoord(L.dataToCoord(I[R]))})),D=[];return D[S]=N,D[1-S]=[NaN,NaN],{values:N,xyMinMax:D}}var g={lineX:o(v,0),lineY:o(v,1),rect:function(S,b,_){return[[S[0][0]-_[0]*b[0][0],S[0][1]-_[0]*b[0][1]],[S[1][0]-_[1]*b[1][0],S[1][1]-_[1]*b[1][1]]]},polygon:function(S,b,_){return C.map(S,function(I,L){return[I[0]-_[0]*b[L][0],I[1]-_[1]*b[L][1]]})}};function v(S,b,_,I){return[b[0]-I[S]*_[0],b[1]-I[S]*_[1]]}function y(S,b){var _=x(S),I=x(b),L=[_[0]/I[0],_[1]/I[1]];return isNaN(L[0])&&(L[0]=1),isNaN(L[1])&&(L[1]=1),L}function x(S){return S?[S[0][1]-S[0][0],S[1][1]-S[1][0]]:[NaN,NaN]}var T=n;H.exports=T},vZI5:function(H,B,d){var O=d("bYtY"),E=d("T4UG"),C=d("5GhG"),A=C.seriesModelMixin,w=E.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(f,c,o){var r=c.getItemLayout(f);return r&&o.rect(r.brushRect)}});O.mixin(w,A,!0);var m=w;H.exports=m},vafp:function(H,B,d){var O=d("bYtY"),E=d("8nly");function C(m){if(!m.UTF8Encoding)return m;var f=m.UTF8Scale;f==null&&(f=1024);for(var c=m.features,o=0;o<c.length;o++)for(var r=c[o],i=r.geometry,n=i.coordinates,e=i.encodeOffsets,s=0;s<n.length;s++){var t=n[s];if(i.type==="Polygon")n[s]=A(t,e[s],f);else if(i.type==="MultiPolygon")for(var a=0;a<t.length;a++){var l=t[a];t[a]=A(l,e[s][a],f)}}return m.UTF8Encoding=!1,m}function A(m,f,c){for(var o=[],r=f[0],i=f[1],n=0;n<m.length;n+=2){var e=m.charCodeAt(n)-64,s=m.charCodeAt(n+1)-64;e=e>>1^-(e&1),s=s>>1^-(s&1),e+=r,s+=i,r=e,i=s,o.push([e/c,s/c])}return o}function w(m,f){return C(m),O.map(O.filter(m.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(s){s[0]&&n.push({type:"polygon",exterior:s[0],interiors:s.slice(1)})});var e=new E(o[f||"name"],n,o.cp);return e.properties=o,e})}H.exports=w},vcCh:function(H,B,d){var O=d("ProS");d("0qV/"),O.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(E,C){C.eachComponent({mainType:"series",subType:"sankey",query:E},function(A){A.setNodePosition(E.dataIndex,[E.localX,E.localY])})})},vewr:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.getPointerEvent=O,B.stopEvent=E,B.setCapture=c,B.releaseCapture=o;function O(r){return r.changedTouches?r.changedTouches[0]:r.touches?r.touches[0]:r}function E(r){r.stopPropagation(),r.preventDefault()}var C=!1,A=null;document.captureElement=null;function w(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 m(){var r=document.getElementById("noVNC_mouse_capture_elem");r.style.cursor=window.getComputedStyle(document.captureElement).cursor}var f=new MutationObserver(m);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",w),i.addEventListener("mousemove",w),i.addEventListener("mouseup",w)),document.captureElement=r,f.observe(r,{attributes:!0}),m(),i.style.display="",window.addEventListener("mousemove",w),window.addEventListener("mouseup",w)}}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",w),window.removeEventListener("mouseup",w)}}},vg9a:function(H,B,d){},"vk+C":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("RZPm"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},w4Tj:function(H,B,d){"use strict";d.d(B,"a",function(){return C});var O=d("oZsa");function E(A,w){for(;!Object.prototype.hasOwnProperty.call(A,w)&&!(A=Object(O.a)(A),A===null););return A}function C(A,w,m){return typeof Reflect!="undefined"&&Reflect.get?C=Reflect.get:C=function(c,o,r){var i=E(c,o);if(!i)return;var n=Object.getOwnPropertyDescriptor(i,o);return n.get?n.get.call(r):n.value},C(A,w,m||A)}},w5pM:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="PlusCircleOutlined";var f=B.a=E.forwardRef(m)},w6Tc:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("apAg"));function E(A){return A&&A.__esModule?A:{default:A}}var C=O;B.default=C,H.exports=C},w7YG:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.StreamCipher,w=E.algo,m=w.RC4=A.extend({_doReset:function(){for(var r=this._key,i=r.words,n=r.sigBytes,e=this._S=[],s=0;s<256;s++)e[s]=s;for(var s=0,t=0;s<256;s++){var a=s%n,l=i[a>>>2]>>>24-a%4*8&255;t=(t+e[s]+l)%256;var u=e[s];e[s]=e[t],e[t]=u}this._i=this._j=0},_doProcessBlock:function(r,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 s=o[r];o[r]=o[i],o[i]=s,n|=o[(o[r]+o[i])%256]<<24-e*8}return this._i=r,this._j=i,n}E.RC4=A._createHelper(m);var c=w.RC4Drop=m.extend({cfg:m.cfg.extend({drop:192}),_doReset:function(){m._doReset.call(this);for(var r=this.cfg.drop;r>0;r--)f.call(this)}});E.RC4Drop=A._createHelper(c)}(),O.RC4})},wCAj:function(H,B,d){"use strict";var O=d("cDf5"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("J4zp"),m=d.n(w),f=d("pVnL"),c=d.n(f),o=d("q1tI"),r=d("TSYQ"),i=d.n(r),n=d("BGR+"),e=d("rePB"),s=d("VTBJ"),t=d("KQm4"),a=d("U8pU"),l=d("ODXe"),u=d("Gytx"),h=d.n(u),p=d("Kwbf"),g=d("1OyB"),v=d("vuIU"),y=d("Ji7U"),x=d("LK+K"),T=d("m+aA"),S=d("Zm9Q"),b=d("c+Xe"),_=d("bdgK"),I="rc-observer-key",L=function(bt){Object(y.a)(vr,bt);var mr=Object(x.a)(vr);function vr(){var Fr;return Object(g.a)(this,vr),Fr=mr.apply(this,arguments),Fr.resizeObserver=null,Fr.childNode=null,Fr.currentElement=null,Fr.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Fr.onResize=function(nn){var cn=Fr.props.onResize,tn=nn[0].target,Ln=tn.getBoundingClientRect(),Tn=Ln.width,Xn=Ln.height,ci=tn.offsetWidth,Jn=tn.offsetHeight,pi=Math.floor(Tn),Si=Math.floor(Xn);if(Fr.state.width!==pi||Fr.state.height!==Si||Fr.state.offsetWidth!==ci||Fr.state.offsetHeight!==Jn){var Ni={width:pi,height:Si,offsetWidth:ci,offsetHeight:Jn};Fr.setState(Ni),cn&&Promise.resolve().then(function(){cn(Object(s.a)(Object(s.a)({},Ni),{},{offsetWidth:ci,offsetHeight:Jn}))})}},Fr.setChildNode=function(nn){Fr.childNode=nn},Fr}return Object(v.a)(vr,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var nn=this.props.disabled;if(nn){this.destroyObserver();return}var cn=Object(T.a)(this.childNode||this),tn=cn!==this.currentElement;tn&&(this.destroyObserver(),this.currentElement=cn),!this.resizeObserver&&cn&&(this.resizeObserver=new _.default(this.onResize),this.resizeObserver.observe(cn))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var nn=this.props.children,cn=Object(S.a)(nn);if(cn.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(cn.length===0)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var tn=cn[0];if(o.isValidElement(tn)&&Object(b.c)(tn)){var Ln=tn.ref;cn[0]=o.cloneElement(tn,{ref:Object(b.a)(Ln,this.setChildNode)})}return cn.length===1?cn[0]:cn.map(function(Tn,Xn){return!o.isValidElement(Tn)||"key"in Tn&&Tn.key!==null?Tn:o.cloneElement(Tn,{key:"".concat(I,"-").concat(Xn)})})}}]),vr}(o.Component);L.displayName="ResizeObserver";var N=L,D=d("qx4F");function R(bt){return null}var P=R;function M(bt){return null}var U=M,F=d("Ff2n"),j="RC_TABLE_KEY";function W(bt){return bt==null?[]:Array.isArray(bt)?bt:[bt]}function V(bt,mr){if(!mr&&typeof mr!="number")return bt;for(var vr=W(mr),Fr=bt,nn=0;nn<vr.length;nn+=1){if(!Fr)return null;var cn=vr[nn];Fr=Fr[cn]}return Fr}function z(bt){var mr=[],vr={};return bt.forEach(function(Fr){for(var nn=Fr||{},cn=nn.key,tn=nn.dataIndex,Ln=cn||W(tn).join("-")||j;vr[Ln];)Ln="".concat(Ln,"_next");vr[Ln]=!0,mr.push(Ln)}),mr}function Y(){var bt={};function mr(cn,tn){tn&&Object.keys(tn).forEach(function(Ln){var Tn=tn[Ln];Tn&&Object(a.a)(Tn)==="object"?(cn[Ln]=cn[Ln]||{},mr(cn[Ln],Tn)):cn[Ln]=Tn})}for(var vr=arguments.length,Fr=new Array(vr),nn=0;nn<vr;nn++)Fr[nn]=arguments[nn];return Fr.forEach(function(cn){mr(bt,cn)}),bt}function $(bt){return bt!=null}function ue(bt){return bt&&Object(a.a)(bt)==="object"&&!Array.isArray(bt)&&!o.isValidElement(bt)}function ne(bt){return typeof bt=="string"?!0:Object(b.c)(bt)}function ge(bt,mr){var vr,Fr=bt.prefixCls,nn=bt.className,cn=bt.record,tn=bt.index,Ln=bt.dataIndex,Tn=bt.render,Xn=bt.children,ci=bt.component,Jn=ci===void 0?"td":ci,pi=bt.colSpan,Si=bt.rowSpan,Ni=bt.fixLeft,xi=bt.fixRight,yi=bt.firstFixLeft,vi=bt.lastFixLeft,Ti=bt.firstFixRight,Ui=bt.lastFixRight,$i=bt.appendNode,Di=bt.additionalProps,ua=Di===void 0?{}:Di,aa=bt.ellipsis,Gi=bt.align,Vi=bt.rowType,ta=bt.isSticky,Xi="".concat(Fr,"-cell"),ga,ra;if(Xn)ra=Xn;else{var pa=V(cn,Ln);if(ra=pa,Tn){var _a=Tn(pa,cn,tn);ue(_a)?(ra=_a.children,ga=_a.props):ra=_a}}Object(a.a)(ra)==="object"&&!Array.isArray(ra)&&!o.isValidElement(ra)&&(ra=null),aa&&(vi||Ti)&&(ra=o.createElement("span",{className:"".concat(Xi,"-content")},ra));var Da=ga||{},Ra=Da.colSpan,Ao=Da.rowSpan,ja=Da.style,Ya=Da.className,Ia=Object(F.a)(Da,["colSpan","rowSpan","style","className"]),Va=Ra!==void 0?Ra:pi,co=Ao!==void 0?Ao:Si;if(Va===0||co===0)return null;var Ca={},yo=typeof Ni=="number",uo=typeof xi=="number";yo&&(Ca.position="sticky",Ca.left=Ni),uo&&(Ca.position="sticky",Ca.right=xi);var Ga={};Gi&&(Ga.textAlign=Gi);var Oo,oa=aa===!0?{showTitle:!0}:aa;oa&&(oa.showTitle||Vi==="header")&&(typeof ra=="string"||typeof ra=="number"?Oo=ra.toString():o.isValidElement(ra)&&typeof ra.props.children=="string"&&(Oo=ra.props.children));var qa=Object(s.a)(Object(s.a)(Object(s.a)({title:Oo},Ia),ua),{},{colSpan:Va&&Va!==1?Va:null,rowSpan:co&&co!==1?co:null,className:i()(Xi,nn,(vr={},Object(e.a)(vr,"".concat(Xi,"-fix-left"),yo),Object(e.a)(vr,"".concat(Xi,"-fix-left-first"),yi),Object(e.a)(vr,"".concat(Xi,"-fix-left-last"),vi),Object(e.a)(vr,"".concat(Xi,"-fix-right"),uo),Object(e.a)(vr,"".concat(Xi,"-fix-right-first"),Ti),Object(e.a)(vr,"".concat(Xi,"-fix-right-last"),Ui),Object(e.a)(vr,"".concat(Xi,"-ellipsis"),aa),Object(e.a)(vr,"".concat(Xi,"-with-append"),$i),Object(e.a)(vr,"".concat(Xi,"-fix-sticky"),(yo||uo)&&ta),vr),ua.className,Ya),style:Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},ua.style),Ga),Ca),ja),ref:ne(Jn)?mr:null});return o.createElement(Jn,Object.assign({},qa),$i,ra)}var Oe=o.forwardRef(ge);Oe.displayName="Cell";var De=o.memo(Oe,function(bt,mr){return mr.shouldCellUpdate?!mr.shouldCellUpdate(mr.record,bt.record):!1}),He=De,pe=o.createContext(null),Ue=pe;function oe(bt,mr,vr,Fr,nn){var cn=vr[bt]||{},tn=vr[mr]||{},Ln,Tn;cn.fixed==="left"?Ln=Fr.left[bt]:tn.fixed==="right"&&(Tn=Fr.right[mr]);var Xn=!1,ci=!1,Jn=!1,pi=!1,Si=vr[mr+1],Ni=vr[bt-1];if(nn==="rtl"){if(Ln!==void 0){var xi=Ni&&Ni.fixed==="left";pi=!xi}else if(Tn!==void 0){var yi=Si&&Si.fixed==="right";Jn=!yi}}else if(Ln!==void 0){var vi=Si&&Si.fixed==="left";Xn=!vi}else if(Tn!==void 0){var Ti=Ni&&Ni.fixed==="right";ci=!Ti}return{fixLeft:Ln,fixRight:Tn,lastFixLeft:Xn,firstFixRight:ci,lastFixRight:Jn,firstFixLeft:pi,isSticky:Fr.isSticky}}function ee(bt){var mr=bt.cells,vr=bt.stickyOffsets,Fr=bt.flattenColumns,nn=bt.rowComponent,cn=bt.cellComponent,tn=bt.onHeaderRow,Ln=bt.index,Tn=o.useContext(Ue),Xn=Tn.prefixCls,ci=Tn.direction,Jn;tn&&(Jn=tn(mr.map(function(Si){return Si.column}),Ln));var pi=z(mr.map(function(Si){return Si.column}));return o.createElement(nn,Object.assign({},Jn),mr.map(function(Si,Ni){var xi=Si.column,yi=oe(Si.colStart,Si.colEnd,Fr,vr,ci),vi;return xi&&xi.onHeaderCell&&(vi=Si.column.onHeaderCell(xi)),o.createElement(He,Object.assign({},Si,{ellipsis:xi.ellipsis,align:xi.align,component:cn,prefixCls:Xn,key:pi[Ni]},yi,{additionalProps:vi,rowType:"header"}))}))}ee.displayName="HeaderRow";var Xe=ee;function se(bt){var mr=[];function vr(tn,Ln){var Tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;mr[Tn]=mr[Tn]||[];var Xn=Ln,ci=tn.filter(Boolean).map(function(Jn){var pi={key:Jn.key,className:Jn.className||"",children:Jn.title,column:Jn,colStart:Xn},Si=1,Ni=Jn.children;return Ni&&Ni.length>0&&(Si=vr(Ni,Xn,Tn+1).reduce(function(xi,yi){return xi+yi},0),pi.hasSubColumns=!0),"colSpan"in Jn&&(Si=Jn.colSpan),"rowSpan"in Jn&&(pi.rowSpan=Jn.rowSpan),pi.colSpan=Si,pi.colEnd=pi.colStart+Si-1,mr[Tn].push(pi),Xn+=Si,Si});return ci}vr(bt,0);for(var Fr=mr.length,nn=function(Ln){mr[Ln].forEach(function(Tn){!("rowSpan"in Tn)&&!Tn.hasSubColumns&&(Tn.rowSpan=Fr-Ln)})},cn=0;cn<Fr;cn+=1)nn(cn);return mr}function Q(bt){var mr=bt.stickyOffsets,vr=bt.columns,Fr=bt.flattenColumns,nn=bt.onHeaderRow,cn=o.useContext(Ue),tn=cn.prefixCls,Ln=cn.getComponent,Tn=o.useMemo(function(){return se(vr)},[vr]),Xn=Ln(["header","wrapper"],"thead"),ci=Ln(["header","row"],"tr"),Jn=Ln(["header","cell"],"th");return o.createElement(Xn,{className:"".concat(tn,"-thead")},Tn.map(function(pi,Si){var Ni=o.createElement(Xe,{key:Si,flattenColumns:Fr,cells:pi,stickyOffsets:mr,rowComponent:ci,cellComponent:Jn,onHeaderRow:nn,index:Si});return Ni}))}var G=Q,J="RC_TABLE_INTERNAL_COL_DEFINE";function ve(bt){var mr=bt.expandable,vr=Object(F.a)(bt,["expandable"]);return"expandable"in bt?Object(s.a)(Object(s.a)({},vr),mr):vr}function de(bt){return Object.keys(bt).reduce(function(mr,vr){return(vr.substr(0,5)==="data-"||vr.substr(0,5)==="aria-")&&(mr[vr]=bt[vr]),mr},{})}function Ce(bt){for(var mr=bt.colWidths,vr=bt.columns,Fr=bt.columCount,nn=[],cn=Fr||vr.length,tn=!1,Ln=cn-1;Ln>=0;Ln-=1){var Tn=mr[Ln],Xn=vr&&vr[Ln],ci=Xn&&Xn[J];(Tn||ci||tn)&&(nn.unshift(o.createElement("col",Object.assign({key:Ln,style:{width:Tn,minWidth:Tn}},ci))),tn=!0)}return o.createElement("colgroup",null,nn)}var Ee=Ce;function le(bt,mr){return Object(o.useMemo)(function(){for(var vr=[],Fr=0;Fr<mr;Fr+=1){var nn=bt[Fr];if(nn!==void 0)vr[Fr]=nn;else return null}return vr},[bt.join("_"),mr])}var fe=o.forwardRef(function(bt,mr){var vr=bt.noData,Fr=bt.columns,nn=bt.flattenColumns,cn=bt.colWidths,tn=bt.columCount,Ln=bt.stickyOffsets,Tn=bt.direction,Xn=bt.fixHeader,ci=bt.offsetHeader,Jn=bt.stickyClassName,pi=bt.onScroll,Si=Object(F.a)(bt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Ni=o.useContext(Ue),xi=Ni.prefixCls,yi=Ni.scrollbarSize,vi=Ni.isSticky,Ti=vi&&!Xn?0:yi,Ui=o.useRef(null),$i=o.useCallback(function(Xi){Object(b.b)(mr,Xi),Object(b.b)(Ui,Xi)},[]);o.useEffect(function(){var Xi;function ga(ra){var pa=ra.currentTarget,_a=ra.deltaX;_a&&(pi({currentTarget:pa,scrollLeft:pa.scrollLeft+_a}),ra.preventDefault())}return(Xi=Ui.current)===null||Xi===void 0||Xi.addEventListener("wheel",ga),function(){var ra;(ra=Ui.current)===null||ra===void 0||ra.removeEventListener("wheel",ga)}},[]);var Di=nn[nn.length-1],ua={fixed:Di?Di.fixed:null,onHeaderCell:function(){return{className:"".concat(xi,"-cell-scrollbar")}}},aa=Object(o.useMemo)(function(){return Ti?[].concat(Object(t.a)(Fr),[ua]):Fr},[Ti,Fr]),Gi=Object(o.useMemo)(function(){return Ti?[].concat(Object(t.a)(nn),[ua]):nn},[Ti,nn]),Vi=Object(o.useMemo)(function(){var Xi=Ln.right,ga=Ln.left;return Object(s.a)(Object(s.a)({},Ln),{},{left:Tn==="rtl"?[].concat(Object(t.a)(ga.map(function(ra){return ra+Ti})),[0]):ga,right:Tn==="rtl"?Xi:[].concat(Object(t.a)(Xi.map(function(ra){return ra+Ti})),[0]),isSticky:vi})},[Ti,Ln,vi]),ta=le(cn,tn);return o.createElement("div",{style:Object(s.a)({overflow:"hidden"},vi?{top:ci}:{}),ref:$i,className:i()("".concat(xi,"-header"),Object(e.a)({},Jn,!!Jn))},o.createElement("table",{style:{tableLayout:"fixed",visibility:vr||ta?null:"hidden"}},o.createElement(Ee,{colWidths:ta?[].concat(Object(t.a)(ta),[Ti]):[],columCount:tn+1,columns:Gi}),o.createElement(G,Object.assign({},Si,{stickyOffsets:Vi,columns:aa,flattenColumns:Gi}))))});fe.displayName="FixedHeader";var xe=fe,Qe=o.createContext(null),ot=Qe;function Je(bt){var mr=bt.prefixCls,vr=bt.children,Fr=bt.component,nn=bt.cellComponent,cn=bt.fixHeader,tn=bt.fixColumn,Ln=bt.horizonScroll,Tn=bt.className,Xn=bt.expanded,ci=bt.componentWidth,Jn=bt.colSpan,pi=o.useContext(Ue),Si=pi.scrollbarSize;return o.useMemo(function(){var Ni=vr;return tn&&(Ni=o.createElement("div",{style:{width:ci-(cn?Si:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(mr,"-expanded-row-fixed")},Ni)),o.createElement(Fr,{className:Tn,style:{display:Xn?null:"none"}},o.createElement(He,{component:nn,prefixCls:mr,colSpan:Jn},Ni))},[vr,Fr,cn,Ln,Tn,Xn,ci,Jn,Si])}var Te=Je;function et(bt){var mr=bt.className,vr=bt.style,Fr=bt.record,nn=bt.index,cn=bt.rowKey,tn=bt.getRowKey,Ln=bt.rowExpandable,Tn=bt.expandedKeys,Xn=bt.onRow,ci=bt.indent,Jn=ci===void 0?0:ci,pi=bt.rowComponent,Si=bt.cellComponent,Ni=bt.childrenColumnName,xi=o.useContext(Ue),yi=xi.prefixCls,vi=xi.fixedInfoList,Ti=o.useContext(ot),Ui=Ti.fixHeader,$i=Ti.fixColumn,Di=Ti.horizonScroll,ua=Ti.componentWidth,aa=Ti.flattenColumns,Gi=Ti.expandableType,Vi=Ti.expandRowByClick,ta=Ti.onTriggerExpand,Xi=Ti.rowClassName,ga=Ti.expandedRowClassName,ra=Ti.indentSize,pa=Ti.expandIcon,_a=Ti.expandedRowRender,Da=Ti.expandIconColumnIndex,Ra=o.useState(!1),Ao=Object(l.a)(Ra,2),ja=Ao[0],Ya=Ao[1],Ia=Tn&&Tn.has(bt.recordKey);o.useEffect(function(){Ia&&Ya(!0)},[Ia]);var Va=Gi==="row"&&(!Ln||Ln(Fr)),co=Gi==="nest",Ca=Ni&&Fr&&Fr[Ni],yo=Va||co,uo;Xn&&(uo=Xn(Fr,nn));var Ga=function(Ja){if(Vi&&yo&&ta(Fr,Ja),uo&&uo.onClick){for(var Fa,ha=arguments.length,rt=new Array(ha>1?ha-1:0),cr=1;cr<ha;cr++)rt[cr-1]=arguments[cr];(Fa=uo).onClick.apply(Fa,[Ja].concat(rt))}},Oo;typeof Xi=="string"?Oo=Xi:typeof Xi=="function"&&(Oo=Xi(Fr,nn,Jn));var oa=z(aa),qa=o.createElement(pi,Object.assign({},uo,{"data-row-key":cn,className:i()(mr,"".concat(yi,"-row"),"".concat(yi,"-row-level-").concat(Jn),Oo,uo&&uo.className),style:Object(s.a)(Object(s.a)({},vr),uo?uo.style:null),onClick:Ga}),aa.map(function(go,Ja){var Fa=go.render,ha=go.dataIndex,rt=go.className,cr=oa[Ja],Pr=vi[Ja],Lr;Ja===(Da||0)&&co&&(Lr=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(ra*Jn,"px")},className:"".concat(yi,"-row-indent indent-level-").concat(Jn)}),pa({prefixCls:yi,expanded:Ia,expandable:Ca,record:Fr,onExpand:ta})));var _n;return go.onCell&&(_n=go.onCell(Fr,nn)),o.createElement(He,Object.assign({className:rt,ellipsis:go.ellipsis,align:go.align,component:Si,prefixCls:yi,key:cr,record:Fr,index:nn,dataIndex:ha,render:Fa,shouldCellUpdate:go.shouldCellUpdate},Pr,{appendNode:Lr,additionalProps:_n}))})),oo;if(Va&&(ja||Ia)){var Ro=_a(Fr,nn,Jn+1,Ia),Xa=ga&&ga(Fr,nn,Jn);oo=o.createElement(Te,{expanded:Ia,className:i()("".concat(yi,"-expanded-row"),"".concat(yi,"-expanded-row-level-").concat(Jn+1),Xa),prefixCls:yi,fixHeader:Ui,fixColumn:$i,horizonScroll:Di,component:pi,componentWidth:ua,cellComponent:Si,colSpan:aa.length},Ro)}var _o;return Ca&&Ia&&(_o=(Fr[Ni]||[]).map(function(go,Ja){var Fa=tn(go,Ja);return o.createElement(et,Object.assign({},bt,{key:Fa,rowKey:Fa,record:go,recordKey:Fa,index:Ja,indent:Jn+1}))})),o.createElement(o.Fragment,null,qa,oo,_o)}et.displayName="BodyRow";var ze=et,nt=o.createContext(null),Ot=nt;function Ct(bt){var mr=bt.columnKey,vr=bt.onColumnResize,Fr=o.useRef();return o.useEffect(function(){Fr.current&&vr(mr,Fr.current.offsetWidth)},[]),o.createElement(N,{onResize:function(cn){var tn=cn.offsetWidth;vr(mr,tn)}},o.createElement("td",{ref:Fr,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Tt(bt){var mr=bt.data,vr=bt.getRowKey,Fr=bt.measureColumnWidth,nn=bt.expandedKeys,cn=bt.onRow,tn=bt.rowExpandable,Ln=bt.emptyNode,Tn=bt.childrenColumnName,Xn=o.useContext(Ot),ci=Xn.onColumnResize,Jn=o.useContext(Ue),pi=Jn.prefixCls,Si=Jn.getComponent,Ni=o.useContext(ot),xi=Ni.fixHeader,yi=Ni.horizonScroll,vi=Ni.flattenColumns,Ti=Ni.componentWidth;return o.useMemo(function(){var Ui=Si(["body","wrapper"],"tbody"),$i=Si(["body","row"],"tr"),Di=Si(["body","cell"],"td"),ua;mr.length?ua=mr.map(function(Gi,Vi){var ta=vr(Gi,Vi);return o.createElement(ze,{key:ta,rowKey:ta,record:Gi,recordKey:ta,index:Vi,rowComponent:$i,cellComponent:Di,expandedKeys:nn,onRow:cn,getRowKey:vr,rowExpandable:tn,childrenColumnName:Tn})}):ua=o.createElement(Te,{expanded:!0,className:"".concat(pi,"-placeholder"),prefixCls:pi,fixHeader:xi,fixColumn:yi,horizonScroll:yi,component:$i,componentWidth:Ti,cellComponent:Di,colSpan:vi.length},Ln);var aa=z(vi);return o.createElement(Ui,{className:"".concat(pi,"-tbody")},Fr&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(pi,"-measure-row"),style:{height:0}},aa.map(function(Gi){return o.createElement(Ct,{key:Gi,columnKey:Gi,onColumnResize:ci})})),ua)},[mr,pi,cn,Fr,nn,vr,Si,Ti,Ln,vi])}var Dt=o.memo(Tt);Dt.displayName="Body";var Be=Dt;function ie(bt){return Object(S.a)(bt).filter(function(mr){return o.isValidElement(mr)}).map(function(mr){var vr=mr.key,Fr=mr.props,nn=Fr.children,cn=Object(F.a)(Fr,["children"]),tn=Object(s.a)({key:vr},cn);return nn&&(tn.children=ie(nn)),tn})}function X(bt){return bt.reduce(function(mr,vr){var Fr=vr.fixed,nn=Fr===!0?"left":Fr,cn=vr.children;return cn&&cn.length>0?[].concat(Object(t.a)(mr),Object(t.a)(X(cn).map(function(tn){return Object(s.a)({fixed:nn},tn)}))):[].concat(Object(t.a)(mr),[Object(s.a)(Object(s.a)({},vr),{},{fixed:nn})])},[])}function Fe(bt){for(var mr=!0,vr=0;vr<bt.length;vr+=1){var Fr=bt[vr];if(mr&&Fr.fixed!=="left")mr=!1;else if(!mr&&Fr.fixed==="left"){Object(p.a)(!1,"Index ".concat(vr-1," of `columns` missing `fixed='left'` prop."));break}}for(var nn=!0,cn=bt.length-1;cn>=0;cn-=1){var tn=bt[cn];if(nn&&tn.fixed!=="right")nn=!1;else if(!nn&&tn.fixed==="right"){Object(p.a)(!1,"Index ".concat(cn+1," of `columns` missing `fixed='right'` prop."));break}}}function Ne(bt){return bt.map(function(mr){var vr=mr.fixed,Fr=Object(F.a)(mr,["fixed"]),nn=vr;return vr==="left"?nn="right":vr==="right"&&(nn="left"),Object(s.a)({fixed:nn},Fr)})}function q(bt,mr){var vr=bt.prefixCls,Fr=bt.columns,nn=bt.children,cn=bt.expandable,tn=bt.expandedKeys,Ln=bt.getRowKey,Tn=bt.onTriggerExpand,Xn=bt.expandIcon,ci=bt.rowExpandable,Jn=bt.expandIconColumnIndex,pi=bt.direction,Si=bt.expandRowByClick,Ni=o.useMemo(function(){return Fr||ie(nn)},[Fr,nn]),xi=o.useMemo(function(){if(cn){var Ti,Ui=Jn||0,$i=Ni[Ui],Di=(Ti={},Object(e.a)(Ti,J,{className:"".concat(vr,"-expand-icon-col")}),Object(e.a)(Ti,"title",""),Object(e.a)(Ti,"fixed",$i?$i.fixed:null),Object(e.a)(Ti,"className","".concat(vr,"-row-expand-icon-cell")),Object(e.a)(Ti,"render",function(Gi,Vi,ta){var Xi=Ln(Vi,ta),ga=tn.has(Xi),ra=ci?ci(Vi):!0,pa=Xn({prefixCls:vr,expanded:ga,expandable:ra,record:Vi,onExpand:Tn});return Si?o.createElement("span",{onClick:function(Da){return Da.stopPropagation()}},pa):pa}),Ti),ua=Ni.slice();return Ui>=0&&ua.splice(Ui,0,Di),ua}return Ni},[cn,Ni,Ln,tn,Xn,pi]),yi=o.useMemo(function(){var Ti=xi;return mr&&(Ti=mr(Ti)),Ti.length||(Ti=[{render:function(){return null}}]),Ti},[mr,xi,pi]),vi=o.useMemo(function(){return pi==="rtl"?Ne(X(yi)):X(yi)},[yi,pi]);return[yi,vi]}var ht=q,Rt=d("xEkU"),ut=d.n(Rt);function Xt(bt){var mr=Object(o.useRef)(bt),vr=Object(o.useState)({}),Fr=Object(l.a)(vr,2),nn=Fr[1],cn=Object(o.useRef)(null),tn=Object(o.useRef)([]);function Ln(Tn){cn.current===null&&(tn.current=[],cn.current=ut()(function(){tn.current.forEach(function(Xn){mr.current=Xn(mr.current)}),cn.current=null,nn({})})),tn.current.push(Tn)}return Object(o.useEffect)(function(){return function(){ut.a.cancel(cn.current)}},[]),[mr.current,Ln]}function or(bt){var mr=Object(o.useRef)(bt),vr=Object(o.useRef)(null);function Fr(){window.clearTimeout(vr.current)}function nn(tn){mr.current=tn,Fr(),vr.current=window.setTimeout(function(){mr.current=null,vr.current=null},100)}function cn(){return mr.current}return Object(o.useEffect)(function(){return Fr},[]),[nn,cn]}function Zr(bt,mr,vr){var Fr=Object(o.useMemo)(function(){for(var nn=[],cn=[],tn=0,Ln=0,Tn=0;Tn<mr;Tn+=1)if(vr==="rtl"){cn[Tn]=Ln,Ln+=bt[Tn]||0;var Xn=mr-Tn-1;nn[Xn]=tn,tn+=bt[Xn]||0}else{nn[Tn]=tn,tn+=bt[Tn]||0;var ci=mr-Tn-1;cn[ci]=Ln,Ln+=bt[ci]||0}return{left:nn,right:cn}},[bt,mr,vr]);return Fr}var ar=Zr;function dr(bt){var mr=bt.className,vr=bt.children;return o.createElement("div",{className:mr},vr)}var er=dr;function Ht(bt){var mr=bt.className,vr=bt.index,Fr=bt.children,nn=bt.colSpan,cn=bt.rowSpan,tn=o.useContext(Ue),Ln=tn.prefixCls,Tn=tn.fixedInfoList,Xn=Tn[vr];return o.createElement(He,Object.assign({className:mr,index:vr,component:"td",prefixCls:Ln,record:null,dataIndex:null,render:function(){return{children:Fr,props:{colSpan:nn,rowSpan:cn}}}},Xn))}function dt(bt){return o.createElement("tr",Object.assign({},bt))}function Hr(bt){var mr=bt.children,vr=o.useContext(Ue),Fr=vr.prefixCls;return o.createElement("tfoot",{className:"".concat(Fr,"-summary")},mr)}var dn=Hr,Nn={Cell:Ht,Row:dt};function Vn(bt){var mr,vr=bt.prefixCls,Fr=bt.record,nn=bt.onExpand,cn=bt.expanded,tn=bt.expandable,Ln="".concat(vr,"-row-expand-icon");if(!tn)return o.createElement("span",{className:i()(Ln,"".concat(vr,"-row-spaced"))});var Tn=function(ci){nn(Fr,ci),ci.stopPropagation()};return o.createElement("span",{className:i()(Ln,(mr={},Object(e.a)(mr,"".concat(vr,"-row-expanded"),cn),Object(e.a)(mr,"".concat(vr,"-row-collapsed"),!cn),mr)),onClick:Tn})}function gi(bt,mr,vr){var Fr=[];function nn(cn){(cn||[]).forEach(function(tn,Ln){Fr.push(mr(tn,Ln)),nn(tn[vr])})}return nn(bt),Fr}var bn=d("zT1h"),Mn=d("y0+3"),jt=function(mr,vr){var Fr,nn,cn=mr.scrollBodyRef,tn=mr.onScroll,Ln=mr.offsetScroll,Tn=o.useContext(Ue),Xn=Tn.prefixCls,ci=((Fr=cn.current)===null||Fr===void 0?void 0:Fr.scrollWidth)||0,Jn=((nn=cn.current)===null||nn===void 0?void 0:nn.clientWidth)||0,pi=ci&&Jn*(Jn/ci),Si=o.useRef(),Ni=Xt({scrollLeft:0,isHiddenScrollBar:!1}),xi=Object(l.a)(Ni,2),yi=xi[0],vi=xi[1],Ti=o.useRef({delta:0,x:0}),Ui=o.useState(!1),$i=Object(l.a)(Ui,2),Di=$i[0],ua=$i[1],aa=function(){ua(!1)},Gi=function(ra){ra.persist(),Ti.current.delta=ra.pageX-yi.scrollLeft,Ti.current.x=0,ua(!0),ra.preventDefault()},Vi=function(ra){var pa,_a=ra||((pa=window)===null||pa===void 0?void 0:pa.event),Da=_a.buttons;if(!Di||Da===0){Di&&ua(!1);return}var Ra=Ti.current.x+ra.pageX-Ti.current.x-Ti.current.delta;Ra<=0&&(Ra=0),Ra+pi>=Jn&&(Ra=Jn-pi),tn({scrollLeft:Ra/Jn*(ci+2)}),Ti.current.x=ra.pageX},ta=function(){var ra=Object(Mn.b)(cn.current).top,pa=ra+cn.current.offsetHeight,_a=document.documentElement.scrollTop+window.innerHeight;pa-Object(D.a)()<=_a||ra>=_a-Ln?vi(function(Da){return Object(s.a)(Object(s.a)({},Da),{},{isHiddenScrollBar:!0})}):vi(function(Da){return Object(s.a)(Object(s.a)({},Da),{},{isHiddenScrollBar:!1})})},Xi=function(ra){vi(function(pa){return Object(s.a)(Object(s.a)({},pa),{},{scrollLeft:ra/ci*Jn||0})})};return o.useImperativeHandle(vr,function(){return{setScrollLeft:Xi}}),o.useEffect(function(){var ga=Object(bn.a)(document.body,"mouseup",aa,!1),ra=Object(bn.a)(document.body,"mousemove",Vi,!1);return ta(),function(){ga.remove(),ra.remove()}},[pi,Di]),o.useEffect(function(){var ga=Object(bn.a)(window,"scroll",ta,!1),ra=Object(bn.a)(window,"resize",ta,!1);return function(){ga.remove(),ra.remove()}},[]),o.useEffect(function(){yi.isHiddenScrollBar||vi(function(ga){var ra,pa;return Object(s.a)(Object(s.a)({},ga),{},{scrollLeft:cn.current.scrollLeft/((ra=cn.current)===null||ra===void 0?void 0:ra.scrollWidth)*((pa=cn.current)===null||pa===void 0?void 0:pa.clientWidth)})})},[yi.isHiddenScrollBar]),ci<=Jn||!pi||yi.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(D.a)(),width:Jn,bottom:Ln},className:"".concat(Xn,"-sticky-scroll")},o.createElement("div",{onMouseDown:Gi,ref:Si,className:i()("".concat(Xn,"-sticky-scroll-bar"),Object(e.a)({},"".concat(Xn,"-sticky-scroll-bar-active"),Di)),style:{width:"".concat(pi,"px"),transform:"translate3d(".concat(yi.scrollLeft,"px, 0, 0)")}}))},St=o.forwardRef(jt);function Ie(bt,mr){return o.useMemo(function(){var vr=!!bt;return{isSticky:vr,stickyClassName:vr?"".concat(mr,"-sticky-header"):"",offsetHeader:Object(a.a)(bt)==="object"&&bt.offsetHeader||0,offsetScroll:Object(a.a)(bt)==="object"&&bt.offsetScroll||0}},[bt,mr])}var _e=[],Le={},Ze="rc-table-internal-hook",it=o.memo(function(bt){var mr=bt.children;return mr},function(bt,mr){return h()(bt.props,mr.props)?bt.pingLeft!==mr.pingLeft||bt.pingRight!==mr.pingRight:!1});function ft(bt){var mr,vr=bt.prefixCls,Fr=bt.className,nn=bt.rowClassName,cn=bt.style,tn=bt.data,Ln=bt.rowKey,Tn=bt.scroll,Xn=bt.tableLayout,ci=bt.direction,Jn=bt.title,pi=bt.footer,Si=bt.summary,Ni=bt.id,xi=bt.showHeader,yi=bt.components,vi=bt.emptyText,Ti=bt.onRow,Ui=bt.onHeaderRow,$i=bt.internalHooks,Di=bt.transformColumns,ua=bt.internalRefs,aa=bt.sticky,Gi=tn||_e,Vi=!!Gi.length,ta=o.useState(0),Xi=Object(l.a)(ta,2),ga=Xi[0],ra=Xi[1];o.useEffect(function(){ra(Object(D.a)())});var pa=o.useMemo(function(){return Y(yi,{})},[yi]),_a=o.useCallback(function(vo,to){return V(pa,vo)||to},[pa]),Da=o.useMemo(function(){return typeof Ln=="function"?Ln:function(vo){var to=vo&&vo[Ln];return to}},[Ln]),Ra=ve(bt),Ao=Ra.expandIcon,ja=Ra.expandedRowKeys,Ya=Ra.defaultExpandedRowKeys,Ia=Ra.defaultExpandAllRows,Va=Ra.expandedRowRender,co=Ra.onExpand,Ca=Ra.onExpandedRowsChange,yo=Ra.expandRowByClick,uo=Ra.rowExpandable,Ga=Ra.expandIconColumnIndex,Oo=Ra.expandedRowClassName,oa=Ra.childrenColumnName,qa=Ra.indentSize,oo=Ao||Vn,Ro=oa||"children",Xa=o.useMemo(function(){return Va?"row":bt.expandable&&$i===Ze&&bt.expandable.__PARENT_RENDER_ICON__||Gi.some(function(vo){return vo&&Object(a.a)(vo)==="object"&&vo[Ro]})?"nest":!1},[!!Va,Gi]),_o=o.useState(function(){return Ya||(Ia?gi(Gi,Da,Ro):[])}),go=Object(l.a)(_o,2),Ja=go[0],Fa=go[1],ha=o.useMemo(function(){return new Set(ja||Ja||[])},[ja,Ja]),rt=o.useCallback(function(vo){var to=Da(vo,Gi.indexOf(vo)),Jo,ts=ha.has(to);ts?(ha.delete(to),Jo=Object(t.a)(ha)):Jo=[].concat(Object(t.a)(ha),[to]),Fa(Jo),co&&co(!ts,vo),Ca&&Ca(Jo)},[Da,ha,Gi,co,Ca]),cr=o.useState(0),Pr=Object(l.a)(cr,2),Lr=Pr[0],_n=Pr[1],Vr=ht(Object(s.a)(Object(s.a)(Object(s.a)({},bt),Ra),{},{expandable:!!Va,expandedKeys:ha,getRowKey:Da,onTriggerExpand:rt,expandIcon:oo,expandIconColumnIndex:Ga,direction:ci}),$i===Ze?Di:null),_r=Object(l.a)(Vr,2),kn=_r[0],Ur=_r[1],En=o.useMemo(function(){return{columns:kn,flattenColumns:Ur}},[kn,Ur]),jn=o.useRef(),Hn=o.useRef(),Bn=o.useRef(),ri=o.useState(!1),Yn=Object(l.a)(ri,2),ii=Yn[0],ai=Yn[1],ki=o.useState(!1),bi=Object(l.a)(ki,2),Ki=bi[0],Aa=bi[1],ea=Xt(new Map),Ji=Object(l.a)(ea,2),sa=Ji[0],fa=Ji[1],xo=z(Ur),Qa=xo.map(function(vo){return sa.get(vo)}),Wi=o.useMemo(function(){return Qa},[Qa.join("_")]),qi=ar(Wi,Ur.length,ci),ca=Tn&&$(Tn.y),ma=Tn&&$(Tn.x),ka=ma&&Ur.some(function(vo){var to=vo.fixed;return to}),La=o.useRef(),Za=Ie(aa,vr),eo=Za.isSticky,Po=Za.offsetHeader,jo=Za.offsetScroll,cs=Za.stickyClassName,Mo,Lo,Ba;ca&&(Lo={overflowY:"scroll",maxHeight:Tn.y}),ma&&(Mo={overflowX:"auto"},ca||(Lo={overflowY:"hidden"}),Ba={width:Tn.x===!0?"auto":Tn.x,minWidth:"100%"});var za=o.useCallback(function(vo,to){fa(function(Jo){var ts=new Map(Jo);return ts.set(vo,to),ts})},[]),Ta=or(null),ko=Object(l.a)(Ta,2),Qo=ko[0],so=ko[1];function Os(vo,to){if(!to)return;typeof to=="function"?to(vo):to.scrollLeft!==vo&&(to.scrollLeft=vo)}var ho=function(to){var Jo=to.currentTarget,ts=to.scrollLeft,Ha=typeof ts=="number"?ts:Jo.scrollLeft,It=Jo||Le;if(!so()||so()===It){var Vt;Qo(It),Os(Ha,Hn.current),Os(Ha,Bn.current),Os(Ha,(Vt=La.current)===null||Vt===void 0?void 0:Vt.setScrollLeft)}if(Jo){var hn=Jo.scrollWidth,zn=Jo.clientWidth;ai(Ha>0),Aa(Ha<hn-zn)}},bo=function(){Bn.current&&ho({currentTarget:Bn.current})},ds=function(to){var Jo=to.width;bo(),_n(jn.current?jn.current.offsetWidth:Jo)};o.useEffect(function(){return bo},[]),o.useEffect(function(){ma&&bo()},[ma]),o.useEffect(function(){$i===Ze&&ua&&(ua.body.current=Bn.current)});var Ho=_a(["table"],"table"),zo=o.useMemo(function(){return Xn||(ka?Tn.x==="max-content"?"auto":"fixed":ca||Ur.some(function(vo){var to=vo.ellipsis;return to})?"fixed":"auto")},[ca,ka,Ur,Xn]),rn,es={colWidths:Wi,columCount:Ur.length,stickyOffsets:qi,onHeaderRow:Ui,fixHeader:ca},Js=o.useMemo(function(){return Vi?null:typeof vi=="function"?vi():vi},[Vi,vi]),Es=o.createElement(Be,{data:Gi,measureColumnWidth:ca||ma||eo,expandedKeys:ha,rowExpandable:uo,getRowKey:Da,onRow:Ti,emptyNode:Js,childrenColumnName:Ro}),gs=o.createElement(Ee,{colWidths:Ur.map(function(vo){var to=vo.width;return to}),columns:Ur}),Ko=Si&&o.createElement(dn,null,Si(Gi)),hs=_a(["body"]);if(ca||eo){var bs;typeof hs=="function"?(bs=hs(Gi,{scrollbarSize:ga,ref:Bn,onScroll:ho}),es.colWidths=Ur.map(function(vo,to){var Jo=vo.width,ts=to===kn.length-1?Jo-ga:Jo;return typeof ts=="number"&&!Number.isNaN(ts)?ts:(Object(p.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):bs=o.createElement("div",{style:Object(s.a)(Object(s.a)({},Mo),Lo),onScroll:ho,ref:Bn,className:i()("".concat(vr,"-body"))},o.createElement(Ho,{style:Object(s.a)(Object(s.a)({},Ba),{},{tableLayout:zo})},gs,Es,Ko),eo&&o.createElement(St,{ref:La,offsetScroll:jo,scrollBodyRef:Bn,onScroll:ho})),rn=o.createElement(o.Fragment,null,xi!==!1&&o.createElement(xe,Object.assign({noData:!Gi.length},es,En,{direction:ci,offsetHeader:Po,stickyClassName:cs,ref:Hn,onScroll:ho})),bs)}else rn=o.createElement("div",{style:Object(s.a)(Object(s.a)({},Mo),Lo),className:i()("".concat(vr,"-content")),onScroll:ho,ref:Bn},o.createElement(Ho,{style:Object(s.a)(Object(s.a)({},Ba),{},{tableLayout:zo})},gs,xi!==!1&&o.createElement(G,Object.assign({},es,En)),Es,Ko));var ws=de(bt),qo=o.createElement("div",Object.assign({className:i()(vr,Fr,(mr={},Object(e.a)(mr,"".concat(vr,"-rtl"),ci==="rtl"),Object(e.a)(mr,"".concat(vr,"-ping-left"),ii),Object(e.a)(mr,"".concat(vr,"-ping-right"),Ki),Object(e.a)(mr,"".concat(vr,"-layout-fixed"),Xn==="fixed"),Object(e.a)(mr,"".concat(vr,"-fixed-header"),ca),Object(e.a)(mr,"".concat(vr,"-fixed-column"),ka),Object(e.a)(mr,"".concat(vr,"-scroll-horizontal"),ma),Object(e.a)(mr,"".concat(vr,"-has-fix-left"),Ur[0]&&Ur[0].fixed),Object(e.a)(mr,"".concat(vr,"-has-fix-right"),Ur[Ur.length-1]&&Ur[Ur.length-1].fixed==="right"),mr)),style:cn,id:Ni,ref:jn},ws),o.createElement(it,{pingLeft:ii,pingRight:Ki,props:Object(s.a)(Object(s.a)({},bt),{},{stickyOffsets:qi,mergedExpandedKeys:ha})},Jn&&o.createElement(er,{className:"".concat(vr,"-title")},Jn(Gi)),o.createElement("div",{className:"".concat(vr,"-container")},rn),pi&&o.createElement(er,{className:"".concat(vr,"-footer")},pi(Gi))));ma&&(qo=o.createElement(N,{onResize:ds},qo));var us=o.useMemo(function(){return{prefixCls:vr,getComponent:_a,scrollbarSize:ga,direction:ci,fixedInfoList:Ur.map(function(vo,to){return oe(to,to,Ur,qi,ci)}),isSticky:eo}},[vr,_a,ga,ci,Ur,qi,ci,eo]),_s=o.useMemo(function(){return Object(s.a)(Object(s.a)({},En),{},{tableLayout:zo,rowClassName:nn,expandedRowClassName:Oo,componentWidth:Lr,fixHeader:ca,fixColumn:ka,horizonScroll:ma,expandIcon:oo,expandableType:Xa,expandRowByClick:yo,expandedRowRender:Va,onTriggerExpand:rt,expandIconColumnIndex:Ga,indentSize:qa})},[En,zo,nn,Oo,Lr,ca,ka,ma,oo,Xa,yo,Va,rt,Ga,qa]),vs=o.useMemo(function(){return{onColumnResize:za}},[za]);return o.createElement(Ue.Provider,{value:us},o.createElement(ot.Provider,{value:_s},o.createElement(Ot.Provider,{value:vs},qo)))}ft.Column=U,ft.ColumnGroup=P,ft.Summary=Nn,ft.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Nt=ft,Ar=Nt,Mr=d("W9HT"),un=d("NUBc"),Mt=d("H84U"),at=function(bt,mr){var vr={};for(var Fr in bt)Object.prototype.hasOwnProperty.call(bt,Fr)&&mr.indexOf(Fr)<0&&(vr[Fr]=bt[Fr]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,Fr=Object.getOwnPropertySymbols(bt);nn<Fr.length;nn++)mr.indexOf(Fr[nn])<0&&Object.prototype.propertyIsEnumerable.call(bt,Fr[nn])&&(vr[Fr[nn]]=bt[Fr[nn]]);return vr},lt=10;function rr(bt,mr){var vr={current:mr.current,pageSize:mr.pageSize},Fr=bt&&E()(bt)==="object"?bt:{};return Object.keys(Fr).forEach(function(nn){var cn=mr[nn];typeof cn!="function"&&(vr[nn]=cn)}),vr}function Bt(){for(var bt={},mr=arguments.length,vr=new Array(mr),Fr=0;Fr<mr;Fr++)vr[Fr]=arguments[Fr];return vr.forEach(function(nn){nn&&Object.keys(nn).forEach(function(cn){var tn=nn[cn];tn!==void 0&&(bt[cn]=tn)})}),bt}function _t(bt,mr,vr){var Fr=mr&&E()(mr)==="object"?mr:{},nn=Fr.total,cn=nn===void 0?0:nn,tn=at(Fr,["total"]),Ln=Object(o.useState)(function(){return{current:"defaultCurrent"in tn?tn.defaultCurrent:1,pageSize:"defaultPageSize"in tn?tn.defaultPageSize:lt}}),Tn=m()(Ln,2),Xn=Tn[0],ci=Tn[1],Jn=Bt(Xn,tn,{total:cn>0?cn:bt});if(!cn){var pi=Math.ceil(bt/Jn.pageSize);pi<Jn.current&&(Jn.current=1)}var Si=function(){var yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,vi=arguments.length>1?arguments[1]:void 0;ci(c()(c()({},Jn),{current:yi,pageSize:vi||Jn.pageSize}))},Ni=function(yi,vi){var Ti=Jn==null?void 0:Jn.pageSize;vi&&vi!==Ti&&(yi=1,mr&&mr.onShowSizeChange&&mr.onShowSizeChange(yi,vi)),mr&&mr.onChange&&mr.onChange(yi,vi),Si(yi,vi),vr(yi,vi||Ti)};return mr===!1?[{},function(){}]:[c()(c()({},Jn),{onChange:Ni}),Si]}function Kt(bt,mr,vr){var Fr=o.useRef({});function nn(cn){if(!Fr.current||Fr.current.data!==bt||Fr.current.childrenColumnName!==mr||Fr.current.getRowKey!==vr){var tn=function Tn(Xn){Xn.forEach(function(ci,Jn){var pi=vr(ci,Jn);Ln.set(pi,ci),ci&&E()(ci)==="object"&&mr in ci&&Tn(ci[mr]||[])})},Ln=new Map;tn(bt),Fr.current={data:bt,childrenColumnName:mr,kvMap:Ln,getRowKey:vr}}return Fr.current.kvMap.get(cn)}return[nn]}var wt=d("SA+Z"),Ut=d.n(wt),Sr=d("RIqP"),hr=d.n(Sr),gr=d("HQEm"),Jr=d.n(gr),$r=d("c3jg"),Pn=d("qOx5"),Dn=d("wPhX"),Zn=d("6cGi"),li=d("kaz8"),Ai=d("jsC+"),Ii=d("BvKs"),$e=d("9yH6"),Se=d("uaoM"),Re="SELECT_ALL",je="SELECT_INVERT";function Ye(bt){return bt&&bt.fixed}function Ve(bt,mr){var vr=[];return(bt||[]).forEach(function(Fr){vr.push(Fr),Fr&&E()(Fr)==="object"&&mr in Fr&&(vr=[].concat(hr()(vr),hr()(Ve(Fr[mr],mr))))}),vr}function qe(bt,mr){var vr=bt||{},Fr=vr.preserveSelectedRowKeys,nn=vr.selectedRowKeys,cn=vr.getCheckboxProps,tn=vr.onChange,Ln=vr.onSelect,Tn=vr.onSelectAll,Xn=vr.onSelectInvert,ci=vr.onSelectMultiple,Jn=vr.columnWidth,pi=vr.type,Si=vr.selections,Ni=vr.fixed,xi=vr.renderCell,yi=vr.hideSelectAll,vi=vr.checkStrictly,Ti=vi===void 0?!0:vi,Ui=mr.prefixCls,$i=mr.data,Di=mr.pageData,ua=mr.getRecordByKey,aa=mr.getRowKey,Gi=mr.expandType,Vi=mr.childrenColumnName,ta=mr.locale,Xi=mr.expandIconColumnIndex,ga=mr.getPopupContainer,ra=o.useRef(new Map),pa=Object(Zn.a)(nn||[],{value:nn}),_a=m()(pa,2),Da=_a[0],Ra=_a[1],Ao=Object(o.useMemo)(function(){return Ti?{keyEntities:null}:Object($r.a)($i,void 0,aa)},[$i,aa,Ti]),ja=Ao.keyEntities,Ya=Object(o.useMemo)(function(){return Ve(Di,Vi)},[Di,Vi]),Ia=Object(o.useMemo)(function(){var Fa=new Map;return Ya.forEach(function(ha,rt){var cr=aa(ha,rt),Pr=(cn?cn(ha):null)||{};Fa.set(cr,Pr)}),Fa},[Ya,aa,cn]),Va=Object(o.useCallback)(function(Fa){var ha;return!!((ha=Ia.get(aa(Fa)))===null||ha===void 0?void 0:ha.disabled)},[Ia,aa]),co=Object(o.useMemo)(function(){if(Ti)return[Da,[]];var Fa=Object(Pn.a)(Da,!0,ja,Va),ha=Fa.checkedKeys,rt=Fa.halfCheckedKeys;return[ha,rt]},[Da,Ti,ja,Va]),Ca=m()(co,2),yo=Ca[0],uo=Ca[1],Ga=Object(o.useMemo)(function(){var Fa=pi==="radio"?yo.slice(0,1):yo;return new Set(Fa)},[yo,pi]),Oo=Object(o.useMemo)(function(){return pi==="radio"?new Set:new Set(uo)},[uo,pi]),oa=Object(o.useState)(null),qa=m()(oa,2),oo=qa[0],Ro=qa[1];o.useEffect(function(){bt||Ra([])},[!!bt]);var Xa=Object(o.useCallback)(function(Fa){var ha,rt;if(Fr){var cr=new Map;ha=Fa,rt=Fa.map(function(Pr){var Lr=ua(Pr);return!Lr&&ra.current.has(Pr)&&(Lr=ra.current.get(Pr)),cr.set(Pr,Lr),Lr}),ra.current=cr}else ha=[],rt=[],Fa.forEach(function(Pr){var Lr=ua(Pr);Lr!==void 0&&(ha.push(Pr),rt.push(Lr))});Ra(ha),tn&&tn(ha,rt)},[Ra,ua,tn,Fr]),_o=Object(o.useCallback)(function(Fa,ha,rt,cr){if(Ln){var Pr=rt.map(function(Lr){return ua(Lr)});Ln(ua(Fa),ha,Pr,cr)}Xa(rt)},[Ln,ua,Xa]),go=Object(o.useMemo)(function(){if(!Si||yi)return null;var Fa=Si===!0?[Re,je]:Si;return Fa.map(function(ha){return ha===Re?{key:"all",text:ta.selectionAll,onSelect:function(){Xa($i.map(function(cr,Pr){return aa(cr,Pr)}))}}:ha===je?{key:"invert",text:ta.selectInvert,onSelect:function(){var cr=new Set(Ga);Di.forEach(function(Lr,_n){var Vr=aa(Lr,_n);cr.has(Vr)?cr.delete(Vr):cr.add(Vr)});var Pr=Array.from(cr);Xa(Pr),Xn&&(Object(Se.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Xn(Pr))}}:ha})},[Si,Ga,Di,aa,Xn,Xa]),Ja=Object(o.useCallback)(function(Fa){if(!bt)return Fa;var ha=new Set(Ga),rt=Ya.map(aa).filter(function(ii){return!Ia.get(ii).disabled}),cr=rt.every(function(ii){return ha.has(ii)}),Pr=rt.some(function(ii){return ha.has(ii)}),Lr=function(){var ai=[];cr?rt.forEach(function(bi){ha.delete(bi),ai.push(bi)}):rt.forEach(function(bi){ha.has(bi)||(ha.add(bi),ai.push(bi))});var ki=Array.from(ha);Xa(ki),Tn&&Tn(!cr,ki.map(function(bi){return ua(bi)}),ai.map(function(bi){return ua(bi)}))},_n;if(pi!=="radio"){var Vr;if(go){var _r=o.createElement(Ii.a,{getPopupContainer:ga},go.map(function(ii,ai){var ki=ii.key,bi=ii.text,Ki=ii.onSelect;return o.createElement(Ii.a.Item,{key:ki||ai,onClick:function(){Ki&&Ki(rt)}},bi)}));Vr=o.createElement("div",{className:"".concat(Ui,"-selection-extra")},o.createElement(Ai.a,{overlay:_r,getPopupContainer:ga},o.createElement("span",null,o.createElement(Jr.a,null))))}var kn=Ya.every(function(ii,ai){var ki=aa(ii,ai),bi=Ia.get(ki)||{};return bi.disabled});_n=!yi&&o.createElement("div",{className:"".concat(Ui,"-selection")},o.createElement(li.a,{checked:!kn&&!!Ya.length&&cr,indeterminate:!cr&&Pr,onChange:Lr,disabled:Ya.length===0||kn}),Vr)}var Ur;pi==="radio"?Ur=function(ai,ki,bi){var Ki=aa(ki,bi),Aa=ha.has(Ki);return{node:o.createElement($e.a,c()({},Ia.get(Ki),{checked:Aa,onClick:function(Ji){return Ji.stopPropagation()},onChange:function(Ji){ha.has(Ki)||_o(Ki,!0,[Ki],Ji.nativeEvent)}})),checked:Aa}}:Ur=function(ai,ki,bi){var Ki,Aa=aa(ki,bi),ea=ha.has(Aa),Ji=Oo.has(Aa),sa=Ia.get(Aa),fa;return Gi==="nest"?(fa=Ji,Object(Se.a)(!(typeof(sa==null?void 0:sa.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):fa=(Ki=sa==null?void 0:sa.indeterminate)!==null&&Ki!==void 0?Ki:Ji,{node:o.createElement(li.a,c()({},sa,{indeterminate:fa,checked:ea,onClick:function(Qa){return Qa.stopPropagation()},onChange:function(Qa){var Wi=Qa.nativeEvent,qi=Wi.shiftKey,ca=-1,ma=-1;if(qi&&Ti){var ka=new Set([oo,Aa]);rt.some(function(Ta,ko){if(ka.has(Ta))if(ca===-1)ca=ko;else return ma=ko,!0;return!1})}if(ma!==-1&&ca!==ma&&Ti){var La=rt.slice(ca,ma+1),Za=[];ea?La.forEach(function(Ta){ha.has(Ta)&&(Za.push(Ta),ha.delete(Ta))}):La.forEach(function(Ta){ha.has(Ta)||(Za.push(Ta),ha.add(Ta))});var eo=Array.from(ha);Xa(eo),ci&&ci(!ea,eo.map(function(Ta){return ua(Ta)}),Za.map(function(Ta){return ua(Ta)}))}else{var Po=yo;if(Ti){var jo=ea?Object(Dn.b)(Po,Aa):Object(Dn.a)(Po,Aa);_o(Aa,!ea,jo,Wi)}else{var cs=Object(Pn.a)([].concat(hr()(Po),[Aa]),!0,ja,Va),Mo=cs.checkedKeys,Lo=cs.halfCheckedKeys,Ba=Mo;if(ea){var za=new Set(Mo);za.delete(Aa),Ba=Object(Pn.a)(Array.from(za),{checked:!1,halfCheckedKeys:Lo},ja,Va).checkedKeys}_o(Aa,!ea,Ba,Wi)}}Ro(Aa)}})),checked:ea}};var En=function(ai,ki,bi){var Ki=Ur(ai,ki,bi),Aa=Ki.node,ea=Ki.checked;return xi?xi(ea,ki,bi,Aa):Aa},jn=A()({width:Jn,className:"".concat(Ui,"-selection-column"),title:bt.columnTitle||_n,render:En},J,{className:"".concat(Ui,"-selection-col")});if(Gi==="row"&&Fa.length&&!Xi){var Hn=Ut()(Fa),Bn=Hn[0],ri=Hn.slice(1),Yn=Ni||Ye(ri[0]);return Yn&&(Bn.fixed=Yn),[Bn,c()(c()({},jn),{fixed:Yn})].concat(hr()(ri))}return[c()(c()({},jn),{fixed:Ni||Ye(Fa[0])})].concat(hr()(Fa))},[aa,Ya,bt,yo,Ga,Oo,Jn,go,Gi,oo,Ia,ci,_o,Va]);return[Ja,Ga]}var xt=d("6SEX"),ct=d.n(xt),Jt=d("i8CU"),Rr=d.n(Jt),Ir=d("3S7+");function Xr(bt,mr){return"key"in bt&&bt.key!==void 0&&bt.key!==null?bt.key:bt.dataIndex?Array.isArray(bt.dataIndex)?bt.dataIndex.join("."):bt.dataIndex:mr}function qt(bt,mr){return mr?"".concat(mr,"-").concat(bt):"".concat(bt)}function pn(bt,mr){return typeof bt=="function"?bt(mr):bt}var fr="ascend",mn="descend";function en(bt){return E()(bt.sorter)==="object"&&typeof bt.sorter.multiple=="number"?bt.sorter.multiple:!1}function kr(bt){return typeof bt=="function"?bt:bt&&E()(bt)==="object"&&bt.compare?bt.compare:!1}function Gn(bt,mr){return mr?bt[bt.indexOf(mr)+1]:bt[0]}function di(bt,mr,vr){var Fr=[];function nn(cn,tn){Fr.push({column:cn,key:Xr(cn,tn),multiplePriority:en(cn),sortOrder:cn.sortOrder})}return(bt||[]).forEach(function(cn,tn){var Ln=qt(tn,vr);cn.children?("sortOrder"in cn&&nn(cn,Ln),Fr=[].concat(hr()(Fr),hr()(di(cn.children,mr,Ln)))):cn.sorter&&("sortOrder"in cn?nn(cn,Ln):mr&&cn.defaultSortOrder&&Fr.push({column:cn,key:Xr(cn,Ln),multiplePriority:en(cn),sortOrder:cn.defaultSortOrder}))}),Fr}function _i(bt,mr,vr,Fr,nn,cn,tn,Ln){return(mr||[]).map(function(Tn,Xn){var ci=qt(Xn,Ln),Jn=Tn;if(Jn.sorter){var pi=Jn.sortDirections||nn,Si=Jn.showSorterTooltip===void 0?tn:Jn.showSorterTooltip,Ni=Xr(Jn,ci),xi=vr.find(function(Vi){var ta=Vi.key;return ta===Ni}),yi=xi?xi.sortOrder:null,vi=Gn(pi,yi),Ti=pi.includes(fr)&&o.createElement(Rr.a,{className:i()("".concat(bt,"-column-sorter-up"),{active:yi===fr})}),Ui=pi.includes(mn)&&o.createElement(ct.a,{className:i()("".concat(bt,"-column-sorter-down"),{active:yi===mn})}),$i=cn||{},Di=$i.cancelSort,ua=$i.triggerAsc,aa=$i.triggerDesc,Gi=Di;vi===mn?Gi=aa:vi===fr&&(Gi=ua),Jn=c()(c()({},Jn),{className:i()(Jn.className,A()({},"".concat(bt,"-column-sort"),yi)),title:function(ta){var Xi=o.createElement("div",{className:"".concat(bt,"-column-sorters")},o.createElement("span",null,pn(Tn.title,ta)),o.createElement("span",{className:i()("".concat(bt,"-column-sorter"),A()({},"".concat(bt,"-column-sorter-full"),Ti&&Ui))},o.createElement("span",{className:"".concat(bt,"-column-sorter-inner")},Ti,Ui)));return Si?o.createElement(Ir.a,{title:Gi},o.createElement("div",{className:"".concat(bt,"-column-sorters-with-tooltip")},Xi)):Xi},onHeaderCell:function(ta){var Xi=Tn.onHeaderCell&&Tn.onHeaderCell(ta)||{},ga=Xi.onClick;return Xi.onClick=function(ra){Fr({column:Tn,key:Ni,sortOrder:vi,multiplePriority:en(Tn)}),ga&&ga(ra)},Xi.className=i()(Xi.className,"".concat(bt,"-column-has-sorters")),Xi}})}return"children"in Jn&&(Jn=c()(c()({},Jn),{children:_i(bt,Jn.children,vr,Fr,nn,cn,tn,ci)})),Jn})}function Br(bt){var mr=bt.column,vr=bt.sortOrder;return{column:mr,order:vr,field:mr.dataIndex,columnKey:mr.key}}function sn(bt){var mr=bt.filter(function(vr){var Fr=vr.sortOrder;return Fr}).map(Br);return mr.length===0&&bt.length?c()(c()({},Br(bt[bt.length-1])),{column:void 0}):mr.length<=1?mr[0]||{}:mr}function Sn(bt,mr,vr){var Fr=mr.slice().sort(function(tn,Ln){return Ln.multiplePriority-tn.multiplePriority}),nn=bt.slice(),cn=Fr.filter(function(tn){var Ln=tn.column.sorter,Tn=tn.sortOrder;return kr(Ln)&&Tn});return cn.length?nn.sort(function(tn,Ln){for(var Tn=0;Tn<cn.length;Tn+=1){var Xn=cn[Tn],ci=Xn.column.sorter,Jn=Xn.sortOrder,pi=kr(ci);if(pi&&Jn){var Si=pi(tn,Ln,Jn);if(Si!==0)return Jn===fr?Si:-Si}}return 0}).map(function(tn){var Ln=tn[vr];return Ln?c()(c()({},tn),A()({},vr,Sn(Ln,mr,vr))):tn}):nn}function Pt(bt){var mr=bt.prefixCls,vr=bt.mergedColumns,Fr=bt.onSorterChange,nn=bt.sortDirections,cn=bt.tableLocale,tn=bt.showSorterTooltip,Ln=o.useState(di(vr,!0)),Tn=m()(Ln,2),Xn=Tn[0],ci=Tn[1],Jn=o.useMemo(function(){var yi=!0,vi=di(vr,!1);if(!vi.length)return Xn;var Ti=[];function Ui(Di){yi?Ti.push(Di):Ti.push(c()(c()({},Di),{sortOrder:null}))}var $i=null;return vi.forEach(function(Di){$i===null?(Ui(Di),Di.sortOrder&&(Di.multiplePriority===!1?yi=!1:$i=!0)):($i&&Di.multiplePriority!==!1||(yi=!1),Ui(Di))}),Ti},[vr,Xn]),pi=o.useMemo(function(){var yi=Jn.map(function(vi){var Ti=vi.column,Ui=vi.sortOrder;return{column:Ti,order:Ui}});return{sortColumns:yi,sortColumn:yi[0]&&yi[0].column,sortOrder:yi[0]&&yi[0].order}},[Jn]);function Si(yi){var vi;yi.multiplePriority===!1||!Jn.length||Jn[0].multiplePriority===!1?vi=[yi]:vi=[].concat(hr()(Jn.filter(function(Ti){var Ui=Ti.key;return Ui!==yi.key})),[yi]),ci(vi),Fr(sn(vi),vi)}var Ni=function(vi){return _i(mr,vi,Jn,Si,nn,cn,tn)},xi=function(){return sn(Jn)};return[Ni,Jn,pi,xi]}var gt=d("Y+p1"),Et=d.n(gt),Lt=d("5Uyt"),kt=d.n(Lt),yt=d("2/Rp"),Qt=d("ECub"),tr=function(mr){return o.createElement("div",{className:mr.className,onClick:function(Fr){return Fr.stopPropagation()}},mr.children)},ir=tr,yr=d("sPtV"),xn=Ii.a.SubMenu,vn=Ii.a.Item;function Wn(bt){return bt.some(function(mr){var vr=mr.children;return vr})}function Yr(bt){var mr=bt.filters,vr=bt.prefixCls,Fr=bt.filteredKeys,nn=bt.filterMultiple,cn=bt.locale;return mr.length===0?o.createElement(o.Fragment,null,o.createElement(Qt.a,{image:Qt.a.PRESENTED_IMAGE_SIMPLE,description:cn.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):mr.map(function(tn,Ln){var Tn=String(tn.value);if(tn.children)return o.createElement(xn,{key:Tn||Ln,title:tn.text,popupClassName:"".concat(vr,"-dropdown-submenu")},Yr({filters:tn.children,prefixCls:vr,filteredKeys:Fr,filterMultiple:nn,locale:cn}));var Xn=nn?li.a:$e.a;return o.createElement(vn,{key:tn.value!==void 0?Tn:Ln},o.createElement(Xn,{checked:Fr.includes(Tn)}),o.createElement("span",null,tn.text))})}function xr(bt){var mr,vr=bt.prefixCls,Fr=bt.column,nn=bt.dropdownPrefixCls,cn=bt.columnKey,tn=bt.filterMultiple,Ln=bt.filterState,Tn=bt.triggerFilter,Xn=bt.locale,ci=bt.children,Jn=bt.getPopupContainer,pi=Fr.filterDropdownVisible,Si=Fr.onFilterDropdownVisibleChange,Ni=o.useState(!1),xi=m()(Ni,2),yi=xi[0],vi=xi[1],Ti=!!(Ln&&(((mr=Ln.filteredKeys)===null||mr===void 0?void 0:mr.length)||Ln.forceFiltered)),Ui=function(qa){vi(qa),Si&&Si(qa)},$i=typeof pi=="boolean"?pi:yi,Di=Ln&&Ln.filteredKeys,ua=Object(yr.a)(Di||[]),aa=m()(ua,2),Gi=aa[0],Vi=aa[1],ta=function(qa){var oo=qa.selectedKeys;Vi(oo)};o.useEffect(function(){ta({selectedKeys:Di||[]})},[Di]);var Xi=o.useState([]),ga=m()(Xi,2),ra=ga[0],pa=ga[1],_a=o.useRef(),Da=function(qa){_a.current=window.setTimeout(function(){pa(qa)})},Ra=function(){window.clearTimeout(_a.current)};o.useEffect(function(){return function(){window.clearTimeout(_a.current)}},[]);var Ao=function(qa){Ui(!1);var oo=qa&&qa.length?qa:null;if(oo===null&&(!Ln||!Ln.filteredKeys))return null;if(Et()(oo,Ln==null?void 0:Ln.filteredKeys))return null;Tn({column:Fr,key:cn,filteredKeys:oo})},ja=function(){Ao(Gi())},Ya=function(){Vi([]),Ao([])},Ia=function(qa){qa&&Di!==void 0&&Vi(Di||[]),Ui(qa),!qa&&!Fr.filterDropdown&&ja()},Va=i()(A()({},"".concat(nn,"-menu-without-submenu"),!Wn(Fr.filters||[]))),co;if(typeof Fr.filterDropdown=="function")co=Fr.filterDropdown({prefixCls:"".concat(nn,"-custom"),setSelectedKeys:function(qa){return ta({selectedKeys:qa})},selectedKeys:Gi(),confirm:ja,clearFilters:Ya,filters:Fr.filters,visible:$i});else if(Fr.filterDropdown)co=Fr.filterDropdown;else{var Ca=Gi()||[];co=o.createElement(o.Fragment,null,o.createElement(Ii.a,{multiple:tn,prefixCls:"".concat(nn,"-menu"),className:Va,onClick:Ra,onSelect:ta,onDeselect:ta,selectedKeys:Ca,getPopupContainer:Jn,openKeys:ra,onOpenChange:Da},Yr({filters:Fr.filters||[],prefixCls:vr,filteredKeys:Gi(),filterMultiple:tn,locale:Xn})),o.createElement("div",{className:"".concat(vr,"-dropdown-btns")},o.createElement(yt.a,{type:"link",size:"small",disabled:Ca.length===0,onClick:Ya},Xn.filterReset),o.createElement(yt.a,{type:"primary",size:"small",onClick:ja},Xn.filterConfirm)))}var yo=o.createElement(ir,{className:"".concat(vr,"-dropdown")},co),uo;typeof Fr.filterIcon=="function"?uo=Fr.filterIcon(Ti):Fr.filterIcon?uo=Fr.filterIcon:uo=o.createElement(kt.a,null);var Ga=o.useContext(Mt.b),Oo=Ga.direction;return o.createElement("div",{className:i()("".concat(vr,"-column"))},o.createElement("span",{className:"".concat(vr,"-column-title")},ci),o.createElement("span",{className:i()("".concat(vr,"-trigger-container"),A()({},"".concat(vr,"-trigger-container-open"),$i)),onClick:function(qa){qa.stopPropagation()}},o.createElement(Ai.a,{overlay:yo,trigger:["click"],visible:$i,onVisibleChange:Ia,getPopupContainer:Jn,placement:Oo==="rtl"?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:i()("".concat(vr,"-trigger"),{active:Ti})},uo))))}var ln=xr;function On(bt,mr,vr){var Fr=[];return(bt||[]).forEach(function(nn,cn){var tn=qt(cn,vr);"children"in nn?Fr=[].concat(hr()(Fr),hr()(On(nn.children,mr,tn))):(nn.filters||"filterDropdown"in nn||"onFilter"in nn)&&("filteredValue"in nn?Fr.push({column:nn,key:Xr(nn,tn),filteredKeys:nn.filteredValue,forceFiltered:nn.filtered}):Fr.push({column:nn,key:Xr(nn,tn),filteredKeys:mr&&nn.defaultFilteredValue?nn.defaultFilteredValue:void 0,forceFiltered:nn.filtered}))}),Fr}function In(bt,mr,vr,Fr,nn,cn,tn,Ln){return vr.map(function(Tn,Xn){var ci=qt(Xn,Ln),Jn=Tn.filterMultiple,pi=Jn===void 0?!0:Jn;if(Tn.filters||"filterDropdown"in Tn){var Si=Xr(Tn,ci),Ni=Fr.find(function(xi){var yi=xi.key;return Si===yi});return c()(c()({},Tn),{title:function(yi){return o.createElement(ln,{prefixCls:"".concat(bt,"-filter"),dropdownPrefixCls:mr,column:Tn,columnKey:Si,filterState:Ni,filterMultiple:pi,triggerFilter:nn,locale:tn,getPopupContainer:cn},pn(Tn.title,yi))}})}return"children"in Tn?c()(c()({},Tn),{children:In(bt,mr,Tn.children,Fr,nn,cn,tn,ci)}):Tn})}function Un(bt){var mr={};return bt.forEach(function(vr){var Fr=vr.key,nn=vr.filteredKeys;mr[Fr]=nn||null}),mr}function ti(bt){var mr=[];return(bt||[]).forEach(function(vr){var Fr=vr.value,nn=vr.children;mr.push(Fr),nn&&(mr=[].concat(hr()(mr),hr()(ti(nn))))}),mr}function ui(bt,mr){return mr.reduce(function(vr,Fr){var nn=Fr.column,cn=nn.onFilter,tn=nn.filters,Ln=Fr.filteredKeys;return cn&&Ln&&Ln.length?vr.filter(function(Tn){return Ln.some(function(Xn){var ci=ti(tn),Jn=ci.findIndex(function(Si){return String(Si)===String(Xn)}),pi=Jn!==-1?ci[Jn]:Xn;return cn(pi,Tn)})}):vr},bt)}function si(bt){var mr=bt.prefixCls,vr=bt.dropdownPrefixCls,Fr=bt.mergedColumns,nn=bt.onFilterChange,cn=bt.getPopupContainer,tn=bt.locale,Ln=o.useState(On(Fr,!0)),Tn=m()(Ln,2),Xn=Tn[0],ci=Tn[1],Jn=o.useMemo(function(){var xi=On(Fr,!1);return xi.every(function(yi){var vi=yi.filteredKeys;return vi===void 0})?Xn:xi},[Fr,Xn]),pi=o.useCallback(function(){return Un(Jn)},[Jn]),Si=function(yi){var vi=Jn.filter(function(Ti){var Ui=Ti.key;return Ui!==yi.key});vi.push(yi),ci(vi),nn(Un(vi),vi)},Ni=function(yi){return In(mr,vr,yi,Jn,Si,cn,tn)};return[Ni,Jn,pi]}var Pi=si;function zi(bt,mr){return bt.map(function(vr){var Fr=c()({},vr);return Fr.title=pn(vr.title,mr),"children"in Fr&&(Fr.children=zi(Fr.children,mr)),Fr})}function Ri(bt){var mr=o.useCallback(function(vr){return zi(vr,bt)},[bt]);return[mr]}function Yi(bt){return function(vr){var Fr,nn=vr.prefixCls,cn=vr.onExpand,tn=vr.record,Ln=vr.expanded,Tn=vr.expandable,Xn="".concat(nn,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:function(Jn){cn(tn,Jn),Jn.stopPropagation()},className:i()(Xn,(Fr={},A()(Fr,"".concat(Xn,"-spaced"),!Tn),A()(Fr,"".concat(Xn,"-expanded"),Tn&&Ln),A()(Fr,"".concat(Xn,"-collapsed"),Tn&&!Ln),Fr)),"aria-label":Ln?bt.collapse:bt.expand})}}var $n=Yi,gn=d("zAh6"),mi=d("ZvpZ"),Hi=mi.a,Li=d("3Nzz");function Bi(bt){return null}var wr=Bi;function lr(bt){return null}var on=lr,Zt=d("5OYt"),br=[];function Or(bt){var mr,vr=bt.prefixCls,Fr=bt.className,nn=bt.style,cn=bt.size,tn=bt.bordered,Ln=bt.dropdownPrefixCls,Tn=bt.dataSource,Xn=bt.pagination,ci=bt.rowSelection,Jn=bt.rowKey,pi=bt.rowClassName,Si=bt.columns,Ni=bt.children,xi=bt.childrenColumnName,yi=bt.onChange,vi=bt.getPopupContainer,Ti=bt.loading,Ui=bt.expandIcon,$i=bt.expandable,Di=bt.expandedRowRender,ua=bt.expandIconColumnIndex,aa=bt.indentSize,Gi=bt.scroll,Vi=bt.sortDirections,ta=bt.locale,Xi=bt.showSorterTooltip,ga=Xi===void 0?!0:Xi;Object(Se.a)(!(typeof Jn=="function"&&Jn.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var ra=Object(Zt.a)(),pa=o.useMemo(function(){var za=new Set(Object.keys(ra).filter(function(Ta){return ra[Ta]}));return(Si||ie(Ni)).filter(function(Ta){return!Ta.responsive||Ta.responsive.some(function(ko){return za.has(ko)})})},[Ni,Si,ra]),_a=Object(n.default)(bt,["className","style","columns"]),Da=o.useContext(Li.b),Ra=o.useContext(Mt.b),Ao=Ra.locale,ja=Ao===void 0?Hi:Ao,Ya=Ra.renderEmpty,Ia=Ra.direction,Va=cn||Da,co=c()(c()({},ja.Table),ta),Ca=Tn||br,yo=o.useContext(Mt.b),uo=yo.getPrefixCls,Ga=uo("table",vr),Oo=uo("dropdown",Ln),oa=c()({childrenColumnName:xi,expandIconColumnIndex:ua},$i),qa=oa.childrenColumnName,oo=qa===void 0?"children":qa,Ro=o.useMemo(function(){return Ca.some(function(za){var Ta;return(Ta=za)===null||Ta===void 0?void 0:Ta[oo]})?"nest":Di||$i&&$i.expandedRowRender?"row":null},[Ca]),Xa={body:o.useRef()},_o=o.useMemo(function(){return typeof Jn=="function"?Jn:function(za){var Ta;return(Ta=za)===null||Ta===void 0?void 0:Ta[Jn]}},[Jn]),go=Kt(Ca,oo,_o),Ja=m()(go,1),Fa=Ja[0],ha={},rt=function(Ta,ko){var Qo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,so=c()(c()({},ha),Ta);Qo&&(ha.resetPagination(),so.pagination.current&&(so.pagination.current=1),Xn&&Xn.onChange&&Xn.onChange(1,so.pagination.pageSize)),Gi&&Gi.scrollToFirstRowOnChange!==!1&&Xa.body.current&&Object(gn.a)(0,{getContainer:function(){return Xa.body.current}}),yi&&yi(so.pagination,so.filters,so.sorter,{currentDataSource:ui(Sn(Ca,so.sorterStates,oo),so.filterStates),action:ko})},cr=function(Ta,ko){rt({sorter:Ta,sorterStates:ko},"sort",!1)},Pr=Pt({prefixCls:Ga,mergedColumns:pa,onSorterChange:cr,sortDirections:Vi||["ascend","descend"],tableLocale:co,showSorterTooltip:ga}),Lr=m()(Pr,4),_n=Lr[0],Vr=Lr[1],_r=Lr[2],kn=Lr[3],Ur=o.useMemo(function(){return Sn(Ca,Vr,oo)},[Ca,Vr]);ha.sorter=kn(),ha.sorterStates=Vr;var En=function(Ta,ko){rt({filters:Ta,filterStates:ko},"filter",!0)},jn=Pi({prefixCls:Ga,locale:co,dropdownPrefixCls:Oo,mergedColumns:pa,onFilterChange:En,getPopupContainer:vi}),Hn=m()(jn,3),Bn=Hn[0],ri=Hn[1],Yn=Hn[2],ii=ui(Ur,ri);ha.filters=Yn(),ha.filterStates=ri;var ai=o.useMemo(function(){return c()({},_r)},[_r]),ki=Ri(ai),bi=m()(ki,1),Ki=bi[0],Aa=function(Ta,ko){rt({pagination:c()(c()({},ha.pagination),{current:Ta,pageSize:ko})},"paginate")},ea=_t(ii.length,Xn,Aa),Ji=m()(ea,2),sa=Ji[0],fa=Ji[1];ha.pagination=Xn===!1?{}:rr(Xn,sa),ha.resetPagination=fa;var xo=o.useMemo(function(){if(Xn===!1||!sa.pageSize)return ii;var za=sa.current,Ta=za===void 0?1:za,ko=sa.total,Qo=sa.pageSize,so=Qo===void 0?lt:Qo;return ii.length<ko?ii.length>so?(Object(Se.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."),ii.slice((Ta-1)*so,Ta*so)):ii:ii.slice((Ta-1)*so,Ta*so)},[!!Xn,ii,sa&&sa.current,sa&&sa.pageSize,sa&&sa.total]),Qa=qe(ci,{prefixCls:Ga,data:ii,pageData:xo,getRowKey:_o,getRecordByKey:Fa,expandType:Ro,childrenColumnName:oo,locale:co,expandIconColumnIndex:oa.expandIconColumnIndex,getPopupContainer:vi}),Wi=m()(Qa,2),qi=Wi[0],ca=Wi[1],ma=function(Ta,ko,Qo){var so;return typeof pi=="function"?so=i()(pi(Ta,ko,Qo)):so=i()(pi),i()(A()({},"".concat(Ga,"-row-selected"),ca.has(_o(Ta,ko))),so)};oa.__PARENT_RENDER_ICON__=oa.expandIcon,oa.expandIcon=oa.expandIcon||Ui||$n(co),Ro==="nest"&&oa.expandIconColumnIndex===void 0?oa.expandIconColumnIndex=ci?1:0:oa.expandIconColumnIndex>0&&ci&&(oa.expandIconColumnIndex-=1),typeof oa.indentSize!="number"&&(oa.indentSize=typeof aa=="number"?aa:15);var ka=o.useCallback(function(za){return Ki(qi(Bn(_n(za))))},[_n,Bn,qi]),La,Za;if(Xn!==!1){var eo;sa.size?eo=sa.size:eo=Va==="small"||Va==="middle"?"small":void 0;var Po=function(Ta){return o.createElement(un.a,c()({className:"".concat(Ga,"-pagination ").concat(Ga,"-pagination-").concat(Ta)},sa,{size:eo}))},jo=Ia==="rtl"?"left":"right";if(sa.position!==null&&Array.isArray(sa.position)){var cs=sa.position.find(function(za){return za.indexOf("top")!==-1}),Mo=sa.position.find(function(za){return za.indexOf("bottom")!==-1});!cs&&!Mo?Za=Po(jo):(cs&&(La=Po(cs.toLowerCase().replace("top",""))),Mo&&(Za=Po(Mo.toLowerCase().replace("bottom",""))))}else Za=Po(jo)}var Lo;typeof Ti=="boolean"?Lo={spinning:Ti}:E()(Ti)==="object"&&(Lo=c()({spinning:!0},Ti));var Ba=i()("".concat(Ga,"-wrapper"),Fr,A()({},"".concat(Ga,"-wrapper-rtl"),Ia==="rtl"));return o.createElement("div",{className:Ba,style:nn},o.createElement(Mr.a,c()({spinning:!1},Lo),La,o.createElement(Ar,c()({},_a,{columns:pa,direction:Ia,expandable:oa,prefixCls:Ga,className:i()((mr={},A()(mr,"".concat(Ga,"-middle"),Va==="middle"),A()(mr,"".concat(Ga,"-small"),Va==="small"),A()(mr,"".concat(Ga,"-bordered"),tn),A()(mr,"".concat(Ga,"-empty"),Ca.length===0),mr)),data:xo,rowKey:_o,rowClassName:ma,emptyText:ta&&ta.emptyText||Ya("Table"),internalHooks:Ze,internalRefs:Xa,transformColumns:ka})),ii&&ii.length>0&&Za))}Or.defaultProps={rowKey:"key"},Or.SELECTION_ALL=Re,Or.SELECTION_INVERT=je,Or.Column=wr,Or.ColumnGroup=on,Or.Summary=Nn;var Wr=Or,An=B.a=Wr},wDdD:function(H,B,d){var O=d("ProS"),E=d("bYtY");d("98bh"),d("GrNh");var C=d("d4KN"),A=d("mOdp"),w=d("KS52"),m=d("0/Rx");C("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),O.registerVisual(A("pie")),O.registerLayout(E.curry(w,"pie")),O.registerProcessor(m("pie"))},wOnQ:function(H,B,d){/*!
|
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
|
* Released under MIT License
|
|
|
*/(function(O,E){H.exports=E()})(this,function(){"use strict";/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
purpose with or without fee is hereby granted.
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
***************************************************************************** */var O=function(he,we){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,tt){ke.__proto__=tt}||function(ke,tt){for(var $t in tt)Object.prototype.hasOwnProperty.call(tt,$t)&&(ke[$t]=tt[$t])},O(he,we)};function E(ur,he){if(typeof he!="function"&&he!==null)throw new TypeError("Class extends value "+String(he)+" is not a constructor or null");O(ur,he);function we(){this.constructor=ur}ur.prototype=he===null?Object.create(he):(we.prototype=he.prototype,new we)}var C=function(){return C=Object.assign||function(we){for(var ke,tt=1,$t=arguments.length;tt<$t;tt++){ke=arguments[tt];for(var jr in ke)Object.prototype.hasOwnProperty.call(ke,jr)&&(we[jr]=ke[jr])}return we},C.apply(this,arguments)};function A(ur,he,we,ke){function tt($t){return $t instanceof we?$t:new we(function(jr){jr($t)})}return new(we||(we=Promise))(function($t,jr){function an(wi){try{Fn(ke.next(wi))}catch(fi){jr(fi)}}function yn(wi){try{Fn(ke.throw(wi))}catch(fi){jr(fi)}}function Fn(wi){wi.done?$t(wi.value):tt(wi.value).then(an,yn)}Fn((ke=ke.apply(ur,he||[])).next())})}function w(ur,he){var we={label:0,sent:function(){if($t[0]&1)throw $t[1];return $t[1]},trys:[],ops:[]},ke,tt,$t,jr;return jr={next:an(0),throw:an(1),return:an(2)},typeof Symbol=="function"&&(jr[Symbol.iterator]=function(){return this}),jr;function an(Fn){return function(wi){return yn([Fn,wi])}}function yn(Fn){if(ke)throw new TypeError("Generator is already executing.");for(;we;)try{if(ke=1,tt&&($t=Fn[0]&2?tt.return:Fn[0]?tt.throw||(($t=tt.return)&&$t.call(tt),0):tt.next)&&!($t=$t.call(tt,Fn[1])).done)return $t;(tt=0,$t)&&(Fn=[Fn[0]&2,$t.value]);switch(Fn[0]){case 0:case 1:$t=Fn;break;case 4:return we.label++,{value:Fn[1],done:!1};case 5:we.label++,tt=Fn[1],Fn=[0];continue;case 7:Fn=we.ops.pop(),we.trys.pop();continue;default:if(!($t=we.trys,$t=$t.length>0&&$t[$t.length-1])&&(Fn[0]===6||Fn[0]===2)){we=0;continue}if(Fn[0]===3&&(!$t||Fn[1]>$t[0]&&Fn[1]<$t[3])){we.label=Fn[1];break}if(Fn[0]===6&&we.label<$t[1]){we.label=$t[1],$t=Fn;break}if($t&&we.label<$t[2]){we.label=$t[2],we.ops.push(Fn);break}$t[2]&&we.ops.pop(),we.trys.pop();continue}Fn=he.call(ur,we)}catch(wi){Fn=[6,wi],tt=0}finally{ke=$t=0}if(Fn[0]&5)throw Fn[1];return{value:Fn[0]?Fn[1]:void 0,done:!0}}}function m(ur,he,we){if(we||arguments.length===2)for(var ke=0,tt=he.length,$t;ke<tt;ke++)($t||!(ke in he))&&($t||($t=Array.prototype.slice.call(he,0,ke)),$t[ke]=he[ke]);return ur.concat($t||he)}for(var f=function(){function ur(he,we,ke,tt){this.left=he,this.top=we,this.width=ke,this.height=tt}return ur.prototype.add=function(he,we,ke,tt){return new ur(this.left+he,this.top+we,this.width+ke,this.height+tt)},ur.fromClientRect=function(he,we){return new ur(we.left+he.windowBounds.left,we.top+he.windowBounds.top,we.width,we.height)},ur.fromDOMRectList=function(he,we){var ke=Array.from(we).find(function(tt){return tt.width!==0});return ke?new ur(ke.left+he.windowBounds.left,ke.top+he.windowBounds.top,ke.width,ke.height):ur.EMPTY},ur.EMPTY=new ur(0,0,0,0),ur}(),c=function(he,we){return f.fromClientRect(he,we.getBoundingClientRect())},o=function(he){var we=he.body,ke=he.documentElement;if(!we||!ke)throw new Error("Unable to get document size");var tt=Math.max(Math.max(we.scrollWidth,ke.scrollWidth),Math.max(we.offsetWidth,ke.offsetWidth),Math.max(we.clientWidth,ke.clientWidth)),$t=Math.max(Math.max(we.scrollHeight,ke.scrollHeight),Math.max(we.offsetHeight,ke.offsetHeight),Math.max(we.clientHeight,ke.clientHeight));return new f(0,0,tt,$t)},r=function(he){for(var we=[],ke=0,tt=he.length;ke<tt;){var $t=he.charCodeAt(ke++);if($t>=55296&&$t<=56319&&ke<tt){var jr=he.charCodeAt(ke++);(jr&64512)===56320?we.push((($t&1023)<<10)+(jr&1023)+65536):(we.push($t),ke--)}else we.push($t)}return we},i=function(){for(var he=[],we=0;we<arguments.length;we++)he[we]=arguments[we];if(String.fromCodePoint)return String.fromCodePoint.apply(String,he);var ke=he.length;if(!ke)return"";for(var tt=[],$t=-1,jr="";++$t<ke;){var an=he[$t];an<=65535?tt.push(an):(an-=65536,tt.push((an>>10)+55296,an%1024+56320)),($t+1===ke||tt.length>16384)&&(jr+=String.fromCharCode.apply(String,tt),tt.length=0)}return jr},n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<n.length;s++)e[n.charCodeAt(s)]=s;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<t.length;l++)a[t.charCodeAt(l)]=l;for(var u=function(he){var we=he.length*.75,ke=he.length,tt,$t=0,jr,an,yn,Fn;he[he.length-1]==="="&&(we--,he[he.length-2]==="="&&we--);var wi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(we):new Array(we),fi=Array.isArray(wi)?wi:new Uint8Array(wi);for(tt=0;tt<ke;tt+=4)jr=a[he.charCodeAt(tt)],an=a[he.charCodeAt(tt+1)],yn=a[he.charCodeAt(tt+2)],Fn=a[he.charCodeAt(tt+3)],fi[$t++]=jr<<2|an>>4,fi[$t++]=(an&15)<<4|yn>>2,fi[$t++]=(yn&3)<<6|Fn&63;return wi},h=function(he){for(var we=he.length,ke=[],tt=0;tt<we;tt+=2)ke.push(he[tt+1]<<8|he[tt]);return ke},p=function(he){for(var we=he.length,ke=[],tt=0;tt<we;tt+=4)ke.push(he[tt+3]<<24|he[tt+2]<<16|he[tt+1]<<8|he[tt]);return ke},g=5,v=6+5,y=2,x=v-g,T=65536>>g,S=1<<g,b=S-1,_=1024>>g,I=T+_,L=I,N=2048>>6,D=L+N,R=65536>>v,P=1<<x,M=P-1,U=function(he,we,ke){return he.slice?he.slice(we,ke):new Uint16Array(Array.prototype.slice.call(he,we,ke))},F=function(he,we,ke){return he.slice?he.slice(we,ke):new Uint32Array(Array.prototype.slice.call(he,we,ke))},j=function(he,we){var ke=u(he),tt=Array.isArray(ke)?p(ke):new Uint32Array(ke),$t=Array.isArray(ke)?h(ke):new Uint16Array(ke),jr=24,an=U($t,jr/2,tt[4]/2),yn=tt[5]===2?U($t,(jr+tt[4])/2):F(tt,Math.ceil((jr+tt[4])/4));return new W(tt[0],tt[1],tt[2],tt[3],an,yn)},W=function(){function ur(he,we,ke,tt,$t,jr){this.initialValue=he,this.errorValue=we,this.highStart=ke,this.highValueIndex=tt,this.index=$t,this.data=jr}return ur.prototype.get=function(he){var we;if(he>=0){if(he<55296||he>56319&&he<=65535)return we=this.index[he>>g],we=(we<<y)+(he&b),this.data[we];if(he<=65535)return we=this.index[T+(he-55296>>g)],we=(we<<y)+(he&b),this.data[we];if(he<this.highStart)return we=D-R+(he>>v),we=this.index[we],we+=he>>g&M,we=this.index[we],we=(we<<y)+(he&b),this.data[we];if(he<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ur}(),V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Y=0;Y<V.length;Y++)z[V.charCodeAt(Y)]=Y;var $="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==",ue=50,ne=1,ge=2,Oe=3,De=4,He=5,pe=7,Ue=8,oe=9,ee=10,Xe=11,se=12,Q=13,G=14,J=15,ve=16,de=17,Ce=18,Ee=19,le=20,fe=21,xe=22,Qe=23,ot=24,Je=25,Te=26,et=27,ze=28,nt=29,Ot=30,Ct=31,Tt=32,Dt=33,Be=34,ie=35,X=36,Fe=37,Ne=38,q=39,ht=40,Rt=41,ut=42,Xt=43,or=[9001,65288],Zr="!",ar="\xD7",dr="\xF7",er=j($),Ht=[Ot,X],dt=[ne,ge,Oe,He],Hr=[ee,Ue],dn=[et,Te],Nn=dt.concat(Hr),Vn=[Ne,q,ht,Be,ie],gi=[J,Q],bn=function(he,we){we===void 0&&(we="strict");var ke=[],tt=[],$t=[];return he.forEach(function(jr,an){var yn=er.get(jr);if(yn>ue?($t.push(!0),yn-=ue):$t.push(!1),["normal","auto","loose"].indexOf(we)!==-1&&[8208,8211,12316,12448].indexOf(jr)!==-1)return tt.push(an),ke.push(ve);if(yn===De||yn===Xe){if(an===0)return tt.push(an),ke.push(Ot);var Fn=ke[an-1];return Nn.indexOf(Fn)===-1?(tt.push(tt[an-1]),ke.push(Fn)):(tt.push(an),ke.push(Ot))}if(tt.push(an),yn===Ct)return ke.push(we==="strict"?fe:Fe);if(yn===ut)return ke.push(Ot);if(yn===nt)return ke.push(Ot);if(yn===Xt)return jr>=131072&&jr<=196605||jr>=196608&&jr<=262141?ke.push(Fe):ke.push(Ot);ke.push(yn)}),[tt,ke,$t]},Mn=function(he,we,ke,tt){var $t=tt[ke];if(Array.isArray(he)?he.indexOf($t)!==-1:he===$t)for(var jr=ke;jr<=tt.length;){jr++;var an=tt[jr];if(an===we)return!0;if(an!==ee)break}if($t===ee)for(var jr=ke;jr>0;){jr--;var yn=tt[jr];if(Array.isArray(he)?he.indexOf(yn)!==-1:he===yn)for(var Fn=ke;Fn<=tt.length;){Fn++;var an=tt[Fn];if(an===we)return!0;if(an!==ee)break}if(yn!==ee)break}return!1},jt=function(he,we){for(var ke=he;ke>=0;){var tt=we[ke];if(tt===ee)ke--;else return tt}return 0},St=function(he,we,ke,tt,$t){if(ke[tt]===0)return ar;var jr=tt-1;if(Array.isArray($t)&&$t[jr]===!0)return ar;var an=jr-1,yn=jr+1,Fn=we[jr],wi=an>=0?we[an]:0,fi=we[yn];if(Fn===ge&&fi===Oe)return ar;if(dt.indexOf(Fn)!==-1)return Zr;if(dt.indexOf(fi)!==-1)return ar;if(Hr.indexOf(fi)!==-1)return ar;if(jt(jr,we)===Ue)return dr;if(er.get(he[jr])===Xe)return ar;if((Fn===Tt||Fn===Dt)&&er.get(he[yn])===Xe)return ar;if(Fn===pe||fi===pe)return ar;if(Fn===oe)return ar;if([ee,Q,J].indexOf(Fn)===-1&&fi===oe)return ar;if([de,Ce,Ee,ot,ze].indexOf(fi)!==-1)return ar;if(jt(jr,we)===xe)return ar;if(Mn(Qe,xe,jr,we))return ar;if(Mn([de,Ce],fe,jr,we))return ar;if(Mn(se,se,jr,we))return ar;if(Fn===ee)return dr;if(Fn===Qe||fi===Qe)return ar;if(fi===ve||Fn===ve)return dr;if([Q,J,fe].indexOf(fi)!==-1||Fn===G)return ar;if(wi===X&&gi.indexOf(Fn)!==-1)return ar;if(Fn===ze&&fi===X)return ar;if(fi===le)return ar;if(Ht.indexOf(fi)!==-1&&Fn===Je||Ht.indexOf(Fn)!==-1&&fi===Je)return ar;if(Fn===et&&[Fe,Tt,Dt].indexOf(fi)!==-1||[Fe,Tt,Dt].indexOf(Fn)!==-1&&fi===Te)return ar;if(Ht.indexOf(Fn)!==-1&&dn.indexOf(fi)!==-1||dn.indexOf(Fn)!==-1&&Ht.indexOf(fi)!==-1)return ar;if([et,Te].indexOf(Fn)!==-1&&(fi===Je||[xe,J].indexOf(fi)!==-1&&we[yn+1]===Je)||[xe,J].indexOf(Fn)!==-1&&fi===Je||Fn===Je&&[Je,ze,ot].indexOf(fi)!==-1)return ar;if([Je,ze,ot,de,Ce].indexOf(fi)!==-1)for(var Ci=jr;Ci>=0;){var ba=we[Ci];if(ba===Je)return ar;if([ze,ot].indexOf(ba)!==-1)Ci--;else break}if([et,Te].indexOf(fi)!==-1)for(var Ci=[de,Ce].indexOf(Fn)!==-1?an:jr;Ci>=0;){var ba=we[Ci];if(ba===Je)return ar;if([ze,ot].indexOf(ba)!==-1)Ci--;else break}if(Ne===Fn&&[Ne,q,Be,ie].indexOf(fi)!==-1||[q,Be].indexOf(Fn)!==-1&&[q,ht].indexOf(fi)!==-1||[ht,ie].indexOf(Fn)!==-1&&fi===ht)return ar;if(Vn.indexOf(Fn)!==-1&&[le,Te].indexOf(fi)!==-1||Vn.indexOf(fi)!==-1&&Fn===et)return ar;if(Ht.indexOf(Fn)!==-1&&Ht.indexOf(fi)!==-1)return ar;if(Fn===ot&&Ht.indexOf(fi)!==-1)return ar;if(Ht.concat(Je).indexOf(Fn)!==-1&&fi===xe&&or.indexOf(he[yn])===-1||Ht.concat(Je).indexOf(fi)!==-1&&Fn===Ce)return ar;if(Fn===Rt&&fi===Rt){for(var Ea=ke[jr],Pa=1;Ea>0&&(Ea--,we[Ea]===Rt);)Pa++;if(Pa%2!==0)return ar}return Fn===Tt&&fi===Dt?ar:dr},Ie=function(he,we){we||(we={lineBreak:"normal",wordBreak:"normal"});var ke=bn(he,we.lineBreak),tt=ke[0],$t=ke[1],jr=ke[2];(we.wordBreak==="break-all"||we.wordBreak==="break-word")&&($t=$t.map(function(yn){return[Je,Ot,ut].indexOf(yn)!==-1?Fe:yn}));var an=we.wordBreak==="keep-all"?jr.map(function(yn,Fn){return yn&&he[Fn]>=19968&&he[Fn]<=40959}):void 0;return[tt,$t,an]},_e=function(){function ur(he,we,ke,tt){this.codePoints=he,this.required=we===Zr,this.start=ke,this.end=tt}return ur.prototype.slice=function(){return i.apply(void 0,this.codePoints.slice(this.start,this.end))},ur}(),Le=function(he,we){var ke=r(he),tt=Ie(ke,we),$t=tt[0],jr=tt[1],an=tt[2],yn=ke.length,Fn=0,wi=0;return{next:function(){if(wi>=yn)return{done:!0,value:null};for(var Ci=ar;wi<yn&&(Ci=St(ke,jr,$t,++wi,an))===ar;);if(Ci!==ar||wi===yn){var ba=new _e(ke,Ci,Fn,wi);return Fn=wi,{value:ba,done:!1}}return{done:!0,value:null}}}},Ze=1<<0,it=1<<1,ft=1<<2,Nt=1<<3,Ar=10,Mr=47,un=92,Mt=9,at=32,lt=34,rr=61,Bt=35,_t=36,Kt=37,wt=39,Ut=40,Sr=41,hr=95,gr=45,Jr=33,$r=60,Pn=62,Dn=64,Zn=91,li=93,Ai=61,Ii=123,$e=63,Se=125,Re=124,je=126,Ye=128,Ve=65533,qe=42,xt=43,ct=44,Jt=58,Rr=59,Ir=46,Xr=0,qt=8,pn=11,fr=14,mn=31,en=127,kr=-1,Gn=48,di=97,_i=101,Br=102,sn=117,Sn=122,Pt=65,gt=69,Et=70,Lt=85,kt=90,yt=function(he){return he>=Gn&&he<=57},Qt=function(he){return he>=55296&&he<=57343},tr=function(he){return yt(he)||he>=Pt&&he<=Et||he>=di&&he<=Br},ir=function(he){return he>=di&&he<=Sn},yr=function(he){return he>=Pt&&he<=kt},xn=function(he){return ir(he)||yr(he)},vn=function(he){return he>=Ye},Wn=function(he){return he===Ar||he===Mt||he===at},Yr=function(he){return xn(he)||vn(he)||he===hr},xr=function(he){return Yr(he)||yt(he)||he===gr},ln=function(he){return he>=Xr&&he<=qt||he===pn||he>=fr&&he<=mn||he===en},On=function(he,we){return he!==un?!1:we!==Ar},In=function(he,we,ke){return he===gr?Yr(we)||On(we,ke):Yr(he)?!0:!!(he===un&&On(he,we))},Un=function(he,we,ke){return he===xt||he===gr?yt(we)?!0:we===Ir&&yt(ke):he===Ir?yt(we):yt(he)},ti=function(he){var we=0,ke=1;(he[we]===xt||he[we]===gr)&&(he[we]===gr&&(ke=-1),we++);for(var tt=[];yt(he[we]);)tt.push(he[we++]);var $t=tt.length?parseInt(i.apply(void 0,tt),10):0;he[we]===Ir&&we++;for(var jr=[];yt(he[we]);)jr.push(he[we++]);var an=jr.length,yn=an?parseInt(i.apply(void 0,jr),10):0;(he[we]===gt||he[we]===_i)&&we++;var Fn=1;(he[we]===xt||he[we]===gr)&&(he[we]===gr&&(Fn=-1),we++);for(var wi=[];yt(he[we]);)wi.push(he[we++]);var fi=wi.length?parseInt(i.apply(void 0,wi),10):0;return ke*($t+yn*Math.pow(10,-an))*Math.pow(10,Fn*fi)},ui={type:2},si={type:3},Pi={type:4},zi={type:13},Ri={type:8},Yi={type:21},$n={type:9},gn={type:10},mi={type:11},Hi={type:12},Li={type:14},Bi={type:23},wr={type:1},lr={type:25},on={type:24},Zt={type:26},br={type:27},Or={type:28},Wr={type:29},An={type:31},bt={type:32},mr=function(){function ur(){this._value=[]}return ur.prototype.write=function(he){this._value=this._value.concat(r(he))},ur.prototype.read=function(){for(var he=[],we=this.consumeToken();we!==bt;)he.push(we),we=this.consumeToken();return he},ur.prototype.consumeToken=function(){var he=this.consumeCodePoint();switch(he){case lt:return this.consumeStringToken(lt);case Bt:var we=this.peekCodePoint(0),ke=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(xr(we)||On(ke,tt)){var $t=In(we,ke,tt)?it:Ze,jr=this.consumeName();return{type:5,value:jr,flags:$t}}break;case _t:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),zi;break;case wt:return this.consumeStringToken(wt);case Ut:return ui;case Sr:return si;case qe:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Li;break;case xt:if(Un(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case ct:return Pi;case gr:var an=he,yn=this.peekCodePoint(0),Fn=this.peekCodePoint(1);if(Un(an,yn,Fn))return this.reconsumeCodePoint(he),this.consumeNumericToken();if(In(an,yn,Fn))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();if(yn===gr&&Fn===Pn)return this.consumeCodePoint(),this.consumeCodePoint(),on;break;case Ir:if(Un(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case Mr:if(this.peekCodePoint(0)===qe)for(this.consumeCodePoint();;){var wi=this.consumeCodePoint();if(wi===qe&&(wi=this.consumeCodePoint(),wi===Mr))return this.consumeToken();if(wi===kr)return this.consumeToken()}break;case Jt:return Zt;case Rr:return br;case $r:if(this.peekCodePoint(0)===Jr&&this.peekCodePoint(1)===gr&&this.peekCodePoint(2)===gr)return this.consumeCodePoint(),this.consumeCodePoint(),lr;break;case Dn:var fi=this.peekCodePoint(0),Ci=this.peekCodePoint(1),ba=this.peekCodePoint(2);if(In(fi,Ci,ba)){var jr=this.consumeName();return{type:7,value:jr}}break;case Zn:return Or;case un:if(On(he,this.peekCodePoint(0)))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();break;case li:return Wr;case Ai:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Ri;break;case Ii:return mi;case Se:return Hi;case sn:case Lt:var Ea=this.peekCodePoint(0),Pa=this.peekCodePoint(1);return Ea===xt&&(tr(Pa)||Pa===$e)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(he),this.consumeIdentLikeToken();case Re:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),$n;if(this.peekCodePoint(0)===Re)return this.consumeCodePoint(),Yi;break;case je:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),gn;break;case kr:return bt}return Wn(he)?(this.consumeWhiteSpace(),An):yt(he)?(this.reconsumeCodePoint(he),this.consumeNumericToken()):Yr(he)?(this.reconsumeCodePoint(he),this.consumeIdentLikeToken()):{type:6,value:i(he)}},ur.prototype.consumeCodePoint=function(){var he=this._value.shift();return typeof he=="undefined"?-1:he},ur.prototype.reconsumeCodePoint=function(he){this._value.unshift(he)},ur.prototype.peekCodePoint=function(he){return he>=this._value.length?-1:this._value[he]},ur.prototype.consumeUnicodeRangeToken=function(){for(var he=[],we=this.consumeCodePoint();tr(we)&&he.length<6;)he.push(we),we=this.consumeCodePoint();for(var ke=!1;we===$e&&he.length<6;)he.push(we),we=this.consumeCodePoint(),ke=!0;if(ke){var tt=parseInt(i.apply(void 0,he.map(function(yn){return yn===$e?Gn:yn})),16),$t=parseInt(i.apply(void 0,he.map(function(yn){return yn===$e?Et:yn})),16);return{type:30,start:tt,end:$t}}var jr=parseInt(i.apply(void 0,he),16);if(this.peekCodePoint(0)===gr&&tr(this.peekCodePoint(1))){this.consumeCodePoint(),we=this.consumeCodePoint();for(var an=[];tr(we)&&an.length<6;)an.push(we),we=this.consumeCodePoint();var $t=parseInt(i.apply(void 0,an),16);return{type:30,start:jr,end:$t}}else return{type:30,start:jr,end:jr}},ur.prototype.consumeIdentLikeToken=function(){var he=this.consumeName();return he.toLowerCase()==="url"&&this.peekCodePoint(0)===Ut?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ut?(this.consumeCodePoint(),{type:19,value:he}):{type:20,value:he}},ur.prototype.consumeUrlToken=function(){var he=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===kr)return{type:22,value:""};var we=this.peekCodePoint(0);if(we===wt||we===lt){var ke=this.consumeStringToken(this.consumeCodePoint());return ke.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===kr||this.peekCodePoint(0)===Sr)?(this.consumeCodePoint(),{type:22,value:ke.value}):(this.consumeBadUrlRemnants(),Bi)}for(;;){var tt=this.consumeCodePoint();if(tt===kr||tt===Sr)return{type:22,value:i.apply(void 0,he)};if(Wn(tt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===kr||this.peekCodePoint(0)===Sr?(this.consumeCodePoint(),{type:22,value:i.apply(void 0,he)}):(this.consumeBadUrlRemnants(),Bi);if(tt===lt||tt===wt||tt===Ut||ln(tt))return this.consumeBadUrlRemnants(),Bi;if(tt===un)if(On(tt,this.peekCodePoint(0)))he.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bi;else he.push(tt)}},ur.prototype.consumeWhiteSpace=function(){for(;Wn(this.peekCodePoint(0));)this.consumeCodePoint()},ur.prototype.consumeBadUrlRemnants=function(){for(;;){var he=this.consumeCodePoint();if(he===Sr||he===kr)return;On(he,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ur.prototype.consumeStringSlice=function(he){for(var we=5e4,ke="";he>0;){var tt=Math.min(we,he);ke+=i.apply(void 0,this._value.splice(0,tt)),he-=tt}return this._value.shift(),ke},ur.prototype.consumeStringToken=function(he){var we="",ke=0;do{var tt=this._value[ke];if(tt===kr||tt===void 0||tt===he)return we+=this.consumeStringSlice(ke),{type:0,value:we};if(tt===Ar)return this._value.splice(0,ke),wr;if(tt===un){var $t=this._value[ke+1];$t!==kr&&$t!==void 0&&($t===Ar?(we+=this.consumeStringSlice(ke),ke=-1,this._value.shift()):On(tt,$t)&&(we+=this.consumeStringSlice(ke),we+=i(this.consumeEscapedCodePoint()),ke=-1))}ke++}while(!0)},ur.prototype.consumeNumber=function(){var he=[],we=ft,ke=this.peekCodePoint(0);for((ke===xt||ke===gr)&&he.push(this.consumeCodePoint());yt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());ke=this.peekCodePoint(0);var tt=this.peekCodePoint(1);if(ke===Ir&&yt(tt))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),we=Nt;yt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());ke=this.peekCodePoint(0),tt=this.peekCodePoint(1);var $t=this.peekCodePoint(2);if((ke===gt||ke===_i)&&((tt===xt||tt===gr)&&yt($t)||yt(tt)))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),we=Nt;yt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());return[ti(he),we]},ur.prototype.consumeNumericToken=function(){var he=this.consumeNumber(),we=he[0],ke=he[1],tt=this.peekCodePoint(0),$t=this.peekCodePoint(1),jr=this.peekCodePoint(2);if(In(tt,$t,jr)){var an=this.consumeName();return{type:15,number:we,flags:ke,unit:an}}return tt===Kt?(this.consumeCodePoint(),{type:16,number:we,flags:ke}):{type:17,number:we,flags:ke}},ur.prototype.consumeEscapedCodePoint=function(){var he=this.consumeCodePoint();if(tr(he)){for(var we=i(he);tr(this.peekCodePoint(0))&&we.length<6;)we+=i(this.consumeCodePoint());Wn(this.peekCodePoint(0))&&this.consumeCodePoint();var ke=parseInt(we,16);return ke===0||Qt(ke)||ke>1114111?Ve:ke}return he===kr?Ve:he},ur.prototype.consumeName=function(){for(var he="";;){var we=this.consumeCodePoint();if(xr(we))he+=i(we);else if(On(we,this.peekCodePoint(0)))he+=i(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(we),he}},ur}(),vr=function(){function ur(he){this._tokens=he}return ur.create=function(he){var we=new mr;return we.write(he),new ur(we.read())},ur.parseValue=function(he){return ur.create(he).parseComponentValue()},ur.parseValues=function(he){return ur.create(he).parseComponentValues()},ur.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 we=this.consumeComponentValue();do he=this.consumeToken();while(he.type===31);if(he.type===32)return we;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},ur.prototype.parseComponentValues=function(){for(var he=[];;){var we=this.consumeComponentValue();if(we.type===32)return he;he.push(we),he.push()}},ur.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},ur.prototype.consumeSimpleBlock=function(he){for(var we={type:he,values:[]},ke=this.consumeToken();;){if(ke.type===32||Jn(ke,he))return we;this.reconsumeToken(ke),we.values.push(this.consumeComponentValue()),ke=this.consumeToken()}},ur.prototype.consumeFunction=function(he){for(var we={name:he.value,values:[],type:18};;){var ke=this.consumeToken();if(ke.type===32||ke.type===3)return we;this.reconsumeToken(ke),we.values.push(this.consumeComponentValue())}},ur.prototype.consumeToken=function(){var he=this._tokens.shift();return typeof he=="undefined"?bt:he},ur.prototype.reconsumeToken=function(he){this._tokens.unshift(he)},ur}(),Fr=function(he){return he.type===15},nn=function(he){return he.type===17},cn=function(he){return he.type===20},tn=function(he){return he.type===0},Ln=function(he,we){return cn(he)&&he.value===we},Tn=function(he){return he.type!==31},Xn=function(he){return he.type!==31&&he.type!==4},ci=function(he){var we=[],ke=[];return he.forEach(function(tt){if(tt.type===4){if(ke.length===0)throw new Error("Error parsing function args, zero tokens for arg");we.push(ke),ke=[];return}tt.type!==31&&ke.push(tt)}),ke.length&&we.push(ke),we},Jn=function(he,we){return we===11&&he.type===12||we===28&&he.type===29?!0:we===2&&he.type===3},pi=function(he){return he.type===17||he.type===15},Si=function(he){return he.type===16||pi(he)},Ni=function(he){return he.length>1?[he[0],he[1]]:[he[0]]},xi={type:17,number:0,flags:ft},yi={type:16,number:50,flags:ft},vi={type:16,number:100,flags:ft},Ti=function(he,we,ke){var tt=he[0],$t=he[1];return[Ui(tt,we),Ui(typeof $t!="undefined"?$t:tt,ke)]},Ui=function(he,we){if(he.type===16)return he.number/100*we;if(Fr(he))switch(he.unit){case"rem":case"em":return 16*he.number;case"px":default:return he.number}return he.number},$i="deg",Di="grad",ua="rad",aa="turn",Gi={name:"angle",parse:function(he,we){if(we.type===15)switch(we.unit){case $i:return Math.PI*we.number/180;case Di:return Math.PI/200*we.number;case ua:return we.number;case aa:return Math.PI*2*we.number}throw new Error("Unsupported angle type")}},Vi=function(he){return he.type===15&&(he.unit===$i||he.unit===Di||he.unit===ua||he.unit===aa)},ta=function(he){var we=he.filter(cn).map(function(ke){return ke.value}).join(" ");switch(we){case"to bottom right":case"to right bottom":case"left top":case"top left":return[xi,xi];case"to top":case"bottom":return Xi(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[xi,vi];case"to right":case"left":return Xi(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[vi,vi];case"to bottom":case"top":return Xi(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[vi,xi];case"to left":case"right":return Xi(270)}return 0},Xi=function(he){return Math.PI*he/180},ga={name:"color",parse:function(he,we){if(we.type===18){var ke=Ya[we.name];if(typeof ke=="undefined")throw new Error('Attempting to parse an unsupported color function "'+we.name+'"');return ke(he,we.values)}if(we.type===5){if(we.value.length===3){var tt=we.value.substring(0,1),$t=we.value.substring(1,2),jr=we.value.substring(2,3);return _a(parseInt(tt+tt,16),parseInt($t+$t,16),parseInt(jr+jr,16),1)}if(we.value.length===4){var tt=we.value.substring(0,1),$t=we.value.substring(1,2),jr=we.value.substring(2,3),an=we.value.substring(3,4);return _a(parseInt(tt+tt,16),parseInt($t+$t,16),parseInt(jr+jr,16),parseInt(an+an,16)/255)}if(we.value.length===6){var tt=we.value.substring(0,2),$t=we.value.substring(2,4),jr=we.value.substring(4,6);return _a(parseInt(tt,16),parseInt($t,16),parseInt(jr,16),1)}if(we.value.length===8){var tt=we.value.substring(0,2),$t=we.value.substring(2,4),jr=we.value.substring(4,6),an=we.value.substring(6,8);return _a(parseInt(tt,16),parseInt($t,16),parseInt(jr,16),parseInt(an,16)/255)}}if(we.type===20){var yn=Va[we.value.toUpperCase()];if(typeof yn!="undefined")return yn}return Va.TRANSPARENT}},ra=function(he){return(255&he)===0},pa=function(he){var we=255&he,ke=255&he>>8,tt=255&he>>16,$t=255&he>>24;return we<255?"rgba("+$t+","+tt+","+ke+","+we/255+")":"rgb("+$t+","+tt+","+ke+")"},_a=function(he,we,ke,tt){return(he<<24|we<<16|ke<<8|Math.round(tt*255)<<0)>>>0},Da=function(he,we){if(he.type===17)return he.number;if(he.type===16){var ke=we===3?1:255;return we===3?he.number/100*ke:Math.round(he.number/100*ke)}return 0},Ra=function(he,we){var ke=we.filter(Xn);if(ke.length===3){var tt=ke.map(Da),$t=tt[0],jr=tt[1],an=tt[2];return _a($t,jr,an,1)}if(ke.length===4){var yn=ke.map(Da),$t=yn[0],jr=yn[1],an=yn[2],Fn=yn[3];return _a($t,jr,an,Fn)}return 0};function Ao(ur,he,we){return we<0&&(we+=1),we>=1&&(we-=1),we<1/6?(he-ur)*we*6+ur:we<1/2?he:we<2/3?(he-ur)*6*(2/3-we)+ur:ur}var ja=function(he,we){var ke=we.filter(Xn),tt=ke[0],$t=ke[1],jr=ke[2],an=ke[3],yn=(tt.type===17?Xi(tt.number):Gi.parse(he,tt))/(Math.PI*2),Fn=Si($t)?$t.number/100:0,wi=Si(jr)?jr.number/100:0,fi=typeof an!="undefined"&&Si(an)?Ui(an,1):1;if(Fn===0)return _a(wi*255,wi*255,wi*255,1);var Ci=wi<=.5?wi*(Fn+1):wi+Fn-wi*Fn,ba=wi*2-Ci,Ea=Ao(ba,Ci,yn+1/3),Pa=Ao(ba,Ci,yn),Do=Ao(ba,Ci,yn-1/3);return _a(Ea*255,Pa*255,Do*255,fi)},Ya={hsl:ja,hsla:ja,rgb:Ra,rgba:Ra},Ia=function(he,we){return ga.parse(he,vr.create(we).parseComponentValue())},Va={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},co={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(he,we){return we.map(function(ke){if(cn(ke))switch(ke.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ca={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yo=function(he,we){var ke=ga.parse(he,we[0]),tt=we[1];return tt&&Si(tt)?{color:ke,stop:tt}:{color:ke,stop:null}},uo=function(he,we){var ke=he[0],tt=he[he.length-1];ke.stop===null&&(ke.stop=xi),tt.stop===null&&(tt.stop=vi);for(var $t=[],jr=0,an=0;an<he.length;an++){var yn=he[an].stop;if(yn!==null){var Fn=Ui(yn,we);Fn>jr?$t.push(Fn):$t.push(jr),jr=Fn}else $t.push(null)}for(var wi=null,an=0;an<$t.length;an++){var fi=$t[an];if(fi===null)wi===null&&(wi=an);else if(wi!==null){for(var Ci=an-wi,ba=$t[wi-1],Ea=(fi-ba)/(Ci+1),Pa=1;Pa<=Ci;Pa++)$t[wi+Pa-1]=Ea*Pa;wi=null}}return he.map(function(Do,mo){var io=Do.color;return{color:io,stop:Math.max(Math.min(1,$t[mo]/we),0)}})},Ga=function(he,we,ke){var tt=we/2,$t=ke/2,jr=Ui(he[0],we)-tt,an=$t-Ui(he[1],ke);return(Math.atan2(an,jr)+Math.PI*2)%(Math.PI*2)},Oo=function(he,we,ke){var tt=typeof he=="number"?he:Ga(he,we,ke),$t=Math.abs(we*Math.sin(tt))+Math.abs(ke*Math.cos(tt)),jr=we/2,an=ke/2,yn=$t/2,Fn=Math.sin(tt-Math.PI/2)*yn,wi=Math.cos(tt-Math.PI/2)*yn;return[$t,jr-wi,jr+wi,an-Fn,an+Fn]},oa=function(he,we){return Math.sqrt(he*he+we*we)},qa=function(he,we,ke,tt,$t){var jr=[[0,0],[0,we],[he,0],[he,we]];return jr.reduce(function(an,yn){var Fn=yn[0],wi=yn[1],fi=oa(ke-Fn,tt-wi);return($t?fi<an.optimumDistance:fi>an.optimumDistance)?{optimumCorner:yn,optimumDistance:fi}:an},{optimumDistance:$t?Infinity:-Infinity,optimumCorner:null}).optimumCorner},oo=function(he,we,ke,tt,$t){var jr=0,an=0;switch(he.size){case 0:he.shape===0?jr=an=Math.min(Math.abs(we),Math.abs(we-tt),Math.abs(ke),Math.abs(ke-$t)):he.shape===1&&(jr=Math.min(Math.abs(we),Math.abs(we-tt)),an=Math.min(Math.abs(ke),Math.abs(ke-$t)));break;case 2:if(he.shape===0)jr=an=Math.min(oa(we,ke),oa(we,ke-$t),oa(we-tt,ke),oa(we-tt,ke-$t));else if(he.shape===1){var yn=Math.min(Math.abs(ke),Math.abs(ke-$t))/Math.min(Math.abs(we),Math.abs(we-tt)),Fn=qa(tt,$t,we,ke,!0),wi=Fn[0],fi=Fn[1];jr=oa(wi-we,(fi-ke)/yn),an=yn*jr}break;case 1:he.shape===0?jr=an=Math.max(Math.abs(we),Math.abs(we-tt),Math.abs(ke),Math.abs(ke-$t)):he.shape===1&&(jr=Math.max(Math.abs(we),Math.abs(we-tt)),an=Math.max(Math.abs(ke),Math.abs(ke-$t)));break;case 3:if(he.shape===0)jr=an=Math.max(oa(we,ke),oa(we,ke-$t),oa(we-tt,ke),oa(we-tt,ke-$t));else if(he.shape===1){var yn=Math.max(Math.abs(ke),Math.abs(ke-$t))/Math.max(Math.abs(we),Math.abs(we-tt)),Ci=qa(tt,$t,we,ke,!1),wi=Ci[0],fi=Ci[1];jr=oa(wi-we,(fi-ke)/yn),an=yn*jr}break}return Array.isArray(he.size)&&(jr=Ui(he.size[0],tt),an=he.size.length===2?Ui(he.size[1],$t):jr),[jr,an]},Ro=function(he,we){var ke=Xi(180),tt=[];return ci(we).forEach(function($t,jr){if(jr===0){var an=$t[0];if(an.type===20&&an.value==="to"){ke=ta($t);return}else if(Vi(an)){ke=Gi.parse(he,an);return}}var yn=yo(he,$t);tt.push(yn)}),{angle:ke,stops:tt,type:1}},Xa=function(he,we){var ke=Xi(180),tt=[];return ci(we).forEach(function($t,jr){if(jr===0){var an=$t[0];if(an.type===20&&["top","left","right","bottom"].indexOf(an.value)!==-1){ke=ta($t);return}else if(Vi(an)){ke=(Gi.parse(he,an)+Xi(270))%Xi(360);return}}var yn=yo(he,$t);tt.push(yn)}),{angle:ke,stops:tt,type:1}},_o=function(he,we){var ke=Xi(180),tt=[],$t=1,jr=0,an=3,yn=[];return ci(we).forEach(function(Fn,wi){var fi=Fn[0];if(wi===0){if(cn(fi)&&fi.value==="linear"){$t=1;return}else if(cn(fi)&&fi.value==="radial"){$t=2;return}}if(fi.type===18){if(fi.name==="from"){var Ci=ga.parse(he,fi.values[0]);tt.push({stop:xi,color:Ci})}else if(fi.name==="to"){var Ci=ga.parse(he,fi.values[0]);tt.push({stop:vi,color:Ci})}else if(fi.name==="color-stop"){var ba=fi.values.filter(Xn);if(ba.length===2){var Ci=ga.parse(he,ba[1]),Ea=ba[0];nn(Ea)&&tt.push({stop:{type:16,number:Ea.number*100,flags:Ea.flags},color:Ci})}}}}),$t===1?{angle:(ke+Xi(180))%Xi(360),stops:tt,type:$t}:{size:an,shape:jr,stops:tt,position:yn,type:$t}},go="closest-side",Ja="farthest-side",Fa="closest-corner",ha="farthest-corner",rt="circle",cr="ellipse",Pr="cover",Lr="contain",_n=function(he,we){var ke=0,tt=3,$t=[],jr=[];return ci(we).forEach(function(an,yn){var Fn=!0;if(yn===0){var wi=!1;Fn=an.reduce(function(Ci,ba){if(wi)if(cn(ba))switch(ba.value){case"center":return jr.push(yi),Ci;case"top":case"left":return jr.push(xi),Ci;case"right":case"bottom":return jr.push(vi),Ci}else(Si(ba)||pi(ba))&&jr.push(ba);else if(cn(ba))switch(ba.value){case rt:return ke=0,!1;case cr:return ke=1,!1;case"at":return wi=!0,!1;case go:return tt=0,!1;case Pr:case Ja:return tt=1,!1;case Lr:case Fa:return tt=2,!1;case ha:return tt=3,!1}else if(pi(ba)||Si(ba))return Array.isArray(tt)||(tt=[]),tt.push(ba),!1;return Ci},Fn)}if(Fn){var fi=yo(he,an);$t.push(fi)}}),{size:tt,shape:ke,stops:$t,position:jr,type:2}},Vr=function(he,we){var ke=0,tt=3,$t=[],jr=[];return ci(we).forEach(function(an,yn){var Fn=!0;if(yn===0?Fn=an.reduce(function(fi,Ci){if(cn(Ci))switch(Ci.value){case"center":return jr.push(yi),!1;case"top":case"left":return jr.push(xi),!1;case"right":case"bottom":return jr.push(vi),!1}else if(Si(Ci)||pi(Ci))return jr.push(Ci),!1;return fi},Fn):yn===1&&(Fn=an.reduce(function(fi,Ci){if(cn(Ci))switch(Ci.value){case rt:return ke=0,!1;case cr:return ke=1,!1;case Lr:case go:return tt=0,!1;case Ja:return tt=1,!1;case Fa:return tt=2,!1;case Pr:case ha:return tt=3,!1}else if(pi(Ci)||Si(Ci))return Array.isArray(tt)||(tt=[]),tt.push(Ci),!1;return fi},Fn)),Fn){var wi=yo(he,an);$t.push(wi)}}),{size:tt,shape:ke,stops:$t,position:jr,type:2}},_r=function(he){return he.type===1},kn=function(he){return he.type===2},Ur={name:"image",parse:function(he,we){if(we.type===22){var ke={url:we.value,type:0};return he.cache.addImage(we.value),ke}if(we.type===18){var tt=jn[we.name];if(typeof tt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+we.name+'"');return tt(he,we.values)}throw new Error("Unsupported image type "+we.type)}};function En(ur){return!(ur.type===20&&ur.value==="none")&&(ur.type!==18||!!jn[ur.name])}var jn={"linear-gradient":Ro,"-moz-linear-gradient":Xa,"-ms-linear-gradient":Xa,"-o-linear-gradient":Xa,"-webkit-linear-gradient":Xa,"radial-gradient":_n,"-moz-radial-gradient":Vr,"-ms-radial-gradient":Vr,"-o-radial-gradient":Vr,"-webkit-radial-gradient":Vr,"-webkit-gradient":_o},Hn={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(he,we){if(we.length===0)return[];var ke=we[0];return ke.type===20&&ke.value==="none"?[]:we.filter(function(tt){return Xn(tt)&&En(tt)}).map(function(tt){return Ur.parse(he,tt)})}},Bn={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(he,we){return we.map(function(ke){if(cn(ke))switch(ke.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ri={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(he,we){return ci(we).map(function(ke){return ke.filter(Si)}).map(Ni)}},Yn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(he,we){return ci(we).map(function(ke){return ke.filter(cn).map(function(tt){return tt.value}).join(" ")}).map(ii)}},ii=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}},ai;(function(ur){ur.AUTO="auto",ur.CONTAIN="contain",ur.COVER="cover"})(ai||(ai={}));var ki={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(he,we){return ci(we).map(function(ke){return ke.filter(bi)})}},bi=function(he){return cn(he)||Si(he)},Ki=function(he){return{name:"border-"+he+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Aa=Ki("top"),ea=Ki("right"),Ji=Ki("bottom"),sa=Ki("left"),fa=function(he){return{name:"border-radius-"+he,initialValue:"0 0",prefix:!1,type:1,parse:function(ke,tt){return Ni(tt.filter(Si))}}},xo=fa("top-left"),Qa=fa("top-right"),Wi=fa("bottom-right"),qi=fa("bottom-left"),ca=function(he){return{name:"border-"+he+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(ke,tt){switch(tt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ma=ca("top"),ka=ca("right"),La=ca("bottom"),Za=ca("left"),eo=function(he){return{name:"border-"+he+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ke,tt){return Fr(tt)?tt.number:0}}},Po=eo("top"),jo=eo("right"),cs=eo("bottom"),Mo=eo("left"),Lo={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ba={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(he,we){switch(we){case"rtl":return 1;case"ltr":default:return 0}}},za={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(he,we){return we.filter(cn).reduce(function(ke,tt){return ke|Ta(tt.value)},0)}},Ta=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},ko={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(he,we){switch(we){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Qo={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(he,we){return we.type===20&&we.value==="normal"?0:we.type===17||we.type===15?we.number:0}},so;(function(ur){ur.NORMAL="normal",ur.STRICT="strict"})(so||(so={}));var Os={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,we){switch(we){case"strict":return so.STRICT;case"normal":default:return so.NORMAL}}},ho={name:"line-height",initialValue:"normal",prefix:!1,type:4},bo=function(he,we){return cn(he)&&he.value==="normal"?1.2*we:he.type===17?we*he.number:Si(he)?Ui(he,we):we},ds={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(he,we){return we.type===20&&we.value==="none"?null:Ur.parse(he,we)}},Ho={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(he,we){switch(we){case"inside":return 0;case"outside":default:return 1}}},zo={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(he,we){switch(we){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}}},rn=function(he){return{name:"margin-"+he,initialValue:"0",prefix:!1,type:4}},es=rn("top"),Js=rn("right"),Es=rn("bottom"),gs=rn("left"),Ko={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(he,we){return we.filter(cn).map(function(ke){switch(ke.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},hs={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(he,we){switch(we){case"break-word":return"break-word";case"normal":default:return"normal"}}},bs=function(he){return{name:"padding-"+he,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ws=bs("top"),qo=bs("right"),us=bs("bottom"),_s=bs("left"),vs={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(he,we){switch(we){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},vo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(he,we){switch(we){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},to={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(he,we){return we.length===1&&Ln(we[0],"none")?[]:ci(we).map(function(ke){for(var tt={color:Va.TRANSPARENT,offsetX:xi,offsetY:xi,blur:xi},$t=0,jr=0;jr<ke.length;jr++){var an=ke[jr];pi(an)?($t===0?tt.offsetX=an:$t===1?tt.offsetY=an:tt.blur=an,$t++):tt.color=ga.parse(he,an)}return tt})}},Jo={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(he,we){switch(we){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ts={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(he,we){if(we.type===20&&we.value==="none")return null;if(we.type===18){var ke=Vt[we.name];if(typeof ke=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+we.name+'"');return ke(we.values)}return null}},Ha=function(he){var we=he.filter(function(ke){return ke.type===17}).map(function(ke){return ke.number});return we.length===6?we:null},It=function(he){var we=he.filter(function(Fn){return Fn.type===17}).map(function(Fn){return Fn.number}),ke=we[0],tt=we[1];we[2],we[3];var $t=we[4],jr=we[5];we[6],we[7],we[8],we[9],we[10],we[11];var an=we[12],yn=we[13];return we[14],we[15],we.length===16?[ke,tt,$t,jr,an,yn]:null},Vt={matrix:Ha,matrix3d:It},hn={type:16,number:50,flags:ft},zn=[hn,hn],vt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(he,we){var ke=we.filter(Si);return ke.length!==2?zn:[ke[0],ke[1]]}},ae={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(he,we){switch(we){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},me;(function(ur){ur.NORMAL="normal",ur.BREAK_ALL="break-all",ur.KEEP_ALL="keep-all"})(me||(me={}));for(var be={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,we){switch(we){case"break-all":return me.BREAK_ALL;case"keep-all":return me.KEEP_ALL;case"normal":default:return me.NORMAL}}},Ke={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(he,we){if(we.type===20)return{auto:!0,order:0};if(nn(we))return{auto:!1,order:we.number};throw new Error("Invalid z-index number parsed")}},At={name:"time",parse:function(he,we){if(we.type===15)switch(we.unit.toLowerCase()){case"s":return 1e3*we.number;case"ms":return we.number}throw new Error("Unsupported time type")}},Gt={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(he,we){return nn(we)?we.number:1}},Dr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Gr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(he,we){return we.filter(cn).map(function(ke){switch(ke.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(ke){return ke!==0})}},fn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(he,we){var ke=[],tt=[];return we.forEach(function($t){switch($t.type){case 20:case 0:ke.push($t.value);break;case 17:ke.push($t.number.toString());break;case 4:tt.push(ke.join(" ")),ke.length=0;break}}),ke.length&&tt.push(ke.join(" ")),tt.map(function($t){return $t.indexOf(" ")===-1?$t:"'"+$t+"'"})}},Kn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},qn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(he,we){if(nn(we))return we.number;if(cn(we))switch(we.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,we){return we.filter(cn).map(function(ke){return ke.value})}},Ei={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(he,we){switch(we){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Fi=function(he,we){return(he&we)!==0},va={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(he,we){if(we.length===0)return[];var ke=we[0];return ke.type===20&&ke.value==="none"?[]:we}},Oa={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(he,we){if(we.length===0)return null;var ke=we[0];if(ke.type===20&&ke.value==="none")return null;for(var tt=[],$t=we.filter(Tn),jr=0;jr<$t.length;jr++){var an=$t[jr],yn=$t[jr+1];if(an.type===20){var Fn=yn&&nn(yn)?yn.number:1;tt.push({counter:an.value,increment:Fn})}}return tt}},fo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(he,we){if(we.length===0)return[];for(var ke=[],tt=we.filter(Tn),$t=0;$t<tt.length;$t++){var jr=tt[$t],an=tt[$t+1];if(cn(jr)&&jr.value!=="none"){var yn=an&&nn(an)?an.number:0;ke.push({counter:jr.value,reset:yn})}}return ke}},wo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(he,we){return we.filter(Fr).map(function(ke){return At.parse(he,ke)})}},lo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(he,we){if(we.length===0)return null;var ke=we[0];if(ke.type===20&&ke.value==="none")return null;var tt=[],$t=we.filter(tn);if($t.length%2!==0)return null;for(var jr=0;jr<$t.length;jr+=2){var an=$t[jr].value,yn=$t[jr+1].value;tt.push({open:an,close:yn})}return tt}},Yo=function(he,we,ke){if(!he)return"";var tt=he[Math.min(we,he.length-1)];return tt?ke?tt.open:tt.close:""},Vo={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(he,we){return we.length===1&&Ln(we[0],"none")?[]:ci(we).map(function(ke){for(var tt={color:255,offsetX:xi,offsetY:xi,blur:xi,spread:xi,inset:!1},$t=0,jr=0;jr<ke.length;jr++){var an=ke[jr];Ln(an,"inset")?tt.inset=!0:pi(an)?($t===0?tt.offsetX=an:$t===1?tt.offsetY=an:$t===2?tt.blur=an:tt.spread=an,$t++):tt.color=ga.parse(he,an)}return tt})}},No={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(he,we){var ke=[0,1,2],tt=[];return we.filter(cn).forEach(function($t){switch($t.value){case"stroke":tt.push(1);break;case"fill":tt.push(0);break;case"markers":tt.push(2);break}}),ke.forEach(function($t){tt.indexOf($t)===-1&&tt.push($t)}),tt}},ao={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,we){return Fr(we)?we.number:0}},is=function(){function ur(he,we){var ke,tt;this.animationDuration=la(he,wo,we.animationDuration),this.backgroundClip=la(he,co,we.backgroundClip),this.backgroundColor=la(he,Ca,we.backgroundColor),this.backgroundImage=la(he,Hn,we.backgroundImage),this.backgroundOrigin=la(he,Bn,we.backgroundOrigin),this.backgroundPosition=la(he,ri,we.backgroundPosition),this.backgroundRepeat=la(he,Yn,we.backgroundRepeat),this.backgroundSize=la(he,ki,we.backgroundSize),this.borderTopColor=la(he,Aa,we.borderTopColor),this.borderRightColor=la(he,ea,we.borderRightColor),this.borderBottomColor=la(he,Ji,we.borderBottomColor),this.borderLeftColor=la(he,sa,we.borderLeftColor),this.borderTopLeftRadius=la(he,xo,we.borderTopLeftRadius),this.borderTopRightRadius=la(he,Qa,we.borderTopRightRadius),this.borderBottomRightRadius=la(he,Wi,we.borderBottomRightRadius),this.borderBottomLeftRadius=la(he,qi,we.borderBottomLeftRadius),this.borderTopStyle=la(he,ma,we.borderTopStyle),this.borderRightStyle=la(he,ka,we.borderRightStyle),this.borderBottomStyle=la(he,La,we.borderBottomStyle),this.borderLeftStyle=la(he,Za,we.borderLeftStyle),this.borderTopWidth=la(he,Po,we.borderTopWidth),this.borderRightWidth=la(he,jo,we.borderRightWidth),this.borderBottomWidth=la(he,cs,we.borderBottomWidth),this.borderLeftWidth=la(he,Mo,we.borderLeftWidth),this.boxShadow=la(he,Vo,we.boxShadow),this.color=la(he,Lo,we.color),this.direction=la(he,Ba,we.direction),this.display=la(he,za,we.display),this.float=la(he,ko,we.cssFloat),this.fontFamily=la(he,fn,we.fontFamily),this.fontSize=la(he,Kn,we.fontSize),this.fontStyle=la(he,Ei,we.fontStyle),this.fontVariant=la(he,Qn,we.fontVariant),this.fontWeight=la(he,qn,we.fontWeight),this.letterSpacing=la(he,Qo,we.letterSpacing),this.lineBreak=la(he,Os,we.lineBreak),this.lineHeight=la(he,ho,we.lineHeight),this.listStyleImage=la(he,ds,we.listStyleImage),this.listStylePosition=la(he,Ho,we.listStylePosition),this.listStyleType=la(he,zo,we.listStyleType),this.marginTop=la(he,es,we.marginTop),this.marginRight=la(he,Js,we.marginRight),this.marginBottom=la(he,Es,we.marginBottom),this.marginLeft=la(he,gs,we.marginLeft),this.opacity=la(he,Gt,we.opacity);var $t=la(he,Ko,we.overflow);this.overflowX=$t[0],this.overflowY=$t[$t.length>1?1:0],this.overflowWrap=la(he,hs,we.overflowWrap),this.paddingTop=la(he,ws,we.paddingTop),this.paddingRight=la(he,qo,we.paddingRight),this.paddingBottom=la(he,us,we.paddingBottom),this.paddingLeft=la(he,_s,we.paddingLeft),this.paintOrder=la(he,No,we.paintOrder),this.position=la(he,vo,we.position),this.textAlign=la(he,vs,we.textAlign),this.textDecorationColor=la(he,Dr,(ke=we.textDecorationColor)!==null&&ke!==void 0?ke:we.color),this.textDecorationLine=la(he,Gr,(tt=we.textDecorationLine)!==null&&tt!==void 0?tt:we.textDecoration),this.textShadow=la(he,to,we.textShadow),this.textTransform=la(he,Jo,we.textTransform),this.transform=la(he,ts,we.transform),this.transformOrigin=la(he,vt,we.transformOrigin),this.visibility=la(he,ae,we.visibility),this.webkitTextStrokeColor=la(he,ao,we.webkitTextStrokeColor),this.webkitTextStrokeWidth=la(he,Ka,we.webkitTextStrokeWidth),this.wordBreak=la(he,be,we.wordBreak),this.zIndex=la(he,Ke,we.zIndex)}return ur.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},ur.prototype.isTransparent=function(){return ra(this.backgroundColor)},ur.prototype.isTransformed=function(){return this.transform!==null},ur.prototype.isPositioned=function(){return this.position!==0},ur.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},ur.prototype.isFloating=function(){return this.float!==0},ur.prototype.isInlineLevel=function(){return Fi(this.display,4)||Fi(this.display,33554432)||Fi(this.display,268435456)||Fi(this.display,536870912)||Fi(this.display,67108864)||Fi(this.display,134217728)},ur}(),Is=function(){function ur(he,we){this.content=la(he,va,we.content),this.quotes=la(he,lo,we.quotes)}return ur}(),Go=function(){function ur(he,we){this.counterIncrement=la(he,Oa,we.counterIncrement),this.counterReset=la(he,fo,we.counterReset)}return ur}(),la=function(he,we,ke){var tt=new mr,$t=ke!==null&&typeof ke!="undefined"?ke.toString():we.initialValue;tt.write($t);var jr=new vr(tt.read());switch(we.type){case 2:var an=jr.parseComponentValue();return we.parse(he,cn(an)?an.value:we.initialValue);case 0:return we.parse(he,jr.parseComponentValue());case 1:return we.parse(he,jr.parseComponentValues());case 4:return jr.parseComponentValue();case 3:switch(we.format){case"angle":return Gi.parse(he,jr.parseComponentValue());case"color":return ga.parse(he,jr.parseComponentValue());case"image":return Ur.parse(he,jr.parseComponentValue());case"length":var yn=jr.parseComponentValue();return pi(yn)?yn:xi;case"length-percentage":var Fn=jr.parseComponentValue();return Si(Fn)?Fn:xi;case"time":return At.parse(he,jr.parseComponentValue())}break}},Vs="data-html2canvas-debug",Hs=function(he){var we=he.getAttribute(Vs);switch(we){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},fs=function(he,we){var ke=Hs(he);return ke===1||we===ke},as=function(){function ur(he,we){if(this.context=he,this.textNodes=[],this.elements=[],this.flags=0,fs(we,3))debugger;this.styles=new is(he,window.getComputedStyle(we,null)),Iu(we)&&(this.styles.animationDuration.some(function(ke){return ke>0})&&(we.style.animationDuration="0s"),this.styles.transform!==null&&(we.style.transform="none")),this.bounds=c(this.context,we),fs(we,4)&&(this.flags|=16)}return ur}(),Ss="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",xl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),zs=0;zs<xl.length;zs++)vl[xl.charCodeAt(zs)]=zs;for(var Zo=function(he){var we=he.length*.75,ke=he.length,tt,$t=0,jr,an,yn,Fn;he[he.length-1]==="="&&(we--,he[he.length-2]==="="&&we--);var wi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(we):new Array(we),fi=Array.isArray(wi)?wi:new Uint8Array(wi);for(tt=0;tt<ke;tt+=4)jr=vl[he.charCodeAt(tt)],an=vl[he.charCodeAt(tt+1)],yn=vl[he.charCodeAt(tt+2)],Fn=vl[he.charCodeAt(tt+3)],fi[$t++]=jr<<2|an>>4,fi[$t++]=(an&15)<<4|yn>>2,fi[$t++]=(yn&3)<<6|Fn&63;return wi},As=function(he){for(var we=he.length,ke=[],tt=0;tt<we;tt+=2)ke.push(he[tt+1]<<8|he[tt]);return ke},nl=function(he){for(var we=he.length,ke=[],tt=0;tt<we;tt+=4)ke.push(he[tt+3]<<24|he[tt+2]<<16|he[tt+1]<<8|he[tt]);return ke},Ps=5,po=6+5,Wa=2,Eo=po-Ps,Xo=65536>>Ps,$o=1<<Ps,Co=$o-1,rs=1024>>Ps,os=Xo+rs,Fs=os,ol=2048>>6,Zs=Fs+ol,dl=65536>>po,hl=1<<Eo,sl=hl-1,yl=function(he,we,ke){return he.slice?he.slice(we,ke):new Uint16Array(Array.prototype.slice.call(he,we,ke))},Ns=function(he,we,ke){return he.slice?he.slice(we,ke):new Uint32Array(Array.prototype.slice.call(he,we,ke))},ys=function(he,we){var ke=Zo(he),tt=Array.isArray(ke)?nl(ke):new Uint32Array(ke),$t=Array.isArray(ke)?As(ke):new Uint16Array(ke),jr=24,an=yl($t,jr/2,tt[4]/2),yn=tt[5]===2?yl($t,(jr+tt[4])/2):Ns(tt,Math.ceil((jr+tt[4])/4));return new Ds(tt[0],tt[1],tt[2],tt[3],an,yn)},Ds=function(){function ur(he,we,ke,tt,$t,jr){this.initialValue=he,this.errorValue=we,this.highStart=ke,this.highValueIndex=tt,this.index=$t,this.data=jr}return ur.prototype.get=function(he){var we;if(he>=0){if(he<55296||he>56319&&he<=65535)return we=this.index[he>>Ps],we=(we<<Wa)+(he&Co),this.data[we];if(he<=65535)return we=this.index[Xo+(he-55296>>Ps)],we=(we<<Wa)+(he&Co),this.data[we];if(he<this.highStart)return we=Zs-dl+(he>>po),we=this.index[we],we+=he>>Ps&sl,we=this.index[we],we=(we<<Wa)+(he&Co),this.data[we];if(he<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ur}(),xs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ll=0;ll<xs.length;ll++)Xs[xs.charCodeAt(ll)]=ll;var El=1,jl=2,$s=3,Nl=4,kl=5,yu=7,cu=8,eu=9,tu=10,Vl=11,Ys=12,il=13,fl=14,Pl=15,du=function(he){for(var we=[],ke=0,tt=he.length;ke<tt;){var $t=he.charCodeAt(ke++);if($t>=55296&&$t<=56319&&ke<tt){var jr=he.charCodeAt(ke++);(jr&64512)===56320?we.push((($t&1023)<<10)+(jr&1023)+65536):(we.push($t),ke--)}else we.push($t)}return we},ru=function(){for(var he=[],we=0;we<arguments.length;we++)he[we]=arguments[we];if(String.fromCodePoint)return String.fromCodePoint.apply(String,he);var ke=he.length;if(!ke)return"";for(var tt=[],$t=-1,jr="";++$t<ke;){var an=he[$t];an<=65535?tt.push(an):(an-=65536,tt.push((an>>10)+55296,an%1024+56320)),($t+1===ke||tt.length>16384)&&(jr+=String.fromCharCode.apply(String,tt),tt.length=0)}return jr},nu=ys(Ss),Qs="\xD7",iu="\xF7",au=function(he){return nu.get(he)},bu=function(he,we,ke){var tt=ke-2,$t=we[tt],jr=we[ke-1],an=we[ke];if(jr===jl&&an===$s)return Qs;if(jr===jl||jr===$s||jr===Nl)return iu;if(an===jl||an===$s||an===Nl)return iu;if(jr===cu&&[cu,eu,Vl,Ys].indexOf(an)!==-1)return Qs;if((jr===Vl||jr===eu)&&(an===eu||an===tu))return Qs;if((jr===Ys||jr===tu)&&an===tu)return Qs;if(an===il||an===kl)return Qs;if(an===yu)return Qs;if(jr===El)return Qs;if(jr===il&&an===fl){for(;$t===kl;)$t=we[--tt];if($t===fl)return Qs}if(jr===Pl&&an===Pl){for(var yn=0;$t===Pl;)yn++,$t=we[--tt];if(yn%2===0)return Qs}return iu},bl=function(he){var we=du(he),ke=we.length,tt=0,$t=0,jr=we.map(au);return{next:function(){if(tt>=ke)return{done:!0,value:null};for(var yn=Qs;tt<ke&&(yn=bu(we,jr,++tt))===Qs;);if(yn!==Qs||tt===ke){var Fn=ru.apply(null,we.slice($t,tt));return $t=tt,{value:Fn,done:!1}}return{done:!0,value:null}}}},Fl=function(he){for(var we=bl(he),ke=[],tt;!(tt=we.next()).done;)tt.value&&ke.push(tt.value.slice());return ke},Hl=function(he){var we=123;if(he.createRange){var ke=he.createRange();if(ke.getBoundingClientRect){var tt=he.createElement("boundtest");tt.style.height=we+"px",tt.style.display="block",he.body.appendChild(tt),ke.selectNode(tt);var $t=ke.getBoundingClientRect(),jr=Math.round($t.height);if(he.body.removeChild(tt),jr===we)return!0}}return!1},Gl=function(he){var we=he.createElement("boundtest");we.style.width="50px",we.style.display="block",we.style.fontSize="12px",we.style.letterSpacing="0px",we.style.wordSpacing="0px",he.body.appendChild(we);var ke=he.createRange();we.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var tt=we.firstChild,$t=r(tt.data).map(function(Fn){return i(Fn)}),jr=0,an={},yn=$t.every(function(Fn,wi){ke.setStart(tt,jr),ke.setEnd(tt,jr+Fn.length);var fi=ke.getBoundingClientRect();jr+=Fn.length;var Ci=fi.x>an.x||fi.y>an.y;return an=fi,wi===0?!0:Ci});return he.body.removeChild(we),yn},Tl=function(){return typeof new Image().crossOrigin!="undefined"},Tu=function(){return typeof new XMLHttpRequest().responseType=="string"},Cu=function(he){var we=new Image,ke=he.createElement("canvas"),tt=ke.getContext("2d");if(!tt)return!1;we.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{tt.drawImage(we,0,0),ke.toDataURL()}catch($t){return!1}return!0},Cl=function(he){return he[0]===0&&he[1]===255&&he[2]===0&&he[3]===255},ou=function(he){var we=he.createElement("canvas"),ke=100;we.width=ke,we.height=ke;var tt=we.getContext("2d");if(!tt)return Promise.reject(!1);tt.fillStyle="rgb(0, 255, 0)",tt.fillRect(0,0,ke,ke);var $t=new Image,jr=we.toDataURL();$t.src=jr;var an=hu(ke,ke,0,0,$t);return tt.fillStyle="red",tt.fillRect(0,0,ke,ke),su(an).then(function(yn){tt.drawImage(yn,0,0);var Fn=tt.getImageData(0,0,ke,ke).data;tt.fillStyle="red",tt.fillRect(0,0,ke,ke);var wi=he.createElement("div");return wi.style.backgroundImage="url("+jr+")",wi.style.height=ke+"px",Cl(Fn)?su(hu(ke,ke,0,0,wi)):Promise.reject(!1)}).then(function(yn){return tt.drawImage(yn,0,0),Cl(tt.getImageData(0,0,ke,ke).data)}).catch(function(){return!1})},hu=function(he,we,ke,tt,$t){var jr="http://www.w3.org/2000/svg",an=document.createElementNS(jr,"svg"),yn=document.createElementNS(jr,"foreignObject");return an.setAttributeNS(null,"width",he.toString()),an.setAttributeNS(null,"height",we.toString()),yn.setAttributeNS(null,"width","100%"),yn.setAttributeNS(null,"height","100%"),yn.setAttributeNS(null,"x",ke.toString()),yn.setAttributeNS(null,"y",tt.toString()),yn.setAttributeNS(null,"externalResourcesRequired","true"),an.appendChild(yn),yn.appendChild($t),an},su=function(he){return new Promise(function(we,ke){var tt=new Image;tt.onload=function(){return we(tt)},tt.onerror=ke,tt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},Rs={get SUPPORT_RANGE_BOUNDS(){var ur=Hl(document);return Object.defineProperty(Rs,"SUPPORT_RANGE_BOUNDS",{value:ur}),ur},get SUPPORT_WORD_BREAKING(){var ur=Rs.SUPPORT_RANGE_BOUNDS&&Gl(document);return Object.defineProperty(Rs,"SUPPORT_WORD_BREAKING",{value:ur}),ur},get SUPPORT_SVG_DRAWING(){var ur=Cu(document);return Object.defineProperty(Rs,"SUPPORT_SVG_DRAWING",{value:ur}),ur},get SUPPORT_FOREIGNOBJECT_DRAWING(){var ur=typeof Array.from=="function"&&typeof window.fetch=="function"?ou(document):Promise.resolve(!1);return Object.defineProperty(Rs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ur}),ur},get SUPPORT_CORS_IMAGES(){var ur=Tl();return Object.defineProperty(Rs,"SUPPORT_CORS_IMAGES",{value:ur}),ur},get SUPPORT_RESPONSE_TYPE(){var ur=Tu();return Object.defineProperty(Rs,"SUPPORT_RESPONSE_TYPE",{value:ur}),ur},get SUPPORT_CORS_XHR(){var ur="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Rs,"SUPPORT_CORS_XHR",{value:ur}),ur},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var ur=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Rs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:ur}),ur}},el=function(){function ur(he,we){this.text=he,this.bounds=we}return ur}(),Bl=function(he,we,ke,tt){var $t=lu(we,ke),jr=[],an=0;return $t.forEach(function(yn){if(ke.textDecorationLine.length||yn.trim().length>0)if(Rs.SUPPORT_RANGE_BOUNDS){var Fn=fu(tt,an,yn.length).getClientRects();if(Fn.length>1){var wi=Xl(yn),fi=0;wi.forEach(function(ba){jr.push(new el(ba,f.fromDOMRectList(he,fu(tt,fi+an,ba.length).getClientRects()))),fi+=ba.length})}else jr.push(new el(yn,f.fromDOMRectList(he,Fn)))}else{var Ci=tt.splitText(yn.length);jr.push(new el(yn,wu(he,tt))),tt=Ci}else Rs.SUPPORT_RANGE_BOUNDS||(tt=tt.splitText(yn.length));an+=yn.length}),jr},wu=function(he,we){var ke=we.ownerDocument;if(ke){var tt=ke.createElement("html2canvaswrapper");tt.appendChild(we.cloneNode(!0));var $t=we.parentNode;if($t){$t.replaceChild(tt,we);var jr=c(he,tt);return tt.firstChild&&$t.replaceChild(tt.firstChild,tt),jr}}return f.EMPTY},fu=function(he,we,ke){var tt=he.ownerDocument;if(!tt)throw new Error("Node has no owner document");var $t=tt.createRange();return $t.setStart(he,we),$t.setEnd(he,we+ke),$t},Xl=function(he){if(Rs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var we=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(we.segment(he)).map(function(ke){return ke.segment})}return Fl(he)},Kl=function(he,we){if(Rs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ke=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(ke.segment(he)).map(function(tt){return tt.segment})}return mu(he,we)},lu=function(he,we){return we.letterSpacing!==0?Xl(he):Kl(he,we)},pu=[32,160,4961,65792,65793,4153,4241],mu=function(he,we){for(var ke=Le(he,{lineBreak:we.lineBreak,wordBreak:we.overflowWrap==="break-word"?"break-word":we.wordBreak}),tt=[],$t,jr=function(){if($t.value){var yn=$t.value.slice(),Fn=r(yn),wi="";Fn.forEach(function(fi){pu.indexOf(fi)===-1?wi+=i(fi):(wi.length&&tt.push(wi),tt.push(i(fi)),wi="")}),wi.length&&tt.push(wi)}};!($t=ke.next()).done;)jr();return tt},pl=function(){function ur(he,we,ke){this.text=wl(we.data,ke.textTransform),this.textBounds=Bl(he,this.text,ke,we)}return ur}(),wl=function(he,we){switch(we){case 1:return he.toLowerCase();case 3:return he.replace(Dl,Bo);case 2:return he.toUpperCase();default:return he}},Dl=/(^|\s|:|-|\(|\))([a-z])/g,Bo=function(he,we,ke){return he.length>0?we+ke.toUpperCase():he},Na=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;return tt.src=ke.currentSrc||ke.src,tt.intrinsicWidth=ke.naturalWidth,tt.intrinsicHeight=ke.naturalHeight,tt.context.cache.addImage(tt.src),tt}return he}(as),ro=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;return tt.canvas=ke,tt.intrinsicWidth=ke.width,tt.intrinsicHeight=ke.height,tt}return he}(as),Io=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this,$t=new XMLSerializer,jr=c(we,ke);return ke.setAttribute("width",jr.width+"px"),ke.setAttribute("height",jr.height+"px"),tt.svg="data:image/svg+xml,"+encodeURIComponent($t.serializeToString(ke)),tt.intrinsicWidth=ke.width.baseVal.value,tt.intrinsicHeight=ke.height.baseVal.value,tt.context.cache.addImage(tt.svg),tt}return he}(as),Bs=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;return tt.value=ke.value,tt}return he}(as),Ol=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;return tt.start=ke.start,tt.reversed=typeof ke.reversed=="boolean"&&ke.reversed===!0,tt}return he}(as),_l=[{type:15,flags:0,unit:"px",number:3}],ml=[{type:16,flags:0,number:50}],Al=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},Il=function(he){var we=he.type===Yl?new Array(he.value.length+1).join("\u2022"):he.value;return we.length===0?he.placeholder||"":we},Ll="checkbox",Ks="radio",Yl="password",gu=707406591,uu=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;tt.type=ke.type.toLowerCase(),tt.checked=ke.checked,tt.value=Il(ke),(tt.type===Ll||tt.type===Ks)&&(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=Al(tt.bounds));switch(tt.type){case Ll:tt.styles.borderTopRightRadius=tt.styles.borderTopLeftRadius=tt.styles.borderBottomRightRadius=tt.styles.borderBottomLeftRadius=_l;break;case Ks:tt.styles.borderTopRightRadius=tt.styles.borderTopLeftRadius=tt.styles.borderBottomRightRadius=tt.styles.borderBottomLeftRadius=ml;break}return tt}return he}(as),Ou=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this,$t=ke.options[ke.selectedIndex||0];return tt.value=$t&&$t.text||"",tt}return he}(as),Vu=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;return tt.value=ke.value,tt}return he}(as),Fu=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;tt.src=ke.src,tt.width=parseInt(ke.width,10)||0,tt.height=parseInt(ke.height,10)||0,tt.backgroundColor=tt.styles.backgroundColor;try{if(ke.contentWindow&&ke.contentWindow.document&&ke.contentWindow.document.documentElement){tt.tree=Xu(we,ke.contentWindow.document.documentElement);var $t=ke.contentWindow.document.documentElement?Ia(we,getComputedStyle(ke.contentWindow.document.documentElement).backgroundColor):Va.TRANSPARENT,jr=ke.contentWindow.document.body?Ia(we,getComputedStyle(ke.contentWindow.document.body).backgroundColor):Va.TRANSPARENT;tt.backgroundColor=ra($t)?ra(jr)?tt.styles.backgroundColor:jr:$t}}catch(an){}return tt}return he}(as),ec=["OL","UL","MENU"],Bu=function ur(he,we,ke,tt){for(var $t=we.firstChild,jr=void 0;$t;$t=jr)if(jr=$t.nextSibling,_u($t)&&$t.data.trim().length>0)ke.textNodes.push(new pl(he,$t,ke.styles));else if(Ul($t))if(Yt($t)&&$t.assignedNodes)$t.assignedNodes().forEach(function(yn){return ur(he,yn,ke,tt)});else{var an=Gu(he,$t);an.styles.isVisible()&&(Yu($t,an,tt)?an.flags|=4:Uu(an.styles)&&(an.flags|=2),ec.indexOf($t.tagName)!==-1&&(an.flags|=8),ke.elements.push(an),$t.slot,$t.shadowRoot?ur(he,$t.shadowRoot,an,tt):!Ft($t)&&!nr($t)&&!zt($t)&&ur(he,$t,an,tt))}},Gu=function(he,we){return te(we)?new Na(he,we):zr(we)?new ro(he,we):nr(we)?new Io(he,we):Su(we)?new Bs(he,we):Ae(we)?new Ol(he,we):We(we)?new uu(he,we):zt(we)?new Ou(he,we):Ft(we)?new Vu(he,we):ye(we)?new Fu(he,we):new as(he,we)},Xu=function(he,we){var ke=Gu(he,we);return ke.flags|=4,Bu(he,we,ke,ke),ke},Yu=function(he,we,ke){return we.styles.isPositionedWithZIndex()||we.styles.opacity<1||we.styles.isTransformed()||Tr(he)&&ke.styles.isTransparent()},Uu=function(he){return he.isPositioned()||he.isFloating()},_u=function(he){return he.nodeType===Node.TEXT_NODE},Ul=function(he){return he.nodeType===Node.ELEMENT_NODE},Iu=function(he){return Ul(he)&&typeof he.style!="undefined"&&!Wl(he)},Wl=function(he){return typeof he.className=="object"},Su=function(he){return he.tagName==="LI"},Ae=function(he){return he.tagName==="OL"},We=function(he){return he.tagName==="INPUT"},pt=function(he){return he.tagName==="HTML"},nr=function(he){return he.tagName==="svg"},Tr=function(he){return he.tagName==="BODY"},zr=function(he){return he.tagName==="CANVAS"},Me=function(he){return he.tagName==="VIDEO"},te=function(he){return he.tagName==="IMG"},ye=function(he){return he.tagName==="IFRAME"},Ge=function(he){return he.tagName==="STYLE"},st=function(he){return he.tagName==="SCRIPT"},Ft=function(he){return he.tagName==="TEXTAREA"},zt=function(he){return he.tagName==="SELECT"},Yt=function(he){return he.tagName==="SLOT"},Nr=function(he){return he.tagName.indexOf("-")>0},Qr=function(){function ur(){this.counters={}}return ur.prototype.getCounterValue=function(he){var we=this.counters[he];return we&&we.length?we[we.length-1]:1},ur.prototype.getCounterValues=function(he){var we=this.counters[he];return we||[]},ur.prototype.pop=function(he){var we=this;he.forEach(function(ke){return we.counters[ke].pop()})},ur.prototype.parse=function(he){var we=this,ke=he.counterIncrement,tt=he.counterReset,$t=!0;ke!==null&&ke.forEach(function(an){var yn=we.counters[an.counter];yn&&an.increment!==0&&($t=!1,yn.length||yn.push(1),yn[Math.max(0,yn.length-1)]+=an.increment)});var jr=[];return $t&&tt.forEach(function(an){var yn=we.counters[an.counter];jr.push(an.counter),yn||(yn=we.counters[an.counter]=[]),yn.push(an.reset)}),jr},ur}(),Cr={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"]},Er={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"]},Kr={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"]},qr={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"]},Cn=function(he,we,ke,tt,$t,jr){return he<we||he>ke?Z(he,$t,jr.length>0):tt.integers.reduce(function(an,yn,Fn){for(;he>=yn;)he-=yn,an+=tt.values[Fn];return an},"")+jr},oi=function(he,we,ke,tt){var $t="";do ke||he--,$t=tt(he)+$t,he/=we;while(he*we>=we);return $t},hi=function(he,we,ke,tt,$t){var jr=ke-we+1;return(he<0?"-":"")+(oi(Math.abs(he),jr,tt,function(an){return i(Math.floor(an%jr)+we)})+$t)},ji=function(he,we,ke){ke===void 0&&(ke=". ");var tt=we.length;return oi(Math.abs(he),tt,!1,function($t){return we[Math.floor($t%tt)]})+ke},Oi=1<<0,wa=1<<1,Qi=1<<2,Ua=1<<3,Sa=function(he,we,ke,tt,$t,jr){if(he<-9999||he>9999)return Z(he,4,$t.length>0);var an=Math.abs(he),yn=$t;if(an===0)return we[0]+yn;for(var Fn=0;an>0&&Fn<=4;Fn++){var wi=an%10;wi===0&&Fi(jr,Oi)&&yn!==""?yn=we[wi]+yn:wi>1||wi===1&&Fn===0||wi===1&&Fn===1&&Fi(jr,wa)||wi===1&&Fn===1&&Fi(jr,Qi)&&he>100||wi===1&&Fn>1&&Fi(jr,Ua)?yn=we[wi]+(Fn>0?ke[Fn-1]:"")+yn:wi===1&&Fn>0&&(yn=ke[Fn-1]+yn),an=Math.floor(an/10)}return(he<0?tt:"")+yn},So="\u5341\u767E\u5343\u842C",Fo="\u62FE\u4F70\u4EDF\u842C",k="\u30DE\u30A4\u30CA\u30B9",K="\uB9C8\uC774\uB108\uC2A4",Z=function(he,we,ke){var tt=ke?". ":"",$t=ke?"\u3001":"",jr=ke?", ":"",an=ke?" ":"";switch(we){case 0:return"\u2022"+an;case 1:return"\u25E6"+an;case 2:return"\u25FE"+an;case 5:var yn=hi(he,48,57,!0,tt);return yn.length<4?"0"+yn:yn;case 4:return ji(he,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",$t);case 6:return Cn(he,1,3999,Cr,3,tt).toLowerCase();case 7:return Cn(he,1,3999,Cr,3,tt);case 8:return hi(he,945,969,!1,tt);case 9:return hi(he,97,122,!1,tt);case 10:return hi(he,65,90,!1,tt);case 11:return hi(he,1632,1641,!0,tt);case 12:case 49:return Cn(he,1,9999,Er,3,tt);case 35:return Cn(he,1,9999,Er,3,tt).toLowerCase();case 13:return hi(he,2534,2543,!0,tt);case 14:case 30:return hi(he,6112,6121,!0,tt);case 15:return ji(he,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",$t);case 16:return ji(he,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",$t);case 17:case 48:return Sa(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",So,"\u8CA0",$t,wa|Qi|Ua);case 47:return Sa(he,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Fo,"\u8CA0",$t,Oi|wa|Qi|Ua);case 42:return Sa(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",So,"\u8D1F",$t,wa|Qi|Ua);case 41:return Sa(he,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Fo,"\u8D1F",$t,Oi|wa|Qi|Ua);case 26:return Sa(he,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",k,$t,0);case 25:return Sa(he,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",k,$t,Oi|wa|Qi);case 31:return Sa(he,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",K,jr,Oi|wa|Qi);case 33:return Sa(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",K,jr,0);case 32:return Sa(he,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",K,jr,Oi|wa|Qi);case 18:return hi(he,2406,2415,!0,tt);case 20:return Cn(he,1,19999,qr,3,tt);case 21:return hi(he,2790,2799,!0,tt);case 22:return hi(he,2662,2671,!0,tt);case 22:return Cn(he,1,10999,Kr,3,tt);case 23:return ji(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 ji(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 hi(he,3302,3311,!0,tt);case 28:return ji(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",$t);case 29:return ji(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",$t);case 34:return hi(he,3792,3801,!0,tt);case 37:return hi(he,6160,6169,!0,tt);case 38:return hi(he,4160,4169,!0,tt);case 39:return hi(he,2918,2927,!0,tt);case 40:return hi(he,1776,1785,!0,tt);case 43:return hi(he,3046,3055,!0,tt);case 44:return hi(he,3174,3183,!0,tt);case 45:return hi(he,3664,3673,!0,tt);case 46:return hi(he,3872,3881,!0,tt);case 3:default:return hi(he,48,57,!0,tt)}},re="data-html2canvas-ignore",ce=function(){function ur(he,we,ke){if(this.context=he,this.options=ke,this.scrolledElements=[],this.referenceElement=we,this.counters=new Qr,this.quoteDepth=0,!we.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(we.ownerDocument.documentElement,!1)}return ur.prototype.toIFrame=function(he,we){var ke=this,tt=mt(he,we);if(!tt.contentWindow)return Promise.reject("Unable to find iframe window");var $t=he.defaultView.pageXOffset,jr=he.defaultView.pageYOffset,an=tt.contentWindow,yn=an.document,Fn=pr(tt).then(function(){return A(ke,void 0,void 0,function(){var wi,fi;return w(this,function(Ci){switch(Ci.label){case 0:return this.scrolledElements.forEach(Mi),an&&(an.scrollTo(we.left,we.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(an.scrollY!==we.top||an.scrollX!==we.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(an.scrollX-we.left,an.scrollY-we.top,0,0))),wi=this.options.onclone,fi=this.clonedReferenceElement,typeof fi=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:yn.fonts&&yn.fonts.ready?[4,yn.fonts.ready]:[3,2];case 1:Ci.sent(),Ci.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,sr(yn)]:[3,4];case 3:Ci.sent(),Ci.label=4;case 4:return typeof wi=="function"?[2,Promise.resolve().then(function(){return wi(yn,fi)}).then(function(){return tt})]:[2,tt]}})})});return yn.open(),yn.write(ei(document.doctype)+"<html></html>"),ni(this.referenceElement.ownerDocument,$t,jr),yn.replaceChild(yn.adoptNode(this.documentElement),yn.documentElement),yn.close(),Fn},ur.prototype.createElementClone=function(he){if(fs(he,2))debugger;if(zr(he))return this.createCanvasClone(he);if(Me(he))return this.createVideoClone(he);if(Ge(he))return this.createStyleClone(he);var we=he.cloneNode(!1);return te(we)&&(te(he)&&he.currentSrc&&he.currentSrc!==he.src&&(we.src=he.currentSrc,we.srcset=""),we.loading==="lazy"&&(we.loading="eager")),Nr(we)?this.createCustomElementClone(we):we},ur.prototype.createCustomElementClone=function(he){var we=document.createElement("html2canvascustomelement");return Rn(he.style,we),we},ur.prototype.createStyleClone=function(he){try{var we=he.sheet;if(we&&we.cssRules){var ke=[].slice.call(we.cssRules,0).reduce(function($t,jr){return jr&&typeof jr.cssText=="string"?$t+jr.cssText:$t},""),tt=he.cloneNode(!1);return tt.textContent=ke,tt}}catch($t){if(this.context.logger.error("Unable to access cssRules property",$t),$t.name!=="SecurityError")throw $t}return he.cloneNode(!1)},ur.prototype.createCanvasClone=function(he){var we;if(this.options.inlineImages&&he.ownerDocument){var ke=he.ownerDocument.createElement("img");try{return ke.src=he.toDataURL(),ke}catch(Fn){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 $t=he.getContext("2d"),jr=tt.getContext("2d");if(jr)if(!this.options.allowTaint&&$t)jr.putImageData($t.getImageData(0,0,he.width,he.height),0,0);else{var an=(we=he.getContext("webgl2"))!==null&&we!==void 0?we:he.getContext("webgl");if(an){var yn=an.getContextAttributes();(yn==null?void 0:yn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",he)}jr.drawImage(he,0,0)}return tt}catch(Fn){this.context.logger.info("Unable to clone canvas as it is tainted",he)}return tt},ur.prototype.createVideoClone=function(he){var we=he.ownerDocument.createElement("canvas");we.width=he.offsetWidth,we.height=he.offsetHeight;var ke=we.getContext("2d");try{return ke&&(ke.drawImage(he,0,0,we.width,we.height),this.options.allowTaint||ke.getImageData(0,0,we.width,we.height)),we}catch($t){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},ur.prototype.appendChildNode=function(he,we,ke){(!Ul(we)||!st(we)&&!we.hasAttribute(re)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(we)))&&((!this.options.copyStyles||!Ul(we)||!Ge(we))&&he.appendChild(this.cloneNode(we,ke)))},ur.prototype.cloneChildNodes=function(he,we,ke){for(var tt=this,$t=he.shadowRoot?he.shadowRoot.firstChild:he.firstChild;$t;$t=$t.nextSibling)if(Ul($t)&&Yt($t)&&typeof $t.assignedNodes=="function"){var jr=$t.assignedNodes();jr.length&&jr.forEach(function(an){return tt.appendChildNode(we,an,ke)})}else this.appendChildNode(we,$t,ke)},ur.prototype.cloneNode=function(he,we){if(_u(he))return document.createTextNode(he.data);if(!he.ownerDocument)return he.cloneNode(!1);var ke=he.ownerDocument.defaultView;if(ke&&Ul(he)&&(Iu(he)||Wl(he))){var tt=this.createElementClone(he);tt.style.transitionProperty="none";var $t=ke.getComputedStyle(he),jr=ke.getComputedStyle(he,":before"),an=ke.getComputedStyle(he,":after");this.referenceElement===he&&Iu(tt)&&(this.clonedReferenceElement=tt),Tr(tt)&&Ma(tt);var yn=this.counters.parse(new Go(this.context,$t)),Fn=this.resolvePseudoContent(he,tt,jr,Pe.BEFORE);Nr(he)&&(we=!0),Me(he)||this.cloneChildNodes(he,tt,we),Fn&&tt.insertBefore(Fn,tt.firstChild);var wi=this.resolvePseudoContent(he,tt,an,Pe.AFTER);return wi&&tt.appendChild(wi),this.counters.pop(yn),($t&&(this.options.copyStyles||Wl(he))&&!ye(he)||we)&&Rn($t,tt),(he.scrollTop!==0||he.scrollLeft!==0)&&this.scrolledElements.push([tt,he.scrollLeft,he.scrollTop]),(Ft(he)||zt(he))&&(Ft(tt)||zt(tt))&&(tt.value=he.value),tt}return he.cloneNode(!1)},ur.prototype.resolvePseudoContent=function(he,we,ke,tt){var $t=this;if(!ke)return;var jr=ke.content,an=we.ownerDocument;if(!an||!jr||jr==="none"||jr==="-moz-alt-content"||ke.display==="none")return;this.counters.parse(new Go(this.context,ke));var yn=new Is(this.context,ke),Fn=an.createElement("html2canvaspseudoelement");Rn(ke,Fn),yn.content.forEach(function(fi){if(fi.type===0)Fn.appendChild(an.createTextNode(fi.value));else if(fi.type===22){var Ci=an.createElement("img");Ci.src=fi.value,Ci.style.opacity="1",Fn.appendChild(Ci)}else if(fi.type===18){if(fi.name==="attr"){var ba=fi.values.filter(cn);ba.length&&Fn.appendChild(an.createTextNode(he.getAttribute(ba[0].value)||""))}else if(fi.name==="counter"){var Ea=fi.values.filter(Xn),Pa=Ea[0],Do=Ea[1];if(Pa&&cn(Pa)){var mo=$t.counters.getCounterValue(Pa.value),io=Do&&cn(Do)?zo.parse($t.context,Do.value):3;Fn.appendChild(an.createTextNode(Z(mo,io,!1)))}}else if(fi.name==="counters"){var ms=fi.values.filter(Xn),Pa=ms[0],Cs=ms[1],Do=ms[2];if(Pa&&cn(Pa)){var ss=$t.counters.getCounterValues(Pa.value),$a=Do&&cn(Do)?zo.parse($t.context,Do.value):3,ks=Cs&&Cs.type===0?Cs.value:"",js=ss.map(function(Au){return Z(Au,$a,!1)}).join(ks);Fn.appendChild(an.createTextNode(js))}}}else if(fi.type===20)switch(fi.value){case"open-quote":Fn.appendChild(an.createTextNode(Yo(yn.quotes,$t.quoteDepth++,!0)));break;case"close-quote":Fn.appendChild(an.createTextNode(Yo(yn.quotes,--$t.quoteDepth,!1)));break;default:Fn.appendChild(an.createTextNode(fi.value))}}),Fn.className=ia+" "+na;var wi=tt===Pe.BEFORE?" "+ia:" "+na;return Wl(we)?we.className.baseValue+=wi:we.className+=wi,Fn},ur.destroy=function(he){return he.parentNode?(he.parentNode.removeChild(he),!0):!1},ur}(),Pe;(function(ur){ur[ur.BEFORE=0]="BEFORE",ur[ur.AFTER=1]="AFTER"})(Pe||(Pe={}));var mt=function(he,we){var ke=he.createElement("iframe");return ke.className="html2canvas-container",ke.style.visibility="hidden",ke.style.position="fixed",ke.style.left="-10000px",ke.style.top="0px",ke.style.border="0",ke.width=we.width.toString(),ke.height=we.height.toString(),ke.scrolling="no",ke.setAttribute(re,"true"),he.body.appendChild(ke),ke},Wt=function(he){return new Promise(function(we){if(he.complete){we();return}if(!he.src){we();return}he.onload=we,he.onerror=we})},sr=function(he){return Promise.all([].slice.call(he.images,0).map(Wt))},pr=function(he){return new Promise(function(we,ke){var tt=he.contentWindow;if(!tt)return ke("No window assigned for iframe");var $t=tt.document;tt.onload=he.onload=function(){tt.onload=he.onload=null;var jr=setInterval(function(){$t.body.childNodes.length>0&&$t.readyState==="complete"&&(clearInterval(jr),we(he))},50)}})},wn=["all","d","content"],Rn=function(he,we){for(var ke=he.length-1;ke>=0;ke--){var tt=he.item(ke);wn.indexOf(tt)===-1&&we.style.setProperty(tt,he.getPropertyValue(tt))}return we},ei=function(he){var we="";return he&&(we+="<!DOCTYPE ",he.name&&(we+=he.name),he.internalSubset&&(we+=he.internalSubset),he.publicId&&(we+='"'+he.publicId+'"'),he.systemId&&(we+='"'+he.systemId+'"'),we+=">"),we},ni=function(he,we,ke){he&&he.defaultView&&(we!==he.defaultView.pageXOffset||ke!==he.defaultView.pageYOffset)&&he.defaultView.scrollTo(we,ke)},Mi=function(he){var we=he[0],ke=he[1],tt=he[2];we.scrollLeft=ke,we.scrollTop=tt},Zi=":before",da=":after",ia="___html2canvas___pseudoelement_before",na="___html2canvas___pseudoelement_after",xa=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,Ma=function(he){To(he,"."+ia+Zi+xa+`
|
|
|
.`+na+da+xa)},To=function(he,we){var ke=he.ownerDocument;if(ke){var tt=ke.createElement("style");tt.textContent=we,he.appendChild(tt)}},no=function(){function ur(){}return ur.getOrigin=function(he){var we=ur._link;return we?(we.href=he,we.href=we.href,we.protocol+we.hostname+we.port):"about:blank"},ur.isSameOrigin=function(he){return ur.getOrigin(he)===ur._origin},ur.setContext=function(he){ur._link=he.document.createElement("a"),ur._origin=ur.getOrigin(he.location.href)},ur._origin="about:blank",ur}(),Wo=function(){function ur(he,we){this.context=he,this._options=we,this._cache={}}return ur.prototype.addImage=function(he){var we=Promise.resolve();return this.has(he)||(cl(he)||tl(he))&&(this._cache[he]=this.loadImage(he)).catch(function(){}),we},ur.prototype.match=function(he){return this._cache[he]},ur.prototype.loadImage=function(he){return A(this,void 0,void 0,function(){var we,ke,tt,$t,jr=this;return w(this,function(an){switch(an.label){case 0:return we=no.isSameOrigin(he),ke=!ul(he)&&this._options.useCORS===!0&&Rs.SUPPORT_CORS_IMAGES&&!we,tt=!ul(he)&&!we&&!cl(he)&&typeof this._options.proxy=="string"&&Rs.SUPPORT_CORS_XHR&&!ke,!we&&this._options.allowTaint===!1&&!ul(he)&&!cl(he)&&!tt&&!ke?[2]:($t=he,tt?[4,this.proxy($t)]:[3,2]);case 1:$t=an.sent(),an.label=2;case 2:return this.context.logger.debug("Added image "+he.substring(0,256)),[4,new Promise(function(yn,Fn){var wi=new Image;wi.onload=function(){return yn(wi)},wi.onerror=Fn,(Gs($t)||ke)&&(wi.crossOrigin="anonymous"),wi.src=$t,wi.complete===!0&&setTimeout(function(){return yn(wi)},500),jr._options.imageTimeout>0&&setTimeout(function(){return Fn("Timed out ("+jr._options.imageTimeout+"ms) loading image")},jr._options.imageTimeout)})];case 3:return[2,an.sent()]}})})},ur.prototype.has=function(he){return typeof this._cache[he]!="undefined"},ur.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},ur.prototype.proxy=function(he){var we=this,ke=this._options.proxy;if(!ke)throw new Error("No proxy defined");var tt=he.substring(0,256);return new Promise(function($t,jr){var an=Rs.SUPPORT_RESPONSE_TYPE?"blob":"text",yn=new XMLHttpRequest;yn.onload=function(){if(yn.status===200)if(an==="text")$t(yn.response);else{var fi=new FileReader;fi.addEventListener("load",function(){return $t(fi.result)},!1),fi.addEventListener("error",function(Ci){return jr(Ci)},!1),fi.readAsDataURL(yn.response)}else jr("Failed to proxy resource "+tt+" with status code "+yn.status)},yn.onerror=jr;var Fn=ke.indexOf("?")>-1?"&":"?";if(yn.open("GET",""+ke+Fn+"url="+encodeURIComponent(he)+"&responseType="+an),an!=="text"&&yn instanceof XMLHttpRequest&&(yn.responseType=an),we._options.imageTimeout){var wi=we._options.imageTimeout;yn.timeout=wi,yn.ontimeout=function(){return jr("Timed out ("+wi+"ms) proxying "+tt)}}yn.send()})},ur}(),ps=/^data:image\/svg\+xml/i,Us=/^data:image\/.*;base64,/i,Ts=/^data:image\/.*/i,tl=function(he){return Rs.SUPPORT_SVG_DRAWING||!rl(he)},ul=function(he){return Ts.test(he)},Gs=function(he){return Us.test(he)},cl=function(he){return he.substr(0,4)==="blob"},rl=function(he){return he.substr(-3).toLowerCase()==="svg"||ps.test(he)},ya=function(){function ur(he,we){this.type=0,this.x=he,this.y=we}return ur.prototype.add=function(he,we){return new ur(this.x+he,this.y+we)},ur}(),Ms=function(he,we,ke){return new ya(he.x+(we.x-he.x)*ke,he.y+(we.y-he.y)*ke)},Ls=function(){function ur(he,we,ke,tt){this.type=1,this.start=he,this.startControl=we,this.endControl=ke,this.end=tt}return ur.prototype.subdivide=function(he,we){var ke=Ms(this.start,this.startControl,he),tt=Ms(this.startControl,this.endControl,he),$t=Ms(this.endControl,this.end,he),jr=Ms(ke,tt,he),an=Ms(tt,$t,he),yn=Ms(jr,an,he);return we?new ur(this.start,ke,jr,yn):new ur(yn,an,$t,this.end)},ur.prototype.add=function(he,we){return new ur(this.start.add(he,we),this.startControl.add(he,we),this.endControl.add(he,we),this.end.add(he,we))},ur.prototype.reverse=function(){return new ur(this.end,this.endControl,this.startControl,this.start)},ur}(),Ws=function(he){return he.type===1},Lu=function(){function ur(he){var we=he.styles,ke=he.bounds,tt=Ti(we.borderTopLeftRadius,ke.width,ke.height),$t=tt[0],jr=tt[1],an=Ti(we.borderTopRightRadius,ke.width,ke.height),yn=an[0],Fn=an[1],wi=Ti(we.borderBottomRightRadius,ke.width,ke.height),fi=wi[0],Ci=wi[1],ba=Ti(we.borderBottomLeftRadius,ke.width,ke.height),Ea=ba[0],Pa=ba[1],Do=[];Do.push(($t+yn)/ke.width),Do.push((Ea+fi)/ke.width),Do.push((jr+Pa)/ke.height),Do.push((Fn+Ci)/ke.height);var mo=Math.max.apply(Math,Do);mo>1&&($t/=mo,jr/=mo,yn/=mo,Fn/=mo,fi/=mo,Ci/=mo,Ea/=mo,Pa/=mo);var io=ke.width-yn,ms=ke.height-Ci,Cs=ke.width-fi,ss=ke.height-Pa,$a=we.borderTopWidth,ks=we.borderRightWidth,js=we.borderBottomWidth,ls=we.borderLeftWidth,$l=Ui(we.paddingTop,he.bounds.width),Au=Ui(we.paddingRight,he.bounds.width),ql=Ui(we.paddingBottom,he.bounds.width),Sl=Ui(we.paddingLeft,he.bounds.width);this.topLeftBorderDoubleOuterBox=$t>0||jr>0?Uo(ke.left+ls/3,ke.top+$a/3,$t-ls/3,jr-$a/3,ns.TOP_LEFT):new ya(ke.left+ls/3,ke.top+$a/3),this.topRightBorderDoubleOuterBox=$t>0||jr>0?Uo(ke.left+io,ke.top+$a/3,yn-ks/3,Fn-$a/3,ns.TOP_RIGHT):new ya(ke.left+ke.width-ks/3,ke.top+$a/3),this.bottomRightBorderDoubleOuterBox=fi>0||Ci>0?Uo(ke.left+Cs,ke.top+ms,fi-ks/3,Ci-js/3,ns.BOTTOM_RIGHT):new ya(ke.left+ke.width-ks/3,ke.top+ke.height-js/3),this.bottomLeftBorderDoubleOuterBox=Ea>0||Pa>0?Uo(ke.left+ls/3,ke.top+ss,Ea-ls/3,Pa-js/3,ns.BOTTOM_LEFT):new ya(ke.left+ls/3,ke.top+ke.height-js/3),this.topLeftBorderDoubleInnerBox=$t>0||jr>0?Uo(ke.left+ls*2/3,ke.top+$a*2/3,$t-ls*2/3,jr-$a*2/3,ns.TOP_LEFT):new ya(ke.left+ls*2/3,ke.top+$a*2/3),this.topRightBorderDoubleInnerBox=$t>0||jr>0?Uo(ke.left+io,ke.top+$a*2/3,yn-ks*2/3,Fn-$a*2/3,ns.TOP_RIGHT):new ya(ke.left+ke.width-ks*2/3,ke.top+$a*2/3),this.bottomRightBorderDoubleInnerBox=fi>0||Ci>0?Uo(ke.left+Cs,ke.top+ms,fi-ks*2/3,Ci-js*2/3,ns.BOTTOM_RIGHT):new ya(ke.left+ke.width-ks*2/3,ke.top+ke.height-js*2/3),this.bottomLeftBorderDoubleInnerBox=Ea>0||Pa>0?Uo(ke.left+ls*2/3,ke.top+ss,Ea-ls*2/3,Pa-js*2/3,ns.BOTTOM_LEFT):new ya(ke.left+ls*2/3,ke.top+ke.height-js*2/3),this.topLeftBorderStroke=$t>0||jr>0?Uo(ke.left+ls/2,ke.top+$a/2,$t-ls/2,jr-$a/2,ns.TOP_LEFT):new ya(ke.left+ls/2,ke.top+$a/2),this.topRightBorderStroke=$t>0||jr>0?Uo(ke.left+io,ke.top+$a/2,yn-ks/2,Fn-$a/2,ns.TOP_RIGHT):new ya(ke.left+ke.width-ks/2,ke.top+$a/2),this.bottomRightBorderStroke=fi>0||Ci>0?Uo(ke.left+Cs,ke.top+ms,fi-ks/2,Ci-js/2,ns.BOTTOM_RIGHT):new ya(ke.left+ke.width-ks/2,ke.top+ke.height-js/2),this.bottomLeftBorderStroke=Ea>0||Pa>0?Uo(ke.left+ls/2,ke.top+ss,Ea-ls/2,Pa-js/2,ns.BOTTOM_LEFT):new ya(ke.left+ls/2,ke.top+ke.height-js/2),this.topLeftBorderBox=$t>0||jr>0?Uo(ke.left,ke.top,$t,jr,ns.TOP_LEFT):new ya(ke.left,ke.top),this.topRightBorderBox=yn>0||Fn>0?Uo(ke.left+io,ke.top,yn,Fn,ns.TOP_RIGHT):new ya(ke.left+ke.width,ke.top),this.bottomRightBorderBox=fi>0||Ci>0?Uo(ke.left+Cs,ke.top+ms,fi,Ci,ns.BOTTOM_RIGHT):new ya(ke.left+ke.width,ke.top+ke.height),this.bottomLeftBorderBox=Ea>0||Pa>0?Uo(ke.left,ke.top+ss,Ea,Pa,ns.BOTTOM_LEFT):new ya(ke.left,ke.top+ke.height),this.topLeftPaddingBox=$t>0||jr>0?Uo(ke.left+ls,ke.top+$a,Math.max(0,$t-ls),Math.max(0,jr-$a),ns.TOP_LEFT):new ya(ke.left+ls,ke.top+$a),this.topRightPaddingBox=yn>0||Fn>0?Uo(ke.left+Math.min(io,ke.width-ks),ke.top+$a,io>ke.width+ks?0:Math.max(0,yn-ks),Math.max(0,Fn-$a),ns.TOP_RIGHT):new ya(ke.left+ke.width-ks,ke.top+$a),this.bottomRightPaddingBox=fi>0||Ci>0?Uo(ke.left+Math.min(Cs,ke.width-ls),ke.top+Math.min(ms,ke.height-js),Math.max(0,fi-ks),Math.max(0,Ci-js),ns.BOTTOM_RIGHT):new ya(ke.left+ke.width-ks,ke.top+ke.height-js),this.bottomLeftPaddingBox=Ea>0||Pa>0?Uo(ke.left+ls,ke.top+Math.min(ss,ke.height-js),Math.max(0,Ea-ls),Math.max(0,Pa-js),ns.BOTTOM_LEFT):new ya(ke.left+ls,ke.top+ke.height-js),this.topLeftContentBox=$t>0||jr>0?Uo(ke.left+ls+Sl,ke.top+$a+$l,Math.max(0,$t-(ls+Sl)),Math.max(0,jr-($a+$l)),ns.TOP_LEFT):new ya(ke.left+ls+Sl,ke.top+$a+$l),this.topRightContentBox=yn>0||Fn>0?Uo(ke.left+Math.min(io,ke.width+ls+Sl),ke.top+$a+$l,io>ke.width+ls+Sl?0:yn-ls+Sl,Fn-($a+$l),ns.TOP_RIGHT):new ya(ke.left+ke.width-(ks+Au),ke.top+$a+$l),this.bottomRightContentBox=fi>0||Ci>0?Uo(ke.left+Math.min(Cs,ke.width-(ls+Sl)),ke.top+Math.min(ms,ke.height+$a+$l),Math.max(0,fi-(ks+Au)),Ci-(js+ql),ns.BOTTOM_RIGHT):new ya(ke.left+ke.width-(ks+Au),ke.top+ke.height-(js+ql)),this.bottomLeftContentBox=Ea>0||Pa>0?Uo(ke.left+ls+Sl,ke.top+ss,Math.max(0,Ea-(ls+Sl)),Pa-(js+ql),ns.BOTTOM_LEFT):new ya(ke.left+ls+Sl,ke.top+ke.height-(js+ql))}return ur}(),ns;(function(ur){ur[ur.TOP_LEFT=0]="TOP_LEFT",ur[ur.TOP_RIGHT=1]="TOP_RIGHT",ur[ur.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",ur[ur.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ns||(ns={}));var Uo=function(he,we,ke,tt,$t){var jr=4*((Math.sqrt(2)-1)/3),an=ke*jr,yn=tt*jr,Fn=he+ke,wi=we+tt;switch($t){case ns.TOP_LEFT:return new Ls(new ya(he,wi),new ya(he,wi-yn),new ya(Fn-an,we),new ya(Fn,we));case ns.TOP_RIGHT:return new Ls(new ya(he,we),new ya(he+an,we),new ya(Fn,wi-yn),new ya(Fn,wi));case ns.BOTTOM_RIGHT:return new Ls(new ya(Fn,we),new ya(Fn,we+yn),new ya(he+an,wi),new ya(he,wi));case ns.BOTTOM_LEFT:default:return new Ls(new ya(Fn,wi),new ya(Fn-an,wi),new ya(he,we+yn),new ya(he,we))}},Rl=function(he){return[he.topLeftBorderBox,he.topRightBorderBox,he.bottomRightBorderBox,he.bottomLeftBorderBox]},al=function(he){return[he.topLeftContentBox,he.topRightContentBox,he.bottomRightContentBox,he.bottomLeftContentBox]},Nu=function(he){return[he.topLeftPaddingBox,he.topRightPaddingBox,he.bottomRightPaddingBox,he.bottomLeftPaddingBox]},Ql=function(){function ur(he,we,ke){this.offsetX=he,this.offsetY=we,this.matrix=ke,this.type=0,this.target=2|4}return ur}(),Ml=function(){function ur(he,we){this.path=he,this.target=we,this.type=1}return ur}(),vu=function(){function ur(he){this.opacity=he,this.type=2,this.target=2|4}return ur}(),gl=function(he){return he.type===0},Jl=function(he){return he.type===1},ju=function(he){return he.type===2},Qu=function(he,we){return he.length===we.length?he.some(function(ke,tt){return ke===we[tt]}):!1},vc=function(he,we,ke,tt,$t){return he.map(function(jr,an){switch(an){case 0:return jr.add(we,ke);case 1:return jr.add(we+tt,ke);case 2:return jr.add(we+tt,ke+$t);case 3:return jr.add(we,ke+$t)}return jr})},Ac=function(){function ur(he){this.element=he,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return ur}(),tc=function(){function ur(he,we){if(this.container=he,this.parent=we,this.effects=[],this.curves=new Lu(this.container),this.container.styles.opacity<1&&this.effects.push(new vu(this.container.styles.opacity)),this.container.styles.transform!==null){var ke=this.container.bounds.left+this.container.styles.transformOrigin[0].number,tt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,$t=this.container.styles.transform;this.effects.push(new Ql(ke,tt,$t))}if(this.container.styles.overflowX!==0){var jr=Rl(this.curves),an=Nu(this.curves);Qu(jr,an)?this.effects.push(new Ml(jr,2|4)):(this.effects.push(new Ml(jr,2)),this.effects.push(new Ml(an,4)))}}return ur.prototype.getEffects=function(he){for(var we=[2,3].indexOf(this.container.styles.position)===-1,ke=this.parent,tt=this.effects.slice(0);ke;){var $t=ke.effects.filter(function(yn){return!Jl(yn)});if(we||ke.container.styles.position!==0||!ke.parent){if(tt.unshift.apply(tt,$t),we=[2,3].indexOf(ke.container.styles.position)===-1,ke.container.styles.overflowX!==0){var jr=Rl(ke.curves),an=Nu(ke.curves);Qu(jr,an)||tt.unshift(new Ml(an,2|4))}}else tt.unshift.apply(tt,$t);ke=ke.parent}return tt.filter(function(yn){return Fi(yn.target,he)})},ur}(),yc=function ur(he,we,ke,tt){he.container.elements.forEach(function($t){var jr=Fi($t.flags,4),an=Fi($t.flags,2),yn=new tc($t,he);Fi($t.styles.display,2048)&&tt.push(yn);var Fn=Fi($t.flags,8)?[]:tt;if(jr||an){var wi=jr||$t.styles.isPositioned()?ke:we,fi=new Ac(yn);if($t.styles.isPositioned()||$t.styles.opacity<1||$t.styles.isTransformed()){var Ci=$t.styles.zIndex.order;if(Ci<0){var ba=0;wi.negativeZIndex.some(function(Pa,Do){return Ci>Pa.element.container.styles.zIndex.order?(ba=Do,!1):ba>0}),wi.negativeZIndex.splice(ba,0,fi)}else if(Ci>0){var Ea=0;wi.positiveZIndex.some(function(Pa,Do){return Ci>=Pa.element.container.styles.zIndex.order?(Ea=Do+1,!1):Ea>0}),wi.positiveZIndex.splice(Ea,0,fi)}else wi.zeroOrAutoZIndexOrTransformedOrOpacity.push(fi)}else $t.styles.isFloating()?wi.nonPositionedFloats.push(fi):wi.nonPositionedInlineLevel.push(fi);ur(yn,fi,jr?fi:ke,Fn)}else $t.styles.isInlineLevel()?we.inlineLevel.push(yn):we.nonInlineLevel.push(yn),ur(yn,we,ke,Fn);Fi($t.flags,8)&&sc($t,Fn)})},sc=function(he,we){for(var ke=he instanceof Ol?he.start:1,tt=he instanceof Ol?he.reversed:!1,$t=0;$t<we.length;$t++){var jr=we[$t];jr.container instanceof Bs&&typeof jr.container.value=="number"&&jr.container.value!==0&&(ke=jr.container.value),jr.listValue=Z(ke,jr.container.styles.listStyleType,!0),ke+=tt?-1:1}},Du=function(he){var we=new tc(he,null),ke=new Ac(we),tt=[];return yc(we,ke,ke,tt),sc(we.container,tt),ke},hc=function(he,we){switch(we){case 0:return Zl(he.topLeftBorderBox,he.topLeftPaddingBox,he.topRightBorderBox,he.topRightPaddingBox);case 1:return Zl(he.topRightBorderBox,he.topRightPaddingBox,he.bottomRightBorderBox,he.bottomRightPaddingBox);case 2:return Zl(he.bottomRightBorderBox,he.bottomRightPaddingBox,he.bottomLeftBorderBox,he.bottomLeftPaddingBox);case 3:default:return Zl(he.bottomLeftBorderBox,he.bottomLeftPaddingBox,he.topLeftBorderBox,he.topLeftPaddingBox)}},bc=function(he,we){switch(we){case 0:return Zl(he.topLeftBorderBox,he.topLeftBorderDoubleOuterBox,he.topRightBorderBox,he.topRightBorderDoubleOuterBox);case 1:return Zl(he.topRightBorderBox,he.topRightBorderDoubleOuterBox,he.bottomRightBorderBox,he.bottomRightBorderDoubleOuterBox);case 2:return Zl(he.bottomRightBorderBox,he.bottomRightBorderDoubleOuterBox,he.bottomLeftBorderBox,he.bottomLeftBorderDoubleOuterBox);case 3:default:return Zl(he.bottomLeftBorderBox,he.bottomLeftBorderDoubleOuterBox,he.topLeftBorderBox,he.topLeftBorderDoubleOuterBox)}},Tc=function(he,we){switch(we){case 0:return Zl(he.topLeftBorderDoubleInnerBox,he.topLeftPaddingBox,he.topRightBorderDoubleInnerBox,he.topRightPaddingBox);case 1:return Zl(he.topRightBorderDoubleInnerBox,he.topRightPaddingBox,he.bottomRightBorderDoubleInnerBox,he.bottomRightPaddingBox);case 2:return Zl(he.bottomRightBorderDoubleInnerBox,he.bottomRightPaddingBox,he.bottomLeftBorderDoubleInnerBox,he.bottomLeftPaddingBox);case 3:default:return Zl(he.bottomLeftBorderDoubleInnerBox,he.bottomLeftPaddingBox,he.topLeftBorderDoubleInnerBox,he.topLeftPaddingBox)}},wc=function(he,we){switch(we){case 0:return xu(he.topLeftBorderStroke,he.topRightBorderStroke);case 1:return xu(he.topRightBorderStroke,he.bottomRightBorderStroke);case 2:return xu(he.bottomRightBorderStroke,he.bottomLeftBorderStroke);case 3:default:return xu(he.bottomLeftBorderStroke,he.topLeftBorderStroke)}},xu=function(he,we){var ke=[];return Ws(he)?ke.push(he.subdivide(.5,!1)):ke.push(he),Ws(we)?ke.push(we.subdivide(.5,!0)):ke.push(we),ke},Zl=function(he,we,ke,tt){var $t=[];return Ws(he)?$t.push(he.subdivide(.5,!1)):$t.push(he),Ws(ke)?$t.push(ke.subdivide(.5,!0)):$t.push(ke),Ws(tt)?$t.push(tt.subdivide(.5,!0).reverse()):$t.push(tt),Ws(we)?$t.push(we.subdivide(.5,!1).reverse()):$t.push(we),$t},fc=function(he){var we=he.bounds,ke=he.styles;return we.add(ke.borderLeftWidth,ke.borderTopWidth,-(ke.borderRightWidth+ke.borderLeftWidth),-(ke.borderTopWidth+ke.borderBottomWidth))},lc=function(he){var we=he.styles,ke=he.bounds,tt=Ui(we.paddingLeft,ke.width),$t=Ui(we.paddingRight,ke.width),jr=Ui(we.paddingTop,ke.width),an=Ui(we.paddingBottom,ke.width);return ke.add(tt+we.borderLeftWidth,jr+we.borderTopWidth,-(we.borderRightWidth+we.borderLeftWidth+tt+$t),-(we.borderTopWidth+we.borderBottomWidth+jr+an))},Sc=function(he,we){return he===0?we.bounds:he===2?lc(we):fc(we)},Cc=function(he,we){return he===0?we.bounds:he===2?lc(we):fc(we)},Hu=function(he,we,ke){var tt=Sc(zl(he.styles.backgroundOrigin,we),he),$t=Cc(zl(he.styles.backgroundClip,we),he),jr=Eu(zl(he.styles.backgroundSize,we),ke,tt),an=jr[0],yn=jr[1],Fn=Ti(zl(he.styles.backgroundPosition,we),tt.width-an,tt.height-yn),wi=Mu(zl(he.styles.backgroundRepeat,we),Fn,jr,tt,$t),fi=Math.round(tt.left+Fn[0]),Ci=Math.round(tt.top+Fn[1]);return[wi,fi,Ci,an,yn]},Ru=function(he){return cn(he)&&he.value===ai.AUTO},Ku=function(he){return typeof he=="number"},Eu=function(he,we,ke){var tt=we[0],$t=we[1],jr=we[2],an=he[0],yn=he[1];if(!an)return[0,0];if(Si(an)&&yn&&Si(yn))return[Ui(an,ke.width),Ui(yn,ke.height)];var Fn=Ku(jr);if(cn(an)&&(an.value===ai.CONTAIN||an.value===ai.COVER)){if(Ku(jr)){var wi=ke.width/ke.height;return wi<jr!==(an.value===ai.COVER)?[ke.width,ke.width/jr]:[ke.height*jr,ke.height]}return[ke.width,ke.height]}var fi=Ku(tt),Ci=Ku($t),ba=fi||Ci;if(Ru(an)&&(!yn||Ru(yn))){if(fi&&Ci)return[tt,$t];if(!Fn&&!ba)return[ke.width,ke.height];if(ba&&Fn){var Ea=fi?tt:$t*jr,Pa=Ci?$t:tt/jr;return[Ea,Pa]}var Do=fi?tt:ke.width,mo=Ci?$t:ke.height;return[Do,mo]}if(Fn){var io=0,ms=0;return Si(an)?io=Ui(an,ke.width):Si(yn)&&(ms=Ui(yn,ke.height)),Ru(an)?io=ms*jr:(!yn||Ru(yn))&&(ms=io/jr),[io,ms]}var Cs=null,ss=null;if(Si(an)?Cs=Ui(an,ke.width):yn&&Si(yn)&&(ss=Ui(yn,ke.height)),Cs!==null&&(!yn||Ru(yn))&&(ss=fi&&Ci?Cs/tt*$t:ke.height),ss!==null&&Ru(an)&&(Cs=fi&&Ci?ss/$t*tt:ke.width),Cs!==null&&ss!==null)return[Cs,ss];throw new Error("Unable to calculate background-size for element")},zl=function(he,we){var ke=he[we];return typeof ke=="undefined"?he[0]:ke},Mu=function(he,we,ke,tt,$t){var jr=we[0],an=we[1],yn=ke[0],Fn=ke[1];switch(he){case 2:return[new ya(Math.round(tt.left),Math.round(tt.top+an)),new ya(Math.round(tt.left+tt.width),Math.round(tt.top+an)),new ya(Math.round(tt.left+tt.width),Math.round(Fn+tt.top+an)),new ya(Math.round(tt.left),Math.round(Fn+tt.top+an))];case 3:return[new ya(Math.round(tt.left+jr),Math.round(tt.top)),new ya(Math.round(tt.left+jr+yn),Math.round(tt.top)),new ya(Math.round(tt.left+jr+yn),Math.round(tt.height+tt.top)),new ya(Math.round(tt.left+jr),Math.round(tt.height+tt.top))];case 1:return[new ya(Math.round(tt.left+jr),Math.round(tt.top+an)),new ya(Math.round(tt.left+jr+yn),Math.round(tt.top+an)),new ya(Math.round(tt.left+jr+yn),Math.round(tt.top+an+Fn)),new ya(Math.round(tt.left+jr),Math.round(tt.top+an+Fn))];default:return[new ya(Math.round($t.left),Math.round($t.top)),new ya(Math.round($t.left+$t.width),Math.round($t.top)),new ya(Math.round($t.left+$t.width),Math.round($t.height+$t.top)),new ya(Math.round($t.left),Math.round($t.height+$t.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function ur(he){this._data={},this._document=he}return ur.prototype.parseMetrics=function(he,we){var ke=this._document.createElement("div"),tt=this._document.createElement("img"),$t=this._document.createElement("span"),jr=this._document.body;ke.style.visibility="hidden",ke.style.fontFamily=he,ke.style.fontSize=we,ke.style.margin="0",ke.style.padding="0",ke.style.whiteSpace="nowrap",jr.appendChild(ke),tt.src=uc,tt.width=1,tt.height=1,tt.style.margin="0",tt.style.padding="0",tt.style.verticalAlign="baseline",$t.style.fontFamily=he,$t.style.fontSize=we,$t.style.margin="0",$t.style.padding="0",$t.appendChild(this._document.createTextNode(cc)),ke.appendChild($t),ke.appendChild(tt);var an=tt.offsetTop-$t.offsetTop+2;ke.removeChild($t),ke.appendChild(this._document.createTextNode(cc)),ke.style.lineHeight="normal",tt.style.verticalAlign="super";var yn=tt.offsetTop-ke.offsetTop+2;return jr.removeChild(ke),{baseline:an,middle:yn}},ur.prototype.getMetrics=function(he,we){var ke=he+" "+we;return typeof this._data[ke]=="undefined"&&(this._data[ke]=this.parseMetrics(he,we)),this._data[ke]},ur}(),Ec=function(){function ur(he,we){this.context=he,this.options=we}return ur}(),pc=1e4,mc=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;return tt._activeEffects=[],tt.canvas=ke.canvas?ke.canvas:document.createElement("canvas"),tt.ctx=tt.canvas.getContext("2d"),ke.canvas||(tt.canvas.width=Math.floor(ke.width*ke.scale),tt.canvas.height=Math.floor(ke.height*ke.scale),tt.canvas.style.width=ke.width+"px",tt.canvas.style.height=ke.height+"px"),tt.fontMetrics=new xc(document),tt.ctx.scale(tt.options.scale,tt.options.scale),tt.ctx.translate(-ke.x,-ke.y),tt.ctx.textBaseline="bottom",tt._activeEffects=[],tt.context.logger.debug("Canvas renderer initialized ("+ke.width+"x"+ke.height+") with scale "+ke.scale),tt}return he.prototype.applyEffects=function(we){for(var ke=this;this._activeEffects.length;)this.popEffect();we.forEach(function(tt){return ke.applyEffect(tt)})},he.prototype.applyEffect=function(we){this.ctx.save(),ju(we)&&(this.ctx.globalAlpha=we.opacity),gl(we)&&(this.ctx.translate(we.offsetX,we.offsetY),this.ctx.transform(we.matrix[0],we.matrix[1],we.matrix[2],we.matrix[3],we.matrix[4],we.matrix[5]),this.ctx.translate(-we.offsetX,-we.offsetY)),Jl(we)&&(this.path(we.path),this.ctx.clip()),this._activeEffects.push(we)},he.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},he.prototype.renderStack=function(we){return A(this,void 0,void 0,function(){var ke;return w(this,function(tt){switch(tt.label){case 0:return ke=we.element.container.styles,ke.isVisible()?[4,this.renderStackContent(we)]:[3,2];case 1:tt.sent(),tt.label=2;case 2:return[2]}})})},he.prototype.renderNode=function(we){return A(this,void 0,void 0,function(){return w(this,function(ke){switch(ke.label){case 0:if(Fi(we.container.flags,16))debugger;return we.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(we)]:[3,3];case 1:return ke.sent(),[4,this.renderNodeContent(we)];case 2:ke.sent(),ke.label=3;case 3:return[2]}})})},he.prototype.renderTextWithLetterSpacing=function(we,ke,tt){var $t=this;if(ke===0)this.ctx.fillText(we.text,we.bounds.left,we.bounds.top+tt);else{var jr=Xl(we.text);jr.reduce(function(an,yn){return $t.ctx.fillText(yn,an,we.bounds.top+tt),an+$t.ctx.measureText(yn).width},we.bounds.left)}},he.prototype.createFontStyle=function(we){var ke=we.fontVariant.filter(function(jr){return jr==="normal"||jr==="small-caps"}).join(""),tt=Nc(we.fontFamily).join(", "),$t=Fr(we.fontSize)?""+we.fontSize.number+we.fontSize.unit:we.fontSize.number+"px";return[[we.fontStyle,ke,we.fontWeight,$t,tt].join(" "),tt,$t]},he.prototype.renderTextNode=function(we,ke){return A(this,void 0,void 0,function(){var tt,$t,jr,an,yn,Fn,wi,fi,Ci=this;return w(this,function(ba){return tt=this.createFontStyle(ke),$t=tt[0],jr=tt[1],an=tt[2],this.ctx.font=$t,this.ctx.direction=ke.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",yn=this.fontMetrics.getMetrics(jr,an),Fn=yn.baseline,wi=yn.middle,fi=ke.paintOrder,we.textBounds.forEach(function(Ea){fi.forEach(function(Pa){switch(Pa){case 0:Ci.ctx.fillStyle=pa(ke.color),Ci.renderTextWithLetterSpacing(Ea,ke.letterSpacing,Fn);var Do=ke.textShadow;Do.length&&Ea.text.trim().length&&(Do.slice(0).reverse().forEach(function(mo){Ci.ctx.shadowColor=pa(mo.color),Ci.ctx.shadowOffsetX=mo.offsetX.number*Ci.options.scale,Ci.ctx.shadowOffsetY=mo.offsetY.number*Ci.options.scale,Ci.ctx.shadowBlur=mo.blur.number,Ci.renderTextWithLetterSpacing(Ea,ke.letterSpacing,Fn)}),Ci.ctx.shadowColor="",Ci.ctx.shadowOffsetX=0,Ci.ctx.shadowOffsetY=0,Ci.ctx.shadowBlur=0),ke.textDecorationLine.length&&(Ci.ctx.fillStyle=pa(ke.textDecorationColor||ke.color),ke.textDecorationLine.forEach(function(mo){switch(mo){case 1:Ci.ctx.fillRect(Ea.bounds.left,Math.round(Ea.bounds.top+Fn),Ea.bounds.width,1);break;case 2:Ci.ctx.fillRect(Ea.bounds.left,Math.round(Ea.bounds.top),Ea.bounds.width,1);break;case 3:Ci.ctx.fillRect(Ea.bounds.left,Math.ceil(Ea.bounds.top+wi),Ea.bounds.width,1);break}}));break;case 1:ke.webkitTextStrokeWidth&&Ea.text.trim().length&&(Ci.ctx.strokeStyle=pa(ke.webkitTextStrokeColor),Ci.ctx.lineWidth=ke.webkitTextStrokeWidth,Ci.ctx.lineJoin=window.chrome?"miter":"round",Ci.ctx.strokeText(Ea.text,Ea.bounds.left,Ea.bounds.top+Fn)),Ci.ctx.strokeStyle="",Ci.ctx.lineWidth=0,Ci.ctx.lineJoin="miter";break}})}),[2]})})},he.prototype.renderReplacedElement=function(we,ke,tt){if(tt&&we.intrinsicWidth>0&&we.intrinsicHeight>0){var $t=lc(we),jr=Nu(ke);this.path(jr),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(tt,0,0,we.intrinsicWidth,we.intrinsicHeight,$t.left,$t.top,$t.width,$t.height),this.ctx.restore()}},he.prototype.renderNodeContent=function(we){return A(this,void 0,void 0,function(){var ke,tt,$t,jr,an,yn,Fn,Fn,wi,fi,Ci,ba,Ea,Pa,Do,mo,io,ms,Cs,Fn,ss,Ea,mo;return w(this,function($a){switch($a.label){case 0:this.applyEffects(we.getEffects(4)),ke=we.container,tt=we.curves,$t=ke.styles,jr=0,an=ke.textNodes,$a.label=1;case 1:return jr<an.length?(yn=an[jr],[4,this.renderTextNode(yn,$t)]):[3,4];case 2:$a.sent(),$a.label=3;case 3:return jr++,[3,1];case 4:if(!(ke instanceof Na))return[3,8];$a.label=5;case 5:return $a.trys.push([5,7,,8]),[4,this.context.cache.match(ke.src)];case 6:return Fn=$a.sent(),this.renderReplacedElement(ke,tt,Fn),[3,8];case 7:return $a.sent(),this.context.logger.error("Error loading image "+ke.src),[3,8];case 8:if(ke instanceof ro&&this.renderReplacedElement(ke,tt,ke.canvas),!(ke instanceof Io))return[3,12];$a.label=9;case 9:return $a.trys.push([9,11,,12]),[4,this.context.cache.match(ke.svg)];case 10:return Fn=$a.sent(),this.renderReplacedElement(ke,tt,Fn),[3,12];case 11:return $a.sent(),this.context.logger.error("Error loading svg "+ke.svg.substring(0,255)),[3,12];case 12:return ke instanceof Fu&&ke.tree?(wi=new he(this.context,{scale:this.options.scale,backgroundColor:ke.backgroundColor,x:0,y:0,width:ke.width,height:ke.height}),[4,wi.render(ke.tree)]):[3,14];case 13:fi=$a.sent(),ke.width&&ke.height&&this.ctx.drawImage(fi,0,0,ke.width,ke.height,ke.bounds.left,ke.bounds.top,ke.bounds.width,ke.bounds.height),$a.label=14;case 14:if(ke instanceof uu&&(Ci=Math.min(ke.bounds.width,ke.bounds.height),ke.type===Ll?ke.checked&&(this.ctx.save(),this.path([new ya(ke.bounds.left+Ci*.39363,ke.bounds.top+Ci*.79),new ya(ke.bounds.left+Ci*.16,ke.bounds.top+Ci*.5549),new ya(ke.bounds.left+Ci*.27347,ke.bounds.top+Ci*.44071),new ya(ke.bounds.left+Ci*.39694,ke.bounds.top+Ci*.5649),new ya(ke.bounds.left+Ci*.72983,ke.bounds.top+Ci*.23),new ya(ke.bounds.left+Ci*.84,ke.bounds.top+Ci*.34085),new ya(ke.bounds.left+Ci*.39363,ke.bounds.top+Ci*.79)]),this.ctx.fillStyle=pa(gu),this.ctx.fill(),this.ctx.restore()):ke.type===Ks&&(ke.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(ke.bounds.left+Ci/2,ke.bounds.top+Ci/2,Ci/4,0,Math.PI*2,!0),this.ctx.fillStyle=pa(gu),this.ctx.fill(),this.ctx.restore()))),Oc(ke)&&ke.value.length){ba=this.createFontStyle($t),Ea=ba[0],Pa=ba[1],Do=this.fontMetrics.getMetrics(Ea,Pa).baseline,this.ctx.font=Ea,this.ctx.fillStyle=pa($t.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(ke.styles.textAlign),mo=lc(ke),io=0;switch(ke.styles.textAlign){case 1:io+=mo.width/2;break;case 2:io+=mo.width;break}ms=mo.add(io,0,0,-mo.height/2+1),this.ctx.save(),this.path([new ya(mo.left,mo.top),new ya(mo.left+mo.width,mo.top),new ya(mo.left+mo.width,mo.top+mo.height),new ya(mo.left,mo.top+mo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new el(ke.value,ms),$t.letterSpacing,Do),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fi(ke.styles.display,2048))return[3,20];if(!(ke.styles.listStyleImage!==null))return[3,19];if(Cs=ke.styles.listStyleImage,!(Cs.type===0))return[3,18];Fn=void 0,ss=Cs.url,$a.label=15;case 15:return $a.trys.push([15,17,,18]),[4,this.context.cache.match(ss)];case 16:return Fn=$a.sent(),this.ctx.drawImage(Fn,ke.bounds.left-(Fn.width+10),ke.bounds.top),[3,18];case 17:return $a.sent(),this.context.logger.error("Error loading list-style-image "+ss),[3,18];case 18:return[3,20];case 19:we.listValue&&ke.styles.listStyleType!==-1&&(Ea=this.createFontStyle($t)[0],this.ctx.font=Ea,this.ctx.fillStyle=pa($t.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",mo=new f(ke.bounds.left,ke.bounds.top+Ui(ke.styles.paddingTop,ke.bounds.width),ke.bounds.width,bo($t.lineHeight,$t.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new el(we.listValue,mo),$t.letterSpacing,bo($t.lineHeight,$t.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),$a.label=20;case 20:return[2]}})})},he.prototype.renderStackContent=function(we){return A(this,void 0,void 0,function(){var ke,tt,$t,jr,an,$t,yn,Fn,$t,wi,fi,$t,Ci,ba,$t,Ea,Pa,$t,Do,mo,$t;return w(this,function(io){switch(io.label){case 0:if(Fi(we.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(we.element)];case 1:io.sent(),ke=0,tt=we.negativeZIndex,io.label=2;case 2:return ke<tt.length?($t=tt[ke],[4,this.renderStack($t)]):[3,5];case 3:io.sent(),io.label=4;case 4:return ke++,[3,2];case 5:return[4,this.renderNodeContent(we.element)];case 6:io.sent(),jr=0,an=we.nonInlineLevel,io.label=7;case 7:return jr<an.length?($t=an[jr],[4,this.renderNode($t)]):[3,10];case 8:io.sent(),io.label=9;case 9:return jr++,[3,7];case 10:yn=0,Fn=we.nonPositionedFloats,io.label=11;case 11:return yn<Fn.length?($t=Fn[yn],[4,this.renderStack($t)]):[3,14];case 12:io.sent(),io.label=13;case 13:return yn++,[3,11];case 14:wi=0,fi=we.nonPositionedInlineLevel,io.label=15;case 15:return wi<fi.length?($t=fi[wi],[4,this.renderStack($t)]):[3,18];case 16:io.sent(),io.label=17;case 17:return wi++,[3,15];case 18:Ci=0,ba=we.inlineLevel,io.label=19;case 19:return Ci<ba.length?($t=ba[Ci],[4,this.renderNode($t)]):[3,22];case 20:io.sent(),io.label=21;case 21:return Ci++,[3,19];case 22:Ea=0,Pa=we.zeroOrAutoZIndexOrTransformedOrOpacity,io.label=23;case 23:return Ea<Pa.length?($t=Pa[Ea],[4,this.renderStack($t)]):[3,26];case 24:io.sent(),io.label=25;case 25:return Ea++,[3,23];case 26:Do=0,mo=we.positiveZIndex,io.label=27;case 27:return Do<mo.length?($t=mo[Do],[4,this.renderStack($t)]):[3,30];case 28:io.sent(),io.label=29;case 29:return Do++,[3,27];case 30:return[2]}})})},he.prototype.mask=function(we){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(we.slice(0).reverse()),this.ctx.closePath()},he.prototype.path=function(we){this.ctx.beginPath(),this.formatPath(we),this.ctx.closePath()},he.prototype.formatPath=function(we){var ke=this;we.forEach(function(tt,$t){var jr=Ws(tt)?tt.start:tt;$t===0?ke.ctx.moveTo(jr.x,jr.y):ke.ctx.lineTo(jr.x,jr.y),Ws(tt)&&ke.ctx.bezierCurveTo(tt.startControl.x,tt.startControl.y,tt.endControl.x,tt.endControl.y,tt.end.x,tt.end.y)})},he.prototype.renderRepeat=function(we,ke,tt,$t){this.path(we),this.ctx.fillStyle=ke,this.ctx.translate(tt,$t),this.ctx.fill(),this.ctx.translate(-tt,-$t)},he.prototype.resizeImage=function(we,ke,tt){var $t;if(we.width===ke&&we.height===tt)return we;var jr=($t=this.canvas.ownerDocument)!==null&&$t!==void 0?$t:document,an=jr.createElement("canvas");an.width=Math.max(1,ke),an.height=Math.max(1,tt);var yn=an.getContext("2d");return yn.drawImage(we,0,0,we.width,we.height,0,0,ke,tt),an},he.prototype.renderBackgroundImage=function(we){return A(this,void 0,void 0,function(){var ke,tt,$t,jr,an,yn;return w(this,function(Fn){switch(Fn.label){case 0:ke=we.styles.backgroundImage.length-1,tt=function(fi){var Ci,ba,Ea,Pa,Do,mo,io,ms,Cs,ss,Pa,Do,mo,io,ms,$a,ks,js,ls,$l,Au,ql,Sl,rc,Cs,ku,Pa,Ju,Zu,io,ms,$u,Do,mo,nc,Pu,qu,ic,ac,Wu,oc,zu;return w(this,function(dc){switch(dc.label){case 0:if(!(fi.type===0))return[3,5];Ci=void 0,ba=fi.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,$t.context.cache.match(ba)];case 2:return Ci=dc.sent(),[3,4];case 3:return dc.sent(),$t.context.logger.error("Error loading background-image "+ba),[3,4];case 4:return Ci&&(Ea=Hu(we,ke,[Ci.width,Ci.height,Ci.width/Ci.height]),Pa=Ea[0],Do=Ea[1],mo=Ea[2],io=Ea[3],ms=Ea[4],Cs=$t.ctx.createPattern($t.resizeImage(Ci,io,ms),"repeat"),$t.renderRepeat(Pa,Cs,Do,mo)),[3,6];case 5:_r(fi)?(ss=Hu(we,ke,[null,null,null]),Pa=ss[0],Do=ss[1],mo=ss[2],io=ss[3],ms=ss[4],$a=Oo(fi.angle,io,ms),ks=$a[0],js=$a[1],ls=$a[2],$l=$a[3],Au=$a[4],ql=document.createElement("canvas"),ql.width=io,ql.height=ms,Sl=ql.getContext("2d"),rc=Sl.createLinearGradient(js,$l,ls,Au),uo(fi.stops,ks).forEach(function(gc){return rc.addColorStop(gc.stop,pa(gc.color))}),Sl.fillStyle=rc,Sl.fillRect(0,0,io,ms),io>0&&ms>0&&(Cs=$t.ctx.createPattern(ql,"repeat"),$t.renderRepeat(Pa,Cs,Do,mo))):kn(fi)&&(ku=Hu(we,ke,[null,null,null]),Pa=ku[0],Ju=ku[1],Zu=ku[2],io=ku[3],ms=ku[4],$u=fi.position.length===0?[yi]:fi.position,Do=Ui($u[0],io),mo=Ui($u[$u.length-1],ms),nc=oo(fi,Do,mo,io,ms),Pu=nc[0],qu=nc[1],Pu>0&&qu>0&&(ic=$t.ctx.createRadialGradient(Ju+Do,Zu+mo,0,Ju+Do,Zu+mo,Pu),uo(fi.stops,Pu*2).forEach(function(gc){return ic.addColorStop(gc.stop,pa(gc.color))}),$t.path(Pa),$t.ctx.fillStyle=ic,Pu!==qu?(ac=we.bounds.left+.5*we.bounds.width,Wu=we.bounds.top+.5*we.bounds.height,oc=qu/Pu,zu=1/oc,$t.ctx.save(),$t.ctx.translate(ac,Wu),$t.ctx.transform(1,0,0,oc,0,0),$t.ctx.translate(-ac,-Wu),$t.ctx.fillRect(Ju,zu*(Zu-Wu)+Wu,io,ms*zu),$t.ctx.restore()):$t.ctx.fill())),dc.label=6;case 6:return ke--,[2]}})},$t=this,jr=0,an=we.styles.backgroundImage.slice(0).reverse(),Fn.label=1;case 1:return jr<an.length?(yn=an[jr],[5,tt(yn)]):[3,4];case 2:Fn.sent(),Fn.label=3;case 3:return jr++,[3,1];case 4:return[2]}})})},he.prototype.renderSolidBorder=function(we,ke,tt){return A(this,void 0,void 0,function(){return w(this,function($t){return this.path(hc(tt,ke)),this.ctx.fillStyle=pa(we),this.ctx.fill(),[2]})})},he.prototype.renderDoubleBorder=function(we,ke,tt,$t){return A(this,void 0,void 0,function(){var jr,an;return w(this,function(yn){switch(yn.label){case 0:return ke<3?[4,this.renderSolidBorder(we,tt,$t)]:[3,2];case 1:return yn.sent(),[2];case 2:return jr=bc($t,tt),this.path(jr),this.ctx.fillStyle=pa(we),this.ctx.fill(),an=Tc($t,tt),this.path(an),this.ctx.fill(),[2]}})})},he.prototype.renderNodeBackgroundAndBorders=function(we){return A(this,void 0,void 0,function(){var ke,tt,$t,jr,an,yn,Fn,wi,fi=this;return w(this,function(Ci){switch(Ci.label){case 0:return this.applyEffects(we.getEffects(2)),ke=we.container.styles,tt=!ra(ke.backgroundColor)||ke.backgroundImage.length,$t=[{style:ke.borderTopStyle,color:ke.borderTopColor,width:ke.borderTopWidth},{style:ke.borderRightStyle,color:ke.borderRightColor,width:ke.borderRightWidth},{style:ke.borderBottomStyle,color:ke.borderBottomColor,width:ke.borderBottomWidth},{style:ke.borderLeftStyle,color:ke.borderLeftColor,width:ke.borderLeftWidth}],jr=_c(zl(ke.backgroundClip,0),we.curves),tt||ke.boxShadow.length?(this.ctx.save(),this.path(jr),this.ctx.clip(),ra(ke.backgroundColor)||(this.ctx.fillStyle=pa(ke.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(we.container)]):[3,2];case 1:Ci.sent(),this.ctx.restore(),ke.boxShadow.slice(0).reverse().forEach(function(ba){fi.ctx.save();var Ea=Rl(we.curves),Pa=ba.inset?0:pc,Do=vc(Ea,-Pa+(ba.inset?1:-1)*ba.spread.number,(ba.inset?1:-1)*ba.spread.number,ba.spread.number*(ba.inset?-2:2),ba.spread.number*(ba.inset?-2:2));ba.inset?(fi.path(Ea),fi.ctx.clip(),fi.mask(Do)):(fi.mask(Ea),fi.ctx.clip(),fi.path(Do)),fi.ctx.shadowOffsetX=ba.offsetX.number+Pa,fi.ctx.shadowOffsetY=ba.offsetY.number,fi.ctx.shadowColor=pa(ba.color),fi.ctx.shadowBlur=ba.blur.number,fi.ctx.fillStyle=ba.inset?pa(ba.color):"rgba(0,0,0,1)",fi.ctx.fill(),fi.ctx.restore()}),Ci.label=2;case 2:an=0,yn=0,Fn=$t,Ci.label=3;case 3:return yn<Fn.length?(wi=Fn[yn],wi.style!==0&&!ra(wi.color)&&wi.width>0?wi.style===2?[4,this.renderDashedDottedBorder(wi.color,wi.width,an,we.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return Ci.sent(),[3,11];case 5:return wi.style===3?[4,this.renderDashedDottedBorder(wi.color,wi.width,an,we.curves,3)]:[3,7];case 6:return Ci.sent(),[3,11];case 7:return wi.style===4?[4,this.renderDoubleBorder(wi.color,wi.width,an,we.curves)]:[3,9];case 8:return Ci.sent(),[3,11];case 9:return[4,this.renderSolidBorder(wi.color,an,we.curves)];case 10:Ci.sent(),Ci.label=11;case 11:an++,Ci.label=12;case 12:return yn++,[3,3];case 13:return[2]}})})},he.prototype.renderDashedDottedBorder=function(we,ke,tt,$t,jr){return A(this,void 0,void 0,function(){var an,yn,Fn,wi,fi,Ci,ba,Ea,Pa,Do,mo,io,ms,Cs,ss,$a,ss,$a;return w(this,function(ks){return this.ctx.save(),an=wc($t,tt),yn=hc($t,tt),jr===2&&(this.path(yn),this.ctx.clip()),Ws(yn[0])?(Fn=yn[0].start.x,wi=yn[0].start.y):(Fn=yn[0].x,wi=yn[0].y),Ws(yn[1])?(fi=yn[1].end.x,Ci=yn[1].end.y):(fi=yn[1].x,Ci=yn[1].y),tt===0||tt===2?ba=Math.abs(Fn-fi):ba=Math.abs(wi-Ci),this.ctx.beginPath(),jr===3?this.formatPath(an):this.formatPath(yn.slice(0,2)),Ea=ke<3?ke*3:ke*2,Pa=ke<3?ke*2:ke,jr===3&&(Ea=ke,Pa=ke),Do=!0,ba<=Ea*2?Do=!1:ba<=Ea*2+Pa?(mo=ba/(2*Ea+Pa),Ea*=mo,Pa*=mo):(io=Math.floor((ba+Pa)/(Ea+Pa)),ms=(ba-io*Ea)/(io-1),Cs=(ba-(io+1)*Ea)/io,Pa=Cs<=0||Math.abs(Pa-ms)<Math.abs(Pa-Cs)?ms:Cs),Do&&(jr===3?this.ctx.setLineDash([0,Ea+Pa]):this.ctx.setLineDash([Ea,Pa])),jr===3?(this.ctx.lineCap="round",this.ctx.lineWidth=ke):this.ctx.lineWidth=ke*2+1.1,this.ctx.strokeStyle=pa(we),this.ctx.stroke(),this.ctx.setLineDash([]),jr===2&&(Ws(yn[0])&&(ss=yn[3],$a=yn[0],this.ctx.beginPath(),this.formatPath([new ya(ss.end.x,ss.end.y),new ya($a.start.x,$a.start.y)]),this.ctx.stroke()),Ws(yn[1])&&(ss=yn[1],$a=yn[2],this.ctx.beginPath(),this.formatPath([new ya(ss.end.x,ss.end.y),new ya($a.start.x,$a.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},he.prototype.render=function(we){return A(this,void 0,void 0,function(){var ke;return w(this,function(tt){switch(tt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=pa(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),ke=Du(we),[4,this.renderStack(ke)];case 1:return tt.sent(),this.applyEffects([]),[2,this.canvas]}})})},he}(Ec),Oc=function(he){return he instanceof Vu||he instanceof Ou?!0:he instanceof uu&&he.type!==Ks&&he.type!==Ll},_c=function(he,we){switch(he){case 0:return Rl(we);case 2:return al(we);case 1:default:return Nu(we)}},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(we){return Lc.indexOf(we)===-1}):he},Dc=function(ur){E(he,ur);function he(we,ke){var tt=ur.call(this,we,ke)||this;return tt.canvas=ke.canvas?ke.canvas:document.createElement("canvas"),tt.ctx=tt.canvas.getContext("2d"),tt.options=ke,tt.canvas.width=Math.floor(ke.width*ke.scale),tt.canvas.height=Math.floor(ke.height*ke.scale),tt.canvas.style.width=ke.width+"px",tt.canvas.style.height=ke.height+"px",tt.ctx.scale(tt.options.scale,tt.options.scale),tt.ctx.translate(-ke.x,-ke.y),tt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+ke.width+"x"+ke.height+" at "+ke.x+","+ke.y+") with scale "+ke.scale),tt}return he.prototype.render=function(we){return A(this,void 0,void 0,function(){var ke,tt;return w(this,function($t){switch($t.label){case 0:return ke=hu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,we),[4,Rc(ke)];case 1:return tt=$t.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=pa(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(we,ke){var tt=new Image;tt.onload=function(){we(tt)},tt.onerror=ke,tt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},Mc=function(){function ur(he){var we=he.id,ke=he.enabled;this.id=we,this.enabled=ke,this.start=Date.now()}return ur.prototype.debug=function(){for(var he=[],we=0;we<arguments.length;we++)he[we]=arguments[we];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,m([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},ur.prototype.getTime=function(){return Date.now()-this.start},ur.prototype.info=function(){for(var he=[],we=0;we<arguments.length;we++)he[we]=arguments[we];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,m([this.id,this.getTime()+"ms"],he)))},ur.prototype.warn=function(){for(var he=[],we=0;we<arguments.length;we++)he[we]=arguments[we];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,m([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},ur.prototype.error=function(){for(var he=[],we=0;we<arguments.length;we++)he[we]=arguments[we];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,m([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},ur.instances={},ur}(),kc=function(){function ur(he,we){var ke;this.windowBounds=we,this.instanceName="#"+ur.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:he.logging}),this.cache=(ke=he.cache)!==null&&ke!==void 0?ke:new Wo(this,he)}return ur.instanceCount=1,ur}(),Pc=function(he,we){return we===void 0&&(we={}),Fc(he,we)};typeof window!="undefined"&&no.setContext(window);var Fc=function(he,we){return A(void 0,void 0,void 0,function(){var ke,tt,$t,jr,an,yn,Fn,wi,fi,Ci,ba,Ea,Pa,Do,mo,io,ms,Cs,ss,$a,ks,js,ks,ls,$l,Au,ql,Sl,rc,ku,Ju,Zu,$u,nc,Pu,qu,ic,ac,Wu,oc;return w(this,function(zu){switch(zu.label){case 0:if(!he||typeof he!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(ke=he.ownerDocument,!ke)throw new Error("Element is not attached to a Document");if(tt=ke.defaultView,!tt)throw new Error("Document is not attached to a Window");return $t={allowTaint:(ls=we.allowTaint)!==null&&ls!==void 0?ls:!1,imageTimeout:($l=we.imageTimeout)!==null&&$l!==void 0?$l:15e3,proxy:we.proxy,useCORS:(Au=we.useCORS)!==null&&Au!==void 0?Au:!1},jr=C({logging:(ql=we.logging)!==null&&ql!==void 0?ql:!0,cache:we.cache},$t),an={windowWidth:(Sl=we.windowWidth)!==null&&Sl!==void 0?Sl:tt.innerWidth,windowHeight:(rc=we.windowHeight)!==null&&rc!==void 0?rc:tt.innerHeight,scrollX:(ku=we.scrollX)!==null&&ku!==void 0?ku:tt.pageXOffset,scrollY:(Ju=we.scrollY)!==null&&Ju!==void 0?Ju:tt.pageYOffset},yn=new f(an.scrollX,an.scrollY,an.windowWidth,an.windowHeight),Fn=new kc(jr,yn),wi=(Zu=we.foreignObjectRendering)!==null&&Zu!==void 0?Zu:!1,fi={allowTaint:($u=we.allowTaint)!==null&&$u!==void 0?$u:!1,onclone:we.onclone,ignoreElements:we.ignoreElements,inlineImages:wi,copyStyles:wi},Fn.logger.debug("Starting document clone with size "+yn.width+"x"+yn.height+" scrolled to "+-yn.left+","+-yn.top),Ci=new ce(Fn,he,fi),ba=Ci.clonedReferenceElement,ba?[4,Ci.toIFrame(ke,yn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Ea=zu.sent(),Pa=Tr(ba)||pt(ba)?o(ba.ownerDocument):c(Fn,ba),Do=Pa.width,mo=Pa.height,io=Pa.left,ms=Pa.top,Cs=Bc(Fn,ba,we.backgroundColor),ss={canvas:we.canvas,backgroundColor:Cs,scale:(Pu=(nc=we.scale)!==null&&nc!==void 0?nc:tt.devicePixelRatio)!==null&&Pu!==void 0?Pu:1,x:((qu=we.x)!==null&&qu!==void 0?qu:0)+io,y:((ic=we.y)!==null&&ic!==void 0?ic:0)+ms,width:(ac=we.width)!==null&&ac!==void 0?ac:Math.ceil(Do),height:(Wu=we.height)!==null&&Wu!==void 0?Wu:Math.ceil(mo)},wi?(Fn.logger.debug("Document cloned, using foreign object rendering"),ks=new Dc(Fn,ss),[4,ks.render(ba)]):[3,3];case 2:return $a=zu.sent(),[3,5];case 3:return Fn.logger.debug("Document cloned, element located at "+io+","+ms+" with size "+Do+"x"+mo+" using computed rendering"),Fn.logger.debug("Starting DOM parsing"),js=Xu(Fn,ba),Cs===js.styles.backgroundColor&&(js.styles.backgroundColor=Va.TRANSPARENT),Fn.logger.debug("Starting renderer for element at "+ss.x+","+ss.y+" with size "+ss.width+"x"+ss.height),ks=new mc(Fn,ss),[4,ks.render(js)];case 4:$a=zu.sent(),zu.label=5;case 5:return((oc=we.removeContainer)!==null&&oc!==void 0?oc:!0)&&(ce.destroy(Ea)||Fn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Fn.logger.debug("Finished rendering"),[2,$a]}})})},Bc=function(he,we,ke){var tt=we.ownerDocument,$t=tt.documentElement?Ia(he,getComputedStyle(tt.documentElement).backgroundColor):Va.TRANSPARENT,jr=tt.body?Ia(he,getComputedStyle(tt.body).backgroundColor):Va.TRANSPARENT,an=typeof ke=="string"?Ia(he,ke):ke===null?Va.TRANSPARENT:4294967295;return we===tt.documentElement?ra($t)?ra(jr)?an:jr:$t:an};return Pc})},wPhX:function(H,B,d){"use strict";d.d(B,"b",function(){return r}),d.d(B,"a",function(){return i}),d.d(B,"k",function(){return n}),d.d(B,"h",function(){return e}),d.d(B,"i",function(){return s}),d.d(B,"g",function(){return t}),d.d(B,"c",function(){return a}),d.d(B,"d",function(){return l}),d.d(B,"j",function(){return p}),d.d(B,"e",function(){return g}),d.d(B,"f",function(){return v});var O=d("KQm4"),E=d("U8pU"),C=d("Ff2n"),A=d("q1tI"),w=d.n(A),m=d("Kwbf"),f=d("lr6o"),c=.25,o=2;function r(y,x){var T=y.slice(),S=T.indexOf(x);return S>=0&&T.splice(S,1),T}function i(y,x){var T=y.slice();return T.indexOf(x)===-1&&T.push(x),T}function n(y){return y.split("-")}function e(y,x){return"".concat(y,"-").concat(x)}function s(y){return y&&y.type&&y.type.isTreeNode}function t(y,x){var T=[y],S=x[y];function b(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(I){var L=I.key,N=I.children;T.push(L),b(N)})}return b(S.children),T}function a(y,x){var T=y.clientY,S=x.selectHandle.getBoundingClientRect(),b=S.top,_=S.bottom,I=S.height,L=Math.max(I*c,o);return T<=b+L?-1:T>=_-L?1:0}function l(y,x){if(!y)return;var T=x.multiple;return T?y.slice():y.length?[y[0]]:y}var u=function(x){return x};function h(y,x){if(!y)return[];var T=x||{},S=T.processProps,b=S===void 0?u:S,_=Array.isArray(y)?y:[y];return _.map(function(I){var L=I.children,N=Object(C.a)(I,["children"]),D=h(L,x);return w.a.createElement(f.a,Object.assign({},b(N)),D)})}function p(y){if(!y)return null;var x;if(Array.isArray(y))x={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(E.a)(y)==="object")x={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return x}function g(y,x){var T=new Set;function S(b){if(T.has(b))return;var _=x[b];if(!_)return;T.add(b);var I=_.parent,L=_.node;if(L.disabled)return;I&&S(I.key)}return(y||[]).forEach(function(b){S(b)}),Object(O.a)(T)}function v(y){var x={};return Object.keys(y).forEach(function(T){(T.startsWith("data-")||T.startsWith("aria-"))&&(x[T]=y[T])}),x}},wXyp:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("ygfH")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="CheckOutlined";var c=A.forwardRef(f);B.default=c},wYyv:function(H,B,d){"use strict";var O=d("R5yR"),E=d("5wUe"),C=function(m,f,c){var o=f<0?m.length+f:f;if(o>=0&&o<m.length){var r=c<0?m.length+c:c,i=m.splice(f,1),n=E(i,1),e=n[0];m.splice(r,0,e)}},A=function(m,f,c){return m=O(m),C(m,f,c),m};H.exports=A,H.exports.mutate=C},wZgz:function(H,B,d){(function(O,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.BlockCipher,w=E.algo,m=[],f=[],c=[],o=[],r=[],i=[],n=[],e=[],s=[],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,g=0,h=0;h<256;h++){var v=g^g<<1^g<<2^g<<3^g<<4;v=v>>>8^v&255^99,m[p]=v,f[v]=p;var y=u[p],x=u[y],T=u[x],S=u[v]*257^v*16843008;c[p]=S<<24|S>>>8,o[p]=S<<16|S>>>16,r[p]=S<<8|S>>>24,i[p]=S;var S=T*16843009^x*65537^y*257^p*16843008;n[v]=S<<24|S>>>8,e[v]=S<<16|S>>>16,s[v]=S<<8|S>>>24,t[v]=S,p?(p=y^u[u[u[T^y]]],g^=u[u[g]]):p=g=1}})();var a=[0,1,2,4,8,16,32,64,128,27,54],l=w.AES=A.extend({_doReset:function(){var h;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var p=this._keyPriorReset=this._key,g=p.words,v=p.sigBytes/4,y=this._nRounds=v+6,x=(y+1)*4,T=this._keySchedule=[],S=0;S<x;S++)S<v?T[S]=g[S]:(h=T[S-1],S%v?v>6&&S%v==4&&(h=m[h>>>24]<<24|m[h>>>16&255]<<16|m[h>>>8&255]<<8|m[h&255]):(h=h<<8|h>>>24,h=m[h>>>24]<<24|m[h>>>16&255]<<16|m[h>>>8&255]<<8|m[h&255],h^=a[S/v|0]<<24),T[S]=T[S-v]^h);for(var b=this._invKeySchedule=[],_=0;_<x;_++){var S=x-_;if(_%4)var h=T[S];else var h=T[S-4];_<4||S<=4?b[_]=h:b[_]=n[m[h>>>24]]^e[m[h>>>16&255]]^s[m[h>>>8&255]]^t[m[h&255]]}},encryptBlock:function(h,p){this._doCryptBlock(h,p,this._keySchedule,c,o,r,i,m)},decryptBlock:function(h,p){var g=h[p+1];h[p+1]=h[p+3],h[p+3]=g,this._doCryptBlock(h,p,this._invKeySchedule,n,e,s,t,f);var g=h[p+1];h[p+1]=h[p+3],h[p+3]=g},_doCryptBlock:function(h,p,g,v,y,x,T,S){for(var b=this._nRounds,_=h[p]^g[0],I=h[p+1]^g[1],L=h[p+2]^g[2],N=h[p+3]^g[3],D=4,R=1;R<b;R++){var P=v[_>>>24]^y[I>>>16&255]^x[L>>>8&255]^T[N&255]^g[D++],M=v[I>>>24]^y[L>>>16&255]^x[N>>>8&255]^T[_&255]^g[D++],U=v[L>>>24]^y[N>>>16&255]^x[_>>>8&255]^T[I&255]^g[D++],F=v[N>>>24]^y[_>>>16&255]^x[I>>>8&255]^T[L&255]^g[D++];_=P,I=M,L=U,N=F}var P=(S[_>>>24]<<24|S[I>>>16&255]<<16|S[L>>>8&255]<<8|S[N&255])^g[D++],M=(S[I>>>24]<<24|S[L>>>16&255]<<16|S[N>>>8&255]<<8|S[_&255])^g[D++],U=(S[L>>>24]<<24|S[N>>>16&255]<<16|S[_>>>8&255]<<8|S[I&255])^g[D++],F=(S[N>>>24]<<24|S[_>>>16&255]<<16|S[I>>>8&255]<<8|S[L&255])^g[D++];h[p]=P,h[p+1]=M,h[p+2]=U,h[p+3]=F},keySize:256/32});E.AES=A._createHelper(l)}(),O.AES})},wbyO:function(H,B,d){(function(O,E){H.exports=B=E(d("Ib8C"))})(this,function(O){return function(){var E=O,C=E.lib,A=C.WordArray,w=E.enc,m=w.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 s=[],t=0;t<n;t+=3)for(var a=i[t>>>2]>>>24-t%4*8&255,l=i[t+1>>>2]>>>24-(t+1)%4*8&255,u=i[t+2>>>2]>>>24-(t+2)%4*8&255,h=a<<16|l<<8|u,p=0;p<4&&t+p*.75<n;p++)s.push(e.charAt(h>>>6*(3-p)&63));var g=e.charAt(64);if(g)for(;s.length%4;)s.push(g);return s.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 s=0;s<n.length;s++)e[n.charCodeAt(s)]=s}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 s=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=s|t;i[n>>>2]|=a<<24-n%4*8,n++}return A.create(i,n)}}(),O.enc.Base64url})},wgjA:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},whVF:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=d("lNSK"),E=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 w(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 m(c,o,r){return o&&w(c.prototype,o),r&&w(c,r),c}var f=function(){function c(){A(this,c),this.strm=new E.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.deflateInit)(this.strm,this.windowBits)}return m(c,[{key:"deflate",value:function(r){this.strm.input=r,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var 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],s=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,i=(0,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);s+=t.length,e.push(t)}while(this.strm.avail_in>0);for(var a=new Uint8Array(s),l=0,u=0;u<e.length;u++)a.set(e[u],l),l+=e[u].length;n=a}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}]),c}();B.default=f},wr5s:function(H,B,d){var O=d("IwbS"),E=O.extendShape,C=E({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(A,w){var m=w.cx,f=w.cy,c=Math.max(w.r0||0,0),o=Math.max(w.r,0),r=(o-c)*.5,i=c+r,n=w.startAngle,e=w.endAngle,s=w.clockwise,t=Math.cos(n),a=Math.sin(n),l=Math.cos(e),u=Math.sin(e),h=s?e-n<Math.PI*2:n-e<Math.PI*2;h&&(A.moveTo(t*c+m,a*c+f),A.arc(t*i+m,a*i+f,r,-Math.PI+n,n,!s)),A.arc(m,f,o,n,e,!s),A.moveTo(l*o+m,u*o+f),A.arc(l*i+m,u*i+f,r,e-Math.PI*2,e-Math.PI,!s),c!==0&&(A.arc(m,f,c,e,n,s),A.moveTo(t*c+m,u*c+f)),A.closePath()}});H.exports=C},wt3j:function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("/IIm"),A=d("EMyp"),w=A.layoutCovers,m=O.extendComponentView({type:"brush",init:function(c,o){this.ecModel=c,this.api=o,this.model,(this._brushController=new C(o.getZr())).on("brush",E.bind(this._onBrush,this)).mount()},render:function(c){return this.model=c,f.apply(this,arguments)},updateTransform:function(c,o){return w(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:E.clone(c),$from:r}),o.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:E.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=m},wy8a:function(H,B,d){var O=d("KxBF");function E(C,A,w){var m=C.length;return w=w===void 0?m:w,!A&&w>=m?C:O(C,A,w)}H.exports=E},x3X8:function(H,B,d){var O=d("KxfA"),E=O.retrieveRawValue;function C(A,w){var m=A.mapDimension("defaultedLabel",!0),f=m.length;if(f===1)return E(A,w,m[0]);if(f){for(var c=[],o=0;o<m.length;o++){var r=E(A,w,m[o]);c.push(r)}return c.join(" ")}}B.getDefaultLabel=C},x54q:function(H,B,d){},x6Kt:function(H,B,d){var O=d("y+Vt"),E=d("VpOo"),C=d("nPnh"),A=C.subPixelOptimizeRect,w={},m=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(w,o,this.style),r=w.x,i=w.y,n=w.width,e=w.height,w.r=o.r,o=w):(r=o.x,i=o.y,n=o.width,e=o.height),o.r?E.buildPath(c,o):c.rect(r,i,n,e),c.closePath();return}});H.exports=m},xGfz:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="PlusSquareOutlined";var f=B.a=E.forwardRef(m)},xKMd:function(H,B){function d(E,C){this.getAllNames=function(){var A=C();return A.mapArray(A.getName)},this.containName=function(A){var w=C();return w.indexOfName(A)>=0},this.indexOfName=function(A){var w=E();return w.indexOfName(A)},this.getItemVisual=function(A,w){var m=E();return m.getItemVisual(A,w)}}var O=d;H.exports=O},xO64:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var O=E(d("8K/p"));function E(t){return t&&t.__esModule?t:{default:t}}function C(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(l){return typeof l}:C=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},C(t)}function A(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function w(t,a){for(var l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function m(t,a,l){return a&&w(t.prototype,a),l&&w(t,l),t}function 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(l){return l.__proto__||Object.getPrototypeOf(l)},e(t)}var s=function(t){f(l,t);var a=o(l);function l(){return A(this,l),a.apply(this,arguments)}return m(l,[{key:"_pngRect",value:function(h,p,g,v,y,x,T){var S=this._readData(y);return S===null?!1:(x.imageRect(h,p,g,v,"image/png",S),!0)}},{key:"_basicRect",value:function(h,p,g,v,y,x,T,S){throw new Error("BasicCompression received in TightPNG rect")}}]),l}(O.default);B.default=s},xOOu:function(H,B,d){(function(O,E,C){var A,A;/*!
|
|
|
|
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
|
<http://stuartk.com/jszip>
|
|
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
|
|
|
|
JSZip uses the library pako released under the MIT license :
|
|
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
*/!function(w){H.exports=w()}(function(){return function w(m,f,c){function o(n,e){if(!f[n]){if(!m[n]){var s=typeof A=="function"&&A;if(!e&&s)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:{}};m[n][0].call(a.exports,function(l){var u=m[n][1][l];return o(u||l)},a,a.exports,w,m,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(w,m,f){"use strict";var c=w("./utils"),o=w("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(i){for(var n,e,s,t,a,l,u,h=[],p=0,g=i.length,v=g,y=c.getTypeOf(i)!=="string";p<i.length;)v=g-p,s=y?(n=i[p++],e=p<g?i[p++]:0,p<g?i[p++]:0):(n=i.charCodeAt(p++),e=p<g?i.charCodeAt(p++):0,p<g?i.charCodeAt(p++):0),t=n>>2,a=(3&n)<<4|e>>4,l=1<v?(15&e)<<2|s>>6:64,u=2<v?63&s:64,h.push(r.charAt(t)+r.charAt(a)+r.charAt(l)+r.charAt(u));return h.join("")},f.decode=function(i){var n,e,s,t,a,l,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 g,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(g=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,s=(3&a)<<6|(l=r.indexOf(i.charAt(u++))),g[h++]=n,a!==64&&(g[h++]=e),l!==64&&(g[h++]=s);return g}},{"./support":30,"./utils":32}],2:[function(w,m,f){"use strict";var c=w("./external"),o=w("./stream/DataWorker"),r=w("./stream/Crc32Probe"),i=w("./stream/DataLengthProbe");function n(e,s,t,a,l){this.compressedSize=e,this.uncompressedSize=s,this.crc32=t,this.compression=a,this.compressedContent=l}n.prototype={getContentWorker:function(){var s=new o(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return s.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),s},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,s,t){return e.pipe(new r).pipe(new i("uncompressedSize")).pipe(s.compressWorker(t)).pipe(new i("compressedSize")).withStreamInfo("compression",s)},m.exports=n},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(w,m,f){"use strict";var c=w("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},f.DEFLATE=w("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(w,m,f){"use strict";var c=w("./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}();m.exports=function(r,i){return r!==void 0&&r.length?c.getTypeOf(r)!=="string"?function(n,e,s,t){var a=o,l=t+s;n^=-1;for(var u=t;u<l;u++)n=n>>>8^a[255&(n^e[u])];return-1^n}(0|i,r,r.length,0):function(n,e,s,t){var a=o,l=t+s;n^=-1;for(var u=t;u<l;u++)n=n>>>8^a[255&(n^e.charCodeAt(u))];return-1^n}(0|i,r,r.length,0):0}},{"./utils":32}],5:[function(w,m,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(w,m,f){"use strict";var c=null;c=typeof Promise!="undefined"?Promise:w("lie"),m.exports={Promise:c}},{lie:37}],7:[function(w,m,f){"use strict";var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=w("pako"),r=w("./utils"),i=w("./stream/GenericWorker"),n=c?"uint8array":"array";function e(s,t){i.call(this,"FlateWorker/"+s),this._pako=null,this._pakoAction=s,this._pakoOptions=t,this.meta={}}f.magic="\b\0",r.inherits(e,i),e.prototype.processChunk=function(s){this.meta=s.meta,this._pako===null&&this._createPako(),this._pako.push(r.transformTo(n,s.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 s=this;this._pako.onData=function(t){s.push({data:t,meta:s.meta})}},f.compressWorker=function(s){return new e("Deflate",s)},f.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(w,m,f){"use strict";function c(a,l){var u,h="";for(u=0;u<l;u++)h+=String.fromCharCode(255&a),a>>>=8;return h}function o(a,l,u,h,p,g){var v,y,x=a.file,T=a.compression,S=g!==n.utf8encode,b=r.transformTo("string",g(x.name)),_=r.transformTo("string",n.utf8encode(x.name)),I=x.comment,L=r.transformTo("string",g(I)),N=r.transformTo("string",n.utf8encode(I)),D=_.length!==x.name.length,R=N.length!==I.length,P="",M="",U="",F=x.dir,j=x.date,W={crc32:0,compressedSize:0,uncompressedSize:0};l&&!u||(W.crc32=a.crc32,W.compressedSize=a.compressedSize,W.uncompressedSize=a.uncompressedSize);var V=0;l&&(V|=8),S||!D&&!R||(V|=2048);var z=0,Y=0;F&&(z|=16),p==="UNIX"?(Y=798,z|=function(ue,ne){var ge=ue;return ue||(ge=ne?16893:33204),(65535&ge)<<16}(x.unixPermissions,F)):(Y=20,z|=function(ue){return 63&(ue||0)}(x.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(),D&&(M=c(1,1)+c(e(b),4)+_,P+="up"+c(M.length,2)+M),R&&(U=c(1,1)+c(e(L),4)+N,P+="uc"+c(U.length,2)+U);var $="";return $+=`
|
|
|
\0`,$+=c(V,2),$+=T.magic,$+=c(v,2),$+=c(y,2),$+=c(W.crc32,4),$+=c(W.compressedSize,4),$+=c(W.uncompressedSize,4),$+=c(b.length,2),$+=c(P.length,2),{fileRecord:s.LOCAL_FILE_HEADER+$+b+P,dirRecord:s.CENTRAL_FILE_HEADER+c(Y,2)+$+c(L.length,2)+"\0\0\0\0"+c(z,4)+c(h,4)+b+P+L}}var r=w("../utils"),i=w("../stream/GenericWorker"),n=w("../utf8"),e=w("../crc32"),s=w("../signature");function t(a,l,u,h){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=l,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 l=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?(l+100*(u-h-1))/u:100}}))},t.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var l=this.streamFiles&&!a.file.dir;if(l){var u=o(a,l,!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 l=this.streamFiles&&!a.file.dir,u=o(a,l,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),l)this.push({data:function(h){return s.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,l=0;l<this.dirRecords.length;l++)this.push({data:this.dirRecords[l],meta:{percent:100}});var u=this.bytesWritten-a,h=function(p,g,v,y,x){var T=r.transformTo("string",x(y));return s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(p,2)+c(p,2)+c(g,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 l=this;return a.on("data",function(u){l.processChunk(u)}),a.on("end",function(){l.closedSource(l.previous.streamInfo),l._sources.length?l.prepareNextSource():l.end()}),a.on("error",function(u){l.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 l=this._sources;if(!i.prototype.error.call(this,a))return!1;for(var u=0;u<l.length;u++)try{l[u].error(a)}catch(h){}return!0},t.prototype.lock=function(){i.prototype.lock.call(this);for(var a=this._sources,l=0;l<a.length;l++)a[l].lock()},m.exports=t},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(w,m,f){"use strict";var c=w("../compressions"),o=w("./ZipFileWorker");f.generateWorker=function(r,i,n){var e=new o(i.streamFiles,n,i.platform,i.encodeFileName),s=0;try{r.forEach(function(t,a){s++;var l=function(g,v){var y=g||v,x=c[y];if(!x)throw new Error(y+" is not a valid compression method !");return x}(a.options.compression,i.compression),u=a.options.compressionOptions||i.compressionOptions||{},h=a.dir,p=a.date;a._compressWorker(l,u).withStreamInfo("file",{name:t,dir:h,date:p,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(e)}),e.entriesCount=s}catch(t){e.error(t)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(w,m,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=w("./object")).loadAsync=w("./load"),c.support=w("./support"),c.defaults=w("./defaults"),c.version="3.10.1",c.loadAsync=function(o,r){return new c().loadAsync(o,r)},c.external=w("./external"),m.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(w,m,f){"use strict";var c=w("./utils"),o=w("./external"),r=w("./utf8"),i=w("./zipEntries"),n=w("./stream/Crc32Probe"),e=w("./nodejsUtils");function s(t){return new o.Promise(function(a,l){var u=t.decompressed.getContentWorker().pipe(new n);u.on("error",function(h){l(h)}).on("end",function(){u.streamInfo.crc32!==t.decompressed.crc32?l(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}m.exports=function(t,a){var l=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 g=0;g<p.length;g++)h.push(s(p[g]));return o.Promise.all(h)}).then(function(u){for(var h=u.shift(),p=h.files,g=0;g<p.length;g++){var v=p[g],y=v.fileNameStr,x=c.resolve(v.fileNameStr);l.file(x,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||(l.file(x).unsafeOriginalName=y)}return h.zipComment.length&&(l.comment=h.zipComment),l})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(w,m,f){"use strict";var c=w("../utils"),o=w("../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)},m.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(w,m,f){"use strict";var c=w("readable-stream").Readable;function o(r,i,n){c.call(this,i),this._helper=r;var e=this;r.on("data",function(s,t){e.push(s)||e._helper.pause(),n&&n(t)}).on("error",function(s){e.emit("error",s)}).on("end",function(){e.push(null)})}w("../utils").inherits(o,c),o.prototype._read=function(){this._helper.resume()},m.exports=o},{"../utils":32,"readable-stream":16}],14:[function(w,m,f){"use strict";m.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(w,m,f){"use strict";function c(x,T,S){var b,_=r.getTypeOf(T),I=r.extend(S||{},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&&(x=p(x)),I.createFolders&&(b=h(x))&&g.call(this,b,!0);var L=_==="string"&&I.binary===!1&&I.base64===!1;S&&S.binary!==void 0||(I.binary=!L),(T instanceof s&&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 s||T instanceof i?T:l.isNode&&l.isStream(T)?new u(x,T):r.prepareContent(x,T,I.binary,I.optimizedBinaryString,I.base64);var D=new t(x,N,I);this.files[x]=D}var o=w("./utf8"),r=w("./utils"),i=w("./stream/GenericWorker"),n=w("./stream/StreamHelper"),e=w("./defaults"),s=w("./compressedObject"),t=w("./zipObject"),a=w("./generate"),l=w("./nodejsUtils"),u=w("./nodejs/NodejsStreamInputAdapter"),h=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var S=T.lastIndexOf("/");return 0<S?T.substring(0,S):""},p=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},g=function(T,S){return S=S!==void 0?S:e.createFolders,T=p(T),this.files[T]||c.call(this,T,null,{dir:!0,createFolders:S}),this.files[T]};function v(x){return Object.prototype.toString.call(x)==="[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 S,b,_;for(S in this.files)_=this.files[S],(b=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&T(b,_)},filter:function(T){var S=[];return this.forEach(function(b,_){T(b,_)&&S.push(_)}),S},file:function(T,S,b){if(arguments.length!==1)return T=this.root+T,c.call(this,T,S,b),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 S=this.root+T,b=g.call(this,S),_=this.clone();return _.root=b.name,_},remove:function(T){T=this.root+T;var S=this.files[T];if(S||(T.slice(-1)!=="/"&&(T+="/"),S=this.files[T]),S&&!S.dir)delete this.files[T];else for(var b=this.filter(function(I,L){return L.name.slice(0,T.length)===T}),_=0;_<b.length;_++)delete this.files[b[_].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var S,b={};try{if((b=r.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=b.type.toLowerCase(),b.compression=b.compression.toUpperCase(),b.type==="binarystring"&&(b.type="string"),!b.type)throw new Error("No output type specified.");r.checkSupport(b.type),b.platform!=="darwin"&&b.platform!=="freebsd"&&b.platform!=="linux"&&b.platform!=="sunos"||(b.platform="UNIX"),b.platform==="win32"&&(b.platform="DOS");var _=b.comment||this.comment||"";S=a.generateWorker(this,b,_)}catch(I){(S=new i("error")).error(I)}return new n(S,b.type||"string",b.mimeType)},generateAsync:function(T,S){return this.generateInternalStream(T).accumulate(S)},generateNodeStream:function(T,S){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(S)}};m.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(w,m,f){"use strict";m.exports=w("stream")},{stream:void 0}],17:[function(w,m,f){"use strict";var c=w("./DataReader");function o(r){c.call(this,r);for(var i=0;i<this.data.length;i++)r[i]=255&r[i]}w("../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),s=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]===s)return t-this.zero;return-1},o.prototype.readAndCheckSignature=function(r){var i=r.charCodeAt(0),n=r.charCodeAt(1),e=r.charCodeAt(2),s=r.charCodeAt(3),t=this.readData(4);return i===t[0]&&n===t[1]&&e===t[2]&&s===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},m.exports=o},{"../utils":32,"./DataReader":18}],18:[function(w,m,f){"use strict";var c=w("../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(){},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(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},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))}},m.exports=o},{"../utils":32}],19:[function(w,m,f){"use strict";var c=w("./Uint8ArrayReader");function o(r){c.call(this,r)}w("../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},m.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(w,m,f){"use strict";var c=w("./DataReader");function o(r){c.call(this,r)}w("../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},m.exports=o},{"../utils":32,"./DataReader":18}],21:[function(w,m,f){"use strict";var c=w("./ArrayReader");function o(r){c.call(this,r)}w("../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},m.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(w,m,f){"use strict";var c=w("../utils"),o=w("../support"),r=w("./ArrayReader"),i=w("./StringReader"),n=w("./NodeBufferReader"),e=w("./Uint8ArrayReader");m.exports=function(s){var t=c.getTypeOf(s);return c.checkSupport(t),t!=="string"||o.uint8array?t==="nodebuffer"?new n(s):o.uint8array?new e(c.transformTo("uint8array",s)):new r(c.transformTo("array",s)):new i(s)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(w,m,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(w,m,f){"use strict";var c=w("./GenericWorker"),o=w("../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})},m.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(w,m,f){"use strict";var c=w("./GenericWorker"),o=w("../crc32");function r(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}w("../utils").inherits(r,c),r.prototype.processChunk=function(i){this.streamInfo.crc32=o(i.data,this.streamInfo.crc32||0),this.push(i)},m.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(w,m,f){"use strict";var c=w("../utils"),o=w("./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)},m.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(w,m,f){"use strict";var c=w("../utils"),o=w("./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}})},m.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(w,m,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)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,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}},m.exports=c},{}],29:[function(w,m,f){"use strict";var c=w("../utils"),o=w("./ConvertWorker"),r=w("./GenericWorker"),i=w("../base64"),n=w("../support"),e=w("../external"),s=null;if(n.nodestream)try{s=w("../nodejs/NodejsStreamOutputAdapter")}catch(l){}function t(l,u){return new e.Promise(function(h,p){var g=[],v=l._internalType,y=l._outputType,x=l._mimeType;l.on("data",function(T,S){g.push(T),u&&u(S)}).on("error",function(T){g=[],p(T)}).on("end",function(){try{var T=function(S,b,_){switch(S){case"blob":return c.newBlob(c.transformTo("arraybuffer",b),_);case"base64":return i.encode(b);default:return c.transformTo(S,b)}}(y,function(S,b){var _,I=0,L=null,N=0;for(_=0;_<b.length;_++)N+=b[_].length;switch(S){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(L=new Uint8Array(N),_=0;_<b.length;_++)L.set(b[_],I),I+=b[_].length;return L;case"nodebuffer":return O.concat(b);default:throw new Error("concat : unsupported type '"+S+"'")}}(v,g),x);h(T)}catch(S){p(S)}g=[]}).resume()})}function a(l,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=l.pipe(new o(p)),l.lock()}catch(g){this._worker=new r("error"),this._worker.error(g)}}a.prototype={accumulate:function(u){return t(this,u)},on:function(u,h){var p=this;return u==="data"?this._worker.on(u,function(g){h.call(p,g.data,g.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 s(this,{objectMode:this._outputType!=="nodebuffer"},u)}},m.exports=a},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(w,m,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=!!w("readable-stream").Readable}catch(r){f.nodestream=!1}},{"readable-stream":16}],31:[function(w,m,f){"use strict";for(var c=w("./utils"),o=w("./support"),r=w("./nodejsUtils"),i=w("./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 s(){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(l){var u,h,p,g,v,y=l.length,x=0;for(g=0;g<y;g++)(64512&(h=l.charCodeAt(g)))==55296&&g+1<y&&(64512&(p=l.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),g++),x+=h<128?1:h<2048?2:h<65536?3:4;for(u=o.uint8array?new Uint8Array(x):new Array(x),g=v=0;v<x;g++)(64512&(h=l.charCodeAt(g)))==55296&&g+1<y&&(64512&(p=l.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),g++),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(l){var u,h,p,g,v=l.length,y=new Array(2*v);for(u=h=0;u<v;)if((p=l[u++])<128)y[h++]=p;else if(4<(g=n[p]))y[h++]=65533,u+=g-1;else{for(p&=g===2?31:g===3?15:7;1<g&&u<v;)p=p<<6|63&l[u++],g--;1<g?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(s,i),s.prototype.processChunk=function(a){var l=c.transformTo(o.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var u=l;(l=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),l.set(u,this.leftOver.length)}else l=this.leftOver.concat(l);this.leftOver=null}var h=function(g,v){var y;for((v=v||g.length)>g.length&&(v=g.length),y=v-1;0<=y&&(192&g[y])==128;)y--;return y<0||y===0?v:y+n[g[y]]>v?y:v}(l),p=l;h!==l.length&&(o.uint8array?(p=l.subarray(0,h),this.leftOver=l.subarray(h,l.length)):(p=l.slice(0,h),this.leftOver=l.slice(h,l.length))),this.push({data:f.utf8decode(p),meta:a.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=s,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(w,m,f){"use strict";var c=w("./support"),o=w("./base64"),r=w("./nodejsUtils"),i=w("./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}w("setimmediate"),f.newBlob=function(u,h){f.checkSupport("blob");try{return new Blob([u],{type:h})}catch(g){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 s={stringifyByChunk:function(h,p,g){var v=[],y=0,x=h.length;if(x<=g)return String.fromCharCode.apply(null,h);for(;y<x;)p==="array"||p==="nodebuffer"?v.push(String.fromCharCode.apply(null,h.slice(y,Math.min(y+g,x)))):v.push(String.fromCharCode.apply(null,h.subarray(y,Math.min(y+g,x)))),y+=g;return v.join("")},stringifyByChar:function(h){for(var p="",g=0;g<h.length;g++)p+=String.fromCharCode(h[g]);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),g=!0;if(p==="uint8array"?g=s.applyCanBeUsed.uint8array:p==="nodebuffer"&&(g=s.applyCanBeUsed.nodebuffer),g)for(;1<h;)try{return s.stringifyByChunk(u,p,h)}catch(v){h=Math.floor(h/2)}return s.stringifyByChar(u)}function a(u,h){for(var p=0;p<u.length;p++)h[p]=u[p];return h}f.applyFromCharCode=t;var l={};l.string={string:n,array:function(h){return e(h,new Array(h.length))},arraybuffer:function(h){return l.string.uint8array(h).buffer},uint8array:function(h){return e(h,new Uint8Array(h.length))},nodebuffer:function(h){return e(h,r.allocBuffer(h.length))}},l.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)}},l.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))}},l.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)}},l.nodebuffer={string:t,array:function(h){return a(h,new Array(h.length))},arraybuffer:function(h){return l.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 l[p][u](h)},f.resolve=function(u){for(var h=u.split("/"),p=[],g=0;g<h.length;g++){var v=h[g];v==="."||v===""&&g!==0&&g!==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,g="";for(p=0;p<(u||"").length;p++)g+="\\x"+((h=u.charCodeAt(p))<16?"0":"")+h.toString(16).toUpperCase();return g},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])Object.prototype.hasOwnProperty.call(arguments[u],h)&&p[h]===void 0&&(p[h]=arguments[u][h]);return p},f.prepareContent=function(u,h,p,g,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(x,T){var S=new FileReader;S.onload=function(b){x(b.target.result)},S.onerror=function(b){T(b.target.error)},S.readAsArrayBuffer(y)}):y}).then(function(y){var x=f.getTypeOf(y);return x?(x==="arraybuffer"?y=f.transformTo("uint8array",y):x==="string"&&(v?y=o.decode(y):p&&g!==!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(w,m,f){"use strict";var c=w("./reader/readerFor"),o=w("./utils"),r=w("./signature"),i=w("./zipEntry"),n=w("./support");function e(s){this.files=[],this.loadOptions=s}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 l=this.reader.index;this.reader.setIndex(t);var u=this.reader.readString(4)===a;return this.reader.setIndex(l),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",l=o.transformTo(a,t);this.zipComment=this.loadOptions.decodeFileName(l)},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,l,u=this.zip64EndOfCentralSize-44;0<u;)t=this.reader.readInt(2),a=this.reader.readInt(4),l=this.reader.readData(a),this.zip64ExtensibleData[t]={id:t,length:a,value:l}},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 l=this.centralDirOffset+this.centralDirSize;this.zip64&&(l+=20,l+=12+this.zip64EndOfCentralSize);var u=a-l;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()}},m.exports=e},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(w,m,f){"use strict";var c=w("./reader/readerFor"),o=w("./utils"),r=w("./compressedObject"),i=w("./crc32"),n=w("./utf8"),e=w("./compressions"),s=w("./support");function t(a,l){this.options=a,this.loadOptions=l}t.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(l){var u,h;if(l.skip(22),this.fileNameLength=l.readInt(2),h=l.readInt(2),this.fileName=l.readData(this.fileNameLength),l.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 g in e)if(Object.prototype.hasOwnProperty.call(e,g)&&e[g].magic===p)return e[g];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,l.readData(this.compressedSize))},readCentralPart:function(l){this.versionMadeBy=l.readInt(2),l.skip(2),this.bitFlag=l.readInt(2),this.compressionMethod=l.readString(2),this.date=l.readDate(),this.crc32=l.readInt(4),this.compressedSize=l.readInt(4),this.uncompressedSize=l.readInt(4);var u=l.readInt(2);if(this.extraFieldsLength=l.readInt(2),this.fileCommentLength=l.readInt(2),this.diskNumberStart=l.readInt(2),this.internalFileAttributes=l.readInt(2),this.externalFileAttributes=l.readInt(4),this.localHeaderOffset=l.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");l.skip(u),this.readExtraFields(l),this.parseZIP64ExtraField(l),this.fileComment=l.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var l=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),l==0&&(this.dosPermissions=63&this.externalFileAttributes),l==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var l=c(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=l.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=l.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=l.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=l.readInt(4))}},readExtraFields:function(l){var u,h,p,g=l.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});l.index+4<g;)u=l.readInt(2),h=l.readInt(2),p=l.readData(h),this.extraFields[u]={id:u,length:h,value:p};l.setIndex(g)},handleUTF8:function(){var l=s.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(l,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var g=o.transformTo(l,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var l=this.extraFields[28789];if(l){var u=c(l.value);return u.readInt(1)!==1||i(this.fileName)!==u.readInt(4)?null:n.utf8decode(u.readData(l.length-5))}return null},findExtraFieldUnicodeComment:function(){var l=this.extraFields[25461];if(l){var u=c(l.value);return u.readInt(1)!==1||i(this.fileComment)!==u.readInt(4)?null:n.utf8decode(u.readData(l.length-5))}return null}},m.exports=t},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(w,m,f){"use strict";function c(l,u,h){this.name=l,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=w("./stream/StreamHelper"),r=w("./stream/DataWorker"),i=w("./utf8"),n=w("./compressedObject"),e=w("./stream/GenericWorker");c.prototype={internalStream:function(u){var h=null,p="string";try{if(!u)throw new Error("No output type specified.");var g=(p=u.toLowerCase())==="string"||p==="text";p!=="binarystring"&&p!=="text"||(p="string"),h=this._decompressWorker();var v=!this._dataBinary;v&&!g&&(h=h.pipe(new i.Utf8EncodeWorker)),!v&&g&&(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 s=["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<s.length;a++)c.prototype[s[a]]=t;m.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(w,m,f){(function(c){"use strict";var o,r,i=c.MutationObserver||c.WebKitMutationObserver;if(i){var n=0,e=new i(l),s=c.document.createTextNode("");e.observe(s,{characterData:!0}),o=function(){s.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(){l(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},c.document.documentElement.appendChild(u)}:function(){setTimeout(l,0)};else{var t=new c.MessageChannel;t.port1.onmessage=l,o=function(){t.port2.postMessage(0)}}var a=[];function l(){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}m.exports=function(u){a.push(u)!==1||r||o()}}).call(this,typeof E!="undefined"?E:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(w,m,f){"use strict";var c=w("immediate");function o(){}var r={},i=["REJECTED"],n=["FULFILLED"],e=["PENDING"];function s(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,g,v){this.promise=p,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function a(p,g,v){c(function(){var y;try{y=g(v)}catch(x){return r.reject(p,x)}y===p?r.reject(p,new TypeError("Cannot resolve promise with itself")):r.resolve(p,y)})}function l(p){var g=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof g=="function")return function(){g.apply(p,arguments)}}function u(p,g){var v=!1;function y(S){v||(v=!0,r.reject(p,S))}function x(S){v||(v=!0,r.resolve(p,S))}var T=h(function(){g(x,y)});T.status==="error"&&y(T.value)}function h(p,g){var v={};try{v.value=p(g),v.status="success"}catch(y){v.status="error",v.value=y}return v}(m.exports=s).prototype.finally=function(p){if(typeof p!="function")return this;var g=this.constructor;return this.then(function(v){return g.resolve(p()).then(function(){return v})},function(v){return g.resolve(p()).then(function(){throw v})})},s.prototype.catch=function(p){return this.then(null,p)},s.prototype.then=function(p,g){if(typeof p!="function"&&this.state===n||typeof g!="function"&&this.state===i)return this;var v=new this.constructor(o);return this.state!==e?a(v,this.state===n?p:g,this.outcome):this.queue.push(new t(v,p,g)),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,g){var v=h(l,g);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=g;for(var x=-1,T=p.queue.length;++x<T;)p.queue[x].callFulfilled(g)}return p},r.reject=function(p,g){p.state=i,p.outcome=g;for(var v=-1,y=p.queue.length;++v<y;)p.queue[v].callRejected(g);return p},s.resolve=function(p){return p instanceof this?p:r.resolve(new this(o),p)},s.reject=function(p){var g=new this(o);return r.reject(g,p)},s.all=function(p){var g=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 x=new Array(v),T=0,S=-1,b=new this(o);++S<v;)_(p[S],S);return b;function _(I,L){g.resolve(I).then(function(N){x[L]=N,++T!==v||y||(y=!0,r.resolve(b,x))},function(N){y||(y=!0,r.reject(b,N))})}},s.race=function(p){var g=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 x=-1,T=new this(o);++x<v;)S=p[x],g.resolve(S).then(function(b){y||(y=!0,r.resolve(T,b))},function(b){y||(y=!0,r.reject(T,b))});var S;return T}},{immediate:36}],38:[function(w,m,f){"use strict";var c={};(0,w("./lib/utils/common").assign)(c,w("./lib/deflate"),w("./lib/inflate"),w("./lib/zlib/constants")),m.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(w,m,f){"use strict";var c=w("./zlib/deflate"),o=w("./utils/common"),r=w("./utils/strings"),i=w("./zlib/messages"),n=w("./zlib/zstream"),e=Object.prototype.toString,s=0,t=-1,a=0,l=8;function u(p){if(!(this instanceof u))return new u(p);this.options=o.assign({level:t,method:l,chunkSize:16384,windowBits:15,memLevel:8,strategy:a,to:""},p||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.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,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(v!==s)throw new Error(i[v]);if(g.header&&c.deflateSetHeader(this.strm,g.header),g.dictionary){var y;if(y=typeof g.dictionary=="string"?r.string2buf(g.dictionary):e.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(v=c.deflateSetDictionary(this.strm,y))!==s)throw new Error(i[v]);this._dict_set=!0}}function h(p,g){var v=new u(g);if(v.push(p,!0),v.err)throw v.msg||i[v.err];return v.result}u.prototype.push=function(p,g){var v,y,x=this.strm,T=this.options.chunkSize;if(this.ended)return!1;y=g===~~g?g:g===!0?4:0,typeof p=="string"?x.input=r.string2buf(p):e.call(p)==="[object ArrayBuffer]"?x.input=new Uint8Array(p):x.input=p,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(T),x.next_out=0,x.avail_out=T),(v=c.deflate(x,y))!==1&&v!==s)return this.onEnd(v),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||y!==4&&y!==2)||(this.options.to==="string"?this.onData(r.buf2binstring(o.shrinkBuf(x.output,x.next_out))):this.onData(o.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&v!==1);return y===4?(v=c.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===s):y!==2||(this.onEnd(s),!(x.avail_out=0))},u.prototype.onData=function(p){this.chunks.push(p)},u.prototype.onEnd=function(p){p===s&&(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,g){return(g=g||{}).raw=!0,h(p,g)},f.gzip=function(p,g){return(g=g||{}).gzip=!0,h(p,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(w,m,f){"use strict";var c=w("./zlib/inflate"),o=w("./utils/common"),r=w("./utils/strings"),i=w("./zlib/constants"),n=w("./zlib/messages"),e=w("./zlib/zstream"),s=w("./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 s,c.inflateGetHeader(this.strm,this.header)}function l(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,g,v,y,x,T,S=this.strm,b=this.options.chunkSize,_=this.options.dictionary,I=!1;if(this.ended)return!1;g=h===~~h?h:h===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof u=="string"?S.input=r.binstring2buf(u):t.call(u)==="[object ArrayBuffer]"?S.input=new Uint8Array(u):S.input=u,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new o.Buf8(b),S.next_out=0,S.avail_out=b),(p=c.inflate(S,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);S.next_out&&(S.avail_out!==0&&p!==i.Z_STREAM_END&&(S.avail_in!==0||g!==i.Z_FINISH&&g!==i.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=r.utf8border(S.output,S.next_out),y=S.next_out-v,x=r.buf2string(S.output,v),S.next_out=y,S.avail_out=b-y,y&&o.arraySet(S.output,S.output,v,y,0),this.onData(x)):this.onData(o.shrinkBuf(S.output,S.next_out)))),S.avail_in===0&&S.avail_out===0&&(I=!0)}while((0<S.avail_in||S.avail_out===0)&&p!==i.Z_STREAM_END);return p===i.Z_STREAM_END&&(g=i.Z_FINISH),g===i.Z_FINISH?(p=c.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===i.Z_OK):g!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),!(S.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=l,f.inflateRaw=function(u,h){return(h=h||{}).raw=!0,l(u,h)},f.ungzip=l},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(w,m,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 s in e)e.hasOwnProperty(s)&&(i[s]=e[s])}}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,s,t,a){if(e.subarray&&n.subarray)n.set(e.subarray(s,s+t),a);else for(var l=0;l<t;l++)n[a+l]=e[s+l]},flattenChunks:function(n){var e,s,t,a,l,u;for(e=t=0,s=n.length;e<s;e++)t+=n[e].length;for(u=new Uint8Array(t),e=a=0,s=n.length;e<s;e++)l=n[e],u.set(l,a),a+=l.length;return u}},r={arraySet:function(n,e,s,t,a){for(var l=0;l<t;l++)n[a+l]=e[s+l]},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(w,m,f){"use strict";var c=w("./common"),o=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(s){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(s){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(s,t){if(t<65537&&(s.subarray&&r||!s.subarray&&o))return String.fromCharCode.apply(null,c.shrinkBuf(s,t));for(var a="",l=0;l<t;l++)a+=String.fromCharCode(s[l]);return a}i[254]=i[254]=1,f.string2buf=function(s){var t,a,l,u,h,p=s.length,g=0;for(u=0;u<p;u++)(64512&(a=s.charCodeAt(u)))==55296&&u+1<p&&(64512&(l=s.charCodeAt(u+1)))==56320&&(a=65536+(a-55296<<10)+(l-56320),u++),g+=a<128?1:a<2048?2:a<65536?3:4;for(t=new c.Buf8(g),u=h=0;h<g;u++)(64512&(a=s.charCodeAt(u)))==55296&&u+1<p&&(64512&(l=s.charCodeAt(u+1)))==56320&&(a=65536+(a-55296<<10)+(l-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(s){return e(s,s.length)},f.binstring2buf=function(s){for(var t=new c.Buf8(s.length),a=0,l=t.length;a<l;a++)t[a]=s.charCodeAt(a);return t},f.buf2string=function(s,t){var a,l,u,h,p=t||s.length,g=new Array(2*p);for(a=l=0;a<p;)if((u=s[a++])<128)g[l++]=u;else if(4<(h=i[u]))g[l++]=65533,a+=h-1;else{for(u&=h===2?31:h===3?15:7;1<h&&a<p;)u=u<<6|63&s[a++],h--;1<h?g[l++]=65533:u<65536?g[l++]=u:(u-=65536,g[l++]=55296|u>>10&1023,g[l++]=56320|1023&u)}return e(g,l)},f.utf8border=function(s,t){var a;for((t=t||s.length)>s.length&&(t=s.length),a=t-1;0<=a&&(192&s[a])==128;)a--;return a<0||a===0?t:a+i[s[a]]>t?a:t}},{"./common":41}],43:[function(w,m,f){"use strict";m.exports=function(c,o,r,i){for(var n=65535&c|0,e=c>>>16&65535|0,s=0;r!==0;){for(r-=s=2e3<r?2e3:r;e=e+(n=n+o[i++]|0)|0,--s;);n%=65521,e%=65521}return n|e<<16|0}},{}],44:[function(w,m,f){"use strict";m.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(w,m,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}();m.exports=function(o,r,i,n){var e=c,s=n+i;o^=-1;for(var t=n;t<s;t++)o=o>>>8^e[255&(o^r[t])];return-1^o}},{}],46:[function(w,m,f){"use strict";var c,o=w("../utils/common"),r=w("./trees"),i=w("./adler32"),n=w("./crc32"),e=w("./messages"),s=0,t=4,a=0,l=-2,u=-1,h=4,p=2,g=8,v=9,y=286,x=30,T=19,S=2*y+1,b=15,_=3,I=258,L=I+_+1,N=42,D=113,R=1,P=2,M=3,U=4;function F(ee,Xe){return ee.msg=e[Xe],Xe}function j(ee){return(ee<<1)-(4<ee?9:0)}function W(ee){for(var Xe=ee.length;0<=--Xe;)ee[Xe]=0}function V(ee){var Xe=ee.state,se=Xe.pending;se>ee.avail_out&&(se=ee.avail_out),se!==0&&(o.arraySet(ee.output,Xe.pending_buf,Xe.pending_out,se,ee.next_out),ee.next_out+=se,Xe.pending_out+=se,ee.total_out+=se,ee.avail_out-=se,Xe.pending-=se,Xe.pending===0&&(Xe.pending_out=0))}function z(ee,Xe){r._tr_flush_block(ee,0<=ee.block_start?ee.block_start:-1,ee.strstart-ee.block_start,Xe),ee.block_start=ee.strstart,V(ee.strm)}function Y(ee,Xe){ee.pending_buf[ee.pending++]=Xe}function $(ee,Xe){ee.pending_buf[ee.pending++]=Xe>>>8&255,ee.pending_buf[ee.pending++]=255&Xe}function ue(ee,Xe){var se,Q,G=ee.max_chain_length,J=ee.strstart,ve=ee.prev_length,de=ee.nice_match,Ce=ee.strstart>ee.w_size-L?ee.strstart-(ee.w_size-L):0,Ee=ee.window,le=ee.w_mask,fe=ee.prev,xe=ee.strstart+I,Qe=Ee[J+ve-1],ot=Ee[J+ve];ee.prev_length>=ee.good_match&&(G>>=2),de>ee.lookahead&&(de=ee.lookahead);do if(Ee[(se=Xe)+ve]===ot&&Ee[se+ve-1]===Qe&&Ee[se]===Ee[J]&&Ee[++se]===Ee[J+1]){J+=2,se++;do;while(Ee[++J]===Ee[++se]&&Ee[++J]===Ee[++se]&&Ee[++J]===Ee[++se]&&Ee[++J]===Ee[++se]&&Ee[++J]===Ee[++se]&&Ee[++J]===Ee[++se]&&Ee[++J]===Ee[++se]&&Ee[++J]===Ee[++se]&&J<xe);if(Q=I-(xe-J),J=xe-I,ve<Q){if(ee.match_start=Xe,de<=(ve=Q))break;Qe=Ee[J+ve-1],ot=Ee[J+ve]}}while((Xe=fe[Xe&le])>Ce&&--G!=0);return ve<=ee.lookahead?ve:ee.lookahead}function ne(ee){var Xe,se,Q,G,J,ve,de,Ce,Ee,le,fe=ee.w_size;do{if(G=ee.window_size-ee.lookahead-ee.strstart,ee.strstart>=fe+(fe-L)){for(o.arraySet(ee.window,ee.window,fe,fe,0),ee.match_start-=fe,ee.strstart-=fe,ee.block_start-=fe,Xe=se=ee.hash_size;Q=ee.head[--Xe],ee.head[Xe]=fe<=Q?Q-fe:0,--se;);for(Xe=se=fe;Q=ee.prev[--Xe],ee.prev[Xe]=fe<=Q?Q-fe:0,--se;);G+=fe}if(ee.strm.avail_in===0)break;if(ve=ee.strm,de=ee.window,Ce=ee.strstart+ee.lookahead,Ee=G,le=void 0,le=ve.avail_in,Ee<le&&(le=Ee),se=le===0?0:(ve.avail_in-=le,o.arraySet(de,ve.input,ve.next_in,le,Ce),ve.state.wrap===1?ve.adler=i(ve.adler,de,le,Ce):ve.state.wrap===2&&(ve.adler=n(ve.adler,de,le,Ce)),ve.next_in+=le,ve.total_in+=le,le),ee.lookahead+=se,ee.lookahead+ee.insert>=_)for(J=ee.strstart-ee.insert,ee.ins_h=ee.window[J],ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[J+1])&ee.hash_mask;ee.insert&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[J+_-1])&ee.hash_mask,ee.prev[J&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=J,J++,ee.insert--,!(ee.lookahead+ee.insert<_)););}while(ee.lookahead<L&&ee.strm.avail_in!==0)}function ge(ee,Xe){for(var se,Q;;){if(ee.lookahead<L){if(ne(ee),ee.lookahead<L&&Xe===s)return R;if(ee.lookahead===0)break}if(se=0,ee.lookahead>=_&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+_-1])&ee.hash_mask,se=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),se!==0&&ee.strstart-se<=ee.w_size-L&&(ee.match_length=ue(ee,se)),ee.match_length>=_)if(Q=r._tr_tally(ee,ee.strstart-ee.match_start,ee.match_length-_),ee.lookahead-=ee.match_length,ee.match_length<=ee.max_lazy_match&&ee.lookahead>=_){for(ee.match_length--;ee.strstart++,ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+_-1])&ee.hash_mask,se=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart,--ee.match_length!=0;);ee.strstart++}else ee.strstart+=ee.match_length,ee.match_length=0,ee.ins_h=ee.window[ee.strstart],ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+1])&ee.hash_mask;else Q=r._tr_tally(ee,0,ee.window[ee.strstart]),ee.lookahead--,ee.strstart++;if(Q&&(z(ee,!1),ee.strm.avail_out===0))return R}return ee.insert=ee.strstart<_-1?ee.strstart:_-1,Xe===t?(z(ee,!0),ee.strm.avail_out===0?M:U):ee.last_lit&&(z(ee,!1),ee.strm.avail_out===0)?R:P}function Oe(ee,Xe){for(var se,Q,G;;){if(ee.lookahead<L){if(ne(ee),ee.lookahead<L&&Xe===s)return R;if(ee.lookahead===0)break}if(se=0,ee.lookahead>=_&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+_-1])&ee.hash_mask,se=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),ee.prev_length=ee.match_length,ee.prev_match=ee.match_start,ee.match_length=_-1,se!==0&&ee.prev_length<ee.max_lazy_match&&ee.strstart-se<=ee.w_size-L&&(ee.match_length=ue(ee,se),ee.match_length<=5&&(ee.strategy===1||ee.match_length===_&&4096<ee.strstart-ee.match_start)&&(ee.match_length=_-1)),ee.prev_length>=_&&ee.match_length<=ee.prev_length){for(G=ee.strstart+ee.lookahead-_,Q=r._tr_tally(ee,ee.strstart-1-ee.prev_match,ee.prev_length-_),ee.lookahead-=ee.prev_length-1,ee.prev_length-=2;++ee.strstart<=G&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+_-1])&ee.hash_mask,se=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),--ee.prev_length!=0;);if(ee.match_available=0,ee.match_length=_-1,ee.strstart++,Q&&(z(ee,!1),ee.strm.avail_out===0))return R}else if(ee.match_available){if((Q=r._tr_tally(ee,0,ee.window[ee.strstart-1]))&&z(ee,!1),ee.strstart++,ee.lookahead--,ee.strm.avail_out===0)return R}else ee.match_available=1,ee.strstart++,ee.lookahead--}return ee.match_available&&(Q=r._tr_tally(ee,0,ee.window[ee.strstart-1]),ee.match_available=0),ee.insert=ee.strstart<_-1?ee.strstart:_-1,Xe===t?(z(ee,!0),ee.strm.avail_out===0?M:U):ee.last_lit&&(z(ee,!1),ee.strm.avail_out===0)?R:P}function De(ee,Xe,se,Q,G){this.good_length=ee,this.max_lazy=Xe,this.nice_length=se,this.max_chain=Q,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=g,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*S),this.dyn_dtree=new o.Buf16(2*(2*x+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(b+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 pe(ee){var Xe;return ee&&ee.state?(ee.total_in=ee.total_out=0,ee.data_type=p,(Xe=ee.state).pending=0,Xe.pending_out=0,Xe.wrap<0&&(Xe.wrap=-Xe.wrap),Xe.status=Xe.wrap?N:D,ee.adler=Xe.wrap===2?0:1,Xe.last_flush=s,r._tr_init(Xe),a):F(ee,l)}function Ue(ee){var Xe=pe(ee);return Xe===a&&function(se){se.window_size=2*se.w_size,W(se.head),se.max_lazy_match=c[se.level].max_lazy,se.good_match=c[se.level].good_length,se.nice_match=c[se.level].nice_length,se.max_chain_length=c[se.level].max_chain,se.strstart=0,se.block_start=0,se.lookahead=0,se.insert=0,se.match_length=se.prev_length=_-1,se.match_available=0,se.ins_h=0}(ee.state),Xe}function oe(ee,Xe,se,Q,G,J){if(!ee)return l;var ve=1;if(Xe===u&&(Xe=6),Q<0?(ve=0,Q=-Q):15<Q&&(ve=2,Q-=16),G<1||v<G||se!==g||Q<8||15<Q||Xe<0||9<Xe||J<0||h<J)return F(ee,l);Q===8&&(Q=9);var de=new He;return(ee.state=de).strm=ee,de.wrap=ve,de.gzhead=null,de.w_bits=Q,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=G+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+_-1)/_),de.window=new o.Buf8(2*de.w_size),de.head=new o.Buf16(de.hash_size),de.prev=new o.Buf16(de.w_size),de.lit_bufsize=1<<G+6,de.pending_buf_size=4*de.lit_bufsize,de.pending_buf=new o.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=Xe,de.strategy=J,de.method=se,Ue(ee)}c=[new De(0,0,0,0,function(ee,Xe){var se=65535;for(se>ee.pending_buf_size-5&&(se=ee.pending_buf_size-5);;){if(ee.lookahead<=1){if(ne(ee),ee.lookahead===0&&Xe===s)return R;if(ee.lookahead===0)break}ee.strstart+=ee.lookahead,ee.lookahead=0;var Q=ee.block_start+se;if((ee.strstart===0||ee.strstart>=Q)&&(ee.lookahead=ee.strstart-Q,ee.strstart=Q,z(ee,!1),ee.strm.avail_out===0))return R;if(ee.strstart-ee.block_start>=ee.w_size-L&&(z(ee,!1),ee.strm.avail_out===0))return R}return ee.insert=0,Xe===t?(z(ee,!0),ee.strm.avail_out===0?M:U):(ee.strstart>ee.block_start&&(z(ee,!1),ee.strm.avail_out),R)}),new De(4,4,8,4,ge),new De(4,5,16,8,ge),new De(4,6,32,32,ge),new De(4,4,16,16,Oe),new De(8,16,32,32,Oe),new De(8,16,128,128,Oe),new De(8,32,128,256,Oe),new De(32,128,258,1024,Oe),new De(32,258,258,4096,Oe)],f.deflateInit=function(ee,Xe){return oe(ee,Xe,g,15,8,0)},f.deflateInit2=oe,f.deflateReset=Ue,f.deflateResetKeep=pe,f.deflateSetHeader=function(ee,Xe){return ee&&ee.state?ee.state.wrap!==2?l:(ee.state.gzhead=Xe,a):l},f.deflate=function(ee,Xe){var se,Q,G,J;if(!ee||!ee.state||5<Xe||Xe<0)return ee?F(ee,l):l;if(Q=ee.state,!ee.output||!ee.input&&ee.avail_in!==0||Q.status===666&&Xe!==t)return F(ee,ee.avail_out===0?-5:l);if(Q.strm=ee,se=Q.last_flush,Q.last_flush=Xe,Q.status===N)if(Q.wrap===2)ee.adler=0,Y(Q,31),Y(Q,139),Y(Q,8),Q.gzhead?(Y(Q,(Q.gzhead.text?1:0)+(Q.gzhead.hcrc?2:0)+(Q.gzhead.extra?4:0)+(Q.gzhead.name?8:0)+(Q.gzhead.comment?16:0)),Y(Q,255&Q.gzhead.time),Y(Q,Q.gzhead.time>>8&255),Y(Q,Q.gzhead.time>>16&255),Y(Q,Q.gzhead.time>>24&255),Y(Q,Q.level===9?2:2<=Q.strategy||Q.level<2?4:0),Y(Q,255&Q.gzhead.os),Q.gzhead.extra&&Q.gzhead.extra.length&&(Y(Q,255&Q.gzhead.extra.length),Y(Q,Q.gzhead.extra.length>>8&255)),Q.gzhead.hcrc&&(ee.adler=n(ee.adler,Q.pending_buf,Q.pending,0)),Q.gzindex=0,Q.status=69):(Y(Q,0),Y(Q,0),Y(Q,0),Y(Q,0),Y(Q,0),Y(Q,Q.level===9?2:2<=Q.strategy||Q.level<2?4:0),Y(Q,3),Q.status=D);else{var ve=g+(Q.w_bits-8<<4)<<8;ve|=(2<=Q.strategy||Q.level<2?0:Q.level<6?1:Q.level===6?2:3)<<6,Q.strstart!==0&&(ve|=32),ve+=31-ve%31,Q.status=D,$(Q,ve),Q.strstart!==0&&($(Q,ee.adler>>>16),$(Q,65535&ee.adler)),ee.adler=1}if(Q.status===69)if(Q.gzhead.extra){for(G=Q.pending;Q.gzindex<(65535&Q.gzhead.extra.length)&&(Q.pending!==Q.pending_buf_size||(Q.gzhead.hcrc&&Q.pending>G&&(ee.adler=n(ee.adler,Q.pending_buf,Q.pending-G,G)),V(ee),G=Q.pending,Q.pending!==Q.pending_buf_size));)Y(Q,255&Q.gzhead.extra[Q.gzindex]),Q.gzindex++;Q.gzhead.hcrc&&Q.pending>G&&(ee.adler=n(ee.adler,Q.pending_buf,Q.pending-G,G)),Q.gzindex===Q.gzhead.extra.length&&(Q.gzindex=0,Q.status=73)}else Q.status=73;if(Q.status===73)if(Q.gzhead.name){G=Q.pending;do{if(Q.pending===Q.pending_buf_size&&(Q.gzhead.hcrc&&Q.pending>G&&(ee.adler=n(ee.adler,Q.pending_buf,Q.pending-G,G)),V(ee),G=Q.pending,Q.pending===Q.pending_buf_size)){J=1;break}J=Q.gzindex<Q.gzhead.name.length?255&Q.gzhead.name.charCodeAt(Q.gzindex++):0,Y(Q,J)}while(J!==0);Q.gzhead.hcrc&&Q.pending>G&&(ee.adler=n(ee.adler,Q.pending_buf,Q.pending-G,G)),J===0&&(Q.gzindex=0,Q.status=91)}else Q.status=91;if(Q.status===91)if(Q.gzhead.comment){G=Q.pending;do{if(Q.pending===Q.pending_buf_size&&(Q.gzhead.hcrc&&Q.pending>G&&(ee.adler=n(ee.adler,Q.pending_buf,Q.pending-G,G)),V(ee),G=Q.pending,Q.pending===Q.pending_buf_size)){J=1;break}J=Q.gzindex<Q.gzhead.comment.length?255&Q.gzhead.comment.charCodeAt(Q.gzindex++):0,Y(Q,J)}while(J!==0);Q.gzhead.hcrc&&Q.pending>G&&(ee.adler=n(ee.adler,Q.pending_buf,Q.pending-G,G)),J===0&&(Q.status=103)}else Q.status=103;if(Q.status===103&&(Q.gzhead.hcrc?(Q.pending+2>Q.pending_buf_size&&V(ee),Q.pending+2<=Q.pending_buf_size&&(Y(Q,255&ee.adler),Y(Q,ee.adler>>8&255),ee.adler=0,Q.status=D)):Q.status=D),Q.pending!==0){if(V(ee),ee.avail_out===0)return Q.last_flush=-1,a}else if(ee.avail_in===0&&j(Xe)<=j(se)&&Xe!==t)return F(ee,-5);if(Q.status===666&&ee.avail_in!==0)return F(ee,-5);if(ee.avail_in!==0||Q.lookahead!==0||Xe!==s&&Q.status!==666){var de=Q.strategy===2?function(Ce,Ee){for(var le;;){if(Ce.lookahead===0&&(ne(Ce),Ce.lookahead===0)){if(Ee===s)return R;break}if(Ce.match_length=0,le=r._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,le&&(z(Ce,!1),Ce.strm.avail_out===0))return R}return Ce.insert=0,Ee===t?(z(Ce,!0),Ce.strm.avail_out===0?M:U):Ce.last_lit&&(z(Ce,!1),Ce.strm.avail_out===0)?R:P}(Q,Xe):Q.strategy===3?function(Ce,Ee){for(var le,fe,xe,Qe,ot=Ce.window;;){if(Ce.lookahead<=I){if(ne(Ce),Ce.lookahead<=I&&Ee===s)return R;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=_&&0<Ce.strstart&&(fe=ot[xe=Ce.strstart-1])===ot[++xe]&&fe===ot[++xe]&&fe===ot[++xe]){Qe=Ce.strstart+I;do;while(fe===ot[++xe]&&fe===ot[++xe]&&fe===ot[++xe]&&fe===ot[++xe]&&fe===ot[++xe]&&fe===ot[++xe]&&fe===ot[++xe]&&fe===ot[++xe]&&xe<Qe);Ce.match_length=I-(Qe-xe),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=_?(le=r._tr_tally(Ce,1,Ce.match_length-_),Ce.lookahead-=Ce.match_length,Ce.strstart+=Ce.match_length,Ce.match_length=0):(le=r._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++),le&&(z(Ce,!1),Ce.strm.avail_out===0))return R}return Ce.insert=0,Ee===t?(z(Ce,!0),Ce.strm.avail_out===0?M:U):Ce.last_lit&&(z(Ce,!1),Ce.strm.avail_out===0)?R:P}(Q,Xe):c[Q.level].func(Q,Xe);if(de!==M&&de!==U||(Q.status=666),de===R||de===M)return ee.avail_out===0&&(Q.last_flush=-1),a;if(de===P&&(Xe===1?r._tr_align(Q):Xe!==5&&(r._tr_stored_block(Q,0,0,!1),Xe===3&&(W(Q.head),Q.lookahead===0&&(Q.strstart=0,Q.block_start=0,Q.insert=0))),V(ee),ee.avail_out===0))return Q.last_flush=-1,a}return Xe!==t?a:Q.wrap<=0?1:(Q.wrap===2?(Y(Q,255&ee.adler),Y(Q,ee.adler>>8&255),Y(Q,ee.adler>>16&255),Y(Q,ee.adler>>24&255),Y(Q,255&ee.total_in),Y(Q,ee.total_in>>8&255),Y(Q,ee.total_in>>16&255),Y(Q,ee.total_in>>24&255)):($(Q,ee.adler>>>16),$(Q,65535&ee.adler)),V(ee),0<Q.wrap&&(Q.wrap=-Q.wrap),Q.pending!==0?a:1)},f.deflateEnd=function(ee){var Xe;return ee&&ee.state?(Xe=ee.state.status)!==N&&Xe!==69&&Xe!==73&&Xe!==91&&Xe!==103&&Xe!==D&&Xe!==666?F(ee,l):(ee.state=null,Xe===D?F(ee,-3):a):l},f.deflateSetDictionary=function(ee,Xe){var se,Q,G,J,ve,de,Ce,Ee,le=Xe.length;if(!ee||!ee.state)return l;if((J=(se=ee.state).wrap)===2||J===1&&se.status!==N||se.lookahead)return l;for(J===1&&(ee.adler=i(ee.adler,Xe,le,0)),se.wrap=0,le>=se.w_size&&(J===0&&(W(se.head),se.strstart=0,se.block_start=0,se.insert=0),Ee=new o.Buf8(se.w_size),o.arraySet(Ee,Xe,le-se.w_size,se.w_size,0),Xe=Ee,le=se.w_size),ve=ee.avail_in,de=ee.next_in,Ce=ee.input,ee.avail_in=le,ee.next_in=0,ee.input=Xe,ne(se);se.lookahead>=_;){for(Q=se.strstart,G=se.lookahead-(_-1);se.ins_h=(se.ins_h<<se.hash_shift^se.window[Q+_-1])&se.hash_mask,se.prev[Q&se.w_mask]=se.head[se.ins_h],se.head[se.ins_h]=Q,Q++,--G;);se.strstart=Q,se.lookahead=_-1,ne(se)}return se.strstart+=se.lookahead,se.block_start=se.strstart,se.insert=se.lookahead,se.lookahead=0,se.match_length=se.prev_length=_-1,se.match_available=0,ee.next_in=de,ee.input=Ce,ee.avail_in=ve,se.wrap=J,a},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(w,m,f){"use strict";m.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(w,m,f){"use strict";m.exports=function(c,o){var r,i,n,e,s,t,a,l,u,h,p,g,v,y,x,T,S,b,_,I,L,N,D,R,P;r=c.state,i=c.next_in,R=c.input,n=i+(c.avail_in-5),e=c.next_out,P=c.output,s=e-(o-c.avail_out),t=e+(c.avail_out-257),a=r.dmax,l=r.wsize,u=r.whave,h=r.wnext,p=r.window,g=r.hold,v=r.bits,y=r.lencode,x=r.distcode,T=(1<<r.lenbits)-1,S=(1<<r.distbits)-1;e:do{v<15&&(g+=R[i++]<<v,v+=8,g+=R[i++]<<v,v+=8),b=y[g&T];t:for(;;){if(g>>>=_=b>>>24,v-=_,(_=b>>>16&255)===0)P[e++]=65535&b;else{if(!(16&_)){if((64&_)==0){b=y[(65535&b)+(g&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}c.msg="invalid literal/length code",r.mode=30;break e}I=65535&b,(_&=15)&&(v<_&&(g+=R[i++]<<v,v+=8),I+=g&(1<<_)-1,g>>>=_,v-=_),v<15&&(g+=R[i++]<<v,v+=8,g+=R[i++]<<v,v+=8),b=x[g&S];r:for(;;){if(g>>>=_=b>>>24,v-=_,!(16&(_=b>>>16&255))){if((64&_)==0){b=x[(65535&b)+(g&(1<<_)-1)];continue r}c.msg="invalid distance code",r.mode=30;break e}if(L=65535&b,v<(_&=15)&&(g+=R[i++]<<v,(v+=8)<_&&(g+=R[i++]<<v,v+=8)),a<(L+=g&(1<<_)-1)){c.msg="invalid distance too far back",r.mode=30;break e}if(g>>>=_,v-=_,(_=e-s)<L){if(u<(_=L-_)&&r.sane){c.msg="invalid distance too far back",r.mode=30;break e}if(D=p,(N=0)===h){if(N+=l-_,_<I){for(I-=_;P[e++]=p[N++],--_;);N=e-L,D=P}}else if(h<_){if(N+=l+h-_,(_-=h)<I){for(I-=_;P[e++]=p[N++],--_;);if(N=0,h<I){for(I-=_=h;P[e++]=p[N++],--_;);N=e-L,D=P}}}else if(N+=h-_,_<I){for(I-=_;P[e++]=p[N++],--_;);N=e-L,D=P}for(;2<I;)P[e++]=D[N++],P[e++]=D[N++],P[e++]=D[N++],I-=3;I&&(P[e++]=D[N++],1<I&&(P[e++]=D[N++]))}else{for(N=e-L;P[e++]=P[N++],P[e++]=P[N++],P[e++]=P[N++],2<(I-=3););I&&(P[e++]=P[N++],1<I&&(P[e++]=P[N++]))}break}}break}}while(i<n&&e<t);i-=I=v>>3,g&=(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=g,r.bits=v}},{}],49:[function(w,m,f){"use strict";var c=w("../utils/common"),o=w("./adler32"),r=w("./crc32"),i=w("./inffast"),n=w("./inftrees"),e=1,s=2,t=0,a=-2,l=1,u=852,h=592;function p(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function g(){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 D;return N&&N.state?(D=N.state,N.total_in=N.total_out=D.total=0,N.msg="",D.wrap&&(N.adler=1&D.wrap),D.mode=l,D.last=0,D.havedict=0,D.dmax=32768,D.head=null,D.hold=0,D.bits=0,D.lencode=D.lendyn=new c.Buf32(u),D.distcode=D.distdyn=new c.Buf32(h),D.sane=1,D.back=-1,t):a}function y(N){var D;return N&&N.state?((D=N.state).wsize=0,D.whave=0,D.wnext=0,v(N)):a}function x(N,D){var R,P;return N&&N.state?(P=N.state,D<0?(R=0,D=-D):(R=1+(D>>4),D<48&&(D&=15)),D&&(D<8||15<D)?a:(P.window!==null&&P.wbits!==D&&(P.window=null),P.wrap=R,P.wbits=D,y(N))):a}function T(N,D){var R,P;return N?(P=new g,(N.state=P).window=null,(R=x(N,D))!==t&&(N.state=null),R):a}var S,b,_=!0;function I(N){if(_){var D;for(S=new c.Buf32(512),b=new c.Buf32(32),D=0;D<144;)N.lens[D++]=8;for(;D<256;)N.lens[D++]=9;for(;D<280;)N.lens[D++]=7;for(;D<288;)N.lens[D++]=8;for(n(e,N.lens,0,288,S,0,N.work,{bits:9}),D=0;D<32;)N.lens[D++]=5;n(s,N.lens,0,32,b,0,N.work,{bits:5}),_=!1}N.lencode=S,N.lenbits=9,N.distcode=b,N.distbits=5}function L(N,D,R,P){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)),P>=U.wsize?(c.arraySet(U.window,D,R-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(P<(M=U.wsize-U.wnext)&&(M=P),c.arraySet(U.window,D,R-P,M,U.wnext),(P-=M)?(c.arraySet(U.window,D,R-P,P,0),U.wnext=P,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=x,f.inflateResetKeep=v,f.inflateInit=function(N){return T(N,15)},f.inflateInit2=T,f.inflate=function(N,D){var R,P,M,U,F,j,W,V,z,Y,$,ue,ne,ge,Oe,De,He,pe,Ue,oe,ee,Xe,se,Q,G=0,J=new c.Buf8(4),ve=[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;(R=N.state).mode===12&&(R.mode=13),F=N.next_out,M=N.output,W=N.avail_out,U=N.next_in,P=N.input,j=N.avail_in,V=R.hold,z=R.bits,Y=j,$=W,Xe=t;e:for(;;)switch(R.mode){case l:if(R.wrap===0){R.mode=13;break}for(;z<16;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if(2&R.wrap&&V===35615){J[R.check=0]=255&V,J[1]=V>>>8&255,R.check=r(R.check,J,2,0),z=V=0,R.mode=2;break}if(R.flags=0,R.head&&(R.head.done=!1),!(1&R.wrap)||(((255&V)<<8)+(V>>8))%31){N.msg="incorrect header check",R.mode=30;break}if((15&V)!=8){N.msg="unknown compression method",R.mode=30;break}if(z-=4,ee=8+(15&(V>>>=4)),R.wbits===0)R.wbits=ee;else if(ee>R.wbits){N.msg="invalid window size",R.mode=30;break}R.dmax=1<<ee,N.adler=R.check=1,R.mode=512&V?10:12,z=V=0;break;case 2:for(;z<16;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if(R.flags=V,(255&R.flags)!=8){N.msg="unknown compression method",R.mode=30;break}if(57344&R.flags){N.msg="unknown header flags set",R.mode=30;break}R.head&&(R.head.text=V>>8&1),512&R.flags&&(J[0]=255&V,J[1]=V>>>8&255,R.check=r(R.check,J,2,0)),z=V=0,R.mode=3;case 3:for(;z<32;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}R.head&&(R.head.time=V),512&R.flags&&(J[0]=255&V,J[1]=V>>>8&255,J[2]=V>>>16&255,J[3]=V>>>24&255,R.check=r(R.check,J,4,0)),z=V=0,R.mode=4;case 4:for(;z<16;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}R.head&&(R.head.xflags=255&V,R.head.os=V>>8),512&R.flags&&(J[0]=255&V,J[1]=V>>>8&255,R.check=r(R.check,J,2,0)),z=V=0,R.mode=5;case 5:if(1024&R.flags){for(;z<16;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}R.length=V,R.head&&(R.head.extra_len=V),512&R.flags&&(J[0]=255&V,J[1]=V>>>8&255,R.check=r(R.check,J,2,0)),z=V=0}else R.head&&(R.head.extra=null);R.mode=6;case 6:if(1024&R.flags&&(j<(ue=R.length)&&(ue=j),ue&&(R.head&&(ee=R.head.extra_len-R.length,R.head.extra||(R.head.extra=new Array(R.head.extra_len)),c.arraySet(R.head.extra,P,U,ue,ee)),512&R.flags&&(R.check=r(R.check,P,ue,U)),j-=ue,U+=ue,R.length-=ue),R.length))break e;R.length=0,R.mode=7;case 7:if(2048&R.flags){if(j===0)break e;for(ue=0;ee=P[U+ue++],R.head&&ee&&R.length<65536&&(R.head.name+=String.fromCharCode(ee)),ee&&ue<j;);if(512&R.flags&&(R.check=r(R.check,P,ue,U)),j-=ue,U+=ue,ee)break e}else R.head&&(R.head.name=null);R.length=0,R.mode=8;case 8:if(4096&R.flags){if(j===0)break e;for(ue=0;ee=P[U+ue++],R.head&&ee&&R.length<65536&&(R.head.comment+=String.fromCharCode(ee)),ee&&ue<j;);if(512&R.flags&&(R.check=r(R.check,P,ue,U)),j-=ue,U+=ue,ee)break e}else R.head&&(R.head.comment=null);R.mode=9;case 9:if(512&R.flags){for(;z<16;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if(V!==(65535&R.check)){N.msg="header crc mismatch",R.mode=30;break}z=V=0}R.head&&(R.head.hcrc=R.flags>>9&1,R.head.done=!0),N.adler=R.check=0,R.mode=12;break;case 10:for(;z<32;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}N.adler=R.check=p(V),z=V=0,R.mode=11;case 11:if(R.havedict===0)return N.next_out=F,N.avail_out=W,N.next_in=U,N.avail_in=j,R.hold=V,R.bits=z,2;N.adler=R.check=1,R.mode=12;case 12:if(D===5||D===6)break e;case 13:if(R.last){V>>>=7&z,z-=7&z,R.mode=27;break}for(;z<3;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}switch(R.last=1&V,z-=1,3&(V>>>=1)){case 0:R.mode=14;break;case 1:if(I(R),R.mode=20,D!==6)break;V>>>=2,z-=2;break e;case 2:R.mode=17;break;case 3:N.msg="invalid block type",R.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+=P[U++]<<z,z+=8}if((65535&V)!=(V>>>16^65535)){N.msg="invalid stored block lengths",R.mode=30;break}if(R.length=65535&V,z=V=0,R.mode=15,D===6)break e;case 15:R.mode=16;case 16:if(ue=R.length){if(j<ue&&(ue=j),W<ue&&(ue=W),ue===0)break e;c.arraySet(M,P,U,ue,F),j-=ue,U+=ue,W-=ue,F+=ue,R.length-=ue;break}R.mode=12;break;case 17:for(;z<14;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if(R.nlen=257+(31&V),V>>>=5,z-=5,R.ndist=1+(31&V),V>>>=5,z-=5,R.ncode=4+(15&V),V>>>=4,z-=4,286<R.nlen||30<R.ndist){N.msg="too many length or distance symbols",R.mode=30;break}R.have=0,R.mode=18;case 18:for(;R.have<R.ncode;){for(;z<3;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}R.lens[ve[R.have++]]=7&V,V>>>=3,z-=3}for(;R.have<19;)R.lens[ve[R.have++]]=0;if(R.lencode=R.lendyn,R.lenbits=7,se={bits:R.lenbits},Xe=n(0,R.lens,0,19,R.lencode,0,R.work,se),R.lenbits=se.bits,Xe){N.msg="invalid code lengths set",R.mode=30;break}R.have=0,R.mode=19;case 19:for(;R.have<R.nlen+R.ndist;){for(;De=(G=R.lencode[V&(1<<R.lenbits)-1])>>>16&255,He=65535&G,!((Oe=G>>>24)<=z);){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if(He<16)V>>>=Oe,z-=Oe,R.lens[R.have++]=He;else{if(He===16){for(Q=Oe+2;z<Q;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if(V>>>=Oe,z-=Oe,R.have===0){N.msg="invalid bit length repeat",R.mode=30;break}ee=R.lens[R.have-1],ue=3+(3&V),V>>>=2,z-=2}else if(He===17){for(Q=Oe+3;z<Q;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}z-=Oe,ee=0,ue=3+(7&(V>>>=Oe)),V>>>=3,z-=3}else{for(Q=Oe+7;z<Q;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}z-=Oe,ee=0,ue=11+(127&(V>>>=Oe)),V>>>=7,z-=7}if(R.have+ue>R.nlen+R.ndist){N.msg="invalid bit length repeat",R.mode=30;break}for(;ue--;)R.lens[R.have++]=ee}}if(R.mode===30)break;if(R.lens[256]===0){N.msg="invalid code -- missing end-of-block",R.mode=30;break}if(R.lenbits=9,se={bits:R.lenbits},Xe=n(e,R.lens,0,R.nlen,R.lencode,0,R.work,se),R.lenbits=se.bits,Xe){N.msg="invalid literal/lengths set",R.mode=30;break}if(R.distbits=6,R.distcode=R.distdyn,se={bits:R.distbits},Xe=n(s,R.lens,R.nlen,R.ndist,R.distcode,0,R.work,se),R.distbits=se.bits,Xe){N.msg="invalid distances set",R.mode=30;break}if(R.mode=20,D===6)break e;case 20:R.mode=21;case 21:if(6<=j&&258<=W){N.next_out=F,N.avail_out=W,N.next_in=U,N.avail_in=j,R.hold=V,R.bits=z,i(N,$),F=N.next_out,M=N.output,W=N.avail_out,U=N.next_in,P=N.input,j=N.avail_in,V=R.hold,z=R.bits,R.mode===12&&(R.back=-1);break}for(R.back=0;De=(G=R.lencode[V&(1<<R.lenbits)-1])>>>16&255,He=65535&G,!((Oe=G>>>24)<=z);){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if(De&&(240&De)==0){for(pe=Oe,Ue=De,oe=He;De=(G=R.lencode[oe+((V&(1<<pe+Ue)-1)>>pe)])>>>16&255,He=65535&G,!(pe+(Oe=G>>>24)<=z);){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}V>>>=pe,z-=pe,R.back+=pe}if(V>>>=Oe,z-=Oe,R.back+=Oe,R.length=He,De===0){R.mode=26;break}if(32&De){R.back=-1,R.mode=12;break}if(64&De){N.msg="invalid literal/length code",R.mode=30;break}R.extra=15&De,R.mode=22;case 22:if(R.extra){for(Q=R.extra;z<Q;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}R.length+=V&(1<<R.extra)-1,V>>>=R.extra,z-=R.extra,R.back+=R.extra}R.was=R.length,R.mode=23;case 23:for(;De=(G=R.distcode[V&(1<<R.distbits)-1])>>>16&255,He=65535&G,!((Oe=G>>>24)<=z);){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if((240&De)==0){for(pe=Oe,Ue=De,oe=He;De=(G=R.distcode[oe+((V&(1<<pe+Ue)-1)>>pe)])>>>16&255,He=65535&G,!(pe+(Oe=G>>>24)<=z);){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}V>>>=pe,z-=pe,R.back+=pe}if(V>>>=Oe,z-=Oe,R.back+=Oe,64&De){N.msg="invalid distance code",R.mode=30;break}R.offset=He,R.extra=15&De,R.mode=24;case 24:if(R.extra){for(Q=R.extra;z<Q;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}R.offset+=V&(1<<R.extra)-1,V>>>=R.extra,z-=R.extra,R.back+=R.extra}if(R.offset>R.dmax){N.msg="invalid distance too far back",R.mode=30;break}R.mode=25;case 25:if(W===0)break e;if(ue=$-W,R.offset>ue){if((ue=R.offset-ue)>R.whave&&R.sane){N.msg="invalid distance too far back",R.mode=30;break}ne=ue>R.wnext?(ue-=R.wnext,R.wsize-ue):R.wnext-ue,ue>R.length&&(ue=R.length),ge=R.window}else ge=M,ne=F-R.offset,ue=R.length;for(W<ue&&(ue=W),W-=ue,R.length-=ue;M[F++]=ge[ne++],--ue;);R.length===0&&(R.mode=21);break;case 26:if(W===0)break e;M[F++]=R.length,W--,R.mode=21;break;case 27:if(R.wrap){for(;z<32;){if(j===0)break e;j--,V|=P[U++]<<z,z+=8}if($-=W,N.total_out+=$,R.total+=$,$&&(N.adler=R.check=R.flags?r(R.check,M,$,F-$):o(R.check,M,$,F-$)),$=W,(R.flags?V:p(V))!==R.check){N.msg="incorrect data check",R.mode=30;break}z=V=0}R.mode=28;case 28:if(R.wrap&&R.flags){for(;z<32;){if(j===0)break e;j--,V+=P[U++]<<z,z+=8}if(V!==(4294967295&R.total)){N.msg="incorrect length check",R.mode=30;break}z=V=0}R.mode=29;case 29:Xe=1;break e;case 30:Xe=-3;break e;case 31:return-4;case 32:default:return a}return N.next_out=F,N.avail_out=W,N.next_in=U,N.avail_in=j,R.hold=V,R.bits=z,(R.wsize||$!==N.avail_out&&R.mode<30&&(R.mode<27||D!==4))&&L(N,N.output,N.next_out,$-N.avail_out)?(R.mode=31,-4):(Y-=N.avail_in,$-=N.avail_out,N.total_in+=Y,N.total_out+=$,R.total+=$,R.wrap&&$&&(N.adler=R.check=R.flags?r(R.check,M,$,N.next_out-$):o(R.check,M,$,N.next_out-$)),N.data_type=R.bits+(R.last?64:0)+(R.mode===12?128:0)+(R.mode===20||R.mode===15?256:0),(Y==0&&$===0||D===4)&&Xe===t&&(Xe=-5),Xe)},f.inflateEnd=function(N){if(!N||!N.state)return a;var D=N.state;return D.window&&(D.window=null),N.state=null,t},f.inflateGetHeader=function(N,D){var R;return N&&N.state?(2&(R=N.state).wrap)==0?a:((R.head=D).done=!1,t):a},f.inflateSetDictionary=function(N,D){var R,P=D.length;return N&&N.state?(R=N.state).wrap!==0&&R.mode!==11?a:R.mode===11&&o(1,D,P,0)!==R.check?-3:L(N,D,P,P)?(R.mode=31,-4):(R.havedict=1,t):a},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(w,m,f){"use strict";var c=w("../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];m.exports=function(e,s,t,a,l,u,h,p){var g,v,y,x,T,S,b,_,I,L=p.bits,N=0,D=0,R=0,P=0,M=0,U=0,F=0,j=0,W=0,V=0,z=null,Y=0,$=new c.Buf16(16),ue=new c.Buf16(16),ne=null,ge=0;for(N=0;N<=15;N++)$[N]=0;for(D=0;D<a;D++)$[s[t+D]]++;for(M=L,P=15;1<=P&&$[P]===0;P--);if(P<M&&(M=P),P===0)return l[u++]=20971520,l[u++]=20971520,p.bits=1,0;for(R=1;R<P&&$[R]===0;R++);for(M<R&&(M=R),N=j=1;N<=15;N++)if(j<<=1,(j-=$[N])<0)return-1;if(0<j&&(e===0||P!==1))return-1;for(ue[1]=0,N=1;N<15;N++)ue[N+1]=ue[N]+$[N];for(D=0;D<a;D++)s[t+D]!==0&&(h[ue[s[t+D]]++]=D);if(S=e===0?(z=ne=h,19):e===1?(z=o,Y-=257,ne=r,ge-=257,256):(z=i,ne=n,-1),N=R,T=u,F=D=V=0,y=-1,x=(W=1<<(U=M))-1,e===1&&852<W||e===2&&592<W)return 1;for(;;){for(b=N-F,I=h[D]<S?(_=0,h[D]):h[D]>S?(_=ne[ge+h[D]],z[Y+h[D]]):(_=96,0),g=1<<N-F,R=v=1<<U;l[T+(V>>F)+(v-=g)]=b<<24|_<<16|I|0,v!==0;);for(g=1<<N-1;V&g;)g>>=1;if(g!==0?(V&=g-1,V+=g):V=0,D++,--$[N]==0){if(N===P)break;N=s[t+h[D]]}if(M<N&&(V&x)!==y){for(F===0&&(F=M),T+=R,j=1<<(U=N-F);U+F<P&&!((j-=$[U+F])<=0);)U++,j<<=1;if(W+=1<<U,e===1&&852<W||e===2&&592<W)return 1;l[y=V&x]=M<<24|U<<16|T-u|0}}return V!==0&&(l[T+V]=N-F<<24|64<<16|0),p.bits=M,0}},{"../utils/common":41}],51:[function(w,m,f){"use strict";m.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(w,m,f){"use strict";var c=w("../utils/common"),o=0,r=1;function i(G){for(var J=G.length;0<=--J;)G[J]=0}var n=0,e=29,s=256,t=s+1+e,a=30,l=19,u=2*t+1,h=15,p=16,g=7,v=256,y=16,x=17,T=18,S=[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],b=[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 D=new Array(512);i(D);var R=new Array(256);i(R);var P=new Array(e);i(P);var M,U,F,j=new Array(a);function W(G,J,ve,de,Ce){this.static_tree=G,this.extra_bits=J,this.extra_base=ve,this.elems=de,this.max_length=Ce,this.has_stree=G&&G.length}function V(G,J){this.dyn_tree=G,this.max_code=0,this.stat_desc=J}function z(G){return G<256?D[G]:D[256+(G>>>7)]}function Y(G,J){G.pending_buf[G.pending++]=255&J,G.pending_buf[G.pending++]=J>>>8&255}function $(G,J,ve){G.bi_valid>p-ve?(G.bi_buf|=J<<G.bi_valid&65535,Y(G,G.bi_buf),G.bi_buf=J>>p-G.bi_valid,G.bi_valid+=ve-p):(G.bi_buf|=J<<G.bi_valid&65535,G.bi_valid+=ve)}function ue(G,J,ve){$(G,ve[2*J],ve[2*J+1])}function ne(G,J){for(var ve=0;ve|=1&G,G>>>=1,ve<<=1,0<--J;);return ve>>>1}function ge(G,J,ve){var de,Ce,Ee=new Array(h+1),le=0;for(de=1;de<=h;de++)Ee[de]=le=le+ve[de-1]<<1;for(Ce=0;Ce<=J;Ce++){var fe=G[2*Ce+1];fe!==0&&(G[2*Ce]=ne(Ee[fe]++,fe))}}function Oe(G){var J;for(J=0;J<t;J++)G.dyn_ltree[2*J]=0;for(J=0;J<a;J++)G.dyn_dtree[2*J]=0;for(J=0;J<l;J++)G.bl_tree[2*J]=0;G.dyn_ltree[2*v]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0}function De(G){8<G.bi_valid?Y(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,J,ve,de){var Ce=2*J,Ee=2*ve;return G[Ce]<G[Ee]||G[Ce]===G[Ee]&&de[J]<=de[ve]}function pe(G,J,ve){for(var de=G.heap[ve],Ce=ve<<1;Ce<=G.heap_len&&(Ce<G.heap_len&&He(J,G.heap[Ce+1],G.heap[Ce],G.depth)&&Ce++,!He(J,de,G.heap[Ce],G.depth));)G.heap[ve]=G.heap[Ce],ve=Ce,Ce<<=1;G.heap[ve]=de}function Ue(G,J,ve){var de,Ce,Ee,le,fe=0;if(G.last_lit!==0)for(;de=G.pending_buf[G.d_buf+2*fe]<<8|G.pending_buf[G.d_buf+2*fe+1],Ce=G.pending_buf[G.l_buf+fe],fe++,de===0?ue(G,Ce,J):(ue(G,(Ee=R[Ce])+s+1,J),(le=S[Ee])!==0&&$(G,Ce-=P[Ee],le),ue(G,Ee=z(--de),ve),(le=b[Ee])!==0&&$(G,de-=j[Ee],le)),fe<G.last_lit;);ue(G,v,J)}function oe(G,J){var ve,de,Ce,Ee=J.dyn_tree,le=J.stat_desc.static_tree,fe=J.stat_desc.has_stree,xe=J.stat_desc.elems,Qe=-1;for(G.heap_len=0,G.heap_max=u,ve=0;ve<xe;ve++)Ee[2*ve]!==0?(G.heap[++G.heap_len]=Qe=ve,G.depth[ve]=0):Ee[2*ve+1]=0;for(;G.heap_len<2;)Ee[2*(Ce=G.heap[++G.heap_len]=Qe<2?++Qe:0)]=1,G.depth[Ce]=0,G.opt_len--,fe&&(G.static_len-=le[2*Ce+1]);for(J.max_code=Qe,ve=G.heap_len>>1;1<=ve;ve--)pe(G,Ee,ve);for(Ce=xe;ve=G.heap[1],G.heap[1]=G.heap[G.heap_len--],pe(G,Ee,1),de=G.heap[1],G.heap[--G.heap_max]=ve,G.heap[--G.heap_max]=de,Ee[2*Ce]=Ee[2*ve]+Ee[2*de],G.depth[Ce]=(G.depth[ve]>=G.depth[de]?G.depth[ve]:G.depth[de])+1,Ee[2*ve+1]=Ee[2*de+1]=Ce,G.heap[1]=Ce++,pe(G,Ee,1),2<=G.heap_len;);G.heap[--G.heap_max]=G.heap[1],function(ot,Je){var Te,et,ze,nt,Ot,Ct,Tt=Je.dyn_tree,Dt=Je.max_code,Be=Je.stat_desc.static_tree,ie=Je.stat_desc.has_stree,X=Je.stat_desc.extra_bits,Fe=Je.stat_desc.extra_base,Ne=Je.stat_desc.max_length,q=0;for(nt=0;nt<=h;nt++)ot.bl_count[nt]=0;for(Tt[2*ot.heap[ot.heap_max]+1]=0,Te=ot.heap_max+1;Te<u;Te++)Ne<(nt=Tt[2*Tt[2*(et=ot.heap[Te])+1]+1]+1)&&(nt=Ne,q++),Tt[2*et+1]=nt,Dt<et||(ot.bl_count[nt]++,Ot=0,Fe<=et&&(Ot=X[et-Fe]),Ct=Tt[2*et],ot.opt_len+=Ct*(nt+Ot),ie&&(ot.static_len+=Ct*(Be[2*et+1]+Ot)));if(q!==0){do{for(nt=Ne-1;ot.bl_count[nt]===0;)nt--;ot.bl_count[nt]--,ot.bl_count[nt+1]+=2,ot.bl_count[Ne]--,q-=2}while(0<q);for(nt=Ne;nt!==0;nt--)for(et=ot.bl_count[nt];et!==0;)Dt<(ze=ot.heap[--Te])||(Tt[2*ze+1]!==nt&&(ot.opt_len+=(nt-Tt[2*ze+1])*Tt[2*ze],Tt[2*ze+1]=nt),et--)}}(G,J),ge(Ee,Qe,G.bl_count)}function ee(G,J,ve){var de,Ce,Ee=-1,le=J[1],fe=0,xe=7,Qe=4;for(le===0&&(xe=138,Qe=3),J[2*(ve+1)+1]=65535,de=0;de<=ve;de++)Ce=le,le=J[2*(de+1)+1],++fe<xe&&Ce===le||(fe<Qe?G.bl_tree[2*Ce]+=fe:Ce!==0?(Ce!==Ee&&G.bl_tree[2*Ce]++,G.bl_tree[2*y]++):fe<=10?G.bl_tree[2*x]++:G.bl_tree[2*T]++,Ee=Ce,Qe=(fe=0)===le?(xe=138,3):Ce===le?(xe=6,3):(xe=7,4))}function Xe(G,J,ve){var de,Ce,Ee=-1,le=J[1],fe=0,xe=7,Qe=4;for(le===0&&(xe=138,Qe=3),de=0;de<=ve;de++)if(Ce=le,le=J[2*(de+1)+1],!(++fe<xe&&Ce===le)){if(fe<Qe)for(;ue(G,Ce,G.bl_tree),--fe!=0;);else Ce!==0?(Ce!==Ee&&(ue(G,Ce,G.bl_tree),fe--),ue(G,y,G.bl_tree),$(G,fe-3,2)):fe<=10?(ue(G,x,G.bl_tree),$(G,fe-3,3)):(ue(G,T,G.bl_tree),$(G,fe-11,7));Ee=Ce,Qe=(fe=0)===le?(xe=138,3):Ce===le?(xe=6,3):(xe=7,4)}}i(j);var se=!1;function Q(G,J,ve,de){$(G,(n<<1)+(de?1:0),3),function(Ce,Ee,le,fe){De(Ce),fe&&(Y(Ce,le),Y(Ce,~le)),c.arraySet(Ce.pending_buf,Ce.window,Ee,le,Ce.pending),Ce.pending+=le}(G,J,ve,!0)}f._tr_init=function(G){se||(function(){var J,ve,de,Ce,Ee,le=new Array(h+1);for(Ce=de=0;Ce<e-1;Ce++)for(P[Ce]=de,J=0;J<1<<S[Ce];J++)R[de++]=Ce;for(R[de-1]=Ce,Ce=Ee=0;Ce<16;Ce++)for(j[Ce]=Ee,J=0;J<1<<b[Ce];J++)D[Ee++]=Ce;for(Ee>>=7;Ce<a;Ce++)for(j[Ce]=Ee<<7,J=0;J<1<<b[Ce]-7;J++)D[256+Ee++]=Ce;for(ve=0;ve<=h;ve++)le[ve]=0;for(J=0;J<=143;)L[2*J+1]=8,J++,le[8]++;for(;J<=255;)L[2*J+1]=9,J++,le[9]++;for(;J<=279;)L[2*J+1]=7,J++,le[7]++;for(;J<=287;)L[2*J+1]=8,J++,le[8]++;for(ge(L,t+1,le),J=0;J<a;J++)N[2*J+1]=5,N[2*J]=ne(J,5);M=new W(L,S,s+1,t,h),U=new W(N,b,0,a,h),F=new W(new Array(0),_,0,l,g)}(),se=!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,F),G.bi_buf=0,G.bi_valid=0,Oe(G)},f._tr_stored_block=Q,f._tr_flush_block=function(G,J,ve,de){var Ce,Ee,le=0;0<G.level?(G.strm.data_type===2&&(G.strm.data_type=function(fe){var xe,Qe=4093624447;for(xe=0;xe<=31;xe++,Qe>>>=1)if(1&Qe&&fe.dyn_ltree[2*xe]!==0)return o;if(fe.dyn_ltree[18]!==0||fe.dyn_ltree[20]!==0||fe.dyn_ltree[26]!==0)return r;for(xe=32;xe<s;xe++)if(fe.dyn_ltree[2*xe]!==0)return r;return o}(G)),oe(G,G.l_desc),oe(G,G.d_desc),le=function(fe){var xe;for(ee(fe,fe.dyn_ltree,fe.l_desc.max_code),ee(fe,fe.dyn_dtree,fe.d_desc.max_code),oe(fe,fe.bl_desc),xe=l-1;3<=xe&&fe.bl_tree[2*I[xe]+1]===0;xe--);return fe.opt_len+=3*(xe+1)+5+5+4,xe}(G),Ce=G.opt_len+3+7>>>3,(Ee=G.static_len+3+7>>>3)<=Ce&&(Ce=Ee)):Ce=Ee=ve+5,ve+4<=Ce&&J!==-1?Q(G,J,ve,de):G.strategy===4||Ee===Ce?($(G,2+(de?1:0),3),Ue(G,L,N)):($(G,4+(de?1:0),3),function(fe,xe,Qe,ot){var Je;for($(fe,xe-257,5),$(fe,Qe-1,5),$(fe,ot-4,4),Je=0;Je<ot;Je++)$(fe,fe.bl_tree[2*I[Je]+1],3);Xe(fe,fe.dyn_ltree,xe-1),Xe(fe,fe.dyn_dtree,Qe-1)}(G,G.l_desc.max_code+1,G.d_desc.max_code+1,le+1),Ue(G,G.dyn_ltree,G.dyn_dtree)),Oe(G),de&&De(G)},f._tr_tally=function(G,J,ve){return G.pending_buf[G.d_buf+2*G.last_lit]=J>>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&J,G.pending_buf[G.l_buf+G.last_lit]=255&ve,G.last_lit++,J===0?G.dyn_ltree[2*ve]++:(G.matches++,J--,G.dyn_ltree[2*(R[ve]+s+1)]++,G.dyn_dtree[2*z(J)]++),G.last_lit===G.lit_bufsize-1},f._tr_align=function(G){$(G,2,3),ue(G,v,L),function(J){J.bi_valid===16?(Y(J,J.bi_buf),J.bi_buf=0,J.bi_valid=0):8<=J.bi_valid&&(J.pending_buf[J.pending++]=255&J.bi_buf,J.bi_buf>>=8,J.bi_valid-=8)}(G)}},{"../utils/common":41}],53:[function(w,m,f){"use strict";m.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(w,m,f){(function(c){!function(o,r){"use strict";if(!o.setImmediate){var i,n,e,s,t=1,a={},l=!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(){g(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,x=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=x,y}}()?(s="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(y){o.postMessage(s+y,"*")}):o.MessageChannel?((e=new MessageChannel).port1.onmessage=function(y){g(y.data)},function(y){e.port2.postMessage(y)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(y){var x=u.createElement("script");x.onreadystatechange=function(){g(y),x.onreadystatechange=null,n.removeChild(x),x=null},n.appendChild(x)}):function(y){setTimeout(g,0,y)},h.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var x=new Array(arguments.length-1),T=0;T<x.length;T++)x[T]=arguments[T+1];var S={callback:y,args:x};return a[t]=S,i(t),t++},h.clearImmediate=p}function p(y){delete a[y]}function g(y){if(l)setTimeout(g,0,y);else{var x=a[y];if(x){l=!0;try{!function(T){var S=T.callback,b=T.args;switch(b.length){case 0:S();break;case 1:S(b[0]);break;case 2:S(b[0],b[1]);break;case 3:S(b[0],b[1],b[2]);break;default:S.apply(r,b)}}(x)}finally{p(y),l=!1}}}}function v(y){y.source===o&&typeof y.data=="string"&&y.data.indexOf(s)===0&&g(+y.data.slice(s.length))}}(typeof self=="undefined"?c===void 0?this:c:self)}).call(this,typeof E!="undefined"?E:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,d("HDXh").Buffer,d("yLpj"),d("Q2Ig"))},xRUu:function(H,B,d){d("hJvP"),d("hFmY"),d("sAZ8")},xSIq:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.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"};B.default=O},xSat:function(H,B){var d={axisPointer:1,tooltip:1,brush:1};function O(E,C,A){var w=C.getComponentByElement(E.topTarget),m=w&&w.coordinateSystem;return w&&w!==A&&!d[w.mainType]&&m&&m.model!==A}B.onIrrelevantElement=O},xTNl:function(H,B){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,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("5yev")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="RedoOutlined";var c=A.forwardRef(f);B.default=c},xiyX:function(H,B,d){var O=d("bYtY"),E=d("bLfw"),C=d("nkfE"),A=d("ICMv"),w=E.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),m={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function f(o,r){return r.type||(r.data?"category":"value")}O.merge(w.prototype,A),C("single",w,f,m);var c=w;H.exports=c},xlC8:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=O;function O(E,C,A,w){for(var m=E&65535|0,f=E>>>16&65535|0,c=0;A!==0;){c=A>2e3?2e3:A,A-=c;do m=m+C[w++]|0,f=f+m|0;while(--c);m%=65521,f%=65521}return m|f<<16|0}},xvlK:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="PlusOutlined";var f=B.a=E.forwardRef(m)},xzDV:function(H,B,d){},"y+Vt":function(H,B,d){var O=d("Gev7"),E=d("bYtY"),C=d("IMiH"),A=d("2DNl"),w=d("3C/r"),m=w.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 s=this.style,t=this.path||c,a=s.hasStroke(),l=s.hasFill(),u=s.fill,h=s.stroke,p=l&&!!u.colorStops,g=a&&!!h.colorStops,v=l&&!!u.image,y=a&&!!h.image;if(s.bind(n,this,e),this.setTransform(n),this.__dirty){var x;p&&(x=x||this.getBoundingRect(),this._fillGradient=s.getGradient(n,u,x)),g&&(x=x||this.getBoundingRect(),this._strokeGradient=s.getGradient(n,h,x))}p?n.fillStyle=this._fillGradient:v&&(n.fillStyle=m.call(u,n)),g?n.strokeStyle=this._strokeGradient:y&&(n.strokeStyle=m.call(h,n));var T=s.lineDash,S=s.lineDashOffset,b=!!n.setLineDash,_=this.getGlobalScale();if(t.setScale(_[0],_[1],this.segmentIgnoreThreshold),this.__dirtyPath||T&&!b&&a?(t.beginPath(n),T&&!b&&(t.setLineDash(T),t.setLineDashOffset(S)),this.buildPath(t,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),l)if(s.fillOpacity!=null){var I=n.globalAlpha;n.globalAlpha=s.fillOpacity*s.opacity,t.fill(n),n.globalAlpha=I}else t.fill(n);if(T&&b&&(n.setLineDash(T),n.lineDashOffset=S),a)if(s.strokeOpacity!=null){var I=n.globalAlpha;n.globalAlpha=s.strokeOpacity*s.opacity,t.stroke(n),n.globalAlpha=I}else t.stroke(n);T&&b&&n.setLineDash([]),s.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,s){},createPathProxy:function(){this.path=new C},getBoundingRect:function(){var n=this._rect,e=this.style,s=!n;if(s){var t=this.path;t||(t=this.path=new C),this.__dirtyPath&&(t.beginPath(),this.buildPath(t,this.shape,!1)),n=t.getBoundingRect()}if(this._rect=n,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||s){a.copy(n);var l=e.lineWidth,u=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(l=Math.max(l,this.strokeContainThreshold||4)),u>1e-10&&(a.width+=l/u,a.height+=l/u,a.x-=l/u/2,a.y-=l/u/2)}return a}return n},contain:function(n,e){var s=this.transformCoordToLocal(n,e),t=this.getBoundingRect(),a=this.style;if(n=s[0],e=s[1],t.contain(n,e)){var l=this.path.data;if(a.hasStroke()){var u=a.lineWidth,h=a.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(a.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),A.containStroke(l,u/h,n,e)))return!0}if(a.hasFill())return A.contain(l,n,e)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,e){n==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):O.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var s=this.shape;if(s){if(E.isObject(n))for(var t in n)n.hasOwnProperty(t)&&(s[t]=n[t]);else s[n]=e;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&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 l=this.shape;for(var u in a)!l.hasOwnProperty(u)&&a.hasOwnProperty(u)&&(l[u]=a[u])}i.init&&i.init.call(this,t)};E.inherits(n,o);for(var e in i)e!=="style"&&e!=="shape"&&(n.prototype[e]=i[e]);return n},E.inherits(o,O);var r=o;H.exports=r},"y+lR":function(H,B,d){var O=d("bYtY"),E=d("mFDi"),C=d("z35g");function A(m){C.call(this,m)}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(m){var f=this.getAxis("x"),c=this.getAxis("y");return f.contain(f.toLocalCoord(m[0]))&&c.contain(c.toLocalCoord(m[1]))},containData:function(m){return this.getAxis("x").containData(m[0])&&this.getAxis("y").containData(m[1])},dataToPoint:function(m,f,c){var o=this.getAxis("x"),r=this.getAxis("y");return c=c||[],c[0]=o.toGlobalCoord(o.dataToCoord(m[0])),c[1]=r.toGlobalCoord(r.dataToCoord(m[1])),c},clampData:function(m,f){var c=this.getAxis("x").scale,o=this.getAxis("y").scale,r=c.getExtent(),i=o.getExtent(),n=c.parse(m[0]),e=o.parse(m[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(m,f){var c=this.getAxis("x"),o=this.getAxis("y");return f=f||[],f[0]=c.coordToData(c.toLocalCoord(m[0])),f[1]=o.coordToData(o.toLocalCoord(m[1])),f},getOtherAxis:function(m){return this.getAxis(m.dim==="x"?"y":"x")},getArea:function(){var m=this.getAxis("x").getGlobalExtent(),f=this.getAxis("y").getGlobalExtent(),c=Math.min(m[0],m[1]),o=Math.min(f[0],f[1]),r=Math.max(m[0],m[1])-c,i=Math.max(f[0],f[1])-o,n=new E(c,o,r,i);return n}},O.inherits(A,C);var w=A;H.exports=w},"y0+3":function(H,B,d){"use strict";d.d(B,"a",function(){return i}),d.d(B,"b",function(){return e});var O=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},C={cssFloat:1,styleFloat:1,float:1};function A(s){return s.nodeType===1?s.ownerDocument.defaultView.getComputedStyle(s,null):{}}function w(s,t,a){if(t=t.toLowerCase(),a==="auto"){if(t==="height")return s.offsetHeight;if(t==="width")return s.offsetWidth}return t in E||(E[t]=O.test(t)),E[t]?parseFloat(a)||0:a}function m(s,t){var a=arguments.length,l=A(s);return t=C[t]?"cssFloat"in s.style?"cssFloat":"styleFloat":t,a===1?l:w(s,t,l[t]||s.style[t])}function f(s,t,a){var l=arguments.length;if(t=C[t]?"cssFloat"in s.style?"cssFloat":"styleFloat":t,l===3)return typeof a=="number"&&O.test(t)&&(a="".concat(a,"px")),s.style[t]=a,a;for(var u in t)t.hasOwnProperty(u)&&f(s,u,t[u]);return A(s)}function c(s){return s===document.body?document.documentElement.clientWidth:s.offsetWidth}function o(s){return s===document.body?window.innerHeight||document.documentElement.clientHeight:s.offsetHeight}function r(){var s=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:s,height:t}}function i(){var s=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:s,height:t}}function n(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(s){var t=s.getBoundingClientRect(),a=document.documentElement;return{left:t.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},y23F:function(H,B){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 w=A.target;w&&!w.draggable;)w=w.parent;w&&(this._draggingTarget=w,w.dragging=!0,this._x=A.offsetX,this._y=A.offsetY,this.dispatchToElement(O(w,A),"dragstart",A.event))},_drag:function(A){var w=this._draggingTarget;if(w){var m=A.offsetX,f=A.offsetY,c=m-this._x,o=f-this._y;this._x=m,this._y=f,w.drift(c,o,A),this.dispatchToElement(O(w,A),"drag",A.event);var r=this.findHover(m,f,w).target,i=this._dropTarget;this._dropTarget=r,w!==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 w=this._draggingTarget;w&&(w.dragging=!1),this.dispatchToElement(O(w,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 E=d;H.exports=E},y2l5:function(H,B,d){var O=d("MwEJ"),E=d("T4UG"),C=E.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(A,w){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,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="UpOutlined";var f=B.a=E.forwardRef(m)},y3NT:function(H,B,d){var O=d("OELB"),E=O.parsePercent,C=d("bYtY"),A=Math.PI/180;function w(c,o,r,i){o.eachSeriesByType(c,function(n){var e=n.get("center"),s=n.get("radius");C.isArray(s)||(s=[0,s]),C.isArray(e)||(e=[e,e]);var t=r.getWidth(),a=r.getHeight(),l=Math.min(t,a),u=E(e[0],t),h=E(e[1],a),p=E(s[0],l/2),g=E(s[1],l/2),v=-n.get("startAngle")*A,y=n.get("minAngle")*A,x=n.getData().tree.root,T=n.getViewRoot(),S=T.depth,b=n.get("sort");b!=null&&m(T,b);var _=0;C.each(T.children,function(z){!isNaN(z.getValue())&&_++});var I=T.getValue(),L=Math.PI/(I||_)*2,N=T.depth>0,D=T.height-(N?-1:1),R=(g-p)/(D||1),P=n.get("clockwise"),M=n.get("stillShowZeroSum"),U=P?1:-1,F=function(z,Y){if(!z)return;var $=Y;if(z!==x){var ue=z.getValue(),ne=I===0&&M?L:ue*L;ne<y&&(ne=y),$=Y+U*ne;var ge=z.depth-S-(N?-1:1),Oe=p+R*ge,De=p+R*(ge+1),He=z.getModel();He.get("r0")!=null&&(Oe=E(He.get("r0"),l/2)),He.get("r")!=null&&(De=E(He.get("r"),l/2)),z.setLayout({angle:ne,startAngle:Y,endAngle:$,clockwise:P,cx:u,cy:h,r0:Oe,r:De})}if(z.children&&z.children.length){var pe=0;C.each(z.children,function(Ue){pe+=F(Ue,Y+pe)})}return $-Y};if(N){var j=p,W=p+R,V=Math.PI*2;x.setLayout({angle:V,startAngle:v,endAngle:v+V,clockwise:P,cx:u,cy:h,r0:j,r:W})}F(T,v)})}function m(c,o){var r=c.children||[];c.children=f(r,o),r.length&&C.each(c.children,function(i){m(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=w},y3Yb:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("HBhm")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="PaperClipOutlined";var c=A.forwardRef(f);B.default=c},"y4/Y":function(H,B,d){var O=d("ProS"),E=d("bYtY"),C=d("zTMp"),A=d("62sa");d("SKx+"),d("1LEl"),d("Sp2Z"),O.registerPreprocessor(function(w){if(w){(!w.axisPointer||w.axisPointer.length===0)&&(w.axisPointer={});var m=w.axisPointer.link;m&&!E.isArray(m)&&(w.axisPointer.link=[m])}}),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,function(w,m){w.getComponent("axisPointer").coordSysAxesInfo=C.collect(w,m)}),O.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A)},y7Aq:function(H,B,d){var O=d("bYtY"),E=d("+TT/"),C=E.getLayoutRect;function A(m,f,c){var o=m.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"]],s=e[n],t=[0,null,10],a={},l=0;l<3;l++)a[e[1-n][l]]=t[l],a[s[l]]=l===2?c[0]:o[s[l]];var u=[["x","width",3],["y","height",0]][n],h=C(a,i,o.padding);return s[(h.margin[u[2]]||0)+h[u[0]]+h[u[1]]*.5<i[u[1]]*.5?0:1]}function w(m,f){return O.each(m||[],function(c){c.dataIndex!=null&&(c.dataIndexInside=c.dataIndex,c.dataIndex=null),c.highlightKey="visualMap"+(f?f.componentIndex:"")}),m}B.getItemAlign=A,B.makeHighDownBatch=w},y8nQ:function(H,B,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("gwTy"),A=d.n(C),w=d("1GLa")},yEEn:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="ArrowDownOutlined";var f=B.a=E.forwardRef(m)},yO87:function(H,B,d){var O=d("bYtY"),E=d("oVpE"),C=E.createSymbol,A=d("IwbS"),w=A.Group,m=d("OELB"),f=m.parsePercent,c=d("FBjb"),o=3;function r(t){return O.isArray(t)||(t=[+t,+t]),t}function i(t,a){var l=a.rippleEffectColor||a.color;t.eachChild(function(u){u.attr({z:a.z,zlevel:a.zlevel,style:{stroke:a.brushType==="stroke"?l:null,fill:a.brushType==="fill"?l:null}})})}function n(t,a){w.call(this);var l=new c(t,a),u=new w;this.add(l),this.add(u),u.beforeUpdate=function(){this.attr(l.getScale())},this.updateData(t,a)}var e=n.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(t){for(var a=t.symbolType,l=t.color,u=this.childAt(1),h=0;h<o;h++){var p=C(a,-1,-1,2,2,l);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var g=-h/o*t.period+t.effectOffset;p.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(g).start(),p.animateStyle(!0).when(t.period,{opacity:0}).delay(g).start(),u.add(p)}i(u,t)},e.updateEffectAnimation=function(t){for(var a=this._effectCfg,l=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(l,t)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(t,a){var l=t.hostModel;this.childAt(0).updateData(t,a);var u=this.childAt(1),h=t.getItemModel(a),p=t.getItemVisual(a,"symbol"),g=r(t.getItemVisual(a,"symbolSize")),v=t.getItemVisual(a,"color");u.attr("scale",g),u.traverse(function(L){L.attr({fill:v})});var y=h.getShallow("symbolOffset");if(y){var x=u.position;x[0]=f(y[0],g[0]),x[1]=f(y[1],g[1])}var T=t.getItemVisual(a,"symbolRotate");u.rotation=(T||0)*Math.PI/180||0;var S={};if(S.showEffectOn=l.get("showEffectOn"),S.rippleScale=h.get("rippleEffect.scale"),S.brushType=h.get("rippleEffect.brushType"),S.period=h.get("rippleEffect.period")*1e3,S.effectOffset=a/t.count(),S.z=h.getShallow("z")||0,S.zlevel=h.getShallow("zlevel")||0,S.symbolType=p,S.color=v,S.rippleEffectColor=h.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),S.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(S):this.startEffectAnimation(S),this._effectCfg=S;else{this._effectCfg=null,this.stopEffectAnimation();var b=this.childAt(0),_=function(){b.highlight(),S.showEffectOn!=="render"&&this.startEffectAnimation(S)},I=function(){b.downplay(),S.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",_,this).on("mouseout",I,this).on("emphasis",_,this).on("normal",I,this)}this._effectCfg=S},e.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},O.inherits(n,w);var s=n;H.exports=s},yS9w:function(H,B,d){var O=d("MEGo"),E=O.parseSVG,C=O.makeViewBoxTransform,A=d("4fz+"),w=d("x6Kt"),m=d("bYtY"),f=m.assert,c=m.createHashMap,o=d("mFDi"),r=d("4NO4"),i=r.makeInner,n=i(),e={load:function(t,a){var l=n(a).originRoot;if(l)return{root:l,boundingRect:n(a).boundingRect};var u=s(a);return n(a).originRoot=u.root,n(a).boundingRect=u.boundingRect,u},makeGraphic:function(t,a,l){var u=n(a),h=u.rootMap||(u.rootMap=c()),p=h.get(l);if(p)return p;var g=u.originRoot,v=u.boundingRect;return u.originRootHostKey?p=s(a,v).root:(u.originRootHostKey=l,p=g),h.set(l,p)},removeGraphic:function(t,a,l){var u=n(a),h=u.rootMap;h&&h.removeKey(l),l===u.originRootHostKey&&(u.originRootHostKey=null)}};function s(t,a){var l=t.svgXML,u,h;try{u=l&&E(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},h=u.root,f(h!=null)}catch(T){throw new Error(`Invalid svg format
|
|
|
`+T.message)}var p=u.width,g=u.height,v=u.viewBoxRect;if(a||(a=p==null||g==null?h.getBoundingRect():new o(0,0,0,0),p!=null&&(a.width=p),g!=null&&(a.height=g)),v){var y=C(v,a.width,a.height),x=h;h=new A,h.add(x),x.scale=y.scale,x.position=y.position}return h.setClipPath(new w({shape:a.plain()})),{root:h,boundingRect:a}}H.exports=e},yWXo:function(H,B,d){var O=d("IwbS"),E=d("oVpE"),C=E.createSymbol,A=d("OS9S"),w=4,m=O.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(r,i){var n=i.points,e=i.size,s=this.symbolProxy,t=s.shape,a=r.getContext?r.getContext():r,l=a&&e[0]<w;if(l)return;for(var u=0;u<n.length;){var 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],s.buildPath(r,t,!0)}},afterBrush:function(r){var i=this.shape,n=i.points,e=i.size,s=e[0]<w;if(!s)return;this.setTransform(r);for(var t=0;t<n.length;){var a=n[t++],l=n[t++];if(isNaN(a)||isNaN(l))continue;if(this.softClipShape&&!this.softClipShape.contain(a,l))continue;r.fillRect(a-e[0]/2,l-e[1]/2,e[0],e[1])}this.restoreTransform(r)},findDataIndex:function(r,i){for(var n=this.shape,e=n.points,s=n.size,t=Math.max(s[0],4),a=Math.max(s[1],4),l=e.length/2-1;l>=0;l--){var u=l*2,h=e[u]-t/2,p=e[u+1]-a/2;if(r>=h&&i>=p&&r<=h+t&&i<=p+a)return l}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 m({rectHover:!0,cursor:"default"});n.setShape({points:r.getLayout("symbolPoints")}),this._setCommon(n,r,!1,i),this.group.add(n),this._incremental=null},c.updateLayout=function(r){if(this._incremental)return;var i=r.getLayout("symbolPoints");this.group.eachChild(function(n){if(n.startIndex!=null){var e=(n.endIndex-n.startIndex)*2,s=n.startIndex*4*2;i=new Float32Array(i.buffer,s,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 m,this._incremental.addDisplayable(e,!0)):(e=new m({rectHover:!0,cursor:"default",startIndex:r.start,endIndex:r.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(e,i,!!this._incremental,n)},c._setCommon=function(r,i,n,e){var s=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]<w;r.useStyle(s.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var l=i.getVisual("color");l&&r.setColor(l),n||(r.seriesIndex=s.seriesIndex,r.on("mousemove",function(u){r.dataIndex=null;var 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,B,d){var O=d("711d"),E=O("length");H.exports=E},ye1Q:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="LoadingOutlined";var f=B.a=E.forwardRef(m)},ygfH:function(H,B,d){"use strict";Object.defineProperty(B,"__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"};B.default=O},yik8:function(H,B,d){var O=d("bZqE"),E=O.eachAfter,C=O.eachBefore,A=d("Itpr"),w=A.init,m=A.firstWalk,f=A.secondWalk,c=A.separation,o=A.radialCoordinate,r=A.getViewRect;function i(e,s){e.eachSeriesByType("tree",function(t){n(t,s)})}function n(e,s){var t=r(e,s);e.layoutInfo=t;var a=e.get("layout"),l=0,u=0,h=null;a==="radial"?(l=2*Math.PI,u=Math.min(t.height,t.width)/2,h=c(function(D,R){return(D.parentNode===R.parentNode?1:2)/D.depth})):(l=t.width,u=t.height,h=c());var p=e.getData().tree.root,g=p.children[0];if(g){w(p),E(g,m,h),p.hierNode.modifier=-g.hierNode.prelim,C(g,f);var v=g,y=g,x=g;C(g,function(D){var R=D.getLayout().x;R<v.getLayout().x&&(v=D),R>y.getLayout().x&&(y=D),D.depth>x.depth&&(x=D)});var T=v===y?1:h(v,y)/2,S=T-v.getLayout().x,b=0,_=0,I=0,L=0;if(a==="radial")b=l/(y.getLayout().x+T+S),_=u/(x.depth-1||1),C(g,function(D){I=(D.getLayout().x+S)*b,L=(D.depth-1)*_;var R=o(I,L);D.setLayout({x:R.x,y:R.y,rawX:I,rawY:L},!0)});else{var N=e.getOrient();N==="RL"||N==="LR"?(_=u/(y.getLayout().x+T+S),b=l/(x.depth-1||1),C(g,function(D){L=(D.getLayout().x+S)*_,I=N==="LR"?(D.depth-1)*b:l-(D.depth-1)*b,D.setLayout({x:I,y:L},!0)})):(N==="TB"||N==="BT")&&(b=l/(y.getLayout().x+T+S),_=u/(x.depth-1||1),C(g,function(D){I=(D.getLayout().x+S)*b,L=N==="TB"?(D.depth-1)*_:u-(D.depth-1)*_,D.setLayout({x:I,y:L},!0)}))}}}H.exports=i},ynwM:function(H,B,d){var O=d("MFOe"),E=O.Global;H.exports={name:"oldFF-globalStorage",read:A,write:w,each:m,remove:f,clearAll:c};var C=E.globalStorage;function A(o){return C[o]}function w(o,r){C[o]=r}function m(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(){m(function(o,r){delete C[o]})}},ypgQ:function(H,B,d){var O=d("bYtY"),E=d("4NO4"),C=d("bLfw"),A=O.each,w=O.clone,m=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,l){a&&O.each(E.normalizeToArray(a.series),function(p){p&&p.data&&O.isTypedArray(p.data)&&O.setAsPrimitive(p.data)}),a=w(a);var u=this._optionBackup,h=r.call(this,a,l,!u);this._newBaseOption=h.baseOption,u?(s(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 l=this._optionBackup;return this._timelineOptions=m(l.timelineOptions,w),this._mediaList=m(l.mediaList,w),this._mediaDefault=w(l.mediaDefault),this._currentMediaIndices=[],w(a?l.baseOption:this._newBaseOption)},getTimelineOption:function(a){var l,u=this._timelineOptions;if(u.length){var h=a.getComponent("timeline");h&&(l=w(u[h.getCurrentIndex()],!0))}return l},getMediaOption:function(a){var l=this._api.getWidth(),u=this._api.getHeight(),h=this._mediaList,p=this._mediaDefault,g=[],v=[];if(!h.length&&!p)return v;for(var y=0,x=h.length;y<x;y++)i(h[y].query,l,u)&&g.push(y);return!g.length&&p&&(g=[-1]),g.length&&!e(g,this._currentMediaIndices)&&(v=m(g,function(T){return w(T===-1?p.option:h[T].option)})),this._currentMediaIndices=g,v}};function r(a,l,u){var h=[],p=[],g,v,y=a.timeline;if(a.baseOption&&(v=a.baseOption),(y||a.options)&&(v=v||{},h=(a.options||[]).slice()),a.media){v=v||{};var x=a.media;A(x,function(T){T&&T.option&&(T.query?p.push(T):g||(g=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(l,function(S){S(T,u)})}),{baseOption:v,timelineOptions:h,mediaDefault:g,mediaList:p}}function i(a,l,u){var h={width:l,height:u,aspectratio:l/u},p=!0;return O.each(a,function(g,v){var y=v.match(c);if(!y||!y[1]||!y[2])return;var x=y[1],T=y[2].toLowerCase();n(h[T],g,x)||(p=!1)}),p}function n(a,l,u){return u==="min"?a>=l:u==="max"?a<=l:a===l}function e(a,l){return a.join(",")===l.join(",")}function s(a,l){l=l||{},A(l,function(u,h){if(u==null)return;var p=a[h];if(!C.hasClass(h))a[h]=f(p,u,!0);else{u=E.normalizeToArray(u),p=E.normalizeToArray(p);var g=E.mappingToExists(p,u);a[h]=m(g,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,B,d){var O=d("y+Vt"),E=d("nPnh"),C=E.subPixelOptimizeLine,A={},w=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=w},z35g:function(H,B,d){var O=d("bYtY");function E(w){return this._axes[w]}var C=function(w){this._axes={},this._dimList=[],this.name=w||""};C.prototype={constructor:C,type:"cartesian",getAxis:function(w){return this._axes[w]},getAxes:function(){return O.map(this._dimList,E,this)},getAxesByScale:function(w){return w=w.toLowerCase(),O.filter(this.getAxes(),function(m){return m.scale.type===w})},addAxis:function(w){var m=w.dim;this._axes[m]=w,this._dimList.push(m)},dataToCoord:function(w){return this._dataCoordConvert(w,"dataToCoord")},coordToData:function(w){return this._dataCoordConvert(w,"coordToData")},_dataCoordConvert:function(w,m){for(var f=this._dimList,c=w instanceof Array?[]:{},o=0;o<f.length;o++){var r=f[o],i=this._axes[r];c[r]=i[m](w[r])}return c}};var A=C;H.exports=A},z7Xi:function(H,B,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},A=C,w=d("6VBw"),m=function(o,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};m.displayName="UploadOutlined";var f=B.a=E.forwardRef(m)},zAh6:function(H,B,d){"use strict";d.d(B,"a",function(){return w});var O=d("xEkU"),E=d.n(O),C=d("i6bk");function A(m,f,c,o){var r=c-f;return m/=o/2,m<1?r/2*m*m*m+f:r/2*((m-=2)*m*m+2)+f}function w(m){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(),s=Object(C.a)(e,!0),t=Date.now(),a=function l(){var u=Date.now(),h=u-t,p=A(h>n?n:h,s,m,n);Object(C.b)(e)?e.scrollTo(window.pageXOffset,p):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=p:e.scrollTop=p,h<n?E()(l):typeof r=="function"&&r()};E()(a)}},zDms:function(H,B,d){var O=d("bYtY"),E=d("OELB"),C=d("UOVi"),A=d("72pK"),w=O.each,m=E.asc,f=function(e,s,t,a){this._dimName=e,this._axisIndex=s,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=a,this._dataZoomModel=t};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=[],s=this.ecModel;return s.eachSeries(function(t){if(C.isCoordSupported(t.get("coordinateSystem"))){var a=this._dimName,l=s.queryComponents({mainType:a+"Axis",index:t.get(a+"AxisIndex"),id:t.get(a+"AxisId")})[0];this._axisIndex===(l&&l.componentIndex)&&e.push(t)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,s=this.ecModel,t=this.getAxisModel(),a=e==="x"||e==="y",l,u;a?(u="gridIndex",l=e==="x"?"y":"x"):(u="polarIndex",l=e==="angle"?"radius":"angle");var h;return s.eachComponent(l+"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 s=this._dataExtent,t=this.getAxisModel(),a=t.axis.scale,l=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],p=[],g;w(["start","end"],function(x,T){var S=e[x],b=e[x+"Value"];l[T]==="percent"?(S==null&&(S=u[T]),b=a.parse(E.linearMap(S,u,s))):(g=!0,b=b==null?s[T]:a.parse(b),S=E.linearMap(b,s,u)),p[T]=b,h[T]=S}),m(p),m(h);var v=this._minMaxSpan;g?y(p,h,s,u,!1):y(h,p,u,s,!0);function y(x,T,S,b,_){var I=_?"Span":"ValueSpan";A(0,x,S,"all",v["min"+I],v["max"+I]);for(var L=0;L<2;L++)T[L]=E.linearMap(x[L],S,b,!0),_&&(T[L]=a.parse(T[L]))}return{valueWindow:p,percentWindow:h}},reset:function(e){if(e!==this._dataZoomModel)return;var s=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,s),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,s){if(e!==this._dataZoomModel)return;var t=this._dimName,a=this.getTargetSeriesModels(),l=e.get("filterMode"),u=this._valueWindow;if(l==="none")return;w(a,function(p){var g=p.getData(),v=g.mapDimension(t,!0);if(!v.length)return;l==="weakFilter"?g.filterSelf(function(y){for(var x,T,S,b=0;b<v.length;b++){var _=g.get(v[b],y),I=!isNaN(_),L=_<u[0],N=_>u[1];if(I&&!L&&!N)return!0;I&&(S=!0),L&&(x=!0),N&&(T=!0)}return S&&x&&T}):w(v,function(y){if(l==="empty")p.setData(g=g.map(y,function(T){return h(T)?T:NaN}));else{var x={};x[y]=u,g.selectRange(x)}}),w(v,function(y){g.setApproximateExtent(u,y)})});function h(p){return p>=u[0]&&p<=u[1]}}};function c(e,s,t){var a=[Infinity,-Infinity];return w(t,function(l){var u=l.getData();u&&w(u.mapDimension(s,!0),function(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,s){var t=e.getAxisModel(),a=t.getMin(!0),l=t.get("type")==="category",u=l&&t.getCategories().length;a!=null&&a!=="dataMin"&&typeof a!="function"?s[0]=a:l&&(s[0]=u>0?0:NaN);var h=t.getMax(!0);return h!=null&&h!=="dataMax"&&typeof h!="function"?s[1]=h:l&&(s[1]=u>0?u-1:NaN),t.get("scale",!0)||(s[0]>0&&(s[0]=0),s[1]<0&&(s[1]=0)),s}function r(e,s){var t=e.getAxisModel(),a=e._percentWindow,l=e._valueWindow;if(!a)return;var u=E.getPixelPrecision(l,[0,500]);u=Math.min(u,20);var h=s||a[0]===0&&a[1]===100;t.setRange(h?null:+l[0].toFixed(u),h?null:+l[1].toFixed(u))}function i(e){var s=e._minMaxSpan={},t=e._dataZoomModel,a=e._dataExtent;w(["min","max"],function(l){var u=t.get(l+"Span"),h=t.get(l+"ValueSpan");h!=null&&(h=e.getAxisModel().axis.scale.parse(h)),h!=null?u=E.linearMap(a[0]+h,a,[0,100],!0):u!=null&&(h=E.linearMap(u,[0,100],a,!0)-a[0]),s[l+"Span"]=u,s[l+"ValueSpan"]=h})}var n=f;H.exports=n},zM3Q:function(H,B,d){var O=d("4NO4"),E=O.makeInner;function C(){var A=E();return function(w){var m=A(w),f=w.pipelineContext,c=m.large,o=m.progressiveRender,r=m.large=f&&f.large,i=m.progressiveRender=f&&f.progressiveRender;return!!(c^r||o^i)&&"reset"}}H.exports=C},zRKj:function(H,B,d){d("Ae16"),d("Sp2Z"),d("y4/Y")},zTMp:function(H,B,d){var O=d("bYtY"),E=d("Qxkt"),C=O.each,A=O.curry;function w(a,l){var u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return m(u,a,l),u.seriesInvolved&&c(u,a),u}function m(a,l,u){var h=l.getComponent("tooltip"),p=l.getComponent("axisPointer"),g=p.get("link",!0)||[],v=[];C(u.getCoordinateSystems(),function(y){if(!y.axisPointerEnabled)return;var x=t(y.model),T=a.coordSysAxesInfo[x]={};a.coordSysMap[x]=y;var S=y.model,b=S.getModel("tooltip",h);if(C(y.getAxes(),A(N,!1,null)),y.getTooltipAxes&&h&&b.get("show")){var _=b.get("trigger")==="axis",I=b.get("axisPointer.type")==="cross",L=y.getTooltipAxes(b.get("axisPointer.axis"));(_||I)&&C(L.baseAxes,A(N,I?"cross":!0,_)),I&&C(L.otherAxes,A(N,"cross",!1))}function N(D,R,P){var M=P.model.getModel("axisPointer",p),U=M.get("show");if(!U||U==="auto"&&!D&&!s(M))return;R==null&&(R=M.get("triggerTooltip")),M=D?f(P,b,p,l,D,R):M;var F=M.get("snap"),j=t(P.model),W=R||F||P.type==="category",V=a.axesInfo[j]={key:j,axis:P,coordSys:y,axisPointerModel:M,triggerTooltip:R,involveSeries:W,snap:F,useHandle:s(M),seriesModels:[]};T[j]=V,a.seriesInvolved|=W;var z=o(g,P);if(z!=null){var Y=v[z]||(v[z]={axesInfo:{}});Y.axesInfo[j]=V,Y.mapper=g[z].mapper,V.linkGroup=Y}}})}function f(a,l,u,h,p,g){var v=l.getModel("axisPointer"),y={};C(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){y[b]=O.clone(v.get(b))}),y.snap=a.type!=="category"&&!!g,v.get("type")==="cross"&&(y.type="line");var x=y.label||(y.label={});if(x.show==null&&(x.show=!1),p==="cross"){var T=v.get("label.show");if(x.show=T!=null?T:!0,!g){var S=y.lineStyle=v.get("crossStyle");S&&O.defaults(x,S.textStyle)}}return a.model.getModel("axisPointer",new E(y,u,h))}function c(a,l){l.eachSeries(function(u){var h=u.coordinateSystem,p=u.get("tooltip.trigger",!0),g=u.get("tooltip.show",!0);if(!h||p==="none"||p===!1||p==="item"||g===!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,l){for(var u=l.model,h=l.dim,p=0;p<a.length;p++){var g=a[p]||{};if(r(g[h+"AxisId"],u.id)||r(g[h+"AxisIndex"],u.componentIndex)||r(g[h+"AxisName"],u.name))return p}}function r(a,l){return a==="all"||O.isArray(a)&&O.indexOf(a,l)>=0||a===l}function i(a){var l=n(a);if(!l)return;var u=l.axisPointerModel,h=l.axis.scale,p=u.option,g=u.get("status"),v=u.get("value");v!=null&&(v=h.parse(v));var y=s(u);g==null&&(p.status=y?"show":"hide");var x=h.getExtent().slice();x[0]>x[1]&&x.reverse(),(v==null||v>x[1])&&(v=x[1]),v<x[0]&&(v=x[0]),p.value=v,y&&(p.status=l.axis.scale.isBlank()?"hide":"show")}function n(a){var l=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return l&&l.axesInfo[t(a)]}function e(a){var l=n(a);return l&&l.axisPointerModel}function s(a){return!!a.get("handle.show")}function t(a){return a.type+"||"+a.id}B.collect=w,B.fixValue=i,B.getAxisInfo=n,B.getAxisPointerModel=e,B.makeKey=t},zYTA:function(H,B,d){var O=d("bYtY"),E=256;function C(){var w=O.createCanvas();this.canvas=w,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}C.prototype={update:function(w,m,f,c,o,r){var i=this._getBrush(),n=this._getGradient(w,o,"inRange"),e=this._getGradient(w,o,"outOfRange"),s=this.pointSize+this.blurSize,t=this.canvas,a=t.getContext("2d"),l=w.length;t.width=m,t.height=f;for(var u=0;u<l;++u){var h=w[u],p=h[0],g=h[1],v=h[2],y=c(v);a.globalAlpha=y,a.drawImage(i,p-s,g-s)}if(!t.width||!t.height)return t;for(var x=a.getImageData(0,0,t.width,t.height),T=x.data,S=0,b=T.length,_=this.minOpacity,I=this.maxOpacity,L=I-_;S<b;){var y=T[S+3]/256,N=Math.floor(y*(E-1))*4;if(y>0){var D=r(y)?n:e;y>0&&(y=y*L+_),T[S++]=D[N],T[S++]=D[N+1],T[S++]=D[N+2],T[S++]=D[N+3]*y*256}else S+=4}return a.putImageData(x,0,0),t},_getBrush:function(){var w=this._brushCanvas||(this._brushCanvas=O.createCanvas()),m=this.pointSize+this.blurSize,f=m*2;w.width=f,w.height=f;var c=w.getContext("2d");return c.clearRect(0,0,f,f),c.shadowOffsetX=f,c.shadowBlur=this.blurSize,c.shadowColor="#000",c.beginPath(),c.arc(-m,m,this.pointSize,0,Math.PI*2,!0),c.closePath(),c.fill(),w},_getGradient:function(w,m,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++)m[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,B,d){var O=d("YH21"),E=O.addEventListener,C=O.removeEventListener,A=O.normalizeEvent,w=O.getNativeEvent,m=d("bYtY"),f=d("H6uX"),c=d("ItGF"),o=300,r=c.domSupported,i=function(){var D=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],R=["touchstart","touchend","touchmove"],P={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=m.map(D,function(U){var F=U.replace("mouse","pointer");return P.hasOwnProperty(F)?F:U});return{mouse:D,touch:R,pointer:M}}(),n={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(D){return D==="mousewheel"&&c.browser.firefox?"DOMMouseScroll":D}function s(D){var R=D.pointerType;return R==="pen"||R==="touch"}function t(D){D.touching=!0,D.touchTimer!=null&&(clearTimeout(D.touchTimer),D.touchTimer=null),D.touchTimer=setTimeout(function(){D.touching=!1,D.touchTimer=null},700)}function a(D){D&&(D.zrByTouch=!0)}function l(D,R){return A(D.dom,new h(D,R),!0)}function u(D,R){for(var P=R,M=!1;P&&P.nodeType!==9&&!(M=P.domBelongToZr||P!==R&&P===D.painterRoot);)P=P.parentNode;return M}function h(D,R){this.type=R.type,this.target=this.currentTarget=D.dom,this.pointerType=R.pointerType,this.clientX=R.clientX,this.clientY=R.clientY}var p=h.prototype;p.stopPropagation=p.stopImmediatePropagation=p.preventDefault=m.noop;var g={mousedown:function(R){R=A(this.dom,R),this._mayPointerCapture=[R.zrX,R.zrY],this.trigger("mousedown",R)},mousemove:function(R){R=A(this.dom,R);var P=this._mayPointerCapture;P&&(R.zrX!==P[0]||R.zrY!==P[1])&&b(this,!0),this.trigger("mousemove",R)},mouseup:function(R){R=A(this.dom,R),b(this,!1),this.trigger("mouseup",R)},mouseout:function(R){R=A(this.dom,R),this._pointerCapturing&&(R.zrEventControl="no_globalout");var P=R.toElement||R.relatedTarget;R.zrIsToLocalDOM=u(this,P),this.trigger("mouseout",R)},touchstart:function(R){R=A(this.dom,R),a(R),this._lastTouchMoment=new Date,this.handler.processGesture(R,"start"),g.mousemove.call(this,R),g.mousedown.call(this,R)},touchmove:function(R){R=A(this.dom,R),a(R),this.handler.processGesture(R,"change"),g.mousemove.call(this,R)},touchend:function(R){R=A(this.dom,R),a(R),this.handler.processGesture(R,"end"),g.mouseup.call(this,R),+new Date-this._lastTouchMoment<o&&g.click.call(this,R)},pointerdown:function(R){g.mousedown.call(this,R)},pointermove:function(R){s(R)||g.mousemove.call(this,R)},pointerup:function(R){g.mouseup.call(this,R)},pointerout:function(R){s(R)||g.mouseout.call(this,R)}};m.each(["click","mousewheel","dblclick","contextmenu"],function(D){g[D]=function(R){R=A(this.dom,R),this.trigger(D,R)}});var v={pointermove:function(R){s(R)||v.mousemove.call(this,R)},pointerup:function(R){v.mouseup.call(this,R)},mousemove:function(R){this.trigger("mousemove",R)},mouseup:function(R){var P=this._pointerCapturing;b(this,!1),this.trigger("mouseup",R),P&&(R.zrEventControl="only_globalout",this.trigger("mouseout",R))}};function y(D,R){var P=R.domHandlers;c.pointerEventsSupported?m.each(i.pointer,function(M){T(R,M,function(U){P[M].call(D,U)})}):(c.touchEventsSupported&&m.each(i.touch,function(M){T(R,M,function(U){P[M].call(D,U),t(R)})}),m.each(i.mouse,function(M){T(R,M,function(U){U=w(U),R.touching||P[M].call(D,U)})}))}function x(D,R){c.pointerEventsSupported?m.each(n.pointer,P):c.touchEventsSupported||m.each(n.mouse,P);function P(M){function U(F){F=w(F),u(D,F.target)||(F=l(D,F),R.domHandlers[M].call(D,F))}T(R,M,U,{capture:!0})}}function T(D,R,P,M){D.mounted[R]=P,D.listenerOpts[R]=M,E(D.domTarget,e(R),P,M)}function S(D){var R=D.mounted;for(var P in R)R.hasOwnProperty(P)&&C(D.domTarget,e(P),R[P],D.listenerOpts[P]);D.mounted={}}function b(D,R){if(D._mayPointerCapture=null,r&&D._pointerCapturing^R){D._pointerCapturing=R;var P=D._globalHandlerScope;R?x(D,P):S(P)}}function _(D,R){this.domTarget=D,this.domHandlers=R,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(D,R){f.call(this),this.dom=D,this.painterRoot=R,this._localHandlerScope=new _(D,g),r&&(this._globalHandlerScope=new _(document,v)),this._pointerCapturing=!1,this._mayPointerCapture=null,y(this,this._localHandlerScope)}var L=I.prototype;L.dispose=function(){S(this._localHandlerScope),r&&S(this._globalHandlerScope)},L.setCursor=function(D){this.dom.style&&(this.dom.style.cursor=D||"default")},m.mixin(I,f);var N=I;H.exports=N},zdCA:function(H,B,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=O(d("q1tI")),w=E(d("PSzr")),m=E(d("KQxl")),f=function(r,i){return A.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:w.default}))};f.displayName="BarsOutlined";var c=A.forwardRef(f);B.default=c},zeV3:function(H,B,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),A=d.n(C),w=d("q1tI"),m=d.n(w),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=function(e,s){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&s.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)s.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(t[a[l]]=e[a[l]]);return t},i={small:8,middle:16,large:24},n=function(s){var t,a=w.useContext(o.b),l=a.getPrefixCls,u=a.space,h=a.direction,p=s.size,g=p===void 0?(u==null?void 0:u.size)||"small":p,v=s.align,y=s.className,x=s.children,T=s.direction,S=T===void 0?"horizontal":T,b=s.prefixCls,_=r(s,["size","align","className","children","direction","prefixCls"]),I=w.Children.count(x);if(I===0)return null;var L=v===void 0&&S==="horizontal"?"center":v,N=l("space",b),D=c()(N,"".concat(N,"-").concat(S),(t={},A()(t,"".concat(N,"-rtl"),h==="rtl"),A()(t,"".concat(N,"-align-").concat(L),L),t),y),R="".concat(N,"-item"),P=h==="rtl"?"marginLeft":"marginRight";return w.createElement("div",E()({className:D},_),w.Children.map(x,function(M,U){return w.createElement("div",{className:R,key:"".concat(R,"-").concat(U),style:U===I-1||M===null||M===void 0?{}:A()({},S==="vertical"?"marginBottom":P,typeof g=="string"?i[g]:g)},M)}))};B.a=n},zoYe:function(H,B,d){var O=d("nmnc"),E=d("eUgh"),C=d("Z0cm"),A=d("/9aa"),w=1/0,m=O?O.prototype:void 0,f=m?m.toString:void 0;function c(o){if(typeof o=="string")return o;if(C(o))return E(o,c)+"";if(A(o))return f?f.call(o):"";var r=o+"";return r=="0"&&1/o==-w?"-0":r}H.exports=c},zuHt:function(H,B,d){var O=d("bYtY");function E(C){var A={};C.eachSeriesByType("map",function(w){var m=w.getMapType();if(w.getHostGeoModel()||A[m])return;var f={};O.each(w.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 s=i.getName(e),t=r.getRegion(s);if(!t||isNaN(n))return;var a=f[s]||0,l=r.dataToPoint(t.center);f[s]=a+1,i.setItemLayout(e,{point:l,offset:a})})});var c=w.getData();c.each(function(o){var r=c.getName(o),i=c.getItemLayout(o)||{};i.showLabel=!f[r],c.setItemLayout(o,i)}),A[m]=!0})}H.exports=E}}]);
|